/* =========================================================
   Component — Site header

   Sticky, translucent, and hairline-thin. It gains a shadow only
   once the page has actually scrolled under it (shell.js adds
   .is-stuck), so at rest it reads as part of the page instead of
   a bar bolted on top of it.
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-canvas) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-stuck {
  border-bottom-color: var(--color-line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--header-height);
}

/* ---------------------------------------------------------
   Nav
   --------------------------------------------------------- */
.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
  margin-inline-end: auto;
}

.site-nav__item { position: relative; }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-nav__link:hover,
.site-nav__link[aria-expanded="true"] { color: var(--color-text); }

.site-nav__chevron {
  width: 10px;
  height: 7px;
  flex: none;
  transition: rotate var(--dur-fast) var(--ease-out);
}
.site-nav__link[aria-expanded="true"] .site-nav__chevron { rotate: 180deg; }

/* ---------------------------------------------------------
   Solutions menu
   --------------------------------------------------------- */
.site-menu {
  position: absolute;
  inset-block-start: calc(100% + var(--space-3));
  /* Anchored to the trigger's leading edge, growing inward. Centering
     it on the trigger pushed the panel past the viewport edge in RTL,
     where the nav sits near the right margin. */
  inset-inline-start: 0;
  z-index: 20;
  width: min(720px, calc(100dvw - var(--space-8)));
  padding: var(--space-3);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  animation: site-menu-in var(--dur-base) var(--ease-out);
}
.site-menu[hidden] { display: none; }

@keyframes site-menu-in {
  from { opacity: 0; translate: 0 -6px; }
  to   { opacity: 1; translate: 0 0; }
}

.site-menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1);
}

.site-menu__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease-out);
}
.site-menu__item:hover { background: var(--color-surface-raised); }

.site-menu__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}
.site-menu__note {
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------
   Actions
   --------------------------------------------------------- */
.site-header__actions {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

/* ---------------------------------------------------------
   Burger — two bars, because three is a drawing of a menu and
   two is enough to read as one.
   --------------------------------------------------------- */
.site-header__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-inline-start: auto;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
}
.site-header__burger span {
  display: block;
  height: 1.6px;
  border-radius: var(--radius-pill);
  background: var(--color-text);
}
.site-header__burger span:last-child { width: 62%; }

/* ---------------------------------------------------------
   Drawer
   --------------------------------------------------------- */
.site-drawer__scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--color-scrim);
  backdrop-filter: blur(2px);
  animation: scrim-in var(--dur-base) var(--ease-out);
}
.site-drawer__scrim[hidden] { display: none; }

@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }

.site-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: min(340px, 88vw);
  padding: var(--space-5);
  background: var(--color-surface);
  border-inline-end: 1px solid var(--color-line);
  overflow-y: auto;
  animation: drawer-in var(--dur-slow) var(--ease-out);
}
.site-drawer[hidden] { display: none; }

@keyframes drawer-in {
  from { transform: translateX(var(--drawer-from, 100%)); }
  to   { transform: translateX(0); }
}
:root[dir="ltr"] .site-drawer { --drawer-from: -100%; }

.site-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-5);
}
.site-drawer__close {
  display: inline-flex;
  padding: var(--space-2);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.site-drawer__close:hover { color: var(--color-text); }
.site-drawer__close svg { width: 20px; height: 20px; }

.site-drawer__body {
  display: flex;
  flex-direction: column;
}
.site-drawer__body .hairline { margin-block: var(--space-3); }

.site-drawer__link {
  padding: var(--space-3) 0;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
}
.site-drawer__link:hover { color: var(--color-text); }

.site-drawer__foot {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-6);
}

/* ---------------------------------------------------------
   Breakpoint — the drawer exists only below the point where
   the full nav stops fitting.
   --------------------------------------------------------- */
@media (min-width: 1024px) {
  .site-nav,
  .site-header__actions { display: flex; }
  .site-header__burger { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu,
  .site-drawer,
  .site-drawer__scrim { animation: none; }
}

/* ---------------------------------------------------------
   Mobile CTA + touch targets

   Under 1024px the header's action block is hidden, so the one
   ask on the page scrolled away with the hero. This keeps a
   single primary button in the sticky bar and gives the burger
   the 48px a thumb needs.
   --------------------------------------------------------- */
.site-header__cta {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}
.site-header__cta .btn {
  min-block-size: 44px;
  --btn-pad-inline: 1.1rem;
  font-size: var(--fs-sm);
}
.site-header__burger {
  margin-inline-start: var(--space-3);
  width: 48px;
  height: 48px;
  padding: 0 12px;
}
@media (min-width: 1024px) {
  .site-header__cta { display: none; }
}
.site-drawer__link {
  display: flex;
  align-items: center;
  min-block-size: 48px;
}
.site-drawer__foot .btn { min-block-size: 48px; }
