

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 28px clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s var(--ease-smooth), padding 0.4s var(--ease-smooth), backdrop-filter 0.5s;
}

.nav.scrolled,
.light-page .nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--divider);
}

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.nav-logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* white+gold on the dark/transparent navbar, navy+gold once scrolled / on light pages */
.nav-logo .logo-dark { display: none; }

.nav.scrolled .nav-logo .logo-light,
.light-page .nav .nav-logo .logo-light { display: none; }

.nav.scrolled .nav-logo .logo-dark,
.light-page .nav .nav-logo .logo-dark { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  transition: color 0.3s;
}

.nav.scrolled .nav-links a,
.light-page .nav .nav-links a {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white) !important;
  transition: background 0.3s, color 0.3s, border-color 0.3s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--white);
  color: var(--navy) !important;
  border-color: var(--white) !important;
}

.nav.scrolled .nav-cta,
.light-page .nav .nav-cta {
  border-color: var(--navy) !important;
  color: var(--navy) !important;
}

.nav.scrolled .nav-cta:hover,
.light-page .nav .nav-cta:hover {
  background: var(--navy);
  color: var(--white) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  padding: 4px;
  width: 30px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: transform 0.4s var(--ease-smooth), opacity 0.3s, background 0.3s;
  transform-origin: center;
}

.nav.scrolled .nav-hamburger span,
.light-page .nav .nav-hamburger span {
  background: var(--navy);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-smooth);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu-links li {
  overflow: hidden;
}

.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 60px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.01em;
  display: block;
  transform: translateY(100%);
  transition: transform 0.6s var(--ease-smooth), color 0.3s;
}

.mobile-menu.open .mobile-menu-links a {
  transform: translateY(0);
}

.mobile-menu.open .mobile-menu-links li:nth-child(1) a { transition-delay: 0.05s; }
.mobile-menu.open .mobile-menu-links li:nth-child(2) a { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-links li:nth-child(3) a { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-links li:nth-child(4) a { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-links li:nth-child(5) a { transition-delay: 0.25s; }

.mobile-menu-links a:hover {
  color: var(--gold-light);
}

.mobile-menu-footer {
  position: absolute;
  bottom: 40px;
  text-align: center;
}

.mobile-menu-footer p {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

@media (max-width: 900px) {
  .nav {
    padding: 20px clamp(16px, 4vw, 40px);
  }

  .nav.scrolled,
  .light-page .nav {
    padding: 16px clamp(16px, 4vw, 40px);
  }

  .nav-logo img { height: 48px; }
}

@media (max-width: 480px) {
  .nav {
    padding: 16px 20px;
  }

  .nav.scrolled,
  .light-page .nav {
    padding: 14px 20px;
  }

  .mobile-menu-footer {
    bottom: 28px;
  }
}
