/**
 * Site header + mobile menu — loaded on every page.
 * Mobile menu is a sibling of .site-header (not nested inside it) so
 * backdrop-filter on the header does not break position:fixed full-screen overlay.
 */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(to bottom, rgba(34,35,26,0.85) 0%, rgba(34,35,26,0.55) 70%, rgba(34,35,26,0) 100%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.3s;
}

.site-header.scrolled {
  background: rgba(34,35,26,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  padding: 0.85rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1500px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  max-height: 64px;
  width: auto;
  transition: opacity 0.25s;
}

.brand:hover .brand-logo {
  opacity: 0.85;
}

.brand-name {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--peach, #E89A6A);
  white-space: nowrap;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream, #D4D0CB);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
  padding: 0.4rem 0;
}

.primary-nav a:hover,
.primary-nav a.current {
  color: var(--peach, #E89A6A);
}

.primary-nav a.current::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--peach, #E89A6A);
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.header-phone {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream, #D4D0CB);
  text-decoration: none;
  transition: color 0.25s;
}

.header-phone:hover {
  color: var(--peach, #E89A6A);
}

.header-cta {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--peach, #E89A6A);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--peach-light, #F2B384);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  width: 44px;
  height: 44px;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.25s;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--peach, #E89A6A);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--cream, #D4D0CB);
  transition: transform 0.3s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Full-screen overlay — must NOT be inside .site-header */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(34,35,26,0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s, visibility 0.35s;
  padding: 6rem 2rem 3rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.mobile-menu a {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--warm-white, #fff);
  text-decoration: none;
  transition: color 0.25s;
}

.mobile-menu a:hover {
  color: var(--peach, #E89A6A);
}

.mobile-menu .mm-cta {
  background: var(--peach, #E89A6A);
  color: #fff;
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 2px;
}

.mobile-menu .mm-phone {
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream, #D4D0CB);
}

.mobile-menu .mm-divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

body.mobile-nav-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .primary-nav,
  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {
  .header-inner {
    padding: 0.85rem 1.5rem;
  }

  .brand-logo {
    max-height: 52px;
  }

  .header-cta {
    padding: 0.65rem 1rem;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .header-cta {
    display: none;
  }

  .mobile-menu a {
    font-size: 1.45rem;
  }
}
