/* ============================================================
   Rainier Retreat — Majestic Shenandoah
   ============================================================ */

:root {
  --ink: #23261f;
  --ink-soft: #4a4d42;
  --paper: #faf8f3;
  --paper-dim: #f1ede2;
  --line: #e2ddcd;
  --forest: #2f4032;
  --forest-dark: #1f2c22;
  --brass: #b08a4e;
  --brass-light: #d9b878;
  --white: #ffffff;
  --shadow: 0 20px 50px -20px rgba(20, 20, 10, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(20, 20, 10, 0.3);
  --radius: 14px;
  --radius-sm: 8px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--forest-dark);
}

p { line-height: 1.7; color: var(--ink-soft); margin: 0 0 1em; }

a { color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}
.section--tight { padding: 64px 0; }
.section--dim { background: var(--paper-dim); }
.section--dark {
  background: var(--forest-dark);
  color: #e9e6da;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #f5f2e7; }
.section--dark p { color: #c7c9bb; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--brass);
  color: #211a0e;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brass-light); }
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: inherit;
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--dark {
  background: var(--forest-dark);
  color: #f5f2e7;
}
.btn--dark:hover { background: var(--forest); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.is-scrolled {
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brass-light);
}
.site-header.is-scrolled .brand { color: var(--forest-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.3s ease;
}
.nav-links a:hover { opacity: 1; }
.site-header.is-scrolled .nav-links a { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  display: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  transition: color 0.3s ease;
}
.site-header.is-scrolled .nav-phone { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s ease;
}
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,22,16,0.35) 0%, rgba(20,22,16,0.15) 35%, rgba(15,17,12,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 140px 0 72px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 0.18em;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 620px;
  color: #eef0e6;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 26px;
}
.hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--white);
}
.hero-stat span {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfd2c3;
}

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.intro-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.intro-media img { width: 100%; height: 100%; object-fit: cover; }
.intro h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.intro-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.intro-list li {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.intro-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--brass);
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--paper-dim);
  color: var(--forest);
  margin-bottom: 18px;
  font-size: 1.3rem;
}
.feature-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 10px;
}
.gallery-grid button {
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-dim);
  position: relative;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid button:hover img { transform: scale(1.06); }
.gallery-grid .g-tall { grid-row: span 2; }
.gallery-grid .g-wide { grid-column: span 2; }

.gallery-more {
  margin-top: 28px;
  text-align: center;
}
.gallery-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 11, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 50%;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-count {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: #d8dacb;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ---------- Sleeping arrangements ---------- */
.bed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bed-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.bed-card .bed-num {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 6px;
}
.bed-card h4 { font-size: 1.05rem; margin: 0; }

.floorplan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.floorplan-grid figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.floorplan-grid img { border-radius: 6px; cursor: zoom-in; }
.floorplan-grid figcaption {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- Amenities ---------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 40px;
}
.amenity-group h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-family: var(--sans);
  font-weight: 700;
  margin-bottom: 14px;
}
.amenity-group ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.amenity-group li {
  font-size: 0.94rem;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.amenity-group li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.85rem;
}
.amenity-group li.no::before { content: "✕"; color: #a24b3f; }

/* ---------- House rules ---------- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.rule-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.rule-card h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--brass-light);
  margin-bottom: 8px;
}
.rule-card p { color: #d3d5c6; font-size: 0.92rem; margin: 0; }

/* ---------- Reviews ---------- */
.review-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.review-strip .stars { color: var(--brass); font-size: 1.2rem; letter-spacing: 2px; }
.review-strip strong { font-family: var(--serif); font-size: 1.2rem; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.review-card .stars { color: var(--brass); letter-spacing: 2px; margin-bottom: 12px; display: block; }
.review-card p { font-style: italic; color: var(--ink); margin-bottom: 14px; }
.review-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.location-list {
  list-style: none;
  margin: 24px 0 0; padding: 0;
  display: grid; gap: 14px;
}
.location-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
  font-size: 0.95rem;
}
.location-list li span:first-child { color: var(--ink); font-weight: 500; }
.location-list li span:last-child { color: var(--ink-soft); }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Booking ---------- */
.rate-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}
.rate-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.rate-card .amount {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--forest-dark);
  display: block;
}
.rate-card .amount small { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); }
.rate-card span.label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 700;
  margin-top: 6px;
}

.booking-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.tab-btn {
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.tab-btn.is-active {
  background: var(--forest-dark);
  color: #f5f2e7;
  border-color: var(--forest-dark);
}
.booking-frame-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
}
.booking-frame-wrap iframe {
  width: 100%;
  height: 760px;
  border: 0;
  display: block;
}
.booking-frame { display: none; }
.booking-frame.is-active { display: block; }
.booking-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-dark);
  color: #cfd2c3;
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-top h4 {
  color: #f5f2e7;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-brand .brand { color: #f5f2e7; }
.footer-brand p { max-width: 320px; margin-top: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; font-size: 0.92rem; color: #cfd2c3; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.82rem;
  color: #9fa294;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr; }
  .rate-strip { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .bed-grid { grid-template-columns: 1fr 1fr; }
  .floorplan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-sm);
  }
  .site-header.nav-open .nav-links a { color: var(--ink); }
  .section { padding: 64px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .bed-grid { grid-template-columns: 1fr; }
  .booking-frame-wrap iframe { height: 640px; }
}
