/* ==========================================================================
   Karisimbi Cave Resort, site styles
   Design language: "Seed" reference (Refero) adapted to a boutique resort.
   Flat colour fields, whisper-light headings, pill controls, no shadows,
   no gradients, alternating snow-white and forest-depths bands.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Colour */
  --forest: #1f7d3d;          /* Forest: primary text, CTAs, dark bands */
  --forest-deep: #17602f;     /* Darker band, used beside forest bands so sections stay distinct */
  --forest-darkest: #0c4621;  /* Footer */
  --lime: #d3fa99;            /* Lime Pulse: badges and small emphasis only */
  --sage: #757c5d;            /* Sage Moss */
  --olive: #9f995b;           /* Olive Gold */
  --eucalyptus: #698e79;      /* Eucalyptus */
  --snow: #fcfcf7;            /* Snow White: canvas */
  --stone: #eeeee9;           /* Warm Stone: card surface */
  --frost: #c4c7c4;           /* Frosted Glass */
  --ash: #b3b3b3;             /* Ash: disabled */
  --pewter: #666666;          /* Pewter: secondary text */
  --ink: #000000;

  /* Derived text tones (for AA contrast on each surface) */
  --text-muted: #4f5a4b;      /* forest-tinted secondary text on snow */
  --text-on-dark-muted: rgba(252, 252, 247, 0.74);
  --line: rgba(31, 125, 61, 0.16);
  --line-on-dark: rgba(252, 252, 247, 0.2);
  --error: #8a2a1e;
  --success: #1f7d3d;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape */
  --radius-input: 8px;
  --radius-card: 16px;
  --radius-large: 32px;
  --radius-pill: 1000px;

  /* Layout */
  --max: 1200px;
  --pad: 24px;
  --section: clamp(64px, 9vw, 112px);
  --header-h: 80px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--forest);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0 0 0.45em;
  font-weight: 300;
  color: var(--forest);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 { font-size: clamp(44px, 5.6vw, 72px); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(34px, 3.8vw, 48px); letter-spacing: -0.025em; }
h3 { font-size: 24px; font-weight: 350; letter-spacing: -0.015em; line-height: 1.2; }
h4 { font-size: 18px; font-weight: 400; letter-spacing: 0; line-height: 1.3; }

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  font-weight: 350;
  letter-spacing: -0.01em;
  color: var(--forest);
}
.muted { color: var(--text-muted); }

/* Mono "spec" label, used for codes, captions and metadata */
.label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.code {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.015em;
  padding: 7px 10px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-pill);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--forest);
  white-space: nowrap;
}

.section { padding: var(--section) 0; }
.section--dark { background: var(--forest); color: var(--snow); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--snow); }
.section--dark p { color: var(--text-on-dark-muted); }
.section--dark .lead { color: var(--snow); }
.section--dark .eyebrow { color: var(--lime); }

.container {
  width: min(var(--max), 100% - (var(--pad) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  background: var(--forest);
  color: var(--snow);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.section--dark :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible { outline-color: var(--lime); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:disabled { background: var(--ash); border-color: var(--ash); color: var(--snow); cursor: not-allowed; }

.btn--primary { background: var(--forest); color: var(--snow); }
.btn--primary:hover { background: #186432; }

.btn--light { background: var(--snow); color: var(--forest); }
.btn--light:hover { background: var(--stone); }

.btn--ghost { border-color: var(--snow); color: var(--snow); }
.btn--ghost:hover { background: var(--snow); color: var(--forest); }

.btn--outline { border-color: var(--forest); color: var(--forest); background: var(--snow); }
.btn--outline:hover { background: var(--forest); color: var(--snow); }

.btn--block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 1.5px solid currentColor;
  transition: gap 0.35s var(--ease);
}
.text-link::after { content: "\2192"; font-weight: 400; }
.text-link:hover { gap: 14px; }
.section--dark .text-link { color: var(--snow); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--snow);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--forest);
  margin-top: 2px;
}
.brand-sub { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  position: relative;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  padding: 8px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { min-height: 44px; padding: 11px 20px; font-size: 15px; }
.nav-mobile-cta,
.nav-home { display: none; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--forest);
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (text left, image right, Seed composition) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
}
.hero-copy { padding-left: 0; }
.hero-copy .lead { max-width: 520px; margin-bottom: 36px; color: var(--forest); }
.hero-copy .btn-row { gap: 12px 24px; }
.hero-media {
  position: relative;
  height: clamp(440px, 68vh, 640px);
  border-radius: var(--radius-large);
  overflow: hidden;
  background: var(--stone);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: settle 1.6s var(--ease) both;
}
.hero-facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

/* Inner page header: headline left, image right, same structure */
.page-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
}
.page-intro h1 { font-size: clamp(44px, 5vw, 64px); }
.page-intro p { color: var(--text-muted); font-size: 18px; max-width: 520px; }
.page-intro .media-wide {
  grid-row: 1 / span 2;
  grid-column: 2;
  height: clamp(300px, 46vh, 460px);
  border-radius: var(--radius-large);
  overflow: hidden;
}
.page-intro .media-wide img { width: 100%; height: 100%; object-fit: cover; }
.page-intro-copy { grid-column: 1; }

/* ---------- Editorial split layouts ---------- */
.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split--wide-media { grid-template-columns: 6fr 5fr; }
.split--reverse .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--stone);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.split-media--land img { aspect-ratio: 4 / 3; }
.split-copy p { color: var(--text-muted); }
.section--dark .split-copy p { color: var(--text-on-dark-muted); }
.split-copy .btn-row { margin-top: 28px; }

/* Overlapping layered photography (dining) */
.layered { position: relative; padding-bottom: 12%; padding-right: 22%; }
.layered .layer-main { border-radius: var(--radius-large); overflow: hidden; aspect-ratio: 5 / 4; }
.layered .layer-main img { width: 100%; height: 100%; object-fit: cover; }
.layered .layer-top {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 10px solid var(--snow);
  aspect-ratio: 3 / 4;
}
.layered .layer-top img { width: 100%; height: 100%; object-fit: cover; }

/* Numbered specification rows (replaces generic card grids) */
.spec-list { border-top: 1px solid var(--line); }
.spec-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.spec-row .num { font-family: var(--font-mono); font-size: 12px; padding-top: 4px; }
.spec-row h3 { margin: 0 0 6px; }
.spec-row p { margin: 0; color: var(--text-muted); font-size: 16px; }
.section--dark .spec-row { border-color: var(--line-on-dark); }
.section--dark .spec-row p { color: var(--text-on-dark-muted); }
.section--dark .spec-list { border-color: var(--line-on-dark); }

.mono-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

/* ---------- Accommodation rows ---------- */
.room-stack { display: grid; gap: clamp(64px, 8vw, 104px); }
.room {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.room--flip { grid-template-columns: 5fr 7fr; }
.room--flip .room-media { order: 2; }
.room-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--stone);
}
.room-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.room:hover .room-media img { transform: scale(1.03); }
.room-body .code { margin-bottom: 20px; }
.room-body h3 { font-size: clamp(30px, 3vw, 40px); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 14px; }
.room-body p { color: var(--text-muted); max-width: 480px; }
.room-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
}
.room-specs span {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: var(--stone);
}
.room-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 26px;
}
.room-price strong { font-size: 32px; font-weight: 300; letter-spacing: -0.02em; }
.room-price span { font-size: 14px; color: var(--text-muted); }

/* ---------- Dark product-style showcase (no container, lines as structure) ---------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.showcase-item { display: flex; flex-direction: column; gap: 16px; }
.showcase-item .media {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.showcase-item .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.showcase-item:hover .media img { transform: scale(1.04); }
.showcase-item h3 { font-size: 24px; margin: 0; }
.showcase-item p { margin: 0; font-size: 15px; color: var(--text-on-dark-muted); }

/* ---------- Gallery strip & grid ---------- */
.strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.strip figure { margin: 0; }
.strip .img { border-radius: var(--radius-card); overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip .img--tall { aspect-ratio: 3 / 4; }
.strip .img--wide { aspect-ratio: 4 / 3; }
.strip figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  font: inherit;
  font-size: 15px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--forest);
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.filter-btn[aria-pressed="true"],
.filter-btn:hover { background: var(--forest); color: var(--snow); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  display: block;
  grid-column: span 4;
  grid-row: span 2;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--stone);
  cursor: zoom-in;
}
.gallery-item--wide { grid-column: span 8; }
.gallery-item--short { grid-row: span 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--snow);
  color: var(--forest);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.gallery-item:hover .cap,
.gallery-item:focus-visible .cap { opacity: 1; transform: none; }
.gallery-item.is-hidden { display: none; }

.lightbox {
  width: min(1180px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--snow);
}
.lightbox::backdrop { background: rgba(31, 125, 61, 0.94); }
.lightbox-frame { position: relative; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--radius-card); }
.lightbox figcaption { padding-top: 14px; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; color: var(--text-on-dark-muted); }
.lightbox-btn {
  position: absolute;
  top: 40%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--snow);
  background: transparent;
  color: var(--snow);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-btn:hover { background: var(--snow); color: var(--forest); }
.lightbox-prev { left: -18px; }
.lightbox-next { right: -18px; }
.lightbox-close {
  position: absolute;
  top: -54px;
  right: 0;
  background: none;
  border: 0;
  color: var(--snow);
  font-size: 34px;
  cursor: pointer;
}

/* ---------- Attraction / list blocks on dark ---------- */
.index-list { border-top: 1px solid var(--line-on-dark); }
.index-list li {
  display: grid;
  grid-template-columns: 56px 1fr 1.2fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-on-dark);
  align-items: baseline;
}
.index-list .num { font-family: var(--font-mono); font-size: 12px; color: var(--lime); }
.index-list h3 { margin: 0; color: var(--snow); }
.index-list p { margin: 0; color: var(--text-on-dark-muted); }

/* ---------- Quote / statement ---------- */
.statement {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

/* ---------- Check list / key facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.facts li {
  padding: 26px 24px 26px 0;
  border-bottom: 1px solid var(--line);
}
.facts strong { display: block; font-size: 24px; font-weight: 350; letter-spacing: -0.015em; margin-bottom: 4px; }
.facts span { font-size: 15px; color: var(--text-muted); }
.section--dark .facts,
.section--dark .facts li { border-color: var(--line-on-dark); }
.section--dark .facts strong { color: var(--snow); }
.section--dark .facts span { color: var(--text-on-dark-muted); }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-row li {
  padding: 10px 16px;
  border: 1.5px solid var(--forest);
  border-radius: var(--radius-pill);
  font-size: 15px;
}

/* ---------- Booking CTA band ---------- */
.cta-band {
  background: var(--forest-deep);
  color: var(--snow);
  padding: clamp(72px, 10vw, 120px) 0;
}
.cta-band .split { align-items: end; }
.cta-band h2 { color: var(--snow); font-size: clamp(40px, 5vw, 64px); margin: 0; }
.cta-band p { color: var(--text-on-dark-muted); font-size: 18px; margin: 0 0 28px; max-width: 460px; }
.cta-band .btn-row { justify-content: flex-start; }

/* ---------- Form ---------- */
.form-card {
  background: var(--stone);
  border-radius: var(--radius-large);
  padding: clamp(28px, 4vw, 52px);
  scroll-margin-top: 100px;
}
.form-card h2 { font-size: clamp(32px, 3.4vw, 42px); }
/* The booking form sits on a stone card inside the dark band: keep its text dark */
.cta-band .form-card h2 { color: var(--forest); }
.cta-band .form-card p,
.cta-band .form-card .form-intro,
.cta-band .form-card .privacy { color: var(--text-muted); }
.cta-band .form-card .privacy a { color: var(--forest); }
.form-intro { color: var(--text-muted); margin-bottom: 28px; font-size: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label,
.field legend {
  font-size: 14px;
  font-weight: 500;
  color: var(--forest);
}
.field .req { color: var(--forest); margin-left: 2px; }
.field .optional { font-weight: 400; color: var(--text-muted); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--forest);
  background: var(--snow);
  border: 1.5px solid var(--pewter);
  border-radius: var(--radius-input);
  padding: 13px 14px;
  min-height: 50px;
  width: 100%;
  transition: border-color 0.25s, background-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231f7d3d' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: calc(100% - 16px) 50%;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  outline: 3px solid var(--lime);
  outline-offset: 0;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-hint { font-size: 13px; color: var(--text-muted); margin: 0; }
.field-error { font-size: 14px; color: var(--error); margin: 0; }
.field-error:empty { display: none; }

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { margin-top: 22px; font-size: 16px; }
.form-status:empty { display: none; }
.form-status--loading,
.form-status--success,
.form-status--error {
  padding: 18px 20px;
  border-radius: var(--radius-card);
  animation: fadeUp 0.5s var(--ease);
}
.form-status--loading { background: var(--snow); color: var(--forest); }
.form-status--success { background: var(--lime); color: var(--forest); }
.form-status--error { background: var(--snow); color: var(--error); border: 1.5px solid var(--error); }
.form-status a { color: inherit; font-weight: 500; }

.form-submit { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.form-submit .btn { width: 100%; }
.form-submit .privacy { font-size: 14px; color: var(--text-muted); margin: 0; text-align: center; }
.form-submit .privacy a { color: var(--forest); font-weight: 500; }

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(252, 252, 247, 0.35);
  border-top-color: var(--snow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.is-loading .spinner { display: inline-block; }

.fallback-box {
  margin-top: 14px;
  padding: 18px 20px;
  background: var(--snow);
  border-radius: var(--radius-card);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  position: relative;
  font-size: 22px;
  font-weight: 350;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 28px;
  font-weight: 300;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-answer { padding: 0 48px 26px 0; color: var(--text-muted); margin: 0; max-width: 680px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-darkest);
  color: var(--text-on-dark-muted);
  padding: clamp(64px, 8vw, 96px) 0 32px;
  font-size: 16px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}
.site-footer p { margin: 0 0 8px; }
.site-footer .brand { color: var(--snow); }
.site-footer .brand::after { background: var(--lime); }
.hero-facts { margin: 0; grid-column: 1 / -1; }
.hero-facts li.badge { border: 0; }
.hero-facts li { font-size: 15px; }
.hero-facts .badge { font-size: 13px; padding: 9px 12px; }
.site-footer a { color: var(--snow); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links li { margin-bottom: 10px; }
.footer-wordmark {
  font-size: clamp(64px, 12vw, 176px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--snow);
  margin: 0;
  padding-top: 40px;
  border-top: 1px solid var(--line-on-dark);
  white-space: nowrap;
  overflow: hidden;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 14px;
  color: var(--text-on-dark-muted);
}
.social { display: flex; gap: 10px; }
.social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--snow);
  border-radius: 50%;
}
.social a:hover { background: var(--snow); }
.social a:hover svg { fill: var(--forest); }
.social svg { width: 18px; height: 18px; fill: var(--snow); }

/* Floating WhatsApp, flat pill */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lime);
  color: var(--forest);
  text-decoration: none;
  padding: 14px 20px;
  font-size: 15px;
  border-radius: var(--radius-pill);
  transition: background-color 0.3s;
}
.whatsapp-float:hover { background: #c4f08a; }
.whatsapp-float svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Mobile menu toggle ---------- */
.menu-open { overflow: hidden; }

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes settle {
  from { transform: scale(1.04); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-list { gap: 20px; }
  .nav-link { font-size: 15px; }
  .nav-cta { display: none; }
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; position: relative; z-index: 130; }
  .site-header { z-index: 120; }
  .nav-list {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: var(--snow);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 24px) var(--pad) 40px;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.55s var(--ease), visibility 0.55s;
    overflow-y: auto;
  }
  .nav-list.is-open { transform: none; visibility: visible; }
  .nav-list li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-link { display: block; font-size: 28px; font-weight: 300; letter-spacing: -0.02em; padding: 16px 0; }
  .nav-link::after { display: none; }
  .nav-home { display: block; }
  .nav-mobile-cta { display: block; border: 0; margin-top: 28px; }
  .nav-mobile-cta .btn { width: 100%; }
  .site-header.is-open { background: var(--snow); }

  .hero,
  .page-intro,
  .split,
  .split--wide-media,
  .cta-band .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .hero-media { height: 60vh; min-height: 360px; }
  .page-intro .media-wide { grid-row: auto; grid-column: 1; height: 56vh; min-height: 300px; }
  .page-intro-copy { grid-column: 1; }
  .room,
  .room--flip { grid-template-columns: 1fr; }
  .room--flip .room-media { order: 0; }
  .layered { padding-right: 0; padding-bottom: 0; }
  .layered .layer-top { position: relative; width: 58%; margin: -60px 0 0 auto; border-width: 8px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip figure:first-child { grid-column: 1 / -1; }
  .index-list li { grid-template-columns: 40px 1fr; }
  .index-list li p { grid-column: 2; }
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
  .gallery-item,
  .gallery-item--wide { grid-column: span 3; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; --header-h: 72px; }
  body { font-size: 16px; }
  .brand { font-size: 18px; }
  .hero-copy .btn-row .btn,
  .btn-row .btn { width: 100%; }
  .btn-row .text-link { width: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 40px 1fr; }
  .spec-row > :last-child { grid-column: 2; }
  .strip { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-item,
  .gallery-item--wide { grid-column: span 1; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 14px; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Modern layer: glass surfaces, creative image shapes, motion
   Colour and type still follow the Refero tokens: flat fills, no shadows,
   no gradients. Glass is a translucent fill with backdrop blur, which the
   reference's "Frosted Glass" token already describes.
   ========================================================================== */

:root {
  --shape-arch: 50% 50% 24px 24px / 24% 24% 24px 24px;
  --shape-blob: 58% 42% 52% 48% / 46% 54% 46% 54%;
  --shape-leaf: 50% 12px 50% 12px / 50% 12px 50% 12px;
  --glass-edge: rgba(252, 252, 247, 0.36);
  --glass-forest: rgba(31, 125, 61, 0.5);
  --glass-forest-strong: rgba(31, 125, 61, 0.72);
}

/* ---------- Creative image shapes ---------- */
.hero-media,
.page-intro .media-wide,
.room:nth-child(odd) .room-media,
.layered .layer-top,
.gallery-item:nth-child(3n + 1) { border-radius: var(--shape-arch); }

.room:nth-child(even) .room-media,
.gallery-item:nth-child(3n + 2),
.split-media--land { border-radius: var(--shape-leaf); }

.layered .layer-main { border-radius: var(--shape-blob); }

/* Shapes morph on hover where the image is interactive */
.room:hover .room-media { border-radius: var(--shape-blob); }
.gallery-item:hover { border-radius: var(--shape-blob); }

/* ---------- Image parallax (translate is set by main.js) ---------- */
.hero-media img,
.page-intro .media-wide img {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
}
.page-intro .media-wide { position: relative; }

/* ---------- Clip reveal for images (applied by main.js) ---------- */
.js .reveal-img {
  clip-path: inset(10% 10% 10% 10%);
  transition: clip-path 1.4s var(--ease), border-radius 1s var(--ease);
}
.js .reveal-img.is-visible { clip-path: inset(0% 0% 0% 0%); }

/* ---------- Glass surfaces ---------- */
.glass-card {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 20px;
  width: min(300px, calc(100% - 40px));
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: var(--glass-forest);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-edge);
  color: var(--snow);
  animation: floatIn 1.2s var(--ease) 0.6s both;
}
.glass-card .label { color: var(--lime); margin-bottom: 10px; }
.glass-card strong {
  display: block;
  font-size: 20px;
  font-weight: 350;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.glass-card span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(252, 252, 247, 0.8);
}

.gallery-item .cap {
  background: var(--glass-forest);
  color: var(--snow);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.whatsapp-float {
  background: var(--glass-forest-strong);
  color: var(--snow);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
.whatsapp-float:hover { background: rgba(31, 125, 61, 0.92); }

/* Header turns to frosted glass once the page scrolls */
.site-header { transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease); }
.site-header.is-scrolled {
  background: rgba(252, 252, 247, 0.7);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
/* A backdrop filter would trap the fixed mobile menu inside the header */
@media (max-width: 900px) {
  .site-header.is-scrolled {
    background: var(--snow);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- Badge that rotates over the hero image ---------- */
.spin-badge {
  position: absolute;
  top: 30%;
  right: 16px;
  z-index: 3;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--snow);
  display: grid;
  place-items: center;
}
.spin-badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.spin-badge text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--forest);
}

/* ---------- Ticker ---------- */
.marquee {
  overflow: hidden;
  background: var(--forest);
  color: var(--snow);
  padding: 26px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group span {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  padding: 0 0 0 28px;
}
.marquee-group span::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  margin: 0 0 0 56px;
  vertical-align: middle;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Headline word reveal (JS wraps each word) ---------- */
.split-line .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.06em 0.14em;
  margin: 0 -0.06em -0.14em;
}
.split-line .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms + 150ms);
}
.split-line.is-in .w > span { transform: none; }

/* ---------- Entrance sequence ---------- */
.hero .eyebrow,
.page-intro .eyebrow { animation: fadeUp 1s var(--ease) both; }
.hero .lead,
.page-intro p:not(.eyebrow) { animation: fadeUp 1.1s var(--ease) 0.5s both; }
.hero .btn-row { animation: fadeUp 1s var(--ease) 0.7s both; }
.hero-facts { animation: fadeUp 1s var(--ease) 0.9s both; }
@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Buttons: magnetic offset uses the translate property ---------- */
.btn {
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), translate 0.5s var(--ease);
}

/* ---------- Home rooms slider ---------- */
.room-slider { position: relative; }
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.slider-nav { display: flex; gap: 10px; }
.slider-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--forest);
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s;
}
.slider-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.slider-btn:hover:not(:disabled) { background: var(--forest); color: var(--snow); }
.slider-btn:disabled { opacity: 0.3; cursor: default; }

.slider-track {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--radius-large);
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline: 2px solid var(--forest); outline-offset: 6px; }

.room-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 3.5vw, 56px);
  align-items: stretch;
  margin: 0;
  padding: clamp(14px, 1.6vw, 20px);
  border-radius: var(--radius-large);
  background: var(--stone);
}
.room-slide .room-media {
  aspect-ratio: auto;
  min-height: clamp(360px, 46vh, 480px);
  height: 100%;
}
.room-slide .room-body {
  align-self: center;
  padding: clamp(8px, 2vw, 40px) clamp(8px, 2vw, 40px) clamp(8px, 2vw, 40px) 0;
}
.room-slide:hover .room-media img { transform: scale(1.03); }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(31, 125, 61, 0.25);
  cursor: pointer;
  transition: width 0.5s var(--ease), background-color 0.3s;
}
.slider-dot:hover { background: rgba(31, 125, 61, 0.5); }
.slider-dot.is-active { width: 36px; background: var(--forest); }

/* Slides peek on tablet so the swipe affordance is visible */
@media (min-width: 641px) and (max-width: 900px) {
  .room-slide { grid-template-columns: 1fr; }
  .room-slide .room-body { padding: 4px 12px 16px; }
  .room-slide .room-media { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .slider-track { gap: 16px; }
  .room-slide { flex-basis: 88%; }
}

@media (max-width: 640px) {
  .room-slide { grid-template-columns: 1fr; flex-basis: 88%; }
  .room-slide .room-media { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .room-slide .room-body { padding: 4px 10px 12px; }
  .slider-track { gap: 14px; }
  .slider-btn { width: 46px; height: 46px; }
}

/* ---------- Mobile adjustments for the modern layer ---------- */
@media (max-width: 640px) {
  .marquee-group span { font-size: 36px; }
  .glass-card { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 16px 18px; }
  .spin-badge { width: 88px; height: 88px; right: 12px; top: 28%; }
  .spin-badge text { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .spin-badge svg,
  .glass-card { animation: none !important; }
  .hero-media img,
  .page-intro .media-wide img { translate: none !important; }
  .js .reveal-img { clip-path: none; }
  .split-line .w > span { transform: none; }
}

/* ---------- Facts inside the dark booking band ---------- */
.cta-band .facts,
.cta-band .facts li { border-color: var(--line-on-dark); }
.cta-band .facts strong { color: var(--snow); }
.cta-band .facts strong a { color: var(--snow); }
.cta-band .facts span { color: var(--text-on-dark-muted); }

/* ---------- Logo ---------- */
.brand--logo { font-size: 0; gap: 0; }
.brand--logo::after { display: none; }
.brand--logo img { height: 68px; width: auto; display: block; }
@media (max-width: 640px) { .brand--logo img { height: 54px; } }
.site-footer .brand--logo { background: var(--snow); border-radius: var(--radius-card); padding: 10px 14px; }
.site-footer .brand--logo img { height: 96px; }
