/*
Theme Name: Kamuthanga Fish Farm
Theme URI: https://kamuthanga-gardens.com
Author: Motolabs Kenya
Author URI: https://motolabskenya.com
Description: A theme for Kamuthanga Fish Farm — a garden retreat where tranquility meets adventure. A motion-rich hero, an editable "What's On" calendar (music nights, day activities, weekend getaways, events), boutique stays with a date-aware booking flow, a journal, and a WhatsApp community layer. White-forward, adventurous, no build step.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stillwater
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, block-styles, wide-blocks
*/

/* ============================================================
   Stillwater design tokens
   Palette grounded in a water-side retreat: reed greens, the
   teal of standing water, a dusk-clay accent, warm paper base.
   ============================================================ */
:root {
  --ink:    #1c2421;   /* near-black green — primary text */
  --reed:   #3a4a41;   /* muted deep green — secondary text, dark surfaces */
  --water:  #2f6b5e;   /* teal-green — primary accent (links, buttons) */
  --water-deep: #234f46;
  --clay:   #c2703d;   /* dusk clay — sparing highlight */
  --clay-deep: #a85d2f;
  --sand:   #ede6d8;   /* warm paper accent */
  --mist:   #f4f1ea;   /* soft tinted surface */
  --paper:  #ffffff;   /* primary page base — white-forward */
  --line:   #e6e0d4;   /* hairline */
  --line-soft: rgba(28,36,33,.10);
  --white:  #ffffff;
  --leaf:   #4c8a5b;   /* brighter garden green — fresh accents */
  --gold:   #e0a458;   /* warm adventure highlight */
  --whatsapp: #25d366;
  --whatsapp-deep: #1da851;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(28,36,33,.06), 0 12px 32px -16px rgba(28,36,33,.28);
  --shadow-lift: 0 1px 2px rgba(28,36,33,.06), 0 22px 48px -20px rgba(28,36,33,.34);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--water); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; color: var(--ink); margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* eyebrow label — utility role */
.eyebrow {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--water);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
/* signature: the water-line — a hairline ending in a float */
.eyebrow::before {
  content: "";
  width: 2.2rem; height: 1px;
  background: currentColor;
  position: relative;
}
.waterline {
  display: flex; align-items: center; gap: 0; color: var(--line);
}
.waterline::before { content: ""; flex: 1; height: 1px; background: currentColor; }
.waterline::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); margin-left: -3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--water); color: var(--white); }
.btn--primary:hover { background: var(--water-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--clay { background: var(--clay); color: var(--white); }
.btn--clay:hover { background: var(--clay-deep); color: var(--white); }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,236,.86);
  backdrop-filter: saturate(140%) blur(10px);
}
.site-header {
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px -22px rgba(28,36,33,.5);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 72px;
  transition: min-height .3s var(--ease);
}
.site-header.is-scrolled .site-header__inner { min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--display); font-size: 1.4rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__mark circle { fill: var(--clay); }
.brand__mark path { stroke: var(--water); }
.custom-logo { max-height: 44px; width: auto; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.main-nav a { font-size: .96rem; font-weight: 500; color: var(--ink); }
.main-nav .current-menu-item > a { color: var(--water); }
.header-cta { white-space: nowrap; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; inset: 72px 0 auto; background: var(--mist);
    border-bottom: 1px solid var(--line-soft);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .main-nav.is-open { max-height: 70vh; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--line-soft); }
  .main-nav a { display: block; padding: .9rem 0; width: 100%; }
  .header-cta { display: none; }
}

/* Transparent header overlaying the hero (front page) — turns solid on scroll. */
.has-transparent-header .site-header {
  position: fixed; left: 0; right: 0; top: 0;
}
.has-transparent-header .site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(28,36,33,.45) 0%, transparent 100%);
  backdrop-filter: none;
}
.has-transparent-header .site-header:not(.is-scrolled) .brand,
.has-transparent-header .site-header:not(.is-scrolled) .main-nav a { color: #fff; }
.has-transparent-header .site-header:not(.is-scrolled) .main-nav .current-menu-item > a { color: var(--sand); }
.has-transparent-header .site-header:not(.is-scrolled) .brand__mark circle { fill: var(--sand); }
.has-transparent-header .site-header:not(.is-scrolled) .nav-toggle span,
.has-transparent-header .site-header:not(.is-scrolled) .nav-toggle span::before,
.has-transparent-header .site-header:not(.is-scrolled) .nav-toggle span::after { background: #fff; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img, .hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__video { display: block; }
/* video slideshow: stacked slides cross-fade between clips */
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }
/* empty-state backdrop when no hero image set — designed, not blank */
.hero__bg--empty {
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(194,112,61,.5), transparent 55%),
    linear-gradient(180deg, var(--water) 0%, var(--reed) 60%, var(--ink) 100%);
}
.hero__bg--empty::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(255,255,255,.12) 100%);
  background-size: 100% 7vh;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(28,36,33,.15) 0%, rgba(28,36,33,.72) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero .eyebrow { color: var(--sand); }
.hero .eyebrow::before { background: var(--clay); }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 48ch; color: rgba(255,255,255,.9); margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
/* rotating hero copy: all blocks stacked in one grid cell, so the deck is as tall
   as the longest block (no layout shift) and they cross-fade with the video */
.hero__copy-deck { display: grid; margin-bottom: 1.8rem; }
.hero__copy-deck > .hero__copy { grid-area: 1 / 1; }
.hero__copy { opacity: 0; transform: translateY(10px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); pointer-events: none; }
.hero__copy.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero__copy .hero__lede { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .hero__copy { transition: none; } }

/* ============================================================
   Stay-type index (the four types as an editorial set)
   ============================================================ */
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--reed); }

.type-index { border-top: 1px solid var(--line); }
.type-row {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.4rem) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); position: relative; transition: padding-left .3s var(--ease);
}
.type-row:hover { text-decoration: none; padding-left: .75rem; }
.type-row__label { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.type-row__count { font-family: var(--body); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--water); }
.type-row h3 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.type-row__desc { color: var(--reed); margin: .35rem 0 0; max-width: 52ch; }
.type-row__arrow { font-size: 1.5rem; color: var(--clay); transition: transform .3s var(--ease); }
.type-row:hover .type-row__arrow { transform: translateX(6px); }

/* ============================================================
   Stay cards / grid
   ============================================================ */
.stay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.stay-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.stay-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.stay-card a { color: inherit; text-decoration: none; }
.stay-card__media { aspect-ratio: 4 / 3; background: linear-gradient(150deg, var(--reed), var(--ink)); position: relative; overflow: hidden; }
.stay-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.stay-card:hover .stay-card__media img { transform: scale(1.05); }
.stay-card__type { position: absolute; top: .8rem; left: .8rem; background: rgba(246,243,236,.92); color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; }
.stay-card__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.stay-card__title { font-size: 1.35rem; margin: 0; }
.stay-card__meta { font-size: .88rem; color: var(--reed); display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.stay-card__foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line-soft); }
.stay-card__price b { font-family: var(--display); font-size: 1.4rem; font-weight: 500; }
.stay-card__price span { font-size: .82rem; color: var(--reed); }
.stay-card__cta { font-size: .9rem; font-weight: 600; color: var(--water); }

/* filter chips */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.25rem; }
.chip { font-size: .9rem; font-weight: 500; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--mist); color: var(--ink); text-decoration: none; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--ink); text-decoration: none; }
.chip.is-active { background: var(--ink); color: var(--mist); border-color: var(--ink); }

/* ============================================================
   Single stay
   ============================================================ */
.stay-hero { display: grid; gap: .5rem; }
.stay-hero__main { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, var(--reed), var(--ink)); }
.stay-hero__main img { width: 100%; height: 100%; object-fit: cover; }
.stay-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: .5rem; margin-top: .5rem; }
.stay-gallery a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: block; }
.stay-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.stay-gallery a:hover img { transform: scale(1.06); }

.stay-layout { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,3.5rem); margin-top: 2.5rem; }
@media (min-width: 900px) { .stay-layout { grid-template-columns: minmax(0,1.7fr) minmax(320px, .9fr); align-items: start; } }

.stay-facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; padding: 1.4rem 0; border-block: 1px solid var(--line); margin: 1.25rem 0 1.75rem; }
.fact { display: flex; flex-direction: column; }
.fact b { font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.fact span { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--reed); }

.amenities { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: .6rem 1.5rem; }
.amenities li { display: flex; align-items: center; gap: .6rem; color: var(--reed); }
.amenities li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); flex: none; }

.entry-content { font-size: 1.08rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.8rem; }

/* booking card */
.booking-card { position: sticky; top: 96px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 1.6rem; }
.booking-card__price { display: flex; align-items: baseline; gap: .4rem; margin-bottom: 1.1rem; }
.booking-card__price b { font-family: var(--display); font-size: 2rem; font-weight: 500; }
.booking-card__price span { color: var(--reed); font-size: .9rem; }
.field { margin-bottom: .85rem; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--reed); margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist);
}
.field input:focus, .field textarea:focus { border-color: var(--water); background: var(--white); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.booking-note { font-size: .82rem; color: var(--reed); margin: .8rem 0 0; }
.booking-msg { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius); font-size: .92rem; display: none; }
.booking-msg.is-error { display: block; background: #fbe9e0; color: var(--clay-deep); }
.booking-msg.is-success { display: block; background: #e2efe9; color: var(--water-deep); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--sand); padding-block: clamp(3rem,6vw,4.5rem) 2rem; margin-top: clamp(3rem,8vw,6rem); }
.site-footer a { color: var(--sand); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(auto-fit, minmax(150px,1fr)); }
.footer-grid h4 { font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: 1rem; }
.site-footer .brand { color: var(--sand); }
.footer-widgets ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: rgba(237,230,216,.7); display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; }

/* ============================================================
   Misc / posts / utility
   ============================================================ */
.page-head { padding-block: clamp(2.5rem,6vw,4.5rem) 0; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--reed); }
.post-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; margin-bottom: 1.25rem; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: .6rem 1rem; border-radius: var(--radius); }
.pagination { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.pagination .page-numbers { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--mist); border-color: var(--ink); }

/* ============================================================
   Kamuthanga additions — motion, activities, community
   ============================================================ */

/* ---------- scroll-reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- section tints (white-forward) ---------- */
.section--mist { background: var(--mist); }
.section--intro { padding-top: clamp(3rem, 7vw, 5.5rem); }
.section--dark { background: linear-gradient(180deg, var(--ink) 0%, #11201b 100%); color: var(--sand); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section-head--invert .eyebrow { color: var(--gold); }
.section-head--invert p { color: rgba(237,230,216,.78); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section-foot { margin-top: 2.5rem; }
.link-arrow { font-weight: 600; color: var(--water-deep); white-space: nowrap; }
.link-arrow span { transition: transform .3s var(--ease); display: inline-block; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- buttons added ---------- */
.btn--glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn--whatsapp { background: var(--whatsapp); color: #04361b; }
.btn--whatsapp:hover { background: var(--whatsapp-deep); color: #04270f; }

/* ============================================================
   Hero additions
   ============================================================ */
.hero { min-height: 88vh; }
.hero__bg img { animation: hero-zoom 18s var(--ease) forwards; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__bg--empty {
  background:
    radial-gradient(120% 90% at 75% 12%, rgba(224,164,88,.55), transparent 55%),
    radial-gradient(90% 70% at 15% 90%, rgba(76,138,91,.5), transparent 60%),
    linear-gradient(180deg, var(--water) 0%, var(--reed) 55%, var(--ink) 100%);
}
.hero__grain { position: absolute; inset: 0; z-index: 1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(255,255,255,.08) 100%);
  background-size: 100% 6vh; }
.hero__inner { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.hero__eyebrow { align-items: center; }
.hero__pin { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(224,164,88,.6); animation: pin-pulse 2.4s var(--ease) infinite; }
@keyframes pin-pulse { 0% { box-shadow: 0 0 0 0 rgba(224,164,88,.55); } 70% { box-shadow: 0 0 0 12px rgba(224,164,88,0); } 100% { box-shadow: 0 0 0 0 rgba(224,164,88,0); } }
.hero__title { letter-spacing: -.02em; }
[data-reveal-stagger].is-in { animation: rise-in .9s var(--ease) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* hero marquee strip */
.hero__marquee { position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hero__marquee-track { display: inline-flex; align-items: center; gap: 1.4rem; white-space: nowrap; animation: marquee 28s linear infinite; }
.hero__marquee-item { font-family: var(--display); font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: rgba(255,255,255,.85); }
.hero__marquee-dot { color: var(--gold); font-size: .7rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero__marquee-track { animation: none; } .hero__bg img { animation: none; } }

/* hero scroll cue */
.hero__scroll { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.hero__scroll-line { width: 2px; height: 8px; background: #fff; border-radius: 2px; animation: scroll-cue 1.8s var(--ease) infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ============================================================
   Intro
   ============================================================ */
.intro-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 880px) { .intro-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.intro-grid__lead h2 { font-size: clamp(2rem, 4vw, 3rem); }
.intro-grid .lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--reed); }
.stat-row { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.stat-row li { display: flex; flex-direction: column; }
.stat-row b { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; color: var(--water-deep); }
.stat-row span { font-size: .82rem; letter-spacing: .04em; color: var(--reed); }

/* ============================================================
   Rail — a simple horizontal carousel (used by Music Nights)
   ============================================================ */
.rail { position: relative; }
.music-rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: 80%;            /* mobile: one card + a peek of the next */
  gap: 1.1rem;
  overflow-x: auto;
  padding: .25rem .25rem 1.25rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* hide the native scrollbar — replaced by a slim progress bar */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* fade the right edge so it's obvious there's more to scroll */
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.music-rail::-webkit-scrollbar { display: none; }
.music-rail > * { scroll-snap-align: start; }
.music-rail.is-grabbing { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.music-rail.is-grabbing a { pointer-events: none; }
.rail.is-end .music-rail { -webkit-mask-image: none; mask-image: none; }
@media (min-width: 560px)  { .music-rail { grid-auto-columns: 46%; } }
@media (min-width: 880px)  { .music-rail { grid-auto-columns: 30%; } }
@media (min-width: 1180px) { .music-rail { grid-auto-columns: 264px; } }
@media (pointer: fine)     { .music-rail { cursor: grab; } }
@media (prefers-reduced-motion: reduce) { .music-rail { scroll-behavior: auto; } }

/* arrow controls */
.rail__nav {
  position: absolute; top: calc(50% - 1.25rem); transform: translateY(-50%);
  z-index: 4; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 26px -12px rgba(28,36,33,.5);
  transition: transform .25s var(--ease), opacity .25s var(--ease), background .2s var(--ease);
}
.rail__nav:hover { transform: translateY(-50%) scale(1.08); background: var(--mist); }
.rail__nav[hidden] { display: none; }
.rail__nav--prev { left: -10px; }
.rail__nav--next { right: -10px; }
.rail__nav:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 700px) { .rail__nav { display: none !important; } }

/* progress bar (replaces the scrollbar) */
.rail__bar { height: 3px; border-radius: 999px; background: rgba(237,230,216,.22); overflow: hidden; max-width: 220px; margin-top: .25rem; }
.rail__bar-fill { display: block; height: 100%; width: 30%; border-radius: 999px; background: var(--gold); transition: width .15s linear, transform .15s linear; transform-origin: left; }
/* on light sections (if reused) the track is darker */
.section:not(.section--dark) .rail__bar { background: var(--line); }
.section:not(.section--dark) .rail__bar-fill { background: var(--water); }

/* ============================================================
   Activity cards — event-poster style
   ============================================================ */
.activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(1.1rem, 2.5vw, 1.6rem); }
.activity-card {
  --card-accent: var(--water);
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s var(--ease);
}
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--line); }

/* square poster */
.activity-card__media { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(155deg, var(--card-accent), var(--ink)); }
.activity-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.activity-card:hover .activity-card__media img { transform: scale(1.05); }
.activity-card__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.7);
  background:
    radial-gradient(110% 90% at 50% -10%, rgba(255,255,255,.20), transparent 60%),
    linear-gradient(160deg, var(--card-accent), var(--ink));
}
.activity-card__placeholder svg { width: 30%; max-width: 52px; height: auto; opacity: .85; }
.activity-card__flag { position: absolute; top: .7rem; left: .7rem; background: rgba(28,36,33,.92); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 6px; }

/* body */
.activity-card__body { display: flex; flex-direction: column; gap: .35rem; padding: .95rem 1rem 1.1rem; flex: 1; }
.activity-card__title { font-size: 1.1rem; line-height: 1.2; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* keep the title dark even inside the dark Music Nights section (beats .section--dark h3) */
.activity-card__title, .activity-card__title a,
.section--dark .activity-card__title, .section--dark .activity-card__title a { color: var(--ink); }
.activity-card__title a:hover, .section--dark .activity-card__title a:hover { color: var(--water-deep); text-decoration: none; }
.activity-card__price { margin: .1rem 0 .15rem; font-weight: 700; font-size: .92rem; color: var(--ink); }
.activity-card__row { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--reed); font-size: .85rem; }
.activity-card__row svg { flex: none; width: 15px; height: 15px; opacity: .85; }
.activity-card__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* buy button — solid, prominent */
.activity-card__foot { margin-top: .85rem; }
.activity-card__buy { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; padding: .6rem 1.2rem; border-radius: 9px; transition: background .2s var(--ease), transform .2s var(--ease); }
.activity-card__buy:hover { background: var(--water-deep); color: #fff; text-decoration: none; transform: translateY(-1px); }
.activity-card__buy.is-soldout { background: var(--mist); color: var(--reed); pointer-events: none; }
.activity-card.is-soldout .activity-card__media { filter: grayscale(.4); }
@media (max-width: 520px) { .activity-card__buy { width: 100%; } }

/* ticket price block on the single page CTA */
.ticket-price { display: flex; align-items: baseline; gap: .4rem; margin-bottom: 1.1rem; }
.ticket-price b { font-family: var(--display); font-size: 2rem; font-weight: 500; }
.ticket-price span { color: var(--reed); font-size: .9rem; }
.btn.is-disabled { background: var(--mist); color: var(--reed); border-color: var(--line); cursor: not-allowed; pointer-events: none; }

/* ============================================================
   What's On list (day-to-day rhythm)
   ============================================================ */
.whatson-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.whatson-row { border-bottom: 1px solid var(--line); }
.whatson-row a { display: grid; grid-template-columns: minmax(120px, 180px) 1fr auto; align-items: center; gap: 1.2rem; padding: clamp(1.1rem, 2.5vw, 1.7rem) 0; color: var(--ink); transition: padding-left .3s var(--ease); }
.whatson-row a:hover { text-decoration: none; padding-left: .6rem; }
.whatson-row__when { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); }
.whatson-row__title { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); display: block; line-height: 1.1; }
.whatson-row__desc { color: var(--reed); font-size: .95rem; }
.whatson-row__arrow { color: var(--clay); font-size: 1.3rem; transition: transform .3s var(--ease); }
.whatson-row a:hover .whatson-row__arrow { transform: translateX(6px); }
@media (max-width: 640px) {
  .whatson-row a { grid-template-columns: 1fr auto; }
  .whatson-row__when { grid-column: 1 / -1; }
}

/* ============================================================
   Journal cards
   ============================================================ */
.journal-grid { display: grid; gap: clamp(1.2rem, 3vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.journal-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.journal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.journal-card a { color: inherit; display: block; }
.journal-card a:hover { text-decoration: none; }
.journal-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(150deg, var(--leaf), var(--water-deep)); }
.journal-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.journal-card:hover .journal-card__media img { transform: scale(1.05); }
.journal-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.75); background: radial-gradient(110% 90% at 50% -10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(150deg, var(--leaf), var(--water-deep)); }
.journal-card__placeholder svg { opacity: .85; }
.journal-card__body { padding: 1.15rem 1.25rem 1.4rem; }
.journal-card__date { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.journal-card__title { font-size: 1.3rem; margin: .35rem 0 .5rem; }
.journal-card__excerpt { color: var(--reed); font-size: .95rem; margin: 0; }

/* ============================================================
   Community band (WhatsApp)
   ============================================================ */
.community { background:
  radial-gradient(100% 120% at 50% 0%, rgba(47,107,94,.10), transparent 60%),
  var(--sand); }
.community__inner { max-width: 640px; margin-inline: auto; text-align: center; }
.community__icon { width: 64px; height: 64px; margin: 0 auto 1.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--whatsapp); color: #fff; box-shadow: 0 14px 30px -12px rgba(37,211,102,.7); }
.community__inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.community__inner p { color: var(--reed); font-size: 1.1rem; max-width: 48ch; margin-inline: auto; }
.community__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.6rem; }
.community__actions .btn--glass { color: var(--ink); border-color: var(--line); background: var(--white); }
.community__actions .btn--glass:hover { background: var(--mist); }
.community__hint { color: var(--reed); font-size: .9rem; }

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.wa-float { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pin-pulse 2.6s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

/* ============================================================
   Single activity
   ============================================================ */
.activity-single__lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--reed); max-width: 52ch; }
.activity-single__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; padding: 1.2rem 0 0; margin: 1.4rem 0 0; border-top: 1px solid var(--line); }
.activity-single__facts li { display: flex; flex-direction: column; }
.activity-single__facts span { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--reed); }
.activity-single__facts b { font-family: var(--display); font-size: 1.4rem; font-weight: 500; }
.activity-single__media { border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow); }
.activity-single__media img { width: 100%; height: 100%; object-fit: cover; }
.activity-single__layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .activity-single__layout { grid-template-columns: minmax(0,1.7fr) minmax(300px,.9fr); align-items: start; } }

/* ============================================================
   "Plan a visit" wizard modal
   ============================================================ */
.plan-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 1rem;
  background: rgba(20,28,24,.55); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.plan-overlay[hidden] { display: none; }
.plan-overlay.is-open { opacity: 1; visibility: visible; }

.plan-modal {
  display: flex; flex-direction: column;
  width: min(560px, 100%); max-height: 92vh;
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.55);
  transform: translateY(14px) scale(.98); opacity: .5;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.plan-overlay.is-open .plan-modal { transform: none; opacity: 1; }

.plan-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.4rem .5rem; }
.plan-modal__eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--water); }
.plan-modal__title { font-size: clamp(1.35rem, 3.5vw, 1.85rem); margin: .25rem 0 0; }
.plan-modal__close { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s var(--ease); }
.plan-modal__close:hover { background: var(--line); }

.plan-progress { height: 4px; margin: .25rem 1.4rem 0; background: var(--line); border-radius: 999px; overflow: hidden; }
.plan-progress__fill { display: block; height: 100%; width: 20%; background: var(--water); border-radius: 999px; transition: width .35s var(--ease); }

.plan-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem .4rem; }
.plan-step { display: none; }
.plan-step.is-active { display: block; animation: plan-fade .35s var(--ease); }
@keyframes plan-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.plan-step__hint { color: var(--reed); margin: 0 0 1.1rem; }

/* choice cards / options */
.plan-choice--intent { display: grid; gap: .65rem; }
.plan-card { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; text-align: left; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.plan-card:hover { border-color: var(--ink); transform: translateY(-1px); }
.plan-card.is-selected { border-color: var(--water); box-shadow: inset 0 0 0 1px var(--water); }
.plan-card__icon { grid-row: 1 / 3; font-size: 1.7rem; }
.plan-card__label { font-weight: 700; }
.plan-card__sub { color: var(--reed); font-size: .88rem; }

.plan-choice--list { display: grid; gap: .55rem; }
.plan-option { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; text-align: left; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.plan-option:hover { border-color: var(--ink); }
.plan-option.is-selected { border-color: var(--water); box-shadow: inset 0 0 0 1px var(--water); }
.plan-option__name { font-weight: 600; }
.plan-option__meta { color: var(--reed); font-size: .85rem; white-space: nowrap; }

/* fields */
.plan-field { display: block; margin-bottom: .85rem; }
.plan-field__label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--reed); margin-bottom: .35rem; }
.plan-field__input, .plan-field__select { width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink); padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--mist); }
.plan-field__input:focus, .plan-field__select:focus { outline: none; border-color: var(--water); background: var(--white); }
.plan-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.plan-error { color: var(--clay-deep); background: #fbe9e0; padding: .6rem .8rem; border-radius: 8px; font-size: .9rem; margin: .5rem 0 0; }

/* review summary */
.plan-summary { margin: 0; }
.plan-summary__row { display: grid; grid-template-columns: 110px 1fr; gap: .4rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.plan-summary dt { color: var(--reed); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.plan-summary dd { margin: 0; font-weight: 500; word-break: break-word; }

/* done */
.plan-done { text-align: center; padding: 1.5rem 0; }
.plan-done__tick { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; }
.plan-done h3 { font-size: 1.6rem; }
.plan-done p { color: var(--reed); max-width: 36ch; margin-inline: auto; }

/* footer controls */
.plan-foot { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.4rem 1.2rem; border-top: 1px solid var(--line); }
.plan-foot__spacer { flex: 1; }
.plan-foot__count { color: var(--reed); font-size: .8rem; }
.plan-foot .btn { padding: .7rem 1.2rem; }

/* mobile: bottom sheet */
@media (max-width: 600px) {
  .plan-overlay { place-items: end center; padding: 0; }
  .plan-modal { width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; transform: translateY(100%); opacity: 1; }
  .plan-overlay.is-open .plan-modal { transform: none; }
  .plan-field-row { grid-template-columns: 1fr; }
  .plan-foot__count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .plan-overlay, .plan-modal, .plan-progress__fill { transition: none; }
  .plan-step.is-active { animation: none; }
}
