/* ==========================================================================
   Blue Lily navigation — dark glass, the same on every page.
   Loaded after style.css and responsive.css so these rules take precedence
   over the light header they replace.
   ========================================================================== */

.site-header {
  background: rgba(11, 22, 48, .92);
  border-bottom: 1px solid rgba(147, 197, 253, .14);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
/* a thin line of Blue Lily light along the foot of the bar */
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 4%, rgba(77, 168, 255, .55) 38%,
                              rgba(139, 92, 246, .45) 64%, transparent 96%);
  opacity: .55;
  transition: opacity .35s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 22, 48, .96);
  border-bottom-color: rgba(147, 197, 253, .2);
  box-shadow: 0 12px 32px -20px rgba(4, 10, 26, .9);
}
.site-header.is-scrolled::after { opacity: .9; }

/* Home: at the top the bar is glass over the navy hero, which slides up
   beneath it; it firms up once the page moves. */
.site-header--over-hero { background: rgba(11, 22, 48, .38); border-bottom-color: transparent; }
.site-header--over-hero.is-scrolled { background: rgba(11, 22, 48, .9); }
.site-header--over-hero ~ main .hero-flow {
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}

/* ------------------------------------------------------------ links --- */
/* Desktop only: on mobile the nav is the fixed full-width menu panel, and
   `relative` here would pull it back into the header row. */
@media (min-width: 1081px) { .nav { position: relative; } }
.nav__link {
  color: #D7E3F5;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav__link:hover,
.nav__link:focus-visible { color: #FFFFFF; background: rgba(147, 197, 253, .1); }
.nav__link[aria-current="page"],
.nav__link.is-active,
.nav__menu-btn.is-current { color: #FFFFFF; font-weight: 600; }
.nav__link:focus-visible,
.nav__sublink:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }

/* The underline that follows the active section (positioned by
   navigation.js). One element, moved by transform. */
.nav__indicator {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100px;
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, #4DA8FF, #8B5CF6);
  box-shadow: 0 0 10px rgba(77, 168, 255, .75);
  transform-origin: 0 50%;
  opacity: 0;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
}
.nav__indicator.is-on { opacity: 1; }

/* ----------------------------------------------------- company menu --- */
.nav__item--menu { position: relative; }
.nav__menu-btn { display: inline-flex; align-items: center; gap: 6px; }
.nav__menu-btn svg { transition: transform .3s ease; }
.nav__menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  z-index: 5;
  min-width: 220px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border-radius: 14px;
  background: rgba(13, 28, 58, .98);
  border: 1px solid rgba(147, 197, 253, .2);
  box-shadow: 0 24px 50px -18px rgba(4, 10, 26, .9), 0 0 30px rgba(77, 168, 255, .12);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 6px, 0);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
/* a hairline gap between the fourth and fifth items: company, then explore */
.nav__sub li:nth-child(4) { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(147, 197, 253, .14); }
.nav__item--menu.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sublink {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: var(--text-sm);
  color: #D7E3F5;
  white-space: nowrap;
}
.nav__sublink:hover { color: #FFFFFF; background: rgba(147, 197, 253, .1); }
.nav__sublink[aria-current="page"] { color: #FFFFFF; font-weight: 600; }

/* ------------------------------------------------------------ toggle --- */
/* flex: none -- the white wordmark is wider than the old one, and without
   it the toggle was squeezed to 31px on a phone */
.nav-toggle { border-color: rgba(147, 197, 253, .35); flex: none; width: 44px; }
.nav-toggle span { background: #FFFFFF; }

/* ------------------------------------------------------------ mobile --- */
@media (max-width: 1080px) {
  .nav {
    background: #0B1630;
    border-bottom: 1px solid rgba(147, 197, 253, .16);
    box-shadow: 0 30px 60px -20px rgba(4, 10, 26, .9);
  }
  .nav__indicator { display: none; }
  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 18px 4px;
    font-size: 1.125rem;
    color: #E8F0FE;
    border-bottom: 1px solid rgba(147, 197, 253, .14);
  }
  .nav__link:hover { background: transparent; }
  .nav__sub {
    position: static;
    min-width: 0;
    padding: 0 0 8px 12px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transform: none;
    display: none;
  }
  .nav__item--menu.is-open .nav__sub { display: block; }
  .nav__sub li:nth-child(4) { border-top-color: rgba(147, 197, 253, .1); }
  .nav__sublink { font-size: 1rem; }

  /* the links arrive in a short cascade when the menu opens */
  @media (prefers-reduced-motion: no-preference) {
    .nav.is-open .nav__list > li { animation: nav-in .42s cubic-bezier(.22, .61, .36, 1) both; }
    .nav.is-open .nav__list > li:nth-child(2) { animation-delay: .04s; }
    .nav.is-open .nav__list > li:nth-child(3) { animation-delay: .08s; }
    .nav.is-open .nav__list > li:nth-child(4) { animation-delay: .12s; }
    .nav.is-open .nav__list > li:nth-child(5) { animation-delay: .16s; }
    .nav.is-open .nav__list > li:nth-child(6) { animation-delay: .2s; }
  }
}
@keyframes nav-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }

@media (hover: hover) and (min-width: 1081px) {
  .nav__item--menu:hover .nav__sub { opacity: 1; visibility: visible; transform: none; }
}

/* in-page targets clear the sticky header */
[data-nav-section] { scroll-margin-top: calc(var(--header-h) + 8px); }

@media (prefers-reduced-motion: reduce) {
  .nav__indicator, .nav__sub, .site-header { transition: none; }
}

/* footer (site chrome): the brand line */
.site-footer__motto {
  margin: var(--space-4) 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
}
.site-footer__closing {
  font-family: var(--font-display);
  font-weight: 600;
  color: #E8F0FE;
}
