.announcement-bar {
	background: var(--accent);
	color: var(--ink);
	font-size: var(--fs-eyebrow);
	text-align: center;
	padding-block: var(--space-2);
}
.announcement-bar a:hover { text-decoration: underline; }

/* Breadcrumbs — L2/L3 only, per design-reference §04 ("L1 pages carry no breadcrumb") */
.breadcrumbs { padding-block: var(--space-3); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); font-size: var(--fs-body-sm); color: var(--muted-light); align-items: center; }
/* issueslog.md #041 — crumb links were 17–19px tall. 44px tap boxes; the
   block padding above drops from 24px to 12px so the trail's overall
   height and its spacing from the hero stay about the same. */
.breadcrumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: var(--space-2); color: var(--muted-light); }
.breadcrumbs li:last-child { color: var(--ink); font-weight: 600; }
.breadcrumbs a:hover { color: var(--accent-deep); }

/* In-page section nav — sticky under the header on long L2 pages */
.section-nav {
	position: sticky;
	top: var(--header-height, 77px);
	z-index: 90;
	background: var(--paper-soft);
	border-top: 1px solid var(--line-light);
	border-bottom: 1px solid var(--line-light);
}
.section-nav .container {
	display: flex;
	gap: var(--space-6);
	align-items: center;
	overflow-x: auto;
	padding-block: var(--space-4);
	font-weight: 500;
	font-size: var(--fs-body-sm);
	color: var(--text-body-light);
	scrollbar-width: none;
}
.section-nav .container::-webkit-scrollbar { display: none; }
.section-nav a { white-space: nowrap; padding-bottom: 6px; border-bottom: 2px solid transparent; }
/* issueslog.md #041 — section-nav links were 35px tall: 44px tap box, label
   kept sitting on its active-state rule (flex-end). Bar padding trimmed to
   compensate, so the sticky bar only grows by a few pixels. */
.section-nav a { display: inline-flex; align-items: flex-end; min-height: 44px; }
.section-nav .container { padding-block: var(--space-2); }
.section-nav a:hover { color: var(--ink); }
.section-nav a.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

/*
 * issueslog.md #004 — anchor targets need scroll-margin-top so a jump/click
 * lands with the heading visible below the sticky header (and the sticky
 * .section-nav bar on templates that have one). --header-height is already
 * kept in sync with the real header height by main.js; --section-nav-height
 * is set the same way, defaulting to 0 on pages with no section nav.
 */
section[id] {
	scroll-margin-top: calc(var(--header-height, 77px) + var(--section-nav-height, 0px) + var(--space-4));
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(20, 20, 24, 0.92);
	backdrop-filter: blur(8px);
	color: var(--paper);
	transition: padding var(--dur-base) var(--ease-out), background var(--dur-slow) var(--ease-out);
}
.site-header--light {
	background: rgba(255, 255, 255, 0.92);
	color: var(--ink);
	border-bottom: 1px solid var(--line-light);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: var(--space-5);
	transition: padding-block var(--dur-base) var(--ease-out);
}
.site-header.is-condensed .container { padding-block: var(--space-3); }

.site-logo { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; color: inherit; white-space: nowrap; }
/* issueslog.md #042 — the header logo link was 120 × 29px. */
a.site-logo { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }

.primary-nav { display: flex; align-items: center; gap: var(--space-7); }
.primary-nav__list { display: flex; align-items: center; gap: var(--space-6); }
.primary-nav__list > li > a {
	/* issueslog.md #042 — 36px tall at 1024px, where iPads get this desktop
	   nav. 44px tap box; underline stays on the text's baseline rule. */
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: var(--fs-body-sm);
	font-weight: 500;
	padding-block: var(--space-2);
	border-bottom: 1px solid transparent;
	transition: border-color var(--dur-fast) var(--ease-out);
}
.primary-nav__list > li > a:hover,
.primary-nav__list > li[aria-current="page"] > a { border-color: var(--accent); }
.primary-nav__list .nav-products > a { position: relative; padding-left: var(--space-4); }
.primary-nav__list .nav-products > a::before {
	content: "";
	position: absolute; left: 0; top: 50%;
	width: 1px; height: 16px;
	background: currentColor;
	opacity: 0.3;
	transform: translateY(-50%);
}

.header-actions { display: flex; align-items: center; gap: var(--space-5); }
.nav-toggle {
	display: none;
	background: none; border: none; color: inherit;
	width: 44px; height: 44px; align-items: center; justify-content: center;
	cursor: pointer;
	flex-shrink: 0; /* issueslog.md #006 — without this the flex row shrinks it below the 44px touch-target minimum to make room for the CTA button */
}
@media (max-width: 1023px) {
	.primary-nav__list { display: none; }
	.nav-toggle { display: inline-flex; }
}
/*
 * issueslog.md #036 — from 320 to ~430px "Book a conversation" wrapped to two
 * lines (and the logo with it), growing the sticky header to ~118px. Below
 * 430px the header CTA is dropped; the same CTA is pinned at the foot of the
 * mobile menu (parts/nav-mobile.php), so the header is one 44px row.
 */
@media (max-width: 429px) {
	.header-actions .btn { display: none; }
}
.header-actions .btn { white-space: nowrap; }
/* Short viewports (landscape phones, 400% zoom ≈ 320×200): a slimmer header
   so it doesn't eat a quarter or more of the viewport. */
@media (max-height: 480px) {
	.site-header .container,
	.site-header.is-condensed .container { padding-block: var(--space-1); }
}

/*
 * Services mega-menu — six pillar columns + L3 children + featured dark panel.
 *
 * issueslog.md #017 — .nav-services deliberately does NOT get `position:
 * relative` here (it did previously). .mega-menu is full-viewport-width
 * (`width: 100vw`) and relies on the classic `left: 50%; transform:
 * translateX(-50%)` trick to centre a 100vw box under a narrow trigger — but
 * that trick only centres correctly when its positioned containing block is
 * itself as wide as, and flush with the left edge of, the viewport. With
 * `.nav-services` (a small <li>, positioned wherever "Services" happens to
 * fall in the nav) as the containing block, `left: 50%` was 50% of the LI's
 * own ~62px width, not the viewport's, so the whole panel was calculated
 * from a point near the left edge of the page and shifted ~50vw further
 * left than intended — clipping/hiding the first ("Salesforce & CRM")
 * column, worst at 1024–1440px (fully off-screen) and still a ~2px sliver
 * clipped at 1920px. Leaving `.nav-services` un-positioned lets `.mega-menu`
 * inherit `.site-header` (`position: sticky`, full viewport width, flush
 * left, layout.css line ~53) as its containing block instead — `left: 50%`
 * and `top: 100%` then resolve against the header's own full width/height,
 * which is exactly what the full-bleed centering trick and the "sit right
 * below the header" vertical placement both need.
 */
.mega-menu {
	position: absolute;
	left: 50%; top: 100%;
	width: 100vw;
	background: var(--paper);
	border-bottom: 1px solid var(--line-light);
	box-shadow: 0 24px 60px rgba(20, 20, 24, 0.18);
	padding: 40px 0 44px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(-8px);
	transition: opacity var(--dur-menu) var(--ease-out) var(--menu-delay), transform var(--dur-menu) var(--ease-out) var(--menu-delay), visibility var(--dur-menu) var(--menu-delay);
}
.nav-services:hover .mega-menu,
.nav-services:focus-within .mega-menu,
.nav-services.is-menu-open .mega-menu {
	opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
/* issueslog.md #037 — Escape dismisses the panel even though the trigger
   still has focus/hover; main.js clears the class once focus and pointer
   have both left the item. */
.nav-services.is-menu-dismissed .mega-menu {
	opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-8px); transition: none;
}
.mega-menu__grid {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--margin-desktop);
	display: grid;
	grid-template-columns: repeat(6, 1fr) 300px;
	gap: var(--space-6);
}
.mega-menu__col { display: flex; flex-direction: column; gap: var(--space-4); }
.mega-menu__col-title {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--ink);
	padding-bottom: var(--space-3);
	border-bottom: 2px solid var(--line-light);
	/* Single-line titles measured 41.2px (27.2px line-height + 12px
	   padding-bottom + 2px border) — under the 44px touch-target minimum,
	   reachable at 1024px+ via the tap-to-open path (issueslog.md #007).
	   min-height + flex/align-end guarantees 44px regardless of title length
	   while keeping the text sitting on the border exactly as before. */
	min-height: 44px;
	display: flex;
	align-items: flex-end;
	box-sizing: border-box;
}
.mega-menu__col:first-child .mega-menu__col-title { border-bottom-color: var(--accent); }
.mega-menu__child { font-size: 0.9375rem; line-height: 1.45; color: var(--text-body-light); }
a.mega-menu__child { transition: color var(--dur-fast) var(--ease-out); }
a.mega-menu__child:hover, a.mega-menu__child:focus-visible { color: var(--accent-deep); }
.mega-menu__featured {
	background: var(--ink);
	border-radius: var(--radius-inset);
	padding: 26px 28px;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}
.mega-menu__featured .eyebrow { color: var(--accent-light); margin-bottom: 0; font-size: 0.625rem; }
.mega-menu__featured-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; color: var(--paper); }
.mega-menu__featured p { color: var(--text-body-dark); font-size: 0.9375rem; margin-bottom: 0; }
.mega-menu__featured .btn { margin-top: var(--space-2); align-self: flex-start; }

@media (max-width: 1439px) {
	.mega-menu__grid { grid-template-columns: repeat(6, 1fr); }
	.mega-menu__featured { display: none; }
}

/* Sectors/Products dropdowns — same panel pattern as the mega-menu, at
   reduced width, anchored under the nav item rather than centred full-bleed
   (design-reference §04: "same panel at reduced width — four columns and
   two columns respectively"). */
.nav-dropdown-parent { position: relative; }
.nav-dropdown {
	position: absolute;
	left: 0; top: 100%;
	background: var(--paper);
	border: 1px solid var(--line-light);
	border-radius: var(--radius-inset);
	box-shadow: 0 24px 60px rgba(20, 20, 24, 0.18);
	padding: 26px 28px;
	display: grid;
	gap: var(--space-6);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity var(--dur-menu) var(--ease-out) var(--menu-delay), transform var(--dur-menu) var(--ease-out) var(--menu-delay), visibility var(--dur-menu) var(--menu-delay);
}
.nav-dropdown--cols-4 { grid-template-columns: repeat(4, 1fr); width: 640px; }
.nav-dropdown--cols-2 { grid-template-columns: repeat(2, 1fr); width: 360px; }
.nav-dropdown-parent:hover .nav-dropdown,
.nav-dropdown-parent:focus-within .nav-dropdown,
.nav-dropdown-parent.is-menu-open .nav-dropdown {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-parent.is-menu-dismissed .nav-dropdown {
	opacity: 0; visibility: hidden; transform: translateY(-8px); transition: none;
}
@media (max-width: 1023px) {
	.nav-dropdown { display: none; }
}

/* Mobile navigation — full-screen, accordion to L3 */
.mobile-nav {
	position: fixed; inset: 0;
	background: var(--ink);
	color: var(--paper);
	z-index: 200;
	display: flex; flex-direction: column;
	padding: var(--space-6) var(--margin-mobile) var(--space-6);
	transform: translateX(100%);
	/* issueslog.md #028 — off-screen alone left all ~20 links in the tab order
	   and accessibility tree. Hidden when closed; visibility flips only after
	   the slide-out finishes (delayed) and immediately on open, so the
	   transition still plays both ways. Paired with `inert` (main.js). */
	visibility: hidden;
	transition: transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.mobile-nav.is-open {
	transform: translateX(0);
	visibility: visible;
	transition: transform var(--dur-base) var(--ease-out), visibility 0s linear 0s;
}
@media (min-width: 1024px) {
	.mobile-nav { display: none; }
}
/* issueslog.md #036 — at short heights (400% zoom ≈ 320×200) the pinned CTA
   was cut off below a fixed-height panel. Let the whole panel scroll
   instead of just the list, so nothing is clipped. */
@media (max-height: 480px) {
	.mobile-nav { overflow-y: auto; padding-block: var(--space-4); }
	.mobile-nav__list { flex: none; overflow: visible; }
	.mobile-nav__header { margin-bottom: var(--space-4); }
}
.mobile-nav__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-6); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line-dark); }
.mobile-nav__brand { display: flex; align-items: center; gap: 9px; }
.mobile-nav__brand-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.mobile-nav__list { flex: 1; overflow-y: auto; }
.mobile-nav__list > li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav__list > li > a,
.mobile-nav__list > li > button {
	display: flex; justify-content: space-between; align-items: center;
	width: 100%; text-align: left; background: none; border: none; color: var(--paper);
	padding: 22px 0; font-size: 1.625rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em;
	cursor: pointer;
}
.mobile-nav__list > li > button[aria-expanded="true"] { color: var(--accent-light); }
.mobile-nav__list .mobile-nav__indicator { color: var(--muted-dark); font-size: 1.25rem; font-family: var(--font-body); font-weight: 400; }
.mobile-nav__list > li > button[aria-expanded="true"] .mobile-nav__indicator { color: var(--accent-light); }
.mobile-nav__submenu {
	display: none;
	flex-direction: column; gap: 14px;
	padding: 0 0 22px 2px;
}
.mobile-nav__submenu[data-open="true"] { display: flex; }
.mobile-nav__submenu span, .mobile-nav__submenu a { font-size: 1.0625rem; font-weight: 500; color: var(--paper); }
.mobile-nav__submenu a { display: flex; align-items: center; min-height: 44px; }
.mobile-nav__cta { margin-top: var(--space-5); }
.mobile-nav__cta .btn { width: 100%; justify-content: center; }

.site-footer {
	background: var(--ink-deep);
	color: var(--paper);
	padding-block: var(--space-10) var(--space-6);
}
/* .site-footer is a dark surface but isn't wrapped in .section--dark/
   .section--dark-soft, so .muted (base.css) never picks up the dark-surface
   override and rendered at --muted-light (#6D6772, ~3.52:1 on --ink-deep) —
   below the 4.5:1 AA minimum for body text (axe-core color-contrast, footer
   tagline, every template). Scoped override restores the intended dark-mode
   token (--muted-dark, ~6.33:1 on --ink-deep). */
.site-footer .muted { color: var(--muted-dark); }
.site-footer .footer-top {
	display: grid;
	grid-template-columns: 1.3fr repeat(4, 1fr) 1.4fr;
	gap: var(--space-6);
	padding-bottom: var(--space-8);
	border-bottom: 1px solid var(--line-dark);
}
/* a11y audit: was <h3> — on any page whose body has no <h2> yet (seed
   content gaps are common mid-build, e.g. /work/, /products/seamless-slot/
   today), that made the footer's column headings the first H1→H3 skip in
   the document outline. Changed the markup to <h2> (parts/footer.php);
   restyled here regardless, so no visual change. */
.footer-col h2 { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--muted-dark); margin-bottom: var(--space-4); font-family: var(--font-body); font-weight: 700; }
.footer-col li { margin-bottom: var(--space-3); font-size: 0.9375rem; }
/* issueslog.md #023 — every footer link was well under the 44x44px minimum
   (18px tall, text-only). display:flex + min-height gives each link a real
   44px tap box without changing its text position or the column's overall
   rhythm beyond the extra height the taller boxes need. */
.footer-col a { display: flex; align-items: center; min-height: 44px; color: var(--text-body-dark); }
.footer-col a:hover { color: var(--accent-light); }
/* Contact column gets a wider track (above) so the email address fits on
   one line; break-word only kicks in if an editor enters something longer. */
.footer-col--contact a { overflow-wrap: break-word; }
.footer-company { font-style: normal; font-size: 0.9375rem; line-height: 1.6; color: var(--text-body-dark); margin-top: var(--space-3); }
.footer-company p { color: inherit; margin: 0; }
/* Social icons: 44x44 tap targets (§16), icon-only with an sr-only name. */
.social-links { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.social-links li { margin: 0; }
.social-links a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border: 1px solid var(--line-dark); border-radius: 50%;
	color: var(--text-body-dark);
	transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.social-links a:hover { color: var(--accent-light); border-color: var(--accent-light); }
.footer-bottom {
	display: flex; justify-content: space-between; align-items: center;
	padding-top: var(--space-5);
	font-size: var(--fs-eyebrow);
	color: var(--muted-dark);
}
/* issueslog.md #035 — legal links were 30–40 × 13px, 6px apart. Same
   44px-tall treatment as .footer-col a (#023), widened to ≥44px with inline
   padding; the first link's padding is pulled back so the row still starts
   flush with the copyright line. */
.footer-bottom__legal { display: flex; align-items: center; flex-wrap: wrap; }
.footer-bottom__legal a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: var(--space-2); }
.footer-bottom__legal a:first-child { margin-left: calc(var(--space-2) * -1); }
.footer-bottom__legal a:hover { color: var(--accent-light); }
@media (max-width: 1279px) {
	.site-footer .footer-top { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1023px) {
	.site-footer .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.site-footer .footer-top { grid-template-columns: 1fr; gap: var(--space-7); }
	.footer-bottom { flex-direction: column; gap: var(--space-3); align-items: flex-start; }
}
