/* ══════════════════════════════════════
   Shared navbar — included on every page
══════════════════════════════════════ */

:root {
  --purple:      #3a1545;
  --purple-mid:  #4e1f60;
  --purple-glow: #6b2d87;
  --gold:        #c9a96e;
  --gold-light:  #e2c992;
  --gold-dark:   #a8854a;
  --white:       #ffffff;
  --cream:       #faf8f5;
  --text:        #1e0f2b;
}

/* ── Base nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: var(--purple);
  border-bottom: 1px solid rgba(201,169,110,0.2);
}

.nav-logo img { height: 44px; width: auto; }

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

.nav-links > li > a {
  color: rgba(255,255,255,0.88);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}

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

.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--gold); }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { width: 100%; }

.nav-book {
  background: var(--gold) !important;
  color: var(--purple) !important;
  padding: 9px 22px;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  border-radius: 1px;
  transition: background 0.25s, transform 0.2s !important;
}
.nav-book::after { display: none !important; }
.nav-book:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

/* ── Dropdown ── */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(40, 10, 55, 0.97);
  backdrop-filter: blur(16px);
  min-width: 210px;
  padding: 22px 0 10px;
  list-style: none;
  border: 1px solid rgba(201,169,110,0.25);
  border-top: 2px solid var(--gold);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 10px 22px;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s, padding-left 0.2s;
}
.dropdown-menu li a:hover {
  color: var(--gold);
  padding-left: 28px;
}

/* ── Chevron ── */
.nav-chevron {
  display: inline-block;
  width: 10px; height: 10px;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform 0.25s;
}
.dropdown:hover .nav-chevron { transform: rotate(180deg); }

/* ── Hamburger (mobile) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: rgba(255,255,255,0.88);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1), opacity 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile overlay ── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(20, 5, 32, 0.98);
  backdrop-filter: blur(18px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
}
.mobile-nav-overlay.open { display: flex; }

.mobile-nav-links {
  list-style: none;
  text-align: center;
  width: 100%;
  max-width: 320px;
}
.mobile-nav-links li {
  border-bottom: 1px solid rgba(201,169,110,0.12);
}
.mobile-nav-links li:first-child {
  border-top: 1px solid rgba(201,169,110,0.12);
}
.mobile-nav-links li a {
  display: block;
  padding: 18px 24px;
  color: rgba(255,255,255,0.78);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.mobile-nav-links li a:hover { color: var(--gold); }
.mobile-nav-links li a.mobile-book {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2.5px;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-dropdown-toggle svg {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 2;
  transition: transform 0.3s;
}
.mobile-sub-open .mobile-dropdown-toggle svg { transform: rotate(180deg); }

.mobile-dropdown-menu {
  display: none;
  list-style: none;
  background: rgba(255,255,255,0.04);
  padding: 4px 0 8px;
}
.mobile-sub-open .mobile-dropdown-menu { display: block; }
.mobile-dropdown-menu li a {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.5);
  padding: 10px 24px;
  border-bottom: none;
}
.mobile-dropdown-menu li a:hover { color: var(--gold); }

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
