/* ============================================================
   Riverside Forest Retreat — styles (v1)
   Palette: forest greens + warm wood, lots of white space.
   Mobile-first; one breakpoint at 720px for layout.
   ============================================================ */

:root {
  /* Colour palette */
  --forest:      #2f4434;  /* deep forest green */
  --forest-soft: #4a6350;  /* muted green */
  --bark:        #6b5544;  /* warm wood brown */
  --sand:        #f4efe6;  /* warm off-white */
  --paper:       #fbf9f5;  /* page background */
  --ink:         #2b2620;  /* body text */
  --muted:       #7a7468;  /* secondary text */
  --line:        #e3ddd0;  /* hairlines */

  /* Type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --maxw: 1120px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img,
.img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Reusable bits ---------- */

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bark);
  margin: 0 0 1rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1;
  color: var(--forest);
  margin: 0;
}

.muted { color: var(--muted); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--forest);
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--forest-soft); transform: translateY(-2px); }

/* Placeholder grey boxes — swap each for an <img class="img"> later */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      #e9e4d9,
      #e9e4d9 14px,
      #e4ded2 14px,
      #e4ded2 28px
    );
  border-radius: 6px;
  min-height: 220px;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #9a9384;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 2rem);
}
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--bark); }
.nav-cta {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--forest);
  border-radius: 999px;
  color: var(--forest) !important;
}
.lang-toggle {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { border-color: var(--bark); color: var(--bark); }
/* Hide text links on small screens, keep the Contact pill */
@media (max-width: 560px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- Layout shells ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.section--soft {
  max-width: none;
  background: var(--sand);
}
.section--soft > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  border-radius: 0;
  min-height: 0;
}
.hero-media::after { color: #cfc8b8; font-size: 1rem; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(31, 40, 33, 0.72) 0%,
    rgba(31, 40, 33, 0.28) 45%,
    rgba(31, 40, 33, 0.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--paper);
  padding: var(--gutter);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  max-width: 640px;
}
.hero-content .eyebrow { color: #e7ddc8; }
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.02;
  margin: 0 0 1rem;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 300;
  margin: 0 0 2rem;
  max-width: 32ch;
}

/* ---------- Intro ---------- */

.intro { max-width: 820px; text-align: center; }
.intro-text {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  line-height: 1.5;
  color: var(--forest);
  font-weight: 400;
  margin: 0;
}

/* ---------- Gallery (editorial, mixed sizes) ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.gallery .g-tall { height: 420px; }
@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 1.25rem;
  }
  /* Tall tiles span two rows; wide tiles span two columns. Height fills the cell. */
  .gallery img,
  .gallery .g-tall { height: 100%; }
  .g-tall { grid-row: span 2; }
  .g-wide { grid-column: span 2; }
}

/* ---------- Key facts ---------- */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
}
.fact { display: flex; flex-direction: column; gap: 0.35rem; }
.fact-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--bark);
  line-height: 1;
}
.fact-label {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Amenities ---------- */

.amenity-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 720px) {
  .amenity-groups { grid-template-columns: 1fr 1fr; }
}
.amenity-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--forest);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.amenity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.amenity-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0;
  font-size: 1.02rem;
}
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
  background: var(--sand);
  border-radius: 50%;
  font-size: 1.05rem;
}
.section--soft .ico { background: var(--paper); }

/* ---------- Explore ---------- */

.section-intro {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
}
.explore-feature {
  width: 100%;
  height: clamp(240px, 42vw, 460px);
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.explore-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
}
@media (min-width: 720px) {
  .explore-list {
    grid-template-columns: 1fr 1fr;
    gap: 2.75rem 3.25rem;
  }
}
.activity {
  display: flex;
  gap: 1.1rem;
}
.activity h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--forest);
  margin: 0.1rem 0 0.5rem;
}
.activity p { margin: 0 0 0.75rem; font-size: 0.98rem; }
.activity-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bark);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s ease;
}
.activity-link:hover { color: var(--forest); }

/* ---------- Hero CTAs / ghost button ---------- */

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--forest);
  color: var(--forest);
}
.btn--ghost:hover { background: var(--forest); color: var(--paper); }
/* On the dark hero, the ghost button needs light borders/text */
.hero .btn--ghost { border-color: rgba(244, 239, 230, 0.6); color: var(--paper); }
.hero .btn--ghost:hover { background: rgba(244, 239, 230, 0.14); color: var(--paper); }

/* ---------- Why stay (value props) ---------- */

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}
@media (min-width: 720px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
}
.value { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.value h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--forest);
  margin: 0 0 0.5rem;
}
.value p { margin: 0; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--forest);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--bark);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- Booking ---------- */

.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 840px) {
  .book-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.book-lead { font-size: 1.1rem; margin: 0 0 1.5rem; max-width: 46ch; }
.benefits { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.benefits li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.9rem;
}
.benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--forest-soft);
  font-weight: 600;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Contact ---------- */

.contact-card {
  max-width: 560px;
}
.contact-line {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}
.contact-key {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark);
  min-width: 4.5rem;
}
.contact-line a {
  font-family: var(--serif);
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.contact-line a:hover { border-color: var(--forest); }
.contact-loc { margin: 1.5rem 0 0; font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest);
  color: var(--sand);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}
.footer-fine {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 230, 0.7);
}

/* ---------- Availability calendar (read-only) ---------- */

.cal { max-width: 540px; }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.cal-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--forest);
}
.cal-nav {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--bark);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cal-nav:hover { border-color: var(--bark); color: var(--forest); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cal-grid[data-cal-days] { margin-top: 5px; }
.cal-weekday {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0;
}
.cal-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 0.95rem;
  background: var(--sand);
  color: var(--ink);
}
.cal-day--empty { background: transparent; }
.cal-day--booked {
  background: var(--forest);
  color: var(--paper);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.cal-day--past { opacity: 0.4; }
.cal-day--today { box-shadow: inset 0 0 0 2px var(--bark); }
.cal-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.cal-legend .swatch {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 3px;
  margin-right: 0.45rem;
  vertical-align: -2px;
}
.swatch--free { background: var(--sand); box-shadow: inset 0 0 0 1px var(--line); }
.swatch--booked { background: var(--forest); }
.cal-meta { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }
