/* ── Site Navigation ──
 * Shared responsive nav with hamburger toggle on mobile.
 * Owns: header nav layout, hamburger button, mobile dropdown.
 * Does NOT own: footer nav, page-specific styles, portal sidebar.
 */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 22, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-nav .nav-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #c4a265;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-nav .nav-brand:hover {
  color: #e8c87a;
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .nav-links a {
  color: rgba(245, 240, 232, 0.75);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  color: #e8c87a;
}

.site-nav .nav-links .nav-cta {
  background: #c4a265;
  color: #1a1614 !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.84rem;
  transition: background 0.2s, transform 0.2s;
}

.site-nav .nav-links .nav-cta:hover {
  background: #e8c87a;
  transform: translateY(-1px);
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f5f0e8;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Animate hamburger → X when open */
.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .site-nav-inner {
    padding: 0 1.25rem;
    height: 56px;
  }

  .nav-hamburger {
    display: block;
  }

  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(26, 22, 20, 0.97);
    padding: 1rem 1.5rem 1.25rem;
    gap: 0;
    border-top: 1px solid rgba(196, 162, 101, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .site-nav .nav-links.open {
    display: flex;
  }

  .site-nav .nav-links a {
    padding: 0.75rem 0;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(245, 240, 232, 0.06);
    width: 100%;
  }

  .site-nav .nav-links a:last-child {
    border-bottom: none;
  }

  .site-nav .nav-links .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    padding: 12px 20px;
  }
}

/* Spacer to prevent content from hiding behind fixed nav */
.nav-spacer {
  height: 64px;
}

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