/* ═══════════════════════════════════════
   HEADER.CSS — Nav + Mobile Menu + Sub-Nav
   ═══════════════════════════════════════ */

/* ─── Top Nav ─── */
nav.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s cubic-bezier(.22,1,.36,1);
  color:rgba(0,0,0,0);
}
nav.top-nav.scrolled {
  padding: 14px 48px;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(200,165,92,0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1002;
}
.nav-brand .logo {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.nav-brand .logo img{
  width:160px;
}
.nav-brand .tagline {
  font-size: 8.5px;
  color: rgba(200,165,92,0.5);
  letter-spacing: 0.2em;
  font-weight: 500;
  border-left: 1px solid rgba(200,165,92,0.2);
  padding-left: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ─── Desktop Nav Links ─── */
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  border: none;
  padding: 10px 32px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 28px rgba(200,165,92,0.3);
  text-decoration: none;
  display: inline-block;
  font-family: var(--f-body);
  transition: all 0.3s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(200,165,92,0.4);
  background: var(--gold);
  color: var(--navy) !important;
}

/* ─── Hamburger Button ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  width: 40px;
  height: 40px;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(.22,1,.36,1);
  transform-origin: center;
}
.nav-hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Feature Sub-Nav ─── */
.feature-subnav {
  position: fixed;
  top: 90px; left: 0; right: 0;
  z-index: 1002;
  background: rgba(6,14,26,0.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(200,165,92,0.08);
  border-bottom: 1px solid rgba(200,165,92,0.08);
  padding: 14px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.feature-subnav.show {
  transform: translateY(-15px);
}

.subnav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.subnav-breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.3s;
}
.subnav-breadcrumb a:hover { color: var(--gold); }
.subnav-breadcrumb .divider { color: rgba(255,255,255,0.2); }
.subnav-breadcrumb .current { color: var(--gold); }

.subnav-features {
  display: flex;
  gap: 24px;
  align-items: center;
}
.subnav-features a {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.subnav-features a:hover,
.subnav-features a.active { color: var(--gold); }
.subnav-features .sep {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.1);
}
/* ═══════════════════════════════════════
   MOBILE — Tablet & below (≤ 900px)
   ═══════════════════════════════════════ */
@media (max-width: 1250px) {
  nav.top-nav,
  nav.top-nav.scrolled {
    padding: 14px 20px;
  }

  .nav-brand .tagline { display: none; }

  /* Show hamburger */
  .nav-hamburger { display: flex; }
  /* Nav links → full-height panel */
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1001;
    background: rgba(6,14,26,0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 72px 0 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(.22,1,.36,1);
    max-height: 100vh;
    overflow-y: auto;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile link styling */
  .nav-links a {
    font-family: var(--f-body);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 18px 32px;
    text-align: left;
    transition: color 0.3s, background 0.3s, transform 0.3s, opacity 0.3s;
    transform: translateY(12px);
    opacity: 0;
    position: relative;
  }
  .nav-links.open a {
    transform: translateY(0);
    opacity: 1;
  }
  /* Staggered reveal */
  .nav-links.open a:nth-child(1) { transition-delay: 0.04s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.07s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.10s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.13s; }
  .nav-links.open a:nth-child(5) { transition-delay: 0.16s; }
  .nav-links.open a:nth-child(6) { transition-delay: 0.19s; }
  .nav-links.open a:nth-child(7) { transition-delay: 0.22s; }

  .nav-links a:hover {
    color: var(--gold);
    background: rgba(200,165,92,0.04);
  }

  /* Gold left accent on hover */
  .nav-links a::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(.22,1,.36,1);
  }
  .nav-links a:hover::before {
    transform: scaleY(1);
  }

/* CTA in mobile menu */
.nav-links .nav-cta {
  margin: 32px 32px 48px;
  padding: 14px 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  border: none;
  border-radius: 4px;
  color: var(--navy) !important;
  background: var(--gold) !important;
  box-shadow: 0 4px 28px rgba(200,165,92,0.3);
  display: block;
}
.nav-links .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(200,165,92,0.4);
  background: var(--gold) !important;
  color: var(--navy) !important;
}
.nav-links .nav-cta::before {
  display: none !important;
}

  /* Hamburger stays on top */
  nav.top-nav.menu-open {
    background: transparent;
    border-bottom: none;
  }

  /* Feature Sub-Nav */
  .feature-subnav {
    top: 72px; left: 0; right: 0;
    padding: 12px 20px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .subnav-features {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }
  .subnav-features::-webkit-scrollbar { display: none; }
  .subnav-breadcrumb .current { display: none; }
}

/* ═══════════════════════════════════════
   MOBILE — Small phone (≤ 560px)
   ═══════════════════════════════════════ */
@media (max-width: 560px) {
  .nav-links {
    padding: 64px 0 0;
  }
  .nav-links a {
    font-size: 13px;
    padding: 16px 24px;
  }
  .nav-cta {
    margin: 24px 24px 40px;
    padding: 13px 24px;
    font-size: 11px;
  }
  .nav-brand .logo img { width: 160px; }
}

/* ─── Body scroll lock when menu open ─── */
body.menu-open {
  overflow: hidden;
}
