/* ================================================================
   NAVIGATION
   ================================================================ */

#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 var(--gutter);
  transition: var(--transition);
}

#nav.scrolled {
  background: rgba(5, 7, 26, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(201,160,64,0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  height: 86px;
  transition: height 0.4s ease;
}
#nav.scrolled .nav-inner { height: 66px; }

/* Logo */
.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
}
.nav-logo-img {
  height: 54px; width: auto;
  transition: height 0.4s ease;
  filter: drop-shadow(0 2px 8px rgba(201,160,64,0.2));
}
#nav.scrolled .nav-logo-img { height: 42px; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-brand-name {
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 19px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-brand-sub {
  font-family: var(--font-sans);
  font-size: 9px; font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Desktop links */
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* CTA button in nav */
.nav-links a.nav-cta {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy-deep) !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(201,160,64,0.3);
  transition: var(--transition) !important;
}
.nav-links a.nav-cta::after { display: none !important; }
.nav-links a.nav-cta:hover {
  box-shadow: 0 6px 30px rgba(201,160,64,0.55) !important;
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile overlay */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: rgba(5,7,26,0.98);
  backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 38px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mobile-nav.open { display: flex; opacity: 1; }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 32px);
  color: var(--ivory);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--gold); }

.mobile-nav-close {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 28px;
  color: var(--gold);
  cursor: pointer;
  background: none; border: none;
  font-family: var(--font-sans);
  transition: transform 0.3s;
}
.mobile-nav-close:hover { transform: rotate(90deg); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) {
  .nav-logo-text { display: none; }
}
