/*
 * Janamax — site-wide theme styles (header, footer, buttons, shared
 * utilities). Loaded on every page, on top of the default _s style.css.
 */

:root {
	color-scheme: dark;
	--jm-bg: #050e14;
	--jm-bg-header: #040c12;
	--jm-bg-alt: #061219;
	--jm-bg-alt-2: #07161f;
	--jm-ink: #e6eef3;
	--jm-ink-soft: #dbe7ee;
	--jm-muted-1: #b9cbd4;
	--jm-muted-2: #9db0ba;
	--jm-muted-3: #93a7b1;
	--jm-muted-4: #7d919c;
	--jm-muted-5: #8fa4ae;
	--jm-accent: #7fd463;
	--jm-border: rgba(255, 255, 255, 0.09);
	--jm-border-soft: rgba(255, 255, 255, 0.07);
	--jm-border-strong: rgba(255, 255, 255, 0.18);
	--jm-max-width: 1440px;
	--font-condensed: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

body {
	background: var(--jm-bg-header);
	color: var(--jm-ink);
	font-family: var(--font-body);
	overflow-x: hidden;
}

a,
a:visited {
	color: var(--jm-ink-soft);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--jm-accent);
}

/* Every colored link/button component below sets its own color, but the
   browser's default :visited style can still outrank a bare class selector
   once a link has been visited — repeat :visited on the same selector list
   everywhere a specific color matters instead of relying on the reset above. */

#page.site {
	background: var(--jm-bg-header);
}

.jm-container {
	max-width: var(--jm-max-width);
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 44px);
}

/* Buttons
--------------------------------------------- */
.jm-btn {
	display: inline-flex;
	align-items: center;
	gap: 30px;
	font-family: var(--font-condensed);
	letter-spacing: 0.14em;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.jm-btn-outline,
.jm-btn-outline:visited {
	padding: 16px 24px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	font-size: 17px;
	color: var(--jm-ink);
}

.jm-btn-outline:hover,
.jm-btn-outline:focus {
	border-color: var(--jm-accent);
	background: rgba(127, 212, 99, 0.08);
	color: var(--jm-ink);
}

.jm-btn-solid,
.jm-btn-solid:visited {
	padding: 17px 26px;
	background: #dce9f2;
	color: var(--jm-bg-header);
	font-weight: 600;
	font-size: 18px;
	gap: 36px;
}

.jm-btn-solid:hover,
.jm-btn-solid:focus {
	background: #fff;
	color: var(--jm-bg-header);
}

.jm-arrow {
	font-size: 19px;
	line-height: 1;
}

/* Section heading
--------------------------------------------- */
.jm-section-head {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.jm-section-title {
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: clamp(30px, 3.4vw, 42px);
	letter-spacing: 0.06em;
	margin: 0;
}

.jm-rule {
	flex: 1;
	min-width: 40px;
	height: 1px;
	background: var(--jm-border-strong);
}

.jm-see-all,
.jm-see-all:visited {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-family: var(--font-condensed);
	font-size: 14px;
	letter-spacing: 0.16em;
	color: #a9bcc5;
	white-space: nowrap;
}

.jm-see-all .jm-arrow {
	font-size: 25px;
}

.jm-eyebrow {
	font-family: var(--font-condensed);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--jm-muted-4);
	white-space: nowrap;
}

/* Icons
--------------------------------------------- */
.jm-icon {
	display: block;
	color: var(--jm-ink-soft);
}

/* Logo lockup (header + footer)
--------------------------------------------- */
.site-logo-link {
	display: flex;
	align-items: center;
	gap: 16px;
}

.jm-logo-mark {
	display: block;
	width: clamp(34px, 5vw, 42px);
	height: auto;
}

.site-logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.site-logo-name {
	display: block;
	height: clamp(14px, 2.6vw, 20px);
	width: auto;
}

.site-logo-tagline {
	font-family: var(--font-condensed);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--jm-muted-5);
	margin-top: 3px;
}

.custom-logo-link img {
	max-height: 60px;
	width: auto;
}

/* Header
--------------------------------------------- */
.site-header {
	position: relative;
	background: var(--jm-bg-header);
	border-bottom: 1px solid var(--jm-border-soft);
}

.site-header-inner {
	max-width: var(--jm-max-width);
	margin: 0 auto;
	padding: 18px clamp(20px, 4vw, 44px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.site-header .main-navigation {
	width: auto;
}

.main-navigation ul#primary-menu,
.main-navigation ul.menu {
	align-items: center;
	gap: clamp(18px, 3vw, 40px);
}

.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a {
	color: var(--jm-ink);
	border-bottom: 2px solid var(--jm-accent);
}

.main-navigation ul#primary-menu li,
.main-navigation ul.menu li {
	position: relative;
}

.main-navigation ul#primary-menu li:not(:last-child)::after,
.main-navigation ul.menu li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: calc(clamp(18px, 3vw, 40px) / -2);
	transform: translate(50%, -50%);
	width: 1px;
	height: 18px;
	background: var(--jm-border-strong);
}

.main-navigation a,
.main-navigation a:visited {
	font-family: var(--font-condensed);
	font-size: 16px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--jm-ink-soft);
}

.main-navigation a:hover,
.main-navigation a:focus {
	color: var(--jm-accent);
}

.menu-toggle {
	flex: none;
	background: transparent;
	border: 1px solid var(--jm-border-strong);
	width: 44px;
	height: 40px;
	padding: 0;
	position: relative;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
	border-color: var(--jm-accent);
}

/* Classic 3-bar icon: the middle bar is the element itself, the top and
   bottom bars are its ::before/::after. Their left/right insets are 0
   (not the button's 11px) because this element's own box — not the
   button — is their containing block once it is position: absolute. */
.menu-toggle-bars {
	position: absolute;
	left: 11px;
	right: 11px;
	top: 19px;
	height: 2px;
	background: var(--jm-ink-soft);
	transition: background-color 0.2s ease;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--jm-ink-soft);
	transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle-bars::before {
	top: -7px;
}

.menu-toggle-bars::after {
	top: 7px;
}

/* Morph the bars into a close "X" while the menu is open. */
.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
	top: 0;
	transform: rotate(-45deg);
}

/* Mobile dropdown panel: a full-width sheet under the header, not an
   inline list squeezed next to the toggle button. Only the <ul> is taken
   out of flow here — the nav (and the toggle button inside it) stays put
   in the header's flex row, so the button doesn't jump to the left when
   the menu opens. The <ul>'s containing block ends up being .site-header
   (the nearest positioned ancestor), which is what makes left/right: 0
   span the full header width instead of just the nav's own auto width. */
.main-navigation.toggled ul#primary-menu,
.main-navigation.toggled ul.menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	margin: 0;
	background: var(--jm-bg-header);
	border-bottom: 1px solid var(--jm-border-soft);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.main-navigation.toggled ul#primary-menu li,
.main-navigation.toggled ul.menu li {
	width: 100%;
	border-bottom: 1px solid var(--jm-border-soft);
}

.main-navigation.toggled ul#primary-menu li:last-child,
.main-navigation.toggled ul.menu li:last-child {
	border-bottom: none;
}

.main-navigation.toggled ul#primary-menu li:not(:last-child)::after,
.main-navigation.toggled ul.menu li:not(:last-child)::after {
	display: none;
}

.main-navigation.toggled ul#primary-menu a,
.main-navigation.toggled ul.menu a {
	padding: 16px clamp(20px, 4vw, 44px);
}

.main-navigation.toggled .current-menu-item>a,
.main-navigation.toggled .current_page_item>a {
	border-bottom: none;
	padding-bottom: 16px;
	border-left: 2px solid var(--jm-accent);
	padding-left: calc(clamp(20px, 4vw, 44px) - 2px);
}

@media screen and (min-width: 37.5em) {

	.main-navigation ul#primary-menu,
	.main-navigation ul.menu {
		display: flex;
	}
}

/* Footer
--------------------------------------------- */
.site-footer {
	background: var(--jm-bg-header);
	border-top: 1px solid var(--jm-border-soft);
}

.site-footer-inner {
	max-width: var(--jm-max-width);
	justify-content: space-around;
	margin: 0 auto;
	padding: clamp(36px, 4vw, 56px) clamp(20px, 4vw, 44px);
	display: flex;
	flex-wrap: wrap;
	gap: 36px;
}

/*.footer-col {*/
/*	flex: 1 1 210px;*/
/*}*/

.footer-col:not(.footer-col-brand) {
	border-left: 1px solid var(--jm-border);
	padding-left: 28px;
}

.footer-copyright {
	flex-basis: 100%;
	font-size: 13px;
	color: var(--jm-muted-4);
	margin: 0;
	padding-top: 4px;
}

.footer-col-heading {
	font-family: var(--font-condensed);
	font-size: 14px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--jm-muted-5);
}

.footer-menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 18px;
	list-style: none;
	padding: 0;
	margin-left: 0;
}

.footer-menu a {
	font-family: var(--font-condensed);
	font-size: 16px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.footer-contact {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: 14.5px;
}

.footer-contact p {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.footer-contact .jm-icon {
	width: 18px;
	height: 18px;
	color: var(--jm-muted-2);
	flex: none;
}

.footer-contact span {
	color: #cfdbe2;
}

.footer-social {
	display: flex;
	gap: 14px;
	margin-top: 18px;
}

.footer-social-link,
.footer-social-link:visited {
	width: 40px;
	height: 40px;
	color: var(--jm-ink-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.footer-social-link .jm-icon {
	width: 26px;
	height: 26px;
}

.footer-social-link:hover,
.footer-social-link:focus {
	color: var(--jm-accent);
}

@media screen and (max-width: 64.75em) {
	.footer-col:not(.footer-col-brand) {
		border-left: none;
		padding-left: 0;
	}
}

@media screen and (max-width: 37.4375em) {
	body,
	#page.site {
		background: #02090d;
	}

	.site-footer {
		background: linear-gradient(180deg, #06131a 0%, var(--jm-bg-header) 42%, #02090d 100%);
	}

	.site-footer-inner {
		padding: 34px 24px 40px;
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.footer-col {
		flex: none;
	}

	.footer-col-brand .site-logo-link {
		gap: 14px;
	}

	.footer-col-brand .jm-logo-mark {
		width: 48px;
		height: auto;
	}

	.footer-col-brand .site-logo-name {
		height: 20px;
	}

	.footer-col-brand .site-logo-tagline {
		font-size: 12px;
		letter-spacing: 0.3em;
	}

	.footer-copyright {
		border-top: 1px solid var(--jm-border-soft);
		margin-top: 26px;
		padding-top: 22px;
		font-size: 12.5px;
		line-height: 1.5;
	}

	.footer-col:not(.footer-col-brand) {
		border-left: none;
		border-top: 1px solid var(--jm-border-soft);
		padding: 24px 0 0;
		margin-top: 24px;
	}

	.footer-col-heading {
		font-size: 13px;
		letter-spacing: 0.22em;
		color: var(--jm-muted-2);
	}

	.footer-menu {
		display: flex;
		flex-direction: column;
		gap: 12px;
		margin-top: 16px;
	}

	.footer-menu a {
		display: inline-flex;
		align-items: center;
		font-size: 14px;
		letter-spacing: 0.12em;
	}

	.footer-contact {
		gap: 10px;
		margin-top: 16px;
		font-size: 14px;
	}

	.footer-contact p {
		min-height: 44px;
		padding: 10px 0;
		gap: 12px;
	}

	.footer-contact .jm-icon {
		width: 20px;
		height: 20px;
	}

	.footer-social {
		gap: 12px;
		margin-top: 16px;
	}

	.footer-social-link,
	.footer-social-link:visited {
		width: 46px;
		height: 46px;
	}

	.footer-social-link .jm-icon {
		width: 24px;
		height: 24px;
	}
}

/* Project cards (shared by the front page and the About page)
--------------------------------------------- */
.jm-projects-grid {
	margin-top: 28px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
}

.jm-project-card {
	border: 1px solid var(--jm-border);
	background: rgba(255, 255, 255, 0.025);
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease;
}

.jm-project-card:hover,
.jm-project-card:focus-within {
	border-color: rgba(127, 212, 99, 0.45);
}

.jm-project-media {
	height: 200px;
	position: relative;
}

.jm-project-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jm-project-media-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 12px, rgba(255, 255, 255, 0.015) 12px 24px);
}

.jm-project-media-placeholder .jm-icon {
	width: 40px;
	height: 40px;
	color: var(--jm-muted-4);
}

.jm-project-body {
	padding: 20px 20px 24px;
}

.jm-project-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.jm-project-heading h3 {
	font-family: var(--font-condensed);
	font-weight: 600;
	font-size: 20px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0;
}

.jm-project-heading .jm-arrow {
	color: #cfdbe2;
	font-size: 25px;
}

.jm-project-body p {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--jm-muted-2);
	margin: 12px 0 0;
}

.jm-project-card-cta {
	border: 1px solid var(--jm-border);
	background: rgba(255, 255, 255, 0.015);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 26px;
	min-height: 240px;
	text-align: center;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.jm-project-card-cta:hover,
.jm-project-card-cta:focus {
	border-color: rgba(127, 212, 99, 0.45);
	background: rgba(127, 212, 99, 0.05);
}

.jm-project-card-cta-label {
	font-family: var(--font-condensed);
	font-weight: 600;
	font-size: 21px;
	letter-spacing: 0.1em;
	line-height: 1.35;
	color: var(--jm-ink);
}

.jm-arrow-lg {
	font-size: 24px;
}

/* Compact card variant used on the About page (4-up grid, shorter photo,
   divider between the photo and the text instead of a gap). */
.jm-projects-grid--compact {
	grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
	gap: 20px;
}

.jm-projects-grid--compact .jm-project-media {
	height: 170px;
}

.jm-projects-grid--compact .jm-project-body {
	padding: 18px 18px 22px;
	border-top: 1px solid var(--jm-border);
}

.jm-projects-grid--compact .jm-project-heading h3 {
	font-size: 18px;
}

.jm-projects-grid--compact .jm-project-body p {
	font-size: 14px;
}

/* Smaller card variant used for the "What we can help you with" grid on the
   Let's Talk page (5-up, shorter photo, tighter type). */
.jm-projects-grid--services {
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
}

.jm-projects-grid--services .jm-project-media {
	height: 132px;
}

.jm-projects-grid--services .jm-project-media-placeholder .jm-icon {
	width: 32px;
	height: 32px;
}

.jm-projects-grid--services .jm-project-body {
	padding: 15px 15px 19px;
	border-top: 1px solid var(--jm-border);
}

.jm-projects-grid--services .jm-project-heading h3 {
	font-size: 15.5px;
}

.jm-projects-grid--services .jm-project-body p {
	font-size: 13.5px;
	margin-top: 9px;
}

/* Gradient headline (Projects page, single project) */
.jm-gradient-title {
	font-family: var(--font-condensed);
	font-weight: 700;
	display: inline-block;
	line-height: 1.04;
	margin: 0;
	padding-bottom: 0.05em;
	background: linear-gradient(180deg, #ffffff 10%, #c6d4dd 55%, #7d909c 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Skip link
--------------------------------------------- */
.skip-link.screen-reader-text {
	background: var(--jm-ink);
	color: var(--jm-bg-header);
}
