/* ============================================
   CAVEMEN SOCIAL — SHARED STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

/* ---- Tokens ---- */
:root {
  --ink:        #0f0d0a;
  --bone:       #e8e0d4;
  --bone-dark:  #d4cbbf;
  --gold:       #9a7c4e;
  --gold-light: #b89a68;
  --ember:      #6b3a22;
  --white:      #f9f6f2;
  --text-muted: #7a7065;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --nav-h: 80px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background 0.4s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(15,13,10,0.92);
  backdrop-filter: blur(12px);
}
.site-header.on-light {
  background: rgba(249,246,242,0.95);
  backdrop-filter: blur(12px);
}
.header-logo {
  position: relative;
  z-index: 200;
}
.header-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: opacity 0.3s;
  border-radius: 6px;
}
.logo-dark { display: none; }
.site-header.on-light .logo-dark { display: block; }
.site-header.on-light .logo-light { display: none; }

/* Desktop right side */
.header-right {
  display: flex;
  align-items: center;
  gap: 0;
}
.header-cta {
  background: var(--ink);
  color: var(--white);
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 12px 28px;
  transition: background 0.3s, color 0.3s;
}
.site-header.on-light .header-cta {
  background: var(--ink);
  color: var(--white);
}
.header-cta:hover {
  background: var(--gold);
}
.header-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.35);
  margin: 0 24px;
}
.site-header.on-light .header-divider { background: rgba(15,13,10,0.25); }

/* Hamburger */
.hamburger {
  position: relative;
  z-index: 200;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.45s var(--ease-out), opacity 0.3s, width 0.3s;
  transform-origin: center;
}
/* On light pages, lines always dark */
.site-header.on-light .hamburger span { background: var(--ink); }
/* On dark-hero pages (index), lines go dark once scrolled (header gets semi-dark bg) */
.site-header.scrolled:not(.on-light) .hamburger span { background: var(--white); }

/* Open state — morphs to × */
.hamburger.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ============================================
   FULL-SCREEN NAV OVERLAY — full screen, centred
   ============================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
}
.nav-overlay.is-open {
  pointer-events: all;
  opacity: 1;
}

/* Full-screen bg image layer */
.nav-right {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.nav-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.28);
  transform: scale(1.06);
  transition: transform 9s ease;
}
.nav-overlay.is-open .nav-bg-img { transform: scale(1); }
/* Extra tint for legibility */
.nav-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,8,6,0.52);
}

/* Centred content */
.nav-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 60px 60px;
  background: none;
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-out);
}
.nav-overlay.is-open .nav-left { transform: translateY(0); }

/* Close × — top right corner, desktop overlay */
.nav-close {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 3;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(249,246,242,0.5);
  font-size: 52px;
  font-weight: 100;
  line-height: 52px;
  transition: color 0.3s, transform 0.4s var(--ease-out);
  transform-origin: center center;
  background: none;
  border: none;
  font-family: var(--font-display);
  letter-spacing: 0;
  padding: 0;
  margin: 0;
}
.nav-close:hover {
  color: var(--white);
  transform: rotate(90deg);
}

.nav-logo-overlay { margin-bottom: 52px; }
.nav-logo-overlay img { height: 64px; width: auto; max-width: 240px; border-radius: 8px; }

.nav-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-links-list li { overflow: hidden; }
.nav-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(249,246,242,0.45);
  transition: color 0.3s;
  transform: translateY(100%);
}
.nav-overlay.is-open .nav-link { transform: translateY(0); }
.nav-overlay.is-open .nav-links-list li:nth-child(1) .nav-link { transition: transform 0.65s 0.15s var(--ease-out), color 0.3s; }
.nav-overlay.is-open .nav-links-list li:nth-child(2) .nav-link { transition: transform 0.65s 0.22s var(--ease-out), color 0.3s; }
.nav-overlay.is-open .nav-links-list li:nth-child(3) .nav-link { transition: transform 0.65s 0.29s var(--ease-out), color 0.3s; }
.nav-overlay.is-open .nav-links-list li:nth-child(4) .nav-link { transition: transform 0.65s 0.36s var(--ease-out), color 0.3s; }
.nav-link:hover { color: var(--white); }
.nav-link.is-active { color: var(--gold-light); }

.nav-social {
  margin-top: 52px;
  display: flex;
  gap: 36px;
  justify-content: center;
}
.nav-social a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249,246,242,0.35);
  transition: color 0.3s;
}
.nav-social a:hover { color: var(--white); }

/* ============================================
   MOBILE NAV OVERLAY (full screen)
   ============================================ */
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(249,246,242,0.45);
  font-size: 52px;
  font-family: var(--font-display);
  font-weight: 100;
  line-height: 52px;
  cursor: pointer;
  transition: color 0.3s, transform 0.4s var(--ease-out);
  transform-origin: center center;
  letter-spacing: 0;
  padding: 0;
  margin: 0;
}
.mobile-nav-close:hover,
.mobile-nav-close:active {
  color: var(--white);
  transform: rotate(90deg);
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--ink);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.mobile-nav.is-open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
}
.mobile-nav-links li { overflow: hidden; }
.mobile-nav-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(40px, 10vw, 64px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(249,246,242,0.4);
  transform: translateY(100%);
  transition: color 0.3s;
}
.mobile-nav.is-open .mobile-nav-link {
  animation: slideUp 0.6s var(--ease-out) forwards;
}
.mobile-nav.is-open .mobile-nav-links li:nth-child(1) .mobile-nav-link { animation-delay: 0.1s; }
.mobile-nav.is-open .mobile-nav-links li:nth-child(2) .mobile-nav-link { animation-delay: 0.15s; }
.mobile-nav.is-open .mobile-nav-links li:nth-child(3) .mobile-nav-link { animation-delay: 0.2s; }
.mobile-nav.is-open .mobile-nav-links li:nth-child(4) .mobile-nav-link { animation-delay: 0.25s; }
.mobile-nav-link:hover, .mobile-nav-link.is-active { color: var(--white); }
.mobile-nav-link.is-active { color: var(--gold-light); }
.mobile-nav-reserve {
  display: inline-block;
  border: 1px solid rgba(249,246,242,0.3);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 40px;
  margin-bottom: 40px;
  transition: border-color 0.3s, color 0.3s;
}
.mobile-nav-reserve:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.mobile-nav-footer {
  display: flex;
  gap: 32px;
}
.mobile-nav-footer a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249,246,242,0.35);
  transition: color 0.3s;
}
.mobile-nav-footer a:hover { color: var(--white); }
.mobile-nav-logo {
  margin-bottom: 52px;
}
.mobile-nav-logo img { height: 64px; max-width: 240px; margin: 0 auto; border-radius: 8px; }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-line { overflow: hidden; }
.reveal-line span {
  display: block;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-out);
}
.reveal-line.is-visible span { transform: translateY(0); }

/* stagger */
[data-delay="1"] { transition-delay: 0.1s !important; }
[data-delay="2"] { transition-delay: 0.2s !important; }
[data-delay="3"] { transition-delay: 0.3s !important; }
[data-delay="4"] { transition-delay: 0.4s !important; }
[data-delay="5"] { transition-delay: 0.5s !important; }
[data-delay="6"] { transition-delay: 0.6s !important; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: rgba(249,246,242,0.65);
  padding: 80px 60px 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo img { height: 48px; width: auto; max-width: 180px; margin-bottom: 24px; border-radius: 6px; }
.footer-logo .footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: rgba(249,246,242,0.4);
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.footer-col p, .footer-col a {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(249,246,242,0.55);
  display: block;
}
.footer-col a:hover { color: var(--white); }
.footer-col .footer-link-btn {
  display: inline-block;
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 24px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249,246,242,0.65);
  transition: border-color 0.3s, color 0.3s;
}
.footer-col .footer-link-btn:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(249,246,242,0.35);
  transition: color 0.3s;
}
.footer-bottom-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(249,246,242,0.3);
}
.footer-payment {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-payment img { height: 48px; opacity: 0.55; }

/* ============================================
   UTILITIES
   ============================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.body-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-muted);
  font-weight: 300;
}
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 40px;
  transition: background 0.3s, color 0.3s;
}
.btn-primary:hover { background: var(--gold); }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 40px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}
.divider {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 32px 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .site-header { padding: 0 24px; }
  .header-cta, .header-divider { display: none; }
  .nav-overlay { display: none; }
  .mobile-nav { display: flex; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    padding: 0 0 48px;
  }
  .footer-logo { grid-column: 1 / -1; }
  .site-footer { padding: 60px 24px 32px; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-links { flex-wrap: wrap; gap: 16px; }
}
