/* Extracted from barie.css — header-specific rules.
   Self-contained: defines the exact tokens these rules use (--ink,
   --accent*, --line*, --lift-2, --ease), scoped to #header/.mobile-nav
   only, so this works standalone even on pages (like the homepage)
   that don't load global-style.css and would otherwise leave these
   variables undefined. */
#header,
.mobile-nav {
  --accent: #0582ff;
  --accent-hover: #0469db;
  --accent-soft: #eaf3ff;
  --ink: #0b1220;
  --ink-2: #3d4a5c;
  --ink-3: #64748b;
  --ink-4: #94a3b8;
  --line: #e4eaf2;
  --line-soft: #eef2f7;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lift-2: 0 1px 2px rgba(11, 18, 32, 0.04),
            0 18px 40px -22px rgba(11, 18, 32, 0.2),
            0 40px 80px -50px rgba(11, 18, 32, 0.24);
}

/* ═══════════════ Header ═══════════════ */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background 240ms ease, border-color 240ms ease;
  border-bottom: 1px solid transparent;
}
.header[data-stuck="true"] {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}
.header__bar {
  /* the homepage keeps its header on a narrower rail than the
     content below it, matched here so the two pages line up.
     width/margin/padding are inlined here (not left to the shared
     .shell utility class) because .shell only exists in
     global-style.css, which the homepage doesn't load — without
     this the header would render uncentered/unpadded there. */
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
@media (min-width: 640px) {
  .header__bar {
    padding-inline: 32px;
  }
}

/* .mobile-nav's own <ul> needs the same left/right edge padding the
   .shell utility class would have given it — given its own class here
   and its own rule (not .shell) so the header stays fully independent
   of global-style.css, per this file's self-contained design goal. */
.mobile-nav__list {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 640px) {
  .mobile-nav__list {
    padding-inline: 32px;
  }
}
.header__logo {
  flex-shrink: 0;
  color: var(--ink);
}
.header__logo svg {
  height: 32px;
  width: auto;
}
.nav__list {
  display: none;
  align-items: center;
  gap: 30px;
}
.nav__link {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 180ms ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 260ms var(--ease);
}
.nav__link:hover {
  color: var(--accent-hover);
}
.nav__link:hover::after {
  transform: scaleX(1);
}
.nav__link[aria-current="page"] {
  color: var(--accent-hover);
  font-weight: 700;
}
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill {
  display: none;
  align-items: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: background 180ms ease, transform 180ms var(--ease);
}
.pill:hover {
  transform: translateY(-1px);
}
.pill--dark {
  background: var(--ink);
}
.pill--dark:hover {
  background: #1c2942;
}
.pill--blue {
  background: var(--accent);
  box-shadow: 0 10px 24px -12px rgba(5, 130, 255, 0.8);
}
.pill--blue:hover {
  background: var(--accent-hover);
}
.burger {
  display: grid;
  place-items: center;
  height: 44px;
  width: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
}
.burger svg {
  height: 20px;
  width: 20px;
}
.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-nav[data-open="true"] {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav li:last-child a {
  border-bottom: 0;
}
.mobile-nav__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
}
.mobile-nav__cta a {
  border: 0;
  text-align: center;
  border-radius: 999px;
  padding: 14px;
  color: #fff;
  font-weight: 700;
}
.mob-dark {
  background: var(--ink);
}
.mob-blue {
  background: var(--accent);
}
@media (min-width: 640px) {
  .pill {
    display: inline-flex;
  }
}
@media (min-width: 1024px) {
  .nav__list {
    display: flex;
  }
  .burger,
  .mobile-nav {
    display: none !important;
  }
}


/* ───────── Primary nav dropdown ─────────
   Pure CSS: opens on hover and on keyboard focus (:focus-within), so
   it works with JavaScript disabled and is reachable by tabbing. */
.nav__item--menu {
  position: relative;
}
.nav__caret {
  width: 13px;
  height: 13px;
  margin-left: 5px;
  color: var(--ink-4);
  transition: transform 260ms var(--ease), color 200ms ease;
}
.nav__item--menu:hover .nav__caret,
.nav__item--menu:focus-within .nav__caret {
  transform: rotate(180deg);
  color: var(--accent-hover);
}
.menu {
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 60;
  padding-top: 14px; /* invisible bridge so the pointer can travel */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease),
    visibility 220ms;
}
.nav__item--menu:hover .menu,
.nav__item--menu:focus-within .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.menu__panel {
  min-width: 262px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: var(--lift-2);
}
.menu__list a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 180ms ease, color 180ms ease;
}
.menu__list a:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.menu__list a[aria-current="page"] {
  color: var(--accent-hover);
  font-weight: 700;
}
.menu__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding: 11px 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-hover);
}
.menu__all svg {
  width: 14px;
  height: 14px;
  transition: transform 260ms var(--ease);
}
.menu__all:hover svg {
  transform: translateX(3px);
}

/* wide menu: used where the dropdown holds eight real pages */
.menu--wide {
  left: -20px;
}
.menu--wide .menu__panel {
  min-width: 430px;
}
.menu__list--2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 8px;
}
@media (min-width: 1080px) {
  .seg-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* mobile: the segments simply sit under Solutions, always reachable */
.mobile-nav__sub a {
  padding-left: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
}
.mobile-nav__sub a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--accent);
}
.mobile-nav__sub a[aria-current="page"] {
  color: var(--accent-hover);
  font-weight: 700;
}

/* Mobile accordion: Capabilities/Solutions rows toggle their submenu on
   tap instead of always showing it expanded. */
.mobile-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav__row > a {
  flex: 1;
  border-bottom: 0;
}
.mobile-nav__toggle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink-3);
  cursor: pointer;
}
.mobile-nav__caret {
  width: 16px;
  height: 16px;
  transition: transform 260ms var(--ease);
}
.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__caret {
  transform: rotate(180deg);
}
.mobile-nav__subgroup {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav__subgroup[data-open="true"] {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .menu,
  .nav__caret,
  .menu__all svg {
    transition: none !important;
    transform: none !important;
  }
}

/* Capabilities mega menu: balanced multi-column so the 7 items pack tightly
   (no shared-row height gaps, no lopsided grid cell). */
.menu__list--2col{display:block;columns:2;column-gap:26px}
.menu__list--2col li{break-inside:avoid;-webkit-column-break-inside:avoid}
.menu__list--2col li a{display:block}
.menu--wide .menu__panel{min-width:648px}
@media(max-width:640px){.menu__list--2col{columns:1}}

/* Nav caret fix:
   1) global `svg{display:block}` was pushing the dropdown caret onto its own
      line below the label, keep the link inline-flex so the caret stays beside the text.
   2) the caret must point down when closed and rotate up only when the menu is open. */
.nav__link{display:inline-flex;align-items:center}
.nav__caret{transform:none}
.nav__item--menu:hover .nav__caret{transform:rotate(180deg)}
