/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 67, 124, 0.08);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: var(--shadow-md);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* .nav__menu's real display:flex layout lives in the @media(min-width:769px)
   block further down (desktop-only, deliberately). A stray, unguarded
   ".nav--scrolled .nav__menu { display:flex; ... }" rule used to live here
   -- its properties were a strict subset of that guarded block, so it never
   added anything on desktop, but its higher specificity (two classes) beat
   responsive.css's single-class mobile-hide rule regardless of load order
   once #nav picked up "nav--scrolled" past 80px of scroll (main.js's
   separate "NAV SCROLL SHRINK" handler) -- silently bleeding the full
   desktop menu onto mobile after any scrolling. Same bug class as the
   .nav__inner !important issue documented below, just missed by the
   original fix since this rule's unusual multi-line/commented shape didn't
   match a simple grep for ".nav__menu". Removed rather than re-guarded,
   since the @media(min-width:769px) block already covers everything it did. */
.nav__item {
  position: relative;
}
.nav__link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: 6px;
  transition: all var(--transition);
  cursor: pointer;
}
.nav__link:hover,
.nav__link.active {
  color: var(--navy);
  background: var(--navy-10);
}
.nav__link .chev {
  font-size: 0.6rem;
  transition: transform var(--transition);
}
.nav__item:hover .chev {
  transform: rotate(180deg);
}
.nav__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 67, 124, 0.08);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0.2s;
}
/* Invisible bridge so mouse can travel from nav link to dropdown */
.nav__dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0s;
}
.nav__dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: 6px;
  transition: all var(--transition);
}
.nav__dropdown a:hover {
  background: var(--navy-10);
  color: var(--navy);
  padding-left: 1.3rem;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mid);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(149, 149, 149, 0.25);
  transition: all var(--transition);
  cursor: pointer;
}
.nav__lang:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 2rem;
  flex-direction: column;
  gap: 0.5rem;
}
.nav__mobile.open {
  display: flex;
}
/* Locks background scroll behind the full-screen mobile menu -- .nav-open
   is only ever toggled by main.js's hamburger handler, but scoped behind
   the same breakpoint the hamburger itself only exists under, as a
   defensive belt-and-braces so it can never touch desktop. */
@media (max-width: 768px) {
  body.nav-open {
    overflow: hidden;
  }
}
.nav__mobile a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: 8px;
  border-bottom: 1px solid rgba(0, 67, 124, 0.06);
}
.nav__mobile a:hover {
  background: var(--navy-10);
  color: var(--navy);
}
.nav__mobile .nav__mobile-group {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 1.25rem 1rem 0.4rem;
}

/* CTA arrow line removed - was showing as unwanted horizontal line */

/* Active nav link visibility */
.nav__dropdown a.active,
.nav__dropdown a:focus {
  background: var(--light);
  color: var(--navy);
  font-weight: 600;
}
.nav__dropdown a.active::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--sky);
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Nav layout enforcement - prevents any content from breaking horizontal layout */
.nav__inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  height: 72px;
  width: 100%;
}
/* Desktop only — this !important was unconditionally overriding
   responsive.css's @media(max-width:768px) rule that hides .nav__menu
   in favor of the hamburger menu, so the full desktop menu was bleeding
   off-screen on mobile (real bug, found during the mobile-friendliness
   pass). */
@media (min-width: 769px) {
  .nav__menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
}

/* Active nav link */
.nav__link.active {
  color: var(--sky) !important;
  font-weight: 600;
}
.nav__link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
}

