/* =========================================================
   Ribeira da Serra — v2 visual direction
   "The logo, full-bleed."
   =========================================================
   Lift the three things the logo actually does, and make
   them the whole brand:
   1. Teal as the dominant field, not an accent.
   2. The three white wave-lines as a recurring motif —
      dividers, hero overlay, badge backgrounds.
   3. The white rectangular "aperture" as a literal photo
      frame and section-marker.
   The script wordmark gets used at scale, with confidence.
   ========================================================= */

:root {
  /* === Color: a teal-first scheme === */
  --teal-900: #1c4f5a;        /* deepest — body text on cream */
  --teal-700: #2e7d8c;        /* logo teal — primary surface */
  --teal-500: #4a96a4;        /* mid — hover, links on cream */
  --teal-200: #b8d6dc;        /* tint — borders on cream */
  --teal-50:  #eef5f7;        /* faintest — section bg alt */

  --cream:    #f4ede2;        /* warm paper — main bg */
  --cream-dk: #e8dfd0;        /* paper shadow */
  --ink:      #1a1f23;        /* near-black for body */
  --white:    #ffffff;
  --success:  #17633a;        /* booking calendar ready */
  --danger:   #8a2d22;        /* booking validation/error */

  /* No accent tan this time. Teal carries the brand alone. */

  /* === Type === */
  --serif: 'Fraunces', Georgia, serif;     /* editorial, slightly weird */
  --sans:  'Inter', system-ui, sans-serif; /* utility */
  --script:'Caveat', cursive;              /* matches the logo's hand */

  /* === Rhythm === */
  --rail: clamp(20px, 4vw, 56px);
  --gutter: clamp(16px, 2.5vw, 32px);
  --max: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--cream);
  color: var(--ink);
  scroll-behavior: smooth;
}
body { background: var(--cream); color: var(--ink); overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: 0; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--white);
  color: var(--teal-900);
  border: 2px solid var(--teal-900);
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* =========================================================
   Type system
   ========================================================= */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  line-height: 0.95;
  letter-spacing: 0;
}
.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 3.6rem;
  line-height: 1;
  letter-spacing: 0;
}
.h2 em { font-style: italic; }
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: 0;
}
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--teal-900);
  max-width: 38ch;
}
.eyebrow {
  font-family: var(--script);
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--teal-700);
  line-height: 1;
  display: inline-block;
  transform: rotate(-2deg);
}
.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.body { font-family: var(--sans); font-size: 17px; line-height: 1.65; max-width: 60ch; }
.body p + p { margin-top: 1em; }

/* =========================================================
   Layout shell
   ========================================================= */
.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--rail); }
section[id], aside[id], footer[id] { scroll-margin-top: 96px; }

/* =========================================================
   Wave motif — pulled from the logo, used everywhere
   ========================================================= */
.wave-svg { display: block; width: 100%; height: auto; }
.wave-divider {
  width: 100%;
  height: 56px;
  display: block;
  color: var(--teal-700);
}
.wave-divider svg { width: 100%; height: 100%; }
.wave-divider path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* =========================================================
   Top nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  padding: 18px var(--rail);
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dk);
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  flex: 0 0 auto;
}
.nav__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--teal-700);
  color: var(--white);
  border-radius: 4px;
}
.nav__mark svg { width: 26px; height: 26px; }
.nav__wordmark {
  font-family: var(--script);
  font-size: 1.25rem;
  color: var(--teal-900);
  line-height: 1;
}
.nav__wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-900);
  margin-top: 4px;
}
.nav__links {
  display: flex;
  gap: clamp(14px, 2.1vw, 28px);
  align-items: center;
  min-width: 0;
}
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--teal-200);
  color: var(--teal-900);
  border-radius: 3px;
}
.nav__toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.nav__toggle-close { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle-open { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle-close { display: block; }
.nav__links a {
  font-size: 13px; letter-spacing: 0.04em;
  position: relative; padding: 4px 0;
  color: var(--teal-900);
  white-space: nowrap;
}
.nav__links a:hover { color: var(--teal-900); text-decoration: underline; text-underline-offset: 4px; }
.nav__lang {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; gap: 0; align-items: center;
  border: 1px solid var(--teal-200); border-radius: 3px;
  overflow: hidden;
}
.nav__lang button { padding: 6px 10px; color: var(--teal-900); }
.nav__lang button[aria-pressed="true"] { background: var(--teal-700); color: var(--white); }
.btn-cta {
  background: var(--teal-700); color: var(--white);
  padding: 10px 18px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600;
  transition: background .2s;
}
.btn-cta:hover { background: var(--teal-900); }
.btn-cta:focus-visible { outline-color: var(--teal-900); }
.nav__links > .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-height: 38px;
  min-width: 88px;
  padding: 10px 18px;
  letter-spacing: 0.1em;
  text-align: center;
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 0;
    padding-block: 12px;
  }
  .nav__toggle { display: grid; }
  .nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-top: 1px solid var(--cream-dk);
    font-size: 13px;
    letter-spacing: 0.02em;
  }
  .nav__lang {
    align-self: flex-start;
    margin: 12px 0;
  }
  .nav__lang button { padding: 6px 9px; }
  .nav__links > .btn-cta {
    width: 100%;
    min-height: 36px;
    padding: 9px 14px;
    letter-spacing: 0.08em;
  }
  section[id], aside[id], footer[id] { scroll-margin-top: 72px; }
}

/* =========================================================
   HERO — full-bleed teal slab + framed photo
   ========================================================= */
.hero {
  background: var(--teal-700);
  color: var(--white);
  padding: clamp(48px, 7vw, 96px) 0 0;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(64px, 8vw, 120px);
}
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__copy { padding-top: 24px; }
.hero__eyebrow {
  font-family: var(--script);
  color: var(--white);
  font-size: 2.2rem;
  display: inline-block; transform: rotate(-2deg);
  margin-bottom: 12px;
}
.hero__title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 400;
  font-size: 6.4rem;
  line-height: 0.92;
  letter-spacing: 0;
  margin-bottom: 28px;
}
.hero__title em {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}
.hero__lede {
  font-family: var(--serif); font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
  max-width: 38ch;
  color: var(--white);
  margin-bottom: 36px;
}
.hero__meta {
  display: flex; gap: clamp(20px, 3vw, 48px); flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 24px;
}
.hero__meta .stat { line-height: 1.1; }
.hero__meta .stat-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
}
.stat-unit {
  font-size: .55em;
  font-weight: 400;
  letter-spacing: 0;
}
.hero__meta .stat-lbl {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--white);
  margin-top: 6px;
  display: block;
}

/* The framed photograph — literal aperture from the logo */
.hero__frame {
  position: relative;
  aspect-ratio: 4/5;
  border: 5px solid var(--white);
  background: var(--teal-900);
  overflow: hidden;
  transform: translateY(40px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.hero__frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05);
}

/* The three-wave overlay — mirrors the logo */
.hero__waves {
  position: absolute; left: var(--rail); right: var(--rail);
  bottom: -1px; pointer-events: none;
}
.hero__waves svg { width: 100%; height: 80px; display: block; }
.hero__waves path { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; }

/* Pull-corner script signature stuck to hero */
.hero__signature {
  position: absolute;
  right: clamp(24px, 4vw, 80px);
  top: clamp(20px, 3vw, 36px);
  font-family: var(--script);
  font-size: 1.5rem;
  color: var(--white);
  transform: rotate(-4deg);
}

/* =========================================================
   Booking strip — high-contrast reservation band
   ========================================================= */
.book-strip {
  background: var(--white);
  border-bottom: 1px solid var(--teal-200);
  border-top: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 18px 45px rgba(28,79,90,0.12);
  padding: 28px var(--rail);
  position: relative;
  z-index: 5;
}
.book-strip::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--teal-700);
}
.book-strip__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto;
  gap: clamp(20px, 2.4vw, 32px); align-items: center;
}
@media (max-width: 880px) { .book-strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.book-strip__title {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; line-height: 1.2;
  color: var(--teal-900);
  border-right: 1px solid rgba(46,125,140,0.32);
  padding-right: 24px;
}
@media (max-width: 880px) { .book-strip__title { border-right: 0; padding-right: 0; grid-column: 1/-1; } }

.bs-field {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.bs-field label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal-900); font-weight: 600;
}
.bs-field input, .bs-field select {
  border: 0; border-bottom: 1.5px solid rgba(46,125,140,0.38);
  background: transparent; padding: 6px 0;
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--teal-900);
  min-width: 0;
  width: 100%;
}
.bs-field input:focus, .bs-field select:focus { border-color: var(--teal-700); }
.book-strip .btn-cta { box-shadow: 0 10px 24px rgba(28,79,90,0.18); }
.book-strip__feedback {
  max-width: var(--max);
  margin: 16px auto 0;
}
.booking-status,
.booking-error {
  font-size: 13px;
  color: var(--teal-900);
}
.booking-status[data-status="ready"] { color: var(--success); }
.booking-status[data-status="error"],
.booking-error { color: var(--danger); }
.booking-error { margin-top: 8px; font-weight: 600; }
.booking-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 32px;
  align-items: center;
  border-top: 1px solid var(--teal-200);
  margin-top: 18px;
  padding-top: 18px;
}
.booking-result[hidden] { display: none; }
.booking-result p { color: var(--teal-900); }
.booking-result__total {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--teal-900);
  white-space: nowrap;
}
.booking-result__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.booking-result__link {
  color: var(--teal-900);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.booking-result__note {
  grid-column: 1 / -1;
  font-size: 12px;
  max-width: 76ch;
}
@media (max-width: 500px) {
  .book-strip { padding-inline: var(--rail); }
  .book-strip__inner { grid-template-columns: minmax(0, 1fr); }
  .book-strip__title { grid-column: auto; }
  .book-strip__inner > .btn-cta { width: 100%; }
  .booking-result { grid-template-columns: minmax(0, 1fr); }
  .booking-result__total,
  .booking-result__actions,
  .booking-result__note { grid-column: auto; }
  .booking-result__actions { align-items: stretch; flex-direction: column; }
  .booking-result__actions .btn-cta { width: 100%; text-align: center; }
}

/* =========================================================
   Section: A casa (about) — alternating cream/teal
   ========================================================= */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--cream { background: var(--cream); color: var(--ink); }
.section--teal  { background: var(--teal-700); color: var(--white); }
.section--teal .h2 em,
.section--teal .lede,
.section--teal .eyebrow { color: var(--white); }

.section-head {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; } }
.section-head__lhs .eyebrow { margin-bottom: 16px; }

/* About story grid — image on left, text on right */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 880px) { .story { grid-template-columns: 1fr; } }
.story__photo {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--teal-700);
}
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Decorative offset frame using the logo aperture */
.story__photo::before {
  content: '';
  position: absolute;
  inset: -16px -16px 24px 24px;
  border: 2px solid var(--teal-700);
  z-index: -1;
}

.story__caption {
  font-family: var(--script);
  font-size: 1.4rem;
  color: var(--teal-900);
  margin-top: 16px;
  display: inline-block;
  transform: rotate(-1deg);
}
.story__body { margin-top: 16px; }

/* Numbered side-list */
.facts {
  list-style: none;
  margin-top: 32px;
}
.facts li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--teal-200);
  align-items: baseline;
}
.section--teal .facts li { border-bottom-color: rgba(255,255,255,0.18); }
.facts li:last-child { border-bottom: 0; }
.facts__num {
  font-family: var(--serif); font-style: italic;
  font-size: 1.4rem; color: var(--teal-900);
}
.section--teal .facts__num { color: var(--white); }
.facts__lbl { font-size: 14px; line-height: 1.4; }
.facts__lbl strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; margin-bottom: 4px; }

/* =========================================================
   Rooms — editorial index, not cards
   ========================================================= */
.rooms { display: grid; grid-template-columns: 1fr; gap: 0; }
.room {
  display: grid;
  grid-template-columns: 80px 1.2fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  align-items: center;
}
.section--cream .room { border-top-color: var(--teal-200); }
.room:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.section--cream .room:last-child { border-bottom-color: var(--teal-200); }
@media (max-width: 720px) { .room { grid-template-columns: 1fr; gap: 16px; } }

.room__num {
  font-family: var(--serif); font-style: italic;
  font-size: 3rem;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
}
.section--cream .room__num { color: var(--teal-700); }
.room__name { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; line-height: 1.05; }
.room__name em { font-style: italic; }
.room__meta {
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--white);
  margin-top: 8px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.section--cream .room__meta { color: var(--teal-900); }
.room__meta span { white-space: nowrap; }
.room__photo {
  aspect-ratio: 4/3;
  background: var(--teal-900);
  overflow: hidden;
  position: relative;
}
.room__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.room:hover .room__photo img { transform: scale(1.04); }

/* =========================================================
   Stay details — amenities, rates and house rules
   ========================================================= */
.stay__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
}
.stay__column {
  border-top: 2px solid var(--teal-700);
  padding-top: 22px;
}
.stay__num {
  display: block;
  color: var(--teal-900);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 16px;
}
.stay__column h3 {
  color: var(--teal-900);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 22px;
}
.stay__list {
  list-style: none;
}
.stay__list li {
  border-bottom: 1px solid var(--teal-200);
  padding: 10px 0;
  font-size: 14px;
}
.rates > div,
.rules > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--teal-200);
  padding: 10px 0;
}
.rates dt,
.rules dt { font-size: 14px; }
.rates dd,
.rules dd {
  color: var(--teal-900);
  font-family: var(--serif);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.stay__note {
  color: var(--teal-900);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 18px;
}
@media (max-width: 880px) {
  .stay__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Discover — scrollable horizontal magazine strip
   ========================================================= */
.discover-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 880px) { .discover-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .discover-strip { grid-template-columns: 1fr; } }

.discover-card {
  display: flex; flex-direction: column;
  gap: 14px;
}
.discover-card__photo {
  aspect-ratio: 3/4;
  background: var(--teal-900);
  overflow: hidden;
  position: relative;
}
.discover-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.discover-card__photo::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid var(--white);
  margin: 8px;
  pointer-events: none;
}
.discover-card__num {
  font-family: var(--serif); font-style: italic;
  color: var(--teal-900);
  font-size: 0.9rem;
}
.discover-card__title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; }
.discover-card__title em { font-style: italic; }
.discover-card__dist {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal-900);
  margin-top: -4px;
}

/* =========================================================
   Quote — italic Fraunces, very large, on cream
   ========================================================= */
.quote {
  text-align: center;
  padding: clamp(72px, 10vw, 140px) var(--rail);
  background: var(--cream);
  position: relative;
}
.quote__mark {
  font-family: var(--serif); font-style: italic;
  font-size: 12rem;
  line-height: 0.5;
  color: var(--teal-200);
  display: block;
  margin-bottom: 16px;
}
.quote__text {
  font-family: var(--serif); font-style: italic;
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1.2;
  letter-spacing: 0;
  max-width: 22ch;
  margin: 0 auto 28px;
  color: var(--teal-900);
}
.quote__author {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-900);
}
.quote__author strong { color: var(--teal-900); margin-right: 8px; }

/* =========================================================
   Village — local life, led by the river
   ========================================================= */
.village__photo-frame {
  border: 5px solid var(--white);
  background: var(--teal-900);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  margin-bottom: clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.village__photo {
  aspect-ratio: 2016 / 908;
  background: var(--teal-900);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.village__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 980px) { .village__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .village__grid { grid-template-columns: 1fr; } }

.village__item {
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 22px;
}
.village__num {
  color: var(--white);
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 14px;
}
.village__item h3 {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 12px;
}
.village__item p {
  color: var(--white);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   Gallery and lightbox
   ========================================================= */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, 24vw);
  gap: clamp(10px, 1.5vw, 20px);
}
.gallery__item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--teal-900);
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.gallery__item:hover img { transform: scale(1.035); }
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,0.9);
  pointer-events: none;
}
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: clamp(48px, 6vw, 80px);
  background: rgba(12,29,34,0.96);
  color: var(--white);
}
.lightbox[open] {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
}
.lightbox::backdrop { background: rgba(12,29,34,0.8); }
.lightbox__figure {
  display: grid;
  place-items: center;
  gap: 14px;
  min-width: 0;
}
.lightbox__figure img {
  max-width: min(1100px, 100%);
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox__figure figcaption { font-size: 14px; text-align: center; }
.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
}
@media (max-width: 760px) {
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(150px, 42vw); }
  .lightbox { padding: 64px 12px 20px; }
  .lightbox[open] { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 4px; }
  .lightbox__close,
  .lightbox__nav { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: minmax(220px, 70vw); }
  .gallery__item--wide { grid-column: auto; }
}

/* =========================================================
   Footer — solid teal slab, big script wordmark
   ========================================================= */
.footer {
  background: var(--teal-900);
  color: var(--white);
  padding: clamp(64px, 8vw, 100px) 0 32px;
  position: relative;
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

.footer__brand-block { display: flex; flex-direction: column; gap: 16px; }
.footer__wordmark {
  font-family: var(--script);
  font-size: 3.6rem;
  color: var(--white);
  line-height: 0.95;
}
.footer__intro {
  font-size: 14px;
  line-height: 1.6;
  max-width: 32ch;
}
.footer__col h4 {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--white); }
.footer__col a:hover { color: var(--white); }
.footer__col p { color: var(--white); font-size: 14px; line-height: 1.6; }
.footer__col address { font-size: 14px; font-style: normal; line-height: 1.6; }
.footer__email {
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
}

.footer__waves {
  margin: 0 calc(var(--rail) * -1) -1px;
  width: calc(100% + var(--rail) * 2);
}
.footer__waves svg { width: 100%; height: 70px; display: block; }
.footer__waves path { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 2; stroke-linecap: round; }

.footer__base {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  color: var(--white);
  flex-wrap: wrap; gap: 16px;
}

/* =========================================================
   Legal pages
   ========================================================= */
.legal {
  min-height: 70vh;
  padding: clamp(64px, 9vw, 120px) 0;
}
.legal__header {
  max-width: 780px;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.legal__header .eyebrow { margin-bottom: 18px; }
.legal__header .h2 { margin-bottom: 20px; }
.legal__updated { color: var(--teal-900); font-size: 14px; }
.legal__content {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  max-width: 980px;
}
.legal__content nav {
  align-self: start;
  position: sticky;
  top: 100px;
}
.legal__content nav ol { list-style-position: inside; }
.legal__content nav li + li { margin-top: 8px; }
.legal__content nav a { color: var(--teal-900); text-decoration: underline; text-underline-offset: 3px; }
.legal__body section + section { margin-top: 42px; }
.legal__body h2 {
  color: var(--teal-900);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.legal__body p,
.legal__body li { max-width: 68ch; }
.legal__body p + p,
.legal__body ul { margin-top: 12px; }
.legal__body ul { padding-left: 22px; }
.legal__body a { color: var(--teal-900); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .legal__content { grid-template-columns: 1fr; }
  .legal__content nav { position: static; }
}

/* =========================================================
   Floating actions
   ========================================================= */
.fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal-700); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(28,79,90,0.4);
  z-index: 80;
  transition: transform .2s;
}
.fab:hover { transform: scale(1.06); }
.fab svg { width: 24px; height: 24px; }

@media (max-width: 980px) {
  .h2 { font-size: 2.8rem; }
  .h3 { font-size: 1.55rem; }
  .lede { font-size: 1.25rem; }
  .eyebrow { font-size: 1.6rem; }
  .hero__eyebrow { font-size: 1.9rem; }
  .hero__title { font-size: 4.5rem; }
  .hero__lede { font-size: 1.2rem; }
  .hero__meta .stat-num { font-size: 1.9rem; }
  .hero__signature { font-size: 1.35rem; }
  .booking-result__total { font-size: 2rem; }
  .room__num { font-size: 2.5rem; }
  .room__name { font-size: 1.9rem; }
  .stay__column h3 { font-size: 1.6rem; }
  .quote__mark { font-size: 8rem; }
  .quote__text { font-size: 2rem; }
  .village__item h3 { font-size: 1.5rem; }
  .footer__wordmark { font-size: 3rem; }
}

@media (max-width: 720px) {
  .h2 { font-size: 2.2rem; }
  .h3 { font-size: 1.4rem; }
  .lede { font-size: 1.15rem; }
  .eyebrow { font-size: 1.4rem; }
  .hero__eyebrow { font-size: 1.6rem; }
  .hero__title { font-size: 3.2rem; }
  .hero__lede { font-size: 1.1rem; }
  .hero__meta .stat-num { font-size: 1.6rem; }
  .hero__signature { font-size: 1.2rem; }
  .booking-result__total { font-size: 1.7rem; }
  .room__num { font-size: 2rem; }
  .room__name { font-size: 1.6rem; }
  .stay__column h3 { font-size: 1.45rem; }
  .quote__mark { font-size: 6rem; }
  .quote__text { font-size: 1.6rem; }
  .village__item h3 { font-size: 1.3rem; }
  .footer__wordmark { font-size: 2.4rem; }
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes drift { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -40; } }
.hero__waves path {
  stroke-dasharray: 4 8;
  animation: drift 8s linear infinite;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.reveal { animation: fade-up .9s cubic-bezier(.16,1,.3,1) both; }
.reveal-1 { animation-delay: .1s; }
.reveal-2 { animation-delay: .25s; }
.reveal-3 { animation-delay: .4s; }
.reveal-4 { animation-delay: .55s; }
.reveal-5 { animation-delay: .7s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
