/* Header, mega panels, mobile menu, footer. Figma page 91:4 global components. */

/* ================================================================ Header */
.site-header { position: sticky; top: 0; z-index: var(--z-nav); }
.nav { display: none; }
.mega { display: none; }

/* Overlay variant (home, spec 4.3): transparent with white links over the dark hero; light
   (Mist 62%, blur 8px) once the hero has scrolled away (motion.js adds .is-lit) or while a
   mega panel is open. */
.site-header.site-header--overlay { background: transparent; box-shadow: none; transition: background-color 400ms var(--ease-out-quart), box-shadow 400ms var(--ease-out-quart); }
.nav__logo-d { display: none; }
@media (min-width: 1280px) {
	.site-header.site-header--overlay { background: transparent; box-shadow: none; }
	.site-header--overlay:not(.is-lit):not(:has(.mega.is-open)) .nav-link { color: var(--c-white); }
	.site-header--overlay:not(.is-lit):not(:has(.mega.is-open)) .nav-link:hover { background: rgba(255, 255, 255, .1); }
	.site-header--overlay:not(.is-lit):not(:has(.mega.is-open)) .nav-link__chev { opacity: .6; }
	.site-header--overlay:not(.is-lit):not(:has(.mega.is-open)) .nav .btn--outline { --btn-fg: var(--c-white); --btn-sh: inset 0 0 0 1px rgba(255, 255, 255, .3); }
	.site-header--overlay:not(.is-lit):not(:has(.mega.is-open)) .nav .btn--outline:hover { --btn-bg: rgba(255, 255, 255, .12); }
	.site-header--overlay:not(.is-lit):not(:has(.mega.is-open)) .nav .btn--primary { --btn-bg: var(--c-white); --btn-fg: var(--c-ink); --btn-sh: none; }
	.site-header--overlay:not(.is-lit):not(:has(.mega.is-open)) .nav .btn--primary:hover { --btn-bg: var(--c-lav-soft); }
	.site-header--overlay:not(.is-lit):not(:has(.mega.is-open)) .nav :focus-visible { outline-color: var(--c-white); }
	.site-header--overlay.is-lit .nav__logo-w, .site-header--overlay:has(.mega.is-open) .nav__logo-w { display: none; }
	.site-header--overlay.is-lit .nav__logo-d, .site-header--overlay:has(.mega.is-open) .nav__logo-d { display: block; }
	.site-header.site-header--overlay.is-lit, .site-header.site-header--overlay:has(.mega.is-open) {
		background: rgba(246, 248, 252, .62); box-shadow: inset 0 -1px 0 var(--ink-07);
		-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	}
	.site-header.site-header--overlay:has(.mega.is-open) { background: var(--c-mist); }
}

@media (min-width: 1280px) {
	.site-header { background: var(--c-mist); box-shadow: inset 0 -1px 0 var(--ink-07); }
	.site-header--dark { background: var(--c-night); box-shadow: none; }
	.nav {
		display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
		height: var(--nav-h); padding: 0 40px;
	}
	.nav__logo { justify-self: start; display: block; border-radius: 6px; }
	.nav__logo img { width: 110px; height: 32px; }
	.nav__list { display: flex; gap: 2px; }
	.nav__actions { justify-self: end; display: flex; gap: 10px; }
	.nav-link {
		position: relative; display: inline-flex; align-items: center; gap: 7px;
		padding: 10px 14px; border-radius: 10px;
		font: var(--fw-regular) 14px/20px var(--f-body); color: var(--c-ink);
		transition: background-color var(--dur-hover) var(--ease-out-quart), color var(--dur-fast);
	}
	.nav-link__chev { width: 8px; height: 4px; stroke-width: 1.5; transition: transform var(--dur-mega-in) var(--ease-out-quint); }
	.nav-link::after {
		content: ""; position: absolute; left: 14px; right: 14px; bottom: -17px; height: 2px;
		background: currentColor; transform: scaleX(0); transition: transform var(--dur-fast) var(--ease-out-quart);
	}
	.nav-link:hover { background: var(--c-lav-soft); }
	.nav-link[aria-expanded="true"] { color: var(--c-blue); background: var(--c-lav-soft); }
	.nav-link[aria-expanded="true"] .nav-link__chev { transform: rotate(180deg); }
	.nav-link[aria-expanded="true"]::after, .nav-link[aria-current="page"]::after, .nav-link.is-section::after { transform: scaleX(1); }
	.site-header--dark .nav-link { color: var(--c-white); }
	.site-header--dark .nav-link:hover, .site-header--dark .nav-link[aria-expanded="true"] { background: rgba(255, 255, 255, .1); color: var(--c-white); }

	/* Mega panel: full width under the header ("Menu / ... open" frames). */
	.mega {
		display: block; position: absolute; left: 0; right: 0; top: 100%;
		z-index: var(--z-mega);
		background: var(--c-mist);
		box-shadow: inset 0 1px 0 var(--ink-07), 0 1px 0 var(--ink-08), 0 24px 40px -24px rgba(10, 13, 49, .18);
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity var(--dur-mega-out) var(--ease-in), transform var(--dur-mega-out) var(--ease-in), visibility 0s linear var(--dur-mega-out);
		max-height: calc(100vh - var(--nav-h)); overflow: auto; overscroll-behavior: contain;
	}
	.mega.is-open {
		visibility: visible; opacity: 1; transform: none;
		transition: opacity var(--dur-mega-in) var(--ease-out-quint), transform var(--dur-mega-in) var(--ease-out-quint), visibility 0s;
	}
	.mega.is-switching { transition: none; }
	.mega__content { display: flex; gap: 32px; padding: 36px 40px 44px; max-width: 1440px; margin: 0 auto; transition: opacity 120ms; }
	.mega.is-leaving .mega__content { opacity: 0; }
	.mega__cols { flex: 1; display: grid; gap: 28px; max-width: 1028px; }
	.mega__cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.mega__cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mega__col { display: flex; flex-direction: column; gap: 16px; }
	.mega__group {
		padding-bottom: 10px; border-bottom: 1px solid var(--ink-10);
		font: var(--fw-medium) 12px/16px var(--f-head); letter-spacing: .6px; text-transform: uppercase; color: var(--ink-50);
	}
	.mega__links { display: flex; flex-direction: column; gap: 16px; }
	.mega--compact .mega__links { gap: 12px; }
	.mlink {
		display: flex; flex-direction: column; gap: 2px; margin: -4px -8px; padding: 4px 8px; border-radius: 8px;
		transition: background-color var(--dur-fast);
	}
	.mlink__t { display: inline-flex; align-items: center; gap: 8px; font: var(--fw-medium) 14px/20px var(--f-body); color: var(--c-ink); transition: color var(--dur-fast); }
	.mlink__arr { width: 10px; height: 8px; opacity: 0; transform: translateX(-4px); transition: opacity var(--dur-fast), transform var(--dur-hover) var(--ease-out-quart); }
	.mlink__d { font-size: 12.5px; line-height: 18px; color: var(--ink-60); }
	.mlink:hover, .mlink:focus-visible { background: var(--c-lav-soft); }
	.mlink:hover .mlink__t, .mlink:focus-visible .mlink__t, .mlink[aria-current="page"] .mlink__t { color: var(--c-blue); }
	.mlink:hover .mlink__arr, .mlink:focus-visible .mlink__arr { opacity: 1; transform: none; }
	.mega__promo {
		flex: 0 0 300px; align-self: flex-start;
		display: flex; flex-direction: column; gap: 14px; padding: 28px;
		border-radius: 20px; background: var(--c-lav-soft); box-shadow: var(--sh-inset);
	}
	.mega__promo-t { font: var(--fw-medium) 20px/26px var(--f-head); letter-spacing: -.4px; color: var(--c-ink); } /* Panel is light even under the dark header. */
	.mega__promo-d { font-size: 13px; line-height: 20px; color: rgba(10, 13, 49, .7); }
	/* Link stagger inside the open panel */
	.mega .mega__col, .mega .mega__promo { opacity: 0; transform: translateY(6px); transition: opacity 240ms var(--ease-out-quart), transform 240ms var(--ease-out-quart); }
	.mega.is-open .mega__col, .mega.is-open .mega__promo { opacity: 1; transform: none; transition-delay: calc(60ms + var(--i, 0) * var(--stagger-chip)); }
	.mega.is-open .mega__promo { transition-delay: 120ms; }

	.mnav { display: none; }
}
@media (min-width: 1440px) { .mlink__t { white-space: nowrap; } }
.mega-backdrop {
	position: fixed; inset: 0; z-index: var(--z-backdrop);
	background: var(--c-ink); opacity: 0; pointer-events: none;
	transition: opacity var(--dur-fast);
}
.mega-backdrop.is-on { opacity: .24; }

/* ================================================================ Mobile menu (< 1280px) */
@media (max-width: 1279px) {
	.site-header { padding: 10px 10px 0; }
	.site-header--dark { background: var(--c-night); }
	.mnav { position: relative; }
	.mbar {
		position: relative; z-index: 2;
		display: flex; align-items: center; justify-content: space-between;
		height: 56px; padding: 0 14px; border-radius: 16px;
		background: rgba(18, 22, 74, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
		-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
		max-width: 720px; margin: 0 auto;
	}
	.mbar__logo { display: block; border-radius: 6px; }
	.mbar__logo img { width: 110px; height: 32px; }
	.mbar__logo-d { display: none; }
	.burger {
		position: relative; width: 44px; height: 44px; margin-right: -6px; border-radius: 10px; color: var(--c-white);
	}
	.burger__bar {
		position: absolute; left: 12px; width: 20px; height: 1.5px; border-radius: 1px; background: currentColor;
		transition: transform 350ms var(--ease-out-quint), top 350ms var(--ease-out-quint);
	}
	.burger__bar:first-child { top: 18px; }
	.burger__bar:last-child { top: 24px; }
	.burger:focus-visible { outline-color: var(--c-white); }

	.msheet { display: none; }

	/* Open: full-screen light sheet ("Mobile nav / Open"). */
	.mnav.is-open {
		position: fixed; inset: 0; z-index: var(--z-menu);
		display: flex; flex-direction: column; gap: 18px;
		padding: 10px 10px 20px; background: var(--c-mist);
	}
	.mnav.is-open .mbar { background: var(--c-mist); box-shadow: inset 0 0 0 1px var(--ink-10), var(--sh-soft); width: 100%; flex: none; }
	.mnav.is-open .mbar__logo-w { display: none; }
	.mnav.is-open .mbar__logo-d { display: block; }
	.mnav.is-open .burger { color: var(--c-ink); }
	.mnav.is-open .burger:focus-visible { outline-color: var(--c-blue); }
	.mnav.is-open .burger__bar { top: 21px; }
	.mnav.is-open .burger__bar:first-child { transform: rotate(45deg); }
	.mnav.is-open .burger__bar:last-child { transform: rotate(-45deg); }
	.mnav.is-open .msheet {
		display: flex; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain;
		max-width: 720px; width: 100%; margin: 0 auto;
	}
	.msheet__in { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; width: 100%; min-height: 100%; }
	.mitems { padding: 0 10px; }
	.mitem { padding: 13px 0; }
	.mitem + .mitem { border-top: 1px solid var(--ink-08); }
	.mitem__head {
		display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 38px;
		font: var(--fw-medium) 26px/34px var(--f-head); letter-spacing: -.6px; color: var(--c-ink); text-align: left;
	}
	.mitem__chev { width: 10px; height: 6px; stroke-width: 1.6; transition: transform 400ms var(--ease-out-quint); }
	.mitem__head[aria-expanded="true"] { color: var(--c-blue); }
	.mitem__head[aria-expanded="true"] .mitem__chev { transform: rotate(180deg); }
	.mitem__panel {
		display: grid; grid-template-rows: 0fr; visibility: hidden;
		transition: grid-template-rows var(--dur-panel-out) var(--ease-out-quart), visibility 0s linear var(--dur-panel-out);
	}
	.mitem__panel.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--dur-panel) var(--ease-out-quart), visibility 0s; }
	.mitem__body { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
	.mgroup:first-child { margin-top: 14px; }
	.mgroup { display: flex; flex-direction: column; gap: 9px; }
	.mgroup__t { font: var(--fw-medium) 12px/16px var(--f-head); letter-spacing: .7px; text-transform: uppercase; color: var(--ink-50); }
	.mgroup__links { display: flex; flex-direction: column; gap: 9px; }
	.mgroup__links a { font-size: 15px; line-height: 22px; color: rgba(10, 13, 49, .8); }
	.mgroup__links a:hover { color: var(--c-blue); }
	.tlink--m { font-size: 15px; line-height: 22px; align-self: flex-start; }
	.mactions { display: flex; flex-direction: column; gap: 10px; padding: 0 10px; }
	.mactions .btn { height: 44px; font-size: 14px; }
	/* Item entrance (spec 8.3): rows fade and rise 8px with the chip stagger. */
	html.motion-ok .mnav.is-open .mitem, html.motion-ok .mnav.is-open .mactions { animation: sth-rise8 var(--dur-panel) var(--ease-out-quart) both; animation-delay: calc(80ms + var(--i, 0) * var(--stagger-chip)); }
	html.motion-ok .mnav.is-open .mactions { --i: 5; }
	html.menu-open { overflow: hidden; }
}
@keyframes sth-rise8 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ================================================================ Footer */
.site-footer { background: var(--c-white); }
.foot {
	width: min(var(--content-wide), calc(100% - 2 * var(--gutter))); margin: 0 auto;
	display: flex; flex-direction: column; gap: 28px; padding: 48px 0 32px;
}
.foot__top { display: flex; flex-direction: column; gap: 28px; }
.foot__cta { display: flex; flex-direction: column; gap: 28px; }
.foot__title { font: var(--fw-medium) 32px/38px var(--f-head); letter-spacing: -.8px; }
.foot__btns .btn--outline { display: none; }
.foot__btns .btn { height: 44px; font-size: 14px; }
.foot__about { display: none; }
.foot__rule { display: none; }
.socials { display: flex; gap: 10px; }
.social {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
	box-shadow: inset 0 0 0 1px var(--ink-14); font: var(--fw-medium) 13px/16px var(--f-body);
	transition: box-shadow var(--dur-hover) var(--ease-out-quart), background-color var(--dur-fast);
}
.social:hover { box-shadow: inset 0 0 0 1px var(--ink-14), var(--sh-pressed); background: var(--c-mist); }
.foot__cols { display: flex; flex-direction: column; }
.fcol { padding: 16px 0; border-top: 1px solid var(--ink-10); }
.fcol__head { display: flex; align-items: center; justify-content: space-between; width: 100%; font: var(--fw-medium) 16px/24px var(--f-body); text-align: left; }
.fcol__chev { width: 10px; height: 6px; stroke-width: 1.6; transition: transform 400ms var(--ease-out-quint); }
.fcol.is-open .fcol__chev { transform: rotate(180deg); }
.fcol__links { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 4px; }
.fcol__links a { font-size: 15px; line-height: 22px; color: rgba(10, 13, 49, .65); }
.fcol__links a.is-all { color: var(--c-blue); }
html.js .fcol:not(.is-open) .fcol__links { display: none; }
.certs { display: flex; flex-wrap: wrap; gap: 8px; }
.cert {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 40px;
	background: var(--c-mist); box-shadow: var(--ring-card-1), var(--sh-soft);
	font: var(--fw-medium) 13px/18px var(--f-body);
}
.cert::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-blue); }
.foot__bottom { display: flex; flex-direction: column; gap: 10px; }
.foot__entity { display: flex; flex-direction: column; gap: 10px; }
.foot__logo { width: 110px; height: 32px; }
.foot__lines { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 20px; color: var(--ink-60); }
.foot__lines a { text-decoration: underline; text-underline-offset: 2px; } /* phone and email read as links without colour (WCAG 1.4.1) */
.foot__lines a:hover { color: var(--c-blue); }
.foot__addr { display: block; margin-bottom: 10px; }
.foot__sep--addr { display: none; }
.foot__sep { white-space: pre; }
.foot__legal-row { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot__legal { display: flex; flex-wrap: wrap; font-size: 13px; line-height: 20px; color: var(--ink-62); }
.foot__legal li:not(:last-child)::after { content: "\00a0\00a0·\00a0"; margin-right: .3em; color: var(--ink-62); }
.foot__socials-top { margin-top: 18px; }
.site-footer--after-cta .foot__top { display: none; }

@media (min-width: 768px) {
	.foot { gap: 44px; padding: 72px 0 36px; }
	.foot__top { flex-direction: row; justify-content: space-between; gap: 40px; }
	.foot__cta { gap: 24px; }
	.foot__title { font-size: 48px; line-height: 56px; letter-spacing: -1.4px; }
	.foot__btns .btn--outline { display: inline-flex; }
	.foot__about { display: block; width: 380px; flex: none; }
	.foot__about p { font-size: 15px; line-height: 24px; color: var(--ink-62); }
	.foot__rule { display: block; }
	.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
	.fcol { padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
	.fcol__head { font-size: 14px; line-height: 20px; cursor: default; pointer-events: none; }
	.fcol__chev { display: none; }
	html.js .fcol:not(.is-open) .fcol__links, .fcol__links { display: flex; padding: 0; gap: 9px; }
	/* Labels may wrap (WCAG 1.4.12): with user text spacing a nowrap label ran into the next column
	   and off the screen. From 768 to 1279 every label fits its column at default spacing; for 1316
	   and up see the rule below the 1024 block. */
	.fcol__links a { font-size: 14px; line-height: 20px; color: var(--ink-62); overflow-wrap: break-word; }
	.certs { gap: 10px; }
	.foot__bottom { gap: 16px; }
	.foot__entity { flex-direction: row; align-items: center; gap: 20px; }
	.foot__lines { gap: 2px; }
	.foot__addr { display: inline; margin: 0; }
	.foot__sep--addr { display: inline; }
	.foot__socials-m { display: none; }
	.foot__legal-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; }
	.foot__legal { gap: 18px; }
	.foot__legal li:not(:last-child)::after { content: none; }
}
@media (min-width: 1024px) {
	.foot__cols { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* From 1316 the four longest labels are up to 15px wider than their column and, drawn on one line,
   run into the 24px column gap. Each row reaches across that gap (negative right margin), so at
   default spacing those labels still fit on one line exactly as before, and with user text spacing
   longer labels wrap before they reach the next column (WCAG 1.4.12). */
@media (min-width: 1316px) {
	.fcol__links li { margin-right: -24px; }
}
/* WP Rocket's Automatic Lazy Rendering marks the footer with data-wpr-lazyrender (content-visibility: auto),
   which leaves it a 60px placeholder until it scrolls near the screen. Shift+Tab from the top of a page puts
   focus on the last footer link, and the browser then scrolled to where that link was in the placeholder, so
   the focused link ended up below the screen edge (WCAG 2.4.11). On 87 pages it also marks sections above the
   footer, whose placeholders move that scroll target the same way, so every marked element is always rendered. */
html [data-wpr-lazyrender] { content-visibility: visible; }

/* Footer link rows, one-fold pass (builder D, 2026-11-22). The list items kept the body
   line height as their strut, so rows ran 35px apart instead of Figma's 29px (20 + 9).
   Match the item's line box to the 14/20 link. Phone rows are left as they are. */
@media (min-width: 768px) {
	.fcol__links li { font-size: 14px; line-height: 20px; }
}

/* Footer at 1024 to 1279: six link columns beside the 380px intro are too narrow and the
   longest labels pushed the page wider than the screen (QA 2026-11-22). Three columns there. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Guard against sideways page scroll from decorative bleed (split image parallax at 1280,
   the mega-menu backdrop on phones). clip, unlike hidden, keeps position: sticky working. */
html, body { overflow-x: clip; }

/* Social brand marks (owner, 26 Nov 2026): ink at rest, the network's colour on hover and keyboard focus. */
.social { color: var(--c-ink); }
.social__icon { display: block; width: 18px; height: 18px; transition: color var(--dur-fast); }
.social:hover, .social:focus-visible { color: var(--c-ink); }
.social--linkedin:hover, .social--linkedin:focus-visible { color: #0A66C2; }
.social--facebook:hover, .social--facebook:focus-visible { color: #1877F2; }
.social--instagram:hover, .social--instagram:focus-visible { color: #E4405F; }
.social--x:hover, .social--x:focus-visible { color: #000; }
.on-dark .social, .site-footer--dark .social { color: var(--c-white); }

/* Chat button (owner 26 Nov 2026): smaller circle and icon, same place and look. The chat plugin sets 62px and 28px
   in a style it injects itself, so these rules carry one more selector step to win. The teaser bubble keeps its 12px gap. */
body #sth-launcher{width:46px;height:46px}
body #sth-launcher svg{width:22px;height:22px}
body #sth-teaser{bottom:80px}
/* While the cookie bar shows and would cover the chat button (phones), the bar script sets data-cookie-lift
   and --cookie-h (bar height plus its 16px offset) on html: the button sits 12px above the bar and the teaser
   keeps its place above the button (WCAG 2.4.11). Without the attribute nothing here applies. */
html[data-cookie-lift] body #sth-launcher{bottom:calc(var(--cookie-h, 0px) + 12px)}
html[data-cookie-lift] body #sth-teaser{bottom:calc(var(--cookie-h, 0px) + 70px)}
/* The open chat panel paints above the cookie bar (z-index 2147483600), so on phones the bar cannot cover the
   message box and Send button that the keyboard user is in (WCAG 2.4.11). The button and teaser stay below
   the bar. The panel is display none while closed, so nothing changes until it is opened. */
body #sth-panel{z-index:2147483646}
/* Open mobile menu sheet while the cookie bar shows: the sheet scrolls with room at its end for the bar
   (--cookie-h is its height plus its 16px offset; the sheet already ends 20px above the screen bottom), so
   its last control can sit 12px above the bar and focus scrolls stop there (WCAG 2.4.11). Without the bar
   --cookie-h is unset and both values are 0, as before. */
.mnav.is-open .msheet{padding-bottom:max(0px, calc(var(--cookie-h, 0px) - 8px));scroll-padding-bottom:max(0px, calc(var(--cookie-h, 0px) - 8px))}
/* Chat footer line: the plugin's #94a3b8 at 10px is 2.6:1 on white; this grey is 4.8:1 (WCAG 1.4.3). */
body #sth-cred{color:#64748b}
