/* ============================================================
   MOONLIGHT RIDGE — Main Stylesheet
   Palette: Obsidian / Cedar Gold / Warm White / Terracotta
   ============================================================ */

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

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --obsidian:    #1a1a1a;
  --obsidian-90: rgba(26,26,26,0.9);
  --obsidian-60: rgba(26,26,26,0.6);
  --cedar:       #C9973A;
  --cedar-light: #E8C47A;
  --warm-white:  #F7F3EE;
  --terracotta:  #C4714A;
  --muted:       #8a8478;
  --border:      rgba(201,151,58,0.2);

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --max-width: 1280px;
  --section-pad: clamp(4rem, 8vw, 8rem);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--obsidian);
  color: var(--warm-white);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: rgba(247,243,238,0.85);
  max-width: 62ch;
}

.serif { font-family: var(--font-serif); }
.cedar { color: var(--cedar); }
.muted { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.centered { text-align: center; }
.centered p { margin-inline: auto; }

/* ── Layout ── */
.container {
  width: min(var(--max-width), 100%);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

section { padding-block: var(--section-pad); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--cedar);
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: var(--cedar);
  color: var(--obsidian);
}
.btn-primary:hover { background: var(--cedar-light); border-color: var(--cedar-light); }

.btn-ghost {
  background: transparent;
  color: var(--warm-white);
  border-color: rgba(247,243,238,0.4);
}
.btn-ghost:hover { border-color: var(--warm-white); }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.4s;
}

.nav.scrolled {
  background: var(--obsidian-90);
  padding-block: 0.85rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--warm-white);
}

.nav-logo span { color: var(--cedar); }

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

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,243,238,0.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--warm-white); }

.nav-book {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  background: var(--cedar);
  color: var(--obsidian);
  font-weight: 500;
  transition: background 0.2s;
}
.nav-book:hover { background: var(--cedar-light); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--warm-white);
  transition: 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,26,26,0.95) 0%,
    rgba(26,26,26,0.4) 50%,
    rgba(26,26,26,0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--cedar);
}

.hero h1 {
  color: var(--warm-white);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--cedar-light);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(247,243,238,0.75);
  max-width: 46ch;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(247,243,238,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  writing-mode: vertical-rl;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(247,243,238,0.4), transparent);
  margin-top: 0.5rem;
}

/* ── Section: The Place ── */
.section-place {
  background: var(--obsidian);
  border-top: 1px solid var(--border);
}

.place-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.place-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.place-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.place-image:hover img { transform: scale(1.03); }

.place-image-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 4px solid var(--obsidian);
}
.place-image-accent img { width: 100%; height: 100%; object-fit: cover; }

.place-text { padding-block: 2rem; }
.place-text .muted { margin-bottom: 1.25rem; }
.place-text h2 { margin-bottom: 1.75rem; }
.place-text p { margin-bottom: 1.25rem; }

.drive-times {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.drive-time { display: flex; flex-direction: column; gap: 0.2rem; }
.drive-time strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cedar);
  font-weight: 300;
}
.drive-time span { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; }

/* ── Section: The Experience ── */
.section-experience {
  background: var(--warm-white);
}

.section-experience .muted { color: var(--cedar); }
.section-experience h2, .section-experience h3 { color: var(--obsidian); }
.section-experience p { color: #555; }

.experience-intro {
  max-width: 72ch;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.experience-intro .muted { margin-bottom: 1rem; }
.experience-intro h2 { margin-bottom: 1.5rem; }
.experience-intro p { font-size: clamp(1rem, 1.4vw, 1.1rem); margin-inline: auto; }

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(0,0,0,0.08);
}

.experience-card {
  background: #fff;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.experience-card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
  margin: -1.5rem -1.5rem 1.75rem;
}
.experience-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.experience-card:hover .experience-card-img img { transform: scale(1.05); }

.experience-card .muted { margin-bottom: 0.75rem; }
.experience-card h3 { margin-bottom: 1rem; color: var(--obsidian); }

/* ── Section: Hot Tub Feature ── */
.section-hottub {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hottub-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hottub-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hottub-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,26,26,0.92) 0%,
    rgba(26,26,26,0.6) 50%,
    rgba(26,26,26,0.2) 100%
  );
}

.hottub-content {
  position: relative;
  z-index: 2;
  max-width: 52ch;
}

.hottub-content .muted { margin-bottom: 1.25rem; }
.hottub-content h2 { margin-bottom: 1.75rem; }
.hottub-content p { margin-bottom: 1.25rem; }
.hottub-content .btn { margin-top: 1rem; }

/* ── Section: Amenities ── */
.section-amenities { background: var(--warm-white); }

.amenities-header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.amenities-header .muted { margin-bottom: 1rem; color: var(--cedar); }
.amenities-header h2 { margin-bottom: 1rem; color: var(--obsidian); }
.amenities-header p { color: #666; }

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(0,0,0,0.08);
}

.amenity-item {
  background: #fff;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
}
.amenity-item:hover { background: #f8f5f0; }

.amenity-icon {
  width: 2rem;
  height: 2rem;
  color: var(--cedar);
}

.amenity-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--obsidian);
}

.amenity-item span {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
}

/* ── Section: Gallery ── */
.section-gallery { background: #141414; padding-bottom: 0; }

.gallery-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.gallery-header .muted { margin-bottom: 1rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 4px;
}

.gallery-item { overflow: hidden; cursor: pointer; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s;
}
.gallery-item:hover img { transform: scale(1.04); opacity: 0.9; }

.g-wide  { grid-column: span 2; }
.g-tall  { grid-row: span 2; }
.g-med   { grid-column: span 1; }
.g-full  { grid-column: span 3; grid-row: span 1; max-height: 420px; }

.gallery-cta {
  text-align: center;
  padding: 3rem;
}

/* ── Section: Reviews ── */
.section-reviews { background: var(--obsidian); }

.reviews-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.reviews-header .muted { margin-bottom: 1rem; }

.rating-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.stars {
  display: flex;
  gap: 4px;
}
.stars span {
  color: var(--cedar);
  font-size: 1.1rem;
}

.rating-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--cedar);
  font-weight: 300;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--border);
  margin-bottom: 3rem;
}

.review-card {
  background: var(--obsidian);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.review-card blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--warm-white);
  margin-bottom: 1.5rem;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cedar);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--obsidian);
  flex-shrink: 0;
}
.review-author strong { font-size: 0.82rem; font-weight: 500; }
.review-author span { font-size: 0.72rem; color: var(--muted); }

/* ── Section: The Gorge ── */
.section-gorge {
  background: #141414;
  border-top: 1px solid var(--border);
}

.gorge-intro { text-align: center; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.gorge-intro .muted { margin-bottom: 1rem; }
.gorge-intro h2 { margin-bottom: 1.25rem; }
.gorge-intro p { margin-inline: auto; }

.gorge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 3rem;
}

.gorge-card {
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color 0.2s;
}
.gorge-card:hover { border-color: var(--cedar); }

.gorge-card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: 1rem;
}

.gorge-card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.gorge-card p { font-size: 0.88rem; color: rgba(247,243,238,0.65); max-width: none; }

.gorge-cta { text-align: center; }

/* ── Section: Book ── */
.section-book {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.book-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/book-bg.jpg');
  background-size: cover;
  background-position: center 30%;
}

.book-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.82);
}

.book-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 64ch;
  margin-inline: auto;
}

.book-content .muted { margin-bottom: 1.25rem; }
.book-content h2 { margin-bottom: 1.25rem; }
.book-content p { margin-inline: auto; margin-bottom: 2.5rem; font-size: 1.05rem; }

.book-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.book-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── Email Capture ── */
.section-email {
  background: #111;
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.email-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.email-text .muted { margin-bottom: 1rem; }
.email-text h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.email-text p { font-size: 0.9rem; }

.email-form { display: flex; flex-direction: column; gap: 1rem; }

.email-form input[type="email"] {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(247,243,238,0.06);
  border: 1px solid var(--border);
  color: var(--warm-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.email-form input[type="email"]::placeholder { color: var(--muted); }
.email-form input[type="email"]:focus { border-color: var(--cedar); }

.email-form .btn { width: 100%; justify-content: center; }

.email-disclaimer {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  background: var(--obsidian);
  border-top: 1px solid var(--border);
  padding-block: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
}

.footer-brand .nav-logo { font-size: 1.1rem; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.82rem; color: var(--muted); max-width: 36ch; line-height: 1.7; }

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--warm-white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.72rem; color: var(--muted); max-width: none; }
.footer-managed { font-size: 0.72rem; color: var(--muted); }
.footer-managed a { color: var(--muted); transition: color 0.2s; }
.footer-managed a:hover { color: var(--warm-white); }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(247,243,238,0.3);
  color: var(--warm-white);
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.lightbox-close:hover { border-color: var(--warm-white); }

/* ── Mobile Nav ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--obsidian);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--warm-white);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--cedar); }
.mobile-nav .btn { margin-top: 1rem; }

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .place-grid { grid-template-columns: 1fr; }
  .place-image-accent { display: none; }
  .experience-grid { grid-template-columns: 1fr 1fr; }
  .email-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-auto-rows: 220px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-book { display: none; }
  .nav-hamburger { display: flex; }
  .experience-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .g-wide, .g-med, .g-full { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
  .hottub-overlay {
    background: rgba(26,26,26,0.75);
  }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .drive-times { gap: 1.5rem; }
  .book-ctas { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-wide, .g-med, .g-full { grid-column: span 1; }
}

/* ── Mobile Sticky Book Bar ── */
.mobile-book-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(26,26,26,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201,151,58,0.25);
}
.mobile-book-bar .btn {
  width: 100%;
  justify-content: center;
}
@media (max-width: 768px) {
  .mobile-book-bar { display: block; }
  body { padding-bottom: 72px; }
}
