/* =========================================
   SHARED HEADER — Jewelry Vault
   Single source of truth for all nav styles.
   Edit here; every page reflects the change.
   ========================================= */

/* ── Base nav (transparent — for homepage) ─────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 8px 0;
  transition: var(--trans);
}

/* ── Solid variant — all inner pages use this ───────────────── */
.nav--solid {
  background: rgba(8,8,8,0.93);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

/* ── Scrolled state — homepage transitions to solid on scroll ── */
.nav.scrolled {
  background: rgba(8,8,8,0.93);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

/* ── Layout ─────────────────────────────────────────────────── */
.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

/* ── Logo ───────────────────────────────────────────────────── */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; margin-left: -48px; }
.nav-logo img { height: 76px; width: auto; }

/* ── Nav links ──────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--trans-fast);
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold-gradient-simple);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── Right side icons ───────────────────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.nav-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: var(--trans-fast);
}
.nav-icon:hover { color: var(--gold); }
.nav-icon svg { width: 16px; height: 16px; }

/* ── Hamburger button ───────────────────────────────────────── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 34px; height: 34px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-secondary); transition: var(--trans);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile full-screen menu ────────────────────────────────── */
#mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6,6,6,0.97); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 36px; padding: 80px 24px 40px;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-family: var(--font-heading); font-size: 13px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--text-secondary);
  text-decoration: none; transition: var(--trans-fast);
}
#mobile-menu a:hover { color: var(--gold-light); }

/* ── Responsive: show hamburger, hide links ─────────────────── */
@media (max-width: 1100px) {
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-inner {
    justify-content: space-between;
    position: relative;
  }
  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .nav-logo img { height: 56px; }
}

/* ── Push page content below fixed header ───────────────── */
body { padding-top: 92px; }
@media (max-width: 768px) { body { padding-top: 72px; } }
