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

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  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: 28px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.nav-links > a:not(.nav-cta),
.nav-parent {
  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;
  font-family: var(--f-body);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav-links > a:not(.nav-cta):hover,
.nav-parent:hover,
.nav-item.is-current > .nav-parent,
.nav-links > a.is-active { color: var(--gold); }

.nav-item { position: relative; }
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-parent::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  flex-direction: column;
  padding: 8px 0;
  background: rgba(10,22,40,0.96);
  border: 1px solid rgba(200,165,92,0.16);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.open > .nav-dropdown {
  display: flex;
}
.nav-dropdown a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 20px;
  white-space: nowrap;
  transition: color 0.3s, background 0.3s;
}
.nav-dropdown a:hover,
.nav-dropdown a.is-active {
  color: var(--gold);
  background: rgba(200,165,92,0.06);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  border: none;
  padding: 10px 32px;
  border-radius: 4px;
  font-size: 13px;
  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;
}
.nav-links > a.nav-cta {
  padding: 10px 32px;
}

/* ─── Hamburger Button ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1003;
  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;
  margin-left: auto;
}
.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: #060E1A;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 72px 0 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
    max-height: 100vh;
    overflow-y: auto;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-item { width: 100%; }
  .nav-item:hover > .nav-dropdown,
  .nav-item:focus-within > .nav-dropdown { display: none; }
  .nav-item.open > .nav-dropdown { display: flex; }
  .nav-dropdown {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav-dropdown::before { display: none; }

  .nav-links > a:not(.nav-cta),
  .nav-parent,
  .nav-dropdown 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;
    width: auto;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    justify-content: flex-start;
    transition: color 0.3s, background 0.3s, transform 0.3s, opacity 0.3s;
    transform: translateY(12px);
    opacity: 0;
    position: relative;
    white-space: normal;
  }
  .nav-parent {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
  }
  .nav-dropdown a { padding-left: 48px; }
  .nav-links.open > a,
  .nav-links.open .nav-parent,
  .nav-links.open .nav-dropdown a {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links.open > a:nth-child(1),
  .nav-links.open > .nav-item:nth-child(1) { transition-delay: 0.04s; }
  .nav-links.open > a:nth-child(2),
  .nav-links.open > .nav-item:nth-child(2) { transition-delay: 0.07s; }
  .nav-links.open > a:nth-child(3),
  .nav-links.open > .nav-item:nth-child(3) { transition-delay: 0.10s; }
  .nav-links.open > a:nth-child(4),
  .nav-links.open > .nav-item:nth-child(4) { transition-delay: 0.13s; }
  .nav-links.open > a:nth-child(5),
  .nav-links.open > .nav-item:nth-child(5) { transition-delay: 0.16s; }
  .nav-links.open > a:nth-child(6),
  .nav-links.open > .nav-item:nth-child(6) { transition-delay: 0.19s; }

  .nav-links > a:not(.nav-cta):hover,
  .nav-parent:hover,
  .nav-dropdown a:hover,
  .nav-dropdown a.is-active {
    color: var(--gold);
    background: rgba(200,165,92,0.04);
  }

  .nav-links > a:not(.nav-cta)::before,
  .nav-dropdown 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);
    border: 0;
    height: auto;
  }
  .nav-links > a:not(.nav-cta):hover::before,
  .nav-dropdown a:hover::before {
    transform: scaleY(1);
  }
  .nav-item.open > .nav-parent::after {
    transform: rotate(225deg) translateY(-1px);
  }

  .feature-subnav,
  .feature-subnav.show {
    top: 72px; left: 0; right: 0;
    padding: 12px 20px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    transform: none;
  }
  .feature-subnav .scroll-hint-host { width: 100%; margin-left: 0; }
  .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; }

/* CTA in mobile menu */
.nav-links .nav-cta {
  margin: 32px 32px 48px;
  padding: 14px 32px;
  font-size: 13px;
  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;
}

  nav.top-nav.menu-open,
  nav.top-nav.scrolled.menu-open {
    border-bottom-color: transparent;
  }
}

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

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