/* ==========================================================================
   BHEDRA IT SOLUTIONS - design system
   Loaded after bootstrap-bhedra.min.css. Bootstrap supplies grid, reboot,
   forms, dropdown/offcanvas mechanics and utilities; everything visual
   lives here.

   1. Fonts            7. Tags, panels, code panel
   2. Tokens           8. Forms
   3. Base             9. Header, desktop nav, mega-menu
   4. Type            10. Mobile nav
   5. Layout          11. Breadcrumbs, CTA band, footer
   6. Buttons, links  12. Pages (error), motion, styleguide
   ========================================================================== */

/* 1. Fonts - self-hosted variable fonts (no third-party requests) -------- */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/jakarta-var-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-var-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-var-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens -------------------------------------------------------------- */
:root {
	/* Brand */
	--navy-950: #060E1C;
	--navy-900: #0B1A33;
	--navy-800: #13284A;
	--navy-700: #1E3A63;
	--blue-700: #1E40AF;
	--blue-600: #1D4ED8;
	--blue-500: #3B6CF6;
	--blue-300: #93C5FD;
	--teal-400: #2DD4BF;
	--teal-500: #14B8A6;
	--teal-700: #0F766E;

	/* Neutrals */
	--ink: #0F172A;
	--ink-2: #334155;
	--muted: #526079;
	--line: #E3E8F0;
	--line-strong: #CBD5E1;
	--surface: #F6F8FB;
	--surface-2: #EEF2F8;
	--white: #FFFFFF;

	/* On dark */
	--on-dark: #E6ECF5;
	--on-dark-muted: #A9B6CC;
	--on-dark-line: rgba(255, 255, 255, .10);

	/* Type */
	--font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--fs-display: clamp(2.25rem, 1.5rem + 2.8vw, 3.5rem);
	--fs-h1: clamp(2rem, 1.45rem + 2.1vw, 3rem);
	--fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	--fs-h3: 1.25rem;
	--fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
	--fs-body: 1.0625rem;
	--fs-small: .875rem;

	/* Space (4px base) */
	--sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem;
	--sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;
	--section-y: clamp(4rem, 8vw, 7.5rem);
	--measure: 46rem;
	--header-h: 72px;

	/* Shape + depth (navy-tinted, never plain grey) */
	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 16px;
	--shadow-1: 0 1px 2px rgba(11, 26, 51, .06), 0 1px 1px rgba(11, 26, 51, .04);
	--shadow-2: 0 6px 16px -4px rgba(11, 26, 51, .10), 0 2px 4px rgba(11, 26, 51, .04);
	--shadow-3: 0 24px 48px -16px rgba(11, 26, 51, .28), 0 6px 12px rgba(11, 26, 51, .06);

	/* Motion */
	--ease: cubic-bezier(.2, .7, .2, 1);
	--t-fast: 150ms;
	--t-med: 250ms;

	/* Focus ring (overridden on dark surfaces) */
	--focus-ring: var(--blue-600);
}

/* 3. Base ---------------------------------------------------------------- */
html { scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "cv11", "ss01"; /* Inter: single-storey a, open digits */
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: var(--ink);
	letter-spacing: -.02em;
	text-wrap: balance;
}
p { text-wrap: pretty; }

a { color: var(--blue-600); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-700); }

::selection { background: rgba(45, 212, 191, .28); }

:focus-visible {
	outline: 3px solid var(--focus-ring);
	outline-offset: 3px;
	border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

main:focus { outline: none; }

.skip-link {
	position: absolute;
	left: var(--sp-4);
	top: -100px;
	z-index: 2000;
	padding: var(--sp-3) var(--sp-4);
	background: var(--navy-900);
	color: var(--white);
	border-radius: var(--r-md);
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { top: var(--sp-3); color: var(--white); }

.icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -.2em;
}

img, svg { max-width: 100%; }
img { height: auto; }

/* Dark surfaces share these overrides */
.section--dark, .cta-band, .site-footer, .site-header--dark:not(.is-scrolled) {
	--focus-ring: var(--blue-300);
}

/* 4. Type ---------------------------------------------------------------- */
.display-title {
	font-size: var(--fs-display);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -.03em;
	margin-bottom: var(--sp-5);
}
.page-title {
	font-size: var(--fs-h1);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.025em;
	margin-bottom: var(--sp-4);
}
.section-title {
	font-size: var(--fs-h2);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: var(--sp-4);
}
.title-sm {
	font-size: var(--fs-h3);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -.01em;
	margin-bottom: var(--sp-2);
}
.lead-text {
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: var(--muted);
	margin-bottom: var(--sp-6);
}
.text-muted-bh { color: var(--muted); }
.small-text { font-size: var(--fs-small); }
.measure { max-width: var(--measure); }

/* Kicker: sentence case, used only where it tells the reader which
   area of the business a section belongs to. */
.kicker {
	display: inline-block;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--teal-700);
	margin-bottom: var(--sp-3);
}

/* 5. Layout -------------------------------------------------------------- */
.container { --bs-gutter-x: 2.5rem; }
@media (min-width: 768px) { .container { --bs-gutter-x: 3rem; } }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--surface { background: var(--surface); }
.section--dark {
	background: var(--navy-900);
	color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark .lead-text, .section--dark .text-muted-bh { color: var(--on-dark-muted); }
.section--dark .kicker { color: var(--teal-400); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .lead-text { margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* 6. Buttons & links ----------------------------------------------------- */
.btn-bh {
	--btn-bg: transparent;
	--btn-fg: var(--ink);
	--btn-border: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 48px;
	padding: 0 1.375rem;
	font-family: var(--font-body);
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--btn-fg);
	background: var(--btn-bg);
	border: 1px solid var(--btn-border);
	border-radius: var(--r-md);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
		color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-bh:hover { color: var(--btn-fg); }
.btn-bh:active { transform: translateY(1px); }
.btn-bh[disabled], .btn-bh.is-disabled { opacity: .55; pointer-events: none; }

.btn-bh--primary { --btn-bg: var(--blue-600); --btn-fg: var(--white); --btn-border: var(--blue-600); }
.btn-bh--primary:hover {
	--btn-bg: var(--blue-700);
	--btn-border: var(--blue-700);
	box-shadow: 0 6px 18px -6px rgba(29, 78, 216, .55);
}

.btn-bh--secondary { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.btn-bh--secondary:hover { --btn-border: var(--ink-2); box-shadow: var(--shadow-1); }

/* For dark surfaces */
.btn-bh--ghost { --btn-fg: var(--white); --btn-border: rgba(255, 255, 255, .28); }
.btn-bh--ghost:hover { --btn-bg: rgba(255, 255, 255, .06); --btn-border: rgba(255, 255, 255, .6); }

.btn-bh--text { --btn-fg: var(--blue-600); padding-inline: var(--sp-2); }
.btn-bh--text:hover { --btn-fg: var(--blue-700); text-decoration: underline; }

.btn-bh--lg { min-height: 54px; padding-inline: 1.75rem; font-size: 1rem; }
.btn-bh--sm { min-height: 40px; padding-inline: 1rem; font-size: .875rem; }

/* Quiet link: underline grows in from the left on hover */
.link-quiet {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size var(--t-med) var(--ease), color var(--t-fast) var(--ease);
	padding-bottom: 2px;
}
.link-quiet:hover { color: var(--blue-600); background-size: 100% 1px; }
.section--dark .link-quiet { color: var(--white); }
.section--dark .link-quiet:hover { color: var(--blue-300); }

/* 7. Tags, panels, code panel ------------------------------------------- */
.tag-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; margin: 0; list-style: none; }
.tag {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 .625rem;
	font-size: .8125rem;
	font-weight: 500;
	color: var(--ink-2);
	background: var(--surface-2);
	border-radius: var(--r-sm);
}
.section--dark .tag {
	color: #CBD5E1;
	background: rgba(255, 255, 255, .05);
	box-shadow: inset 0 0 0 1px var(--on-dark-line);
}

.panel {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(1.5rem, 3vw, 2rem);
}
.panel--raised { border-color: transparent; box-shadow: var(--shadow-2); }
.panel--surface { background: var(--surface); border-color: transparent; }
.section--dark .panel {
	background: var(--navy-800);
	border-color: var(--on-dark-line);
}

/* Code panel - the one place monospace appears: real code/terminal content */
.code-panel {
	background: #081325;
	color: #CBD5E1;
	border: 1px solid var(--on-dark-line);
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shadow-3);
}
.code-panel__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	padding: .75rem 1.125rem;
	border-bottom: 1px solid var(--on-dark-line);
	font-size: .8125rem;
	color: var(--on-dark-muted);
}
.code-panel__file { font-family: var(--font-mono); }
.code-panel pre {
	margin: 0;
	padding: 1.25rem 1.125rem;
	font-family: var(--font-mono);
	font-size: .875rem;
	line-height: 1.75;
	color: inherit;
	overflow-x: auto;
}
.tok-com { color: #64748B; }
.tok-key { color: var(--teal-400); }
.tok-str { color: var(--blue-300); }
.tok-ok  { color: #86EFAC; }

/* 8. Forms --------------------------------------------------------------- */
.form-label { font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: .375rem; }
.form-label .optional { font-weight: 400; color: var(--muted); }
.form-control, .form-select {
	min-height: 48px;
	font-size: 1rem;
	color: var(--ink);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-md);
	padding: .625rem .875rem;
	transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
textarea.form-control { min-height: 140px; }
.form-control::placeholder { color: #8391A7; }
.form-control:focus, .form-select:focus {
	border-color: var(--blue-600);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, .18);
}
.form-control.is-invalid, .form-select.is-invalid { border-color: #B42318; }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.invalid-feedback { color: #B42318; font-size: .8125rem; }
.form-hint { font-size: .8125rem; color: var(--muted); margin-top: .375rem; }

/* 9. Header, desktop nav, mega-menu ------------------------------------- */
.site-header {
	--hdr-bg: rgba(255, 255, 255, .96);
	--hdr-fg: var(--ink);
	--hdr-muted: var(--ink-2);
	--hdr-hover: var(--surface-2);
	--brand-fg: var(--navy-900);
	--brand-sub: var(--muted);
	--brand-node: var(--teal-500);
	position: sticky;
	top: 0;
	z-index: 1030;
	background: var(--hdr-bg);
	border-bottom: 1px solid var(--line);
	transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
	.site-header { backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header--dark {
	--hdr-bg: var(--navy-900);
	--hdr-fg: var(--white);
	--hdr-muted: rgba(255, 255, 255, .8);
	--hdr-hover: rgba(255, 255, 255, .07);
	--brand-fg: var(--white);
	--brand-sub: var(--on-dark-muted);
	--brand-node: var(--teal-400);
	border-bottom-color: transparent;
}
.site-header.is-scrolled {
	--hdr-bg: rgba(255, 255, 255, .96);
	--hdr-fg: var(--ink);
	--hdr-muted: var(--ink-2);
	--hdr-hover: var(--surface-2);
	--brand-fg: var(--navy-900);
	--brand-sub: var(--muted);
	--brand-node: var(--teal-500);
	border-bottom-color: var(--line);
	box-shadow: 0 8px 24px -18px rgba(11, 26, 51, .45);
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	min-height: var(--header-h);
}

/* Brand */
.brand {
	display: inline-flex;
	align-items: center;
	gap: .625rem;
	color: var(--brand-fg, var(--navy-900));
	text-decoration: none;
	flex-shrink: 0;
}
.brand:hover { color: var(--brand-fg, var(--navy-900)); }
.brand-mark { width: 34px; height: 34px; }
.brand-node { fill: var(--brand-node, var(--teal-500)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: .02em;
}
.brand-sub {
	margin-top: .3rem;
	font-size: .625rem;
	font-weight: 600;
	letter-spacing: .24em;
	color: var(--brand-sub, var(--muted));
}
.brand--on-dark { --brand-fg: var(--white); --brand-sub: var(--on-dark-muted); --brand-node: var(--teal-400); }

/* Desktop nav */
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.site-nav__item.dropdown { position: static; } /* mega-menu anchors to the header row */
.site-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	min-height: 44px;
	padding: 0 .875rem;
	font-size: .9375rem;
	font-weight: 500;
	color: var(--hdr-muted);
	background: none;
	border: 0;
	border-radius: 8px;
	text-decoration: none;
	transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.site-nav__link:hover, .site-nav__link[aria-expanded="true"] { color: var(--hdr-fg); background: var(--hdr-hover); }
.site-nav__link.is-active { color: var(--hdr-fg); }
.site-nav__link.is-active::after {
	content: "";
	position: absolute;
	left: .875rem;
	right: .875rem;
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--brand-node);
}
.site-nav__chevron { width: 1rem; height: 1rem; transition: transform var(--t-med) var(--ease); }
.site-nav__link[aria-expanded="true"] .site-nav__chevron { transform: rotate(180deg); }
.site-header__cta { margin-left: var(--sp-3); }

/* Mega-menu (Bootstrap dropdown, positioned by CSS: data-bs-display="static") */
.mega {
	--bs-dropdown-border-width: 0;
	--bs-dropdown-padding-y: 0;
	top: calc(100% - 6px) !important;
	left: 50% !important;
	transform: translateX(-50%);
	width: min(920px, calc(100vw - 3rem));
	padding: 0;
	margin: 0;
	background: var(--white);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-3), 0 0 0 1px rgba(11, 26, 51, .06);
	overflow: hidden;
}
.mega[data-bs-popper] { margin-top: 0; }
.mega.show { animation: mega-in var(--t-med) var(--ease); }
@keyframes mega-in {
	from { opacity: 0; transform: translate(-50%, -6px); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}
.mega__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-5);
	padding: var(--sp-5);
}
.mega__group {
	margin: 0 0 var(--sp-2) .625rem;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--muted);
}
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__link {
	display: flex;
	gap: .75rem;
	padding: .625rem;
	border-radius: var(--r-md);
	color: var(--ink);
	text-decoration: none;
	transition: background-color var(--t-fast) var(--ease);
}
.mega__link:hover, .mega__link[aria-current="page"] { background: var(--surface); color: var(--ink); }
.mega__icon { width: 1.25rem; height: 1.25rem; margin-top: .125rem; color: var(--blue-600); }
.mega__title { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.mega__summary { display: block; font-size: .8125rem; line-height: 1.45; color: var(--muted); margin-top: .125rem; }
.mega__footer {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--sp-3);
	padding: var(--sp-4) calc(var(--sp-5) + .625rem);
	background: var(--surface);
	border-top: 1px solid var(--line);
	font-size: .9375rem;
}

.nav-toggle {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	color: var(--hdr-fg, var(--ink));
	background: none;
	border: 0;
	border-radius: var(--r-md);
}
.nav-toggle:hover { background: var(--hdr-hover, var(--surface-2)); }
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }

/* 10. Mobile nav (offcanvas) -------------------------------------------- */
.mobile-nav {
	--bs-offcanvas-width: min(420px, 100vw);
	--hdr-fg: var(--ink);
	--hdr-hover: var(--surface-2);
	display: flex;
	flex-direction: column;
	background: var(--white);
}
.mobile-nav__head {
	display: flex;
	align-items: center;
	min-height: var(--header-h);
	padding: 0 1.25rem;
	border-bottom: 1px solid var(--line);
}
.mobile-nav__body { flex: 1; overflow-y: auto; padding: var(--sp-3) 1.25rem; }
.mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.mobile-nav__list > li { border-bottom: 1px solid var(--line); }
.mobile-nav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 56px;
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--ink);
	background: none;
	border: 0;
	padding: 0;
	text-align: left;
	text-decoration: none;
}
.mobile-nav__link.is-active { color: var(--blue-600); }
.mobile-nav__toggle .icon { transition: transform var(--t-med) var(--ease); }
.mobile-nav__toggle:not(.collapsed) .icon { transform: rotate(180deg); }
.mobile-nav__group { margin: var(--sp-3) 0 var(--sp-1); font-size: .8125rem; font-weight: 600; color: var(--muted); }
.mobile-nav__sub { list-style: none; margin: 0; padding: 0; }
.mobile-nav__sub a, .mobile-nav__all {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--ink-2);
	text-decoration: none;
}
.mobile-nav__sub a[aria-current="page"] { color: var(--blue-600); font-weight: 600; }
.mobile-nav__all { font-weight: 600; color: var(--blue-600); margin-bottom: var(--sp-3); }
.mobile-nav__foot {
	display: grid;
	gap: var(--sp-3);
	padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--line);
	text-align: center;
}
.mobile-nav__email { font-size: .9375rem; color: var(--muted); text-decoration: none; }

/* 11. Breadcrumbs, CTA band, footer ------------------------------------ */
.crumbs { padding-top: var(--sp-5); }
.crumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .875rem;
	color: var(--muted);
}
.crumbs__list li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.crumbs__list a { color: var(--muted); text-decoration: none; }
.crumbs__list a:hover { color: var(--blue-600); text-decoration: underline; }
.crumbs__list [aria-current] { color: var(--ink); font-weight: 500; }

.cta-band {
	background: var(--navy-900);
	color: var(--on-dark);
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
	border-top: 1px solid var(--on-dark-line);
}
.cta-band__inner {
	display: grid;
	gap: var(--sp-6);
	align-items: center;
}
@media (min-width: 992px) {
	.cta-band__inner { grid-template-columns: 1.4fr 1fr; gap: var(--sp-8); }
	.cta-band__actions { justify-self: end; text-align: right; }
}
.cta-band__title { color: var(--white); font-size: var(--fs-h2); font-weight: 800; line-height: 1.12; margin-bottom: var(--sp-3); }
.cta-band__text { color: var(--on-dark-muted); font-size: var(--fs-lead); margin: 0; }
.cta-band__actions { display: grid; gap: var(--sp-3); justify-items: start; }
@media (min-width: 992px) { .cta-band__actions { justify-items: end; } }
.cta-band__mail { color: var(--on-dark-muted); font-size: .9375rem; text-decoration: none; }
.cta-band__mail:hover { color: var(--white); text-decoration: underline; }

.site-footer {
	background: var(--navy-950);
	color: var(--on-dark-muted);
	font-size: .9375rem;
	padding-top: clamp(3.5rem, 6vw, 5rem);
}
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__top {
	display: grid;
	gap: var(--sp-7);
	padding-bottom: var(--sp-7);
}
@media (min-width: 768px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .site-footer__top { grid-template-columns: 1.3fr 1.4fr .8fr; gap: var(--sp-8); } }
.site-footer__brand .brand { margin-bottom: var(--sp-5); }
.site-footer__tagline { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.4; margin-bottom: var(--sp-2); }
.site-footer__blurb { max-width: 30rem; margin-bottom: var(--sp-5); }
.site-footer__email { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--white) !important; font-weight: 500; }
.site-footer__heading { font-family: var(--font-body); font-size: .9375rem; font-weight: 600; color: var(--white); letter-spacing: 0; margin-bottom: var(--sp-4); }
.site-footer__heading a { color: var(--white); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
@media (min-width: 576px) { .site-footer__list--cols { grid-template-columns: 1fr 1fr; column-gap: var(--sp-6); } }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--sp-3) var(--sp-6);
	padding: var(--sp-5) 0 calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--on-dark-line);
	font-size: .875rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }

/* 12. Pages, motion, styleguide ---------------------------------------- */
.hero-temp { padding-block: clamp(5rem, 10vw, 8rem); }

.error-page { padding-block: clamp(4rem, 10vw, 8rem); }
.error-page__code {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(5rem, 14vw, 9rem);
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--surface-2);
	margin-bottom: var(--sp-4);
}
@supports (-webkit-text-stroke: 2px black) {
	.error-page__code { color: transparent; -webkit-text-stroke: 2px var(--line-strong); }
}

/* Reveal: used deliberately on a few elements, not every section.
   main.js only hides elements that start below the fold, so content is
   never hidden without JS and nothing already on screen flickers. */
[data-reveal] { transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
[data-reveal].reveal-pending { opacity: 0; transform: translateY(12px); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	[data-reveal].reveal-pending { opacity: 1; transform: none; }
}

/* Styleguide-only helpers */
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-4); }
.sg-swatch { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: .8125rem; }
.sg-swatch__chip { height: 72px; }
.sg-swatch__meta { padding: .625rem .75rem; }
.sg-swatch__meta strong { display: block; font-size: .875rem; }
.sg-row { padding-block: var(--sp-6); border-top: 1px solid var(--line); }
.sg-label { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: var(--sp-4); }
.sg-chip-navy950 { background: var(--navy-950); } .sg-chip-navy900 { background: var(--navy-900); }
.sg-chip-navy800 { background: var(--navy-800); } .sg-chip-blue600 { background: var(--blue-600); }
.sg-chip-blue500 { background: var(--blue-500); } .sg-chip-teal400 { background: var(--teal-400); }
.sg-chip-teal700 { background: var(--teal-700); } .sg-chip-ink { background: var(--ink); }
.sg-chip-muted { background: var(--muted); } .sg-chip-line { background: var(--line); }
.sg-chip-surface { background: var(--surface); } .sg-chip-white { background: var(--white); }
.sg-form { max-width: 640px; }

/* Check list (shared) */
.check-list { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: grid; gap: .625rem; }
.check-list li { display: flex; gap: .625rem; align-items: flex-start; line-height: 1.5; }
.check-list .icon { color: var(--teal-700); margin-top: .15rem; width: 1.1em; height: 1.1em; stroke-width: 2.25; }
.section--dark .check-list .icon { color: var(--teal-400); }
@media (min-width: 576px) { .check-list--cols { grid-template-columns: 1fr 1fr; column-gap: var(--sp-6); } }

/* Honeypot field: hidden from people, visible to naive bots */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
