/* ============================================================
   Top navigation — transparent on hero, frosted-light on scroll
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition:
    background .35s ease,
    backdrop-filter .35s ease,
    border-color .35s ease,
    padding .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--hair);
  padding: 10px 0;
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

/* Brand — light/dark logo crossfade on scroll */
.brand { display: flex; align-items: center; gap: 10px; position: relative; }
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity .35s ease;
}
.brand-logo.dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.nav.scrolled .brand-logo.light { opacity: 0; }
.nav.scrolled .brand-logo.dark { opacity: 1; }

/* Links */
.nav-links {
  display: flex; align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
  padding: 6px 0;
}
/* Button-text stays brand-white in both states */
.nav-links .btn-primary { color: var(--white); }
.nav.scrolled .nav-links a:not(.btn) { color: var(--ink-2); }

/* Underline on nav links only (not buttons) */
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 1.5px; width: 0;
  background: var(--orange);
  transition: width .25s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* Language switcher */
.lang { display: flex; gap: 4px; margin-left: 8px; }
.lang button {
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all .2s ease;
}
.lang button.active {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
}
.lang button:hover { color: var(--white); }
.nav.scrolled .lang button { color: var(--muted); }
.nav.scrolled .lang button.active {
  color: var(--ink);
  background: var(--paper);
}
.nav.scrolled .lang button:hover { color: var(--ink); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 8px;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 1.6px;
  background: var(--white);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 1.6px;
  background: var(--white);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top:  6px; }
.nav.scrolled .menu-toggle span,
.nav.scrolled .menu-toggle span::before,
.nav.scrolled .menu-toggle span::after {
  background: var(--ink);
}
