/* ═══════════════════════════════════════════════════════════════
   nav.css — Slide-out navigation for The Collectors Emporium
   Collectors aesthetic: deep navy, warm gold, clean type
   ═══════════════════════════════════════════════════════════════ */

/* ── Header bar ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 50px;
  background: #0a0f1e;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Gold accent line at very top — like antique book binding */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A84C 20%, #C9A84C 80%, transparent);
}

/* ── Brand name ─────────────────────────────────────────────── */
.site-brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  color: #C9A84C;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 60px);
  opacity: 0.95;
  transition: opacity 0.2s;
}
.site-brand:hover { opacity: 1; }

/* ── Hamburger button ───────────────────────────────────────── */
.nav-toggle {
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:hover {
  border-color: #C9A84C;
  background: rgba(201, 168, 76, 0.08);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #C9A84C;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}

/* Animate to ✕ when open */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; width: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Overlay ────────────────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: all;
}

/* ── Slide-out drawer ───────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1002;
  width: 260px;
  background: #0c1830;
  border-left: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}
.nav-open .site-nav { transform: translateX(0); }

/* Drawer header area */
.site-nav::before {
  content: 'Menu';
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.5);
  padding: 60px 24px 16px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

/* ── Close button ───────────────────────────────────────────── */
.nav-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
  color: #C9A84C;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.nav-close:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: #C9A84C;
}

/* ── Nav links ──────────────────────────────────────────────── */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  flex: 1;
  overflow-y: auto;
}
.site-nav ul li a {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: #c8cfe0;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.site-nav ul li a:hover {
  color: #C9A84C;
  background: rgba(201, 168, 76, 0.07);
  border-left-color: #C9A84C;
}
.site-nav ul li a.active {
  color: #C9A84C;
  border-left-color: #C9A84C;
  background: rgba(201, 168, 76, 0.05);
}

/* Subtle divider between link groups */
.site-nav ul li.nav-divider {
  height: 1px;
  background: rgba(201, 168, 76, 0.1);
  margin: 8px 24px;
}

/* ── Page body offset ───────────────────────────────────────── */
/* Add this class to <body> or wrap in a <div class="page-wrap"> */
body {
  padding-top: 50px;
}

/* ── Focus / accessibility ──────────────────────────────────── */
.nav-toggle:focus-visible,
.nav-close:focus-visible,
.site-nav ul li a:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}
