/* ==========================================================================
   TEAK TOWN — Heritage Retreat
   Design system & global styles
   --------------------------------------------------------------------------
   Palette, type and layout language are drawn from the property:
   forest green, teak/walnut, sage, warm bone paper, charcoal.
   Organised: tokens → base → type → layout → components → sections → a11y.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colour */
  --forest-900: #1F2E24;   /* deepest green — footer, dark bands       */
  --forest-700: #2E4032;   /* primary brand & headings on light        */
  --forest-500: #3C5443;   /* mid green                                */
  --sage-500:   #8BA07E;   /* secondary accents, dividers              */
  --sage-300:   #B9C7AE;   /* soft sage                                */

  --teak-700:   #5A3E24;   /* deep wood                                */
  --teak-600:   #6B4A2B;   /* teak / walnut — buttons, wood accents    */
  --tan-400:    #A9895F;   /* warm tan accent                          */
  --tan-200:    #D8C4A6;   /* pale wood                                */

  --bone-100:   #F5F2EC;   /* page background — paper, not stark white */
  --bone-200:   #ECE7DD;   /* slightly deeper paper                    */
  --ivory:      #FFFFFF;   /* cards                                    */
  --charcoal:   #1C1C1A;   /* body text & dark CTAs                    */
  --charcoal-70: rgba(28,28,26,.70);
  --charcoal-55: rgba(28,28,26,.55);

  /* Semantic */
  --bg:            var(--bone-100);
  --bg-alt:        var(--bone-200);
  --surface:       var(--ivory);
  --text:          var(--charcoal);
  --text-muted:    var(--charcoal-70);
  --heading:       var(--forest-700);
  --accent:        var(--teak-600);
  --accent-ink:    #ffffff;
  --line:          rgba(46,64,50,.16);   /* thin rule dividers */
  --line-strong:   rgba(46,64,50,.30);

  /* Typography */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale (min → max across 360–1440px) */
  --step--1: clamp(0.82rem, 0.79rem + 0.12vw, 0.9rem);
  --step-0:  clamp(1rem,    0.96rem + 0.18vw, 1.125rem);
  --step-1:  clamp(1.2rem,  1.11rem + 0.42vw, 1.5rem);
  --step-2:  clamp(1.5rem,  1.32rem + 0.8vw,  2.05rem);
  --step-3:  clamp(1.9rem,  1.6rem  + 1.4vw,  2.9rem);
  --step-4:  clamp(2.3rem,  1.85rem + 2.2vw,  3.9rem);
  --step-5:  clamp(2.7rem,  1.9rem  + 3.6vw,  5.2rem);

  /* Spacing scale */
  --space-2xs: .5rem;
  --space-xs:  .875rem;
  --space-sm:  1.25rem;
  --space-md:  2rem;
  --space-lg:  3.25rem;
  --space-xl:  5rem;
  --space-2xl: 7.5rem;

  /* Structure */
  --container:   1240px;
  --container-narrow: 820px;
  --radius:      3px;      /* rustic / architectural — barely rounded */
  --radius-lg:   5px;
  --shadow-sm:   0 1px 2px rgba(31,46,36,.06), 0 4px 14px rgba(31,46,36,.06);
  --shadow-md:   0 8px 30px rgba(31,46,36,.10);
  --shadow-lg:   0 24px 60px rgba(31,46,36,.18);
  --nav-h:       76px;

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

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* When Lenis (JS smooth scroll) is active we disable native smooth scroll
   to avoid double easing. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul[role="list"] { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--teak-600);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--sage-300); color: var(--forest-900); }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--forest-700); color: #fff;
  padding: .6rem 1rem; border-radius: var(--radius); z-index: 1000;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Signature two-weight display treatment:
   light context words + bold key phrase in the same line. */
.display { font-size: var(--step-4); line-height: 1.05; font-weight: 500; }
.display .light { font-weight: 300; font-style: italic; color: var(--forest-500); }
.display .bold  { font-weight: 700; }
.display--xl { font-size: var(--step-5); }

.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); }
.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 400;
}

/* Eyebrow labels: ROOMS · FACILITIES · EXPERIENCE */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teak-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 30px; height: 1px; background: var(--tan-400);
  display: inline-block;
}
.eyebrow--center::after {
  content: ""; width: 30px; height: 1px; background: var(--tan-400);
  display: inline-block;
}
.eyebrow--light { color: var(--tan-200); }
.eyebrow--light::before, .eyebrow--light::after { background: var(--tan-200); }

p + p { margin-top: 1rem; }
.muted { color: var(--text-muted); }
.measure { max-width: 58ch; }
.balance { text-wrap: balance; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 8vw, var(--space-2xl)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--space-xl)); }
.section--paper { background: var(--bg); }
.section--paper-alt { background: var(--bg-alt); }
.section--forest { background: var(--forest-700); color: #EFEAE0; }
.section--forest h1, .section--forest h2, .section--forest h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.hr { height: 1px; background: var(--line); border: 0; }

/* Alternating 50/50 split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.split__media { position: relative; }
.split--reverse .split__media { order: -1; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2.25rem; }
  .split--reverse .split__media { order: 0; }
}

/* Small stat row */
.stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 4vw, 3rem);
  margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-display); font-size: var(--step-2);
  color: var(--teak-600); font-weight: 600; line-height: 1;
}
.stat__label {
  display: block; margin-top: .35rem; font-size: var(--step--1);
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--charcoal);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--btn-fg); background: var(--btn-bg);
  border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .35s var(--ease);
}
/* subtle fill-slide on hover */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--teak-600);
  transform: translateY(101%);
  transition: transform .4s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn:hover { box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }

.btn--accent { --btn-bg: var(--teak-600); }
.btn--accent::after { background: var(--forest-700); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: #fff;
  border: 1px solid rgba(255,255,255,.6);
}
.btn--ghost::after { background: #fff; }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--forest-900); }

.btn--ghost-dark {
  --btn-bg: transparent; --btn-fg: var(--forest-700);
  border: 1px solid var(--line-strong);
}
.btn--ghost-dark::after { background: var(--forest-700); }
.btn--ghost-dark:hover, .btn--ghost-dark:focus-visible { color: #fff; }

.btn--sm { padding: .7rem 1.25rem; font-size: .74rem; }
.btn--block { width: 100%; }

/* Text link with underline-grow */
.link-underline {
  position: relative; font-weight: 600; color: var(--teak-600);
  letter-spacing: .04em;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.link-underline:hover::after, .link-underline:focus-visible::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.nav__inner {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--nav-ink); transition: color .4s var(--ease); }
.nav__logo img, .nav__logo svg { height: 40px; width: auto; transition: filter .4s var(--ease); }
.nav__links {
  display: flex; align-items: center; gap: clamp(.9rem, 1.5vw, 1.55rem);
}
.nav__links a {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--nav-ink, #fff); position: relative; padding: .3rem 0;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%;
  background: var(--teak-600); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 1rem; }

/* transparent over hero → solid on scroll */
.nav { --nav-ink: #fff; }
.nav.is-solid {
  --nav-ink: var(--forest-700);
  height: 66px;
  background: rgba(245,242,236,.92);
  backdrop-filter: saturate(1.1) blur(10px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav.is-solid .nav__logo img { filter: none; }
.nav:not(.is-solid) .nav__logo img { filter: brightness(0) invert(1); }
.nav:not(.is-solid) .nav__logo .wordmark-ink { fill: #fff; }

/* Burger */
.nav__burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--nav-ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__burger span::before { transform: translateY(-7px); }
.nav__burger span::after  { transform: translateY(5px); }
.nav__burger span { position: relative; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { transform: rotate(45deg); }
body.menu-open .nav__burger span::after  { transform: rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--forest-900);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem; padding: 2rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
body.menu-open .nav__drawer { opacity: 1; visibility: visible; transform: none; }
.nav__drawer a {
  font-family: var(--font-display); font-size: 1.6rem; color: #F1ECE2; letter-spacing: .02em;
}
.nav__drawer a[aria-current="page"] { color: var(--tan-200); }
.nav__drawer .btn { margin-top: 1rem; }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__right .btn:not(.nav__book) { display: none; }
  .nav__burger { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
/* Full-bleed 16:9 video scaled to cover the viewport */
.hero__video {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;           /* 16:9 */
  min-height: 100svh; min-width: 177.78svh; /* cover */
  /* Overscan so YouTube's title bar / captions / branding crop off-screen */
  transform: translate(-50%, -50%) scale(1.22);
  border: 0; pointer-events: none;
}
.hero__fallback {
  position: absolute; inset: 0; z-index: -4;
  background:
    radial-gradient(120% 90% at 70% 10%, #4a6b4f 0%, #2E4032 45%, #1F2E24 100%);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(20,30,24,.55) 0%, rgba(20,30,24,.15) 30%, rgba(20,30,24,.35) 65%, rgba(20,30,24,.8) 100%),
    linear-gradient(90deg, rgba(20,30,24,.5) 0%, rgba(20,30,24,0) 55%);
}
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { padding-top: var(--nav-h); }
.hero__eyebrow {
  color: var(--tan-200); letter-spacing: .28em; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--step-5); line-height: 1.02; font-weight: 500; color: #fff;
  max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero__title .light { font-weight: 300; font-style: italic; }
.hero__sub { margin-top: 1.4rem; max-width: 46ch; font-size: var(--step-1); color: rgba(255,255,255,.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero__rating {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 2rem;
  font-size: .85rem; color: rgba(255,255,255,.85);
}
.hero__rating .stars { color: #E9C46A; letter-spacing: .1em; }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.8); font-size: .66rem; letter-spacing: .25em; text-transform: uppercase;
}
.scroll-cue__line { width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,.7), transparent); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: #fff; animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%);} 60%,100% { transform: translateY(320%);} }

/* Floating booking bar docked to hero base */
.book-bar {
  position: relative; z-index: 3;
  margin: -38px auto 0; max-width: 960px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: .25rem;
  padding: .75rem;
}
.book-bar__field { display: flex; flex-direction: column; padding: .55rem .9rem; border-right: 1px solid var(--line); }
.book-bar__field:nth-child(3) { border-right: 0; }
.book-bar__field label { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.book-bar__field input, .book-bar__field select {
  border: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--charcoal); padding: .15rem 0; width: 100%;
}
.book-bar__field input:focus, .book-bar__field select:focus { outline: none; }
.book-bar .btn { border-radius: var(--radius); }
@media (max-width: 760px) {
  .book-bar { grid-template-columns: 1fr 1fr; margin-top: -20px; }
  .book-bar__field:nth-child(3) { border-right: 1px solid var(--line); }
  .book-bar .btn { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   8. Placeholder image system
   Wired to the exact brief filenames. Until a real photo is dropped in,
   an on-brand stand-in shows (never a broken box). When the .jpg exists,
   the <img> covers the placeholder — zero code changes needed.
   -------------------------------------------------------------------------- */
.ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(140% 120% at 15% 12%, rgba(255,255,255,.14), transparent 40%),
    linear-gradient(150deg, var(--ph-a, #34503b) 0%, var(--ph-b, #223027) 100%);
  border-radius: var(--radius);
  isolation: isolate;
}
.ph::before { /* botanical / architectural motif */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .16;
  background-image: var(--ph-motif, none);
  background-repeat: no-repeat; background-position: center; background-size: 62%;
  mix-blend-mode: soft-light;
}
.ph::after { /* caption */
  content: attr(data-label);
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1rem 1.15rem;
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,.82);
  background: linear-gradient(transparent, rgba(0,0,0,.35));
}
.ph > img {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* wood-toned variant for interiors/rooms */
.ph--wood { --ph-a: #6B4A2B; --ph-b: #3d2a18; }
.ph--sage { --ph-a: #8BA07E; --ph-b: #4a6350; }
.ph--forest { --ph-a: #34503b; --ph-b: #1F2E24; }

/* fixed-ratio holders */
.ratio { position: relative; }
.ratio > .ph, .ratio > img, .ratio > iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.ratio--4x3 { aspect-ratio: 4 / 3; }
.ratio--3x2 { aspect-ratio: 3 / 2; }
.ratio--1x1 { aspect-ratio: 1 / 1; }
.ratio--3x4 { aspect-ratio: 3 / 4; }
.ratio--16x9 { aspect-ratio: 16 / 9; }

/* gentle zoom on hover for media cards */
.zoomable { overflow: hidden; }
.zoomable img, .zoomable .ph > img, .zoomable .ph::before { transition: transform .8s var(--ease-out); }
.zoomable:hover img, .zoomable:hover .ph > img { transform: scale(1.06); }

/* Decorative framed image with offset border (heritage feel) */
.framed { position: relative; }
.framed::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1px solid var(--tan-400); border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   9. Rooms — cards
   -------------------------------------------------------------------------- */
.room-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 900px) { .room-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .room-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(46,64,50,.06);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__media { position: relative; }
.card__price {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: rgba(255,255,255,.94); color: var(--forest-700);
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  padding: .35rem .7rem; border-radius: 2px; box-shadow: var(--shadow-sm);
}
.card__price b { font-family: var(--font-display); font-size: .95rem; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: var(--step-1); }
.card__desc { margin-top: .5rem; color: var(--text-muted); font-size: .95rem; }
.amenities { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.3rem; }
.amenity {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; letter-spacing: .04em; color: var(--forest-500);
  background: var(--bone-200); padding: .32rem .6rem; border-radius: 2px;
}
.amenity svg { width: 15px; height: 15px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* --------------------------------------------------------------------------
   10. Swiper (rooms + testimonials)
   -------------------------------------------------------------------------- */
.swiper { width: 100%; overflow: hidden; }
.swiper--rooms { padding-bottom: 3.5rem; overflow: visible; }
.swiper--rooms .swiper-slide { height: auto; display: flex; }
.swiper--rooms .card { width: 100%; }

.swiper-pagination { position: static; margin-top: 1.5rem; }
.swiper-pagination-bullet {
  width: 8px; height: 8px; background: var(--forest-700); opacity: .25;
  transition: opacity .3s, width .3s; border-radius: 4px;
}
.swiper-pagination-bullet-active { opacity: 1; width: 22px; background: var(--teak-600); }

.carousel-nav { display: inline-flex; gap: .6rem; }
.carousel-btn {
  width: 46px; height: 46px; border: 1px solid var(--line-strong);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--forest-700); transition: background .3s var(--ease), color .3s, border-color .3s;
}
.carousel-btn:hover { background: var(--forest-700); color: #fff; border-color: var(--forest-700); }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn.is-disabled { opacity: .35; pointer-events: none; }

/* --------------------------------------------------------------------------
   11. Facilities / Events — full-bleed with overlaid card
   -------------------------------------------------------------------------- */
.feature {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.feature__bg { position: absolute; inset: 0; z-index: -2; }
.feature__bg .ph { width: 100%; height: 100%; border-radius: 0; }
.feature__scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15,24,18,.82) 0%, rgba(15,24,18,.45) 45%, rgba(15,24,18,.15) 100%); }
.feature__card {
  max-width: 540px; background: rgba(31,46,36,.55);
  backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.14);
  padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-lg);
}
.feature__card h2 { color: #fff; }
.feature__list { margin: 1.4rem 0 1.8rem; display: grid; gap: .7rem; }
.feature__list li { display: flex; gap: .7rem; align-items: flex-start; color: rgba(255,255,255,.9); }
.feature__list svg { width: 20px; height: 20px; flex: none; color: var(--tan-200); margin-top: .15rem; }

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */
.testimonials { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.testimonials__bg { position: absolute; inset: 0; z-index: -2; }
.testimonials__bg .ph { width: 100%; height: 100%; border-radius: 0; }
.testimonials__scrim { position: absolute; inset: 0; z-index: -1; background: rgba(20,30,24,.74); }
.testimonial { text-align: center; max-width: 760px; margin-inline: auto; padding: 1rem; }
.testimonial__quote-mark { font-family: var(--font-display); font-size: 4rem; line-height: .5; color: var(--tan-200); opacity: .7; }
.testimonial__text {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: var(--step-2); line-height: 1.5; color: #fff; margin: 1.25rem 0 1.75rem;
}
.testimonial__stars { color: #E9C46A; display: flex; gap: 5px; justify-content: center; margin-bottom: .9rem; }
.testimonial__stars svg { width: 20px; height: 20px; }
.testimonial__stars svg.off { opacity: .28; }
.testimonial__name { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--tan-200); }
.testimonial__meta { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: .2rem; }
.testimonials__controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 2.5rem; }
.testimonials .carousel-btn { border-color: rgba(255,255,255,.4); color: #fff; }
.testimonials .carousel-btn:hover { background: #fff; color: var(--forest-700); border-color: #fff; }

/* --------------------------------------------------------------------------
   13. Experience grid
   -------------------------------------------------------------------------- */
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 900px) { .exp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .exp-grid { grid-template-columns: 1fr; } }
.exp-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem; text-align: left;
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}
.exp-card:hover { transform: translateY(-5px); border-color: var(--sage-500); box-shadow: var(--shadow-md); }
.exp-card__icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--bone-200); color: var(--teak-600);
}
.exp-card__icon svg { width: 26px; height: 26px; }
.exp-card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.exp-card p { font-size: .9rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   14. Gallery — masonry
   -------------------------------------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.25rem; }
.filter-btn {
  padding: .5rem 1.1rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--forest-700); border: 1px solid var(--line-strong); border-radius: 40px;
  transition: background .3s var(--ease), color .3s, border-color .3s;
}
.filter-btn.is-active, .filter-btn:hover { background: var(--forest-700); color: #fff; border-color: var(--forest-700); }

.masonry { columns: 3 260px; column-gap: clamp(.75rem, 1.6vw, 1.15rem); }
.masonry__item { break-inside: avoid; margin-bottom: clamp(.75rem, 1.6vw, 1.15rem); position: relative; display: block; }
.masonry__item .ph { border-radius: var(--radius); }
.masonry__item .cap {
  position: absolute; inset: auto 0 0 0; z-index: 3; padding: 1.5rem 1rem .9rem;
  color: #fff; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.masonry__item:hover .cap { opacity: 1; transform: none; }
.masonry__item .expand {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--forest-700); display: grid; place-items: center;
  opacity: 0; transform: scale(.85); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.masonry__item:hover .expand { opacity: 1; transform: none; }
.masonry__item.is-hidden { display: none; }

/* --------------------------------------------------------------------------
   15. Contact / map / form
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--bone-200); min-height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map-skeleton { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--forest-500); }
.map-skeleton .spinner { width: 34px; height: 34px; border: 3px solid var(--sage-300); border-top-color: var(--forest-700); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-info { display: grid; gap: 1.5rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row__icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--bone-200); color: var(--teak-600); display: grid; place-items: center; }
.info-row__icon svg { width: 20px; height: 20px; }
.info-row h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: .2rem; }
.info-row a, .info-row p { color: var(--text); font-size: 1rem; }
.info-row a:hover { color: var(--teak-600); }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: .85rem 1rem; color: var(--charcoal);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teak-600); box-shadow: 0 0 0 3px rgba(107,74,43,.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: .8rem; color: var(--text-muted); }
.form__success { display: none; padding: 1rem 1.2rem; background: rgba(139,160,126,.18); border: 1px solid var(--sage-500); border-radius: var(--radius); color: var(--forest-700); }
.form.is-sent .form__success { display: block; }
.form__error { display: none; padding: 1rem 1.2rem; background: rgba(150,60,45,.09); border: 1px solid #b5654a; border-radius: var(--radius); color: #8c3a28; }
.form.is-error .form__error { display: block; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--forest-900); color: #D9D2C6; padding-top: clamp(3rem, 6vw, 5rem); }
.footer a { color: #D9D2C6; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .wordmark { height: 42px; margin-bottom: 1rem; }
.footer__tag { max-width: 34ch; color: #A9B0A2; font-size: .95rem; }
.footer h4 { font-family: var(--font-body); color: #fff; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__links { display: grid; gap: .6rem; font-size: .95rem; }
.footer__social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer__social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; transition: background .3s var(--ease), border-color .3s; }
.footer__social a:hover { background: var(--teak-600); border-color: var(--teak-600); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .82rem; color: #97A08F; }

/* --------------------------------------------------------------------------
   17. Sticky mobile CTA (Book / WhatsApp)
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-strong); box-shadow: 0 -6px 20px rgba(0,0,0,.12);
}
.sticky-cta a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sticky-cta .s-book { background: var(--charcoal); color: #fff; }
.sticky-cta .s-wa { background: #25D366; color: #073e21; }
.sticky-cta svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .sticky-cta { display: grid; } body { padding-bottom: 52px; } }

/* Floating WhatsApp (desktop) */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 79;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 720px) { .wa-float { display: none; } }

/* --------------------------------------------------------------------------
   18. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.pagehero { position: relative; padding-top: calc(var(--nav-h) + 3rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); color: #fff; isolation: isolate; overflow: hidden; }
.pagehero__bg { position: absolute; inset: 0; z-index: -2; }
.pagehero__bg .ph { width: 100%; height: 100%; border-radius: 0; }
.pagehero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,30,24,.55), rgba(20,30,24,.75)); }
.pagehero h1 { color: #fff; font-size: var(--step-4); }
.pagehero p { color: rgba(255,255,255,.85); max-width: 54ch; margin-top: .8rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tan-200); margin-bottom: 1.1rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .6; }

/* --------------------------------------------------------------------------
   19. Reveal animations (progressive enhancement) + reduced motion
   Content is visible by default; only when JS adds `.js` do we arm reveals.
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); will-change: transform, opacity; }
.js [data-reveal="left"]  { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal="scale"] { transform: scale(.96); }
[data-reveal].is-in { opacity: 1 !important; transform: none !important; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .scroll-cue__line::after { display: none; }
}

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.flex { display: flex; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: .75rem; }
.gap-2 { gap: 1.25rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.divider-leaf { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--sage-500); margin: 0 auto; }
.divider-leaf::before, .divider-leaf::after { content: ""; height: 1px; width: min(120px, 20vw); background: var(--line-strong); }

/* --------------------------------------------------------------------------
   21. Destination components (Explore Nilambur / Plan Your Escape / Story)
   -------------------------------------------------------------------------- */
/* Attraction / place cards */
.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 900px) { .place-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .place-grid { grid-template-columns: 1fr; } }
.card__tagrow { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.chip { background: rgba(255,255,255,.94); color: var(--forest-700); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .32rem .62rem; border-radius: 2px; box-shadow: var(--shadow-sm); }
.chip--dark { background: rgba(31,46,36,.8); color: #fff; }

/* Itinerary cards */
.itin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 760px) { .itin-grid { grid-template-columns: 1fr; } }
.itin { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.1rem); transition: box-shadow .4s var(--ease), transform .4s var(--ease-out); }
.itin:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.itin__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.itin__icon { width: 50px; height: 50px; border-radius: 50%; background: var(--bone-200); color: var(--teak-600); display: grid; place-items: center; flex: none; }
.itin__icon svg { width: 24px; height: 24px; }
.itin__title { font-size: var(--step-1); }
.itin__for { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-top: .15rem; }
.itin__steps { list-style: none; padding: 0; display: grid; gap: .75rem; counter-reset: step; }
.itin__steps li { position: relative; padding-left: 2.2rem; color: var(--text-muted); font-size: .95rem; }
.itin__steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -1px; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--sage-500); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }

/* Access cards */
.access-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 820px) { .access-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .access-grid { grid-template-columns: 1fr; } }
.access { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; }
.access__from { font-family: var(--font-display); font-size: var(--step-1); color: var(--heading); }
.access__km { color: var(--teak-600); font-weight: 700; font-size: .9rem; margin-top: .25rem; }
.access__time { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-top: .12rem; }
.access__note { font-size: .9rem; color: var(--text-muted); margin-top: .7rem; }
.access-modes { display: grid; gap: .6rem; margin-top: 1.75rem; }
.access-modes .info-row__icon { background: var(--forest-700); color: #fff; }

/* "Tired of the same places" band */
.already { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 1.9rem; }
.already span { font-size: .9rem; letter-spacing: .02em; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.24); border-radius: 40px; padding: .42rem .95rem; text-decoration: line-through; text-decoration-thickness: 1px; }

/* Story / editorial typography */
.story-lead { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.45; color: var(--heading); font-weight: 400; }
.pullquote { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); line-height: 1.4; color: var(--forest-500); border-left: 2px solid var(--tan-400); padding-left: 1.5rem; margin: 2rem 0; }

/* Owner TODO note — clearly marks content the family must supply */
.owner-note { border: 1px dashed var(--tan-400); background: rgba(169,137,95,.09); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .9rem; color: var(--teak-700); }
.owner-note b { letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }

/* ==========================================================================
   23. QUIET LUXURY — KERALA ANCESTRAL PALACE  (restrained refinement layer)
   Forest green · warm ivory · FINE antique-gold detailing · teak.
   Deliberately understated. Delete this whole block to return to baseline.
   ========================================================================== */
:root {
  --bone-100: #F6F1E6;      /* a touch warmer, creamier ivory */
  --bone-200: #ECE5D4;
  --gold:      #A9884E;     /* restrained antique gold — hairlines & details only */
  --gold-soft: #C4A56A;
}

/* Gallery-like breathing room */
.section { padding-block: clamp(4rem, 9vw, 8.5rem); }
.section-head { margin-bottom: clamp(2.4rem, 5vw, 4rem); }

/* Fine soft-gold eyebrow rules (text stays quiet teak) */
.eyebrow::before, .eyebrow--center::after { background: var(--gold-soft); height: 1px; width: 36px; }

/* Subtle Kerala gable-and-finial motif beneath centred headings */
.section-head--center h2::after {
  content: ""; display: block; height: 22px; margin: 1.3rem auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='22' viewBox='0 0 160 22'%3E%3Cg fill='none' stroke='%23A9884E' stroke-width='1'%3E%3Cpath d='M6 15h56'/%3E%3Cpath d='M98 15h56'/%3E%3Cpath d='M68 15l12-9 12 9'/%3E%3C/g%3E%3Ccircle cx='80' cy='4.5' r='1.4' fill='%23A9884E'/%3E%3C/svg%3E") center/160px 22px no-repeat;
}

/* Refined editorial image frame — a single fine gold hairline, offset */
.framed::after { inset: 12px -12px -12px 12px; border: 1px solid var(--gold-soft); }

/* Cinematic hero — a fine "estate" hairline frame, sitting behind the text */
.hero__inner { position: relative; z-index: 2; }
.hero::after { content: ""; position: absolute; inset: 90px 26px 30px; z-index: 1; pointer-events: none; border: 1px solid rgba(233,220,188,.38); }
@media (max-width: 640px) { .hero::after { inset: 76px 14px 20px; } }

/* Quieter cards — flatter, hairline, airy; a gentle lift on hover */
.card { box-shadow: none; border: 1px solid var(--line); border-radius: 2px; }
.card:hover { box-shadow: 0 14px 40px rgba(31,46,36,.10); border-color: var(--gold-soft); }
.exp-card, .itin, .access { border-radius: 2px; }
.card__price { background: rgba(255,255,255,.96); border: 1px solid rgba(169,136,78,.4); }

/* Slower, more elegant image movement */
.zoomable img, .zoomable .ph > img { transition: transform 1.2s var(--ease-out); }
.zoomable:hover img, .zoomable:hover .ph > img { transform: scale(1.05); }

/* Fine gold nav underlines; refined solid bar */
.nav__links a::after { background: var(--gold-soft); height: 1px; }
.nav.is-solid { background: rgba(246,241,230,.94); box-shadow: 0 1px 0 rgba(169,136,78,.28); }

/* Restrained gold hairline in the primary CTA & ghost outlines */
.btn--accent { box-shadow: inset 0 0 0 1px rgba(196,165,106,.32); }
.btn--ghost-dark { border-color: rgba(169,136,78,.55); }

/* A whisper of gold in a few signature spots */
.hero__eyebrow { color: #E9DCBC; }
.pagehero { border-bottom: 1px solid var(--gold-soft); }
.footer h4 { color: #CDB98C; }
.testimonial__name { color: #CDB98C; }

/* Very subtle paper grain on ivory bands */
.section--paper, .section--paper-alt { position: relative; isolation: isolate; }
.section--paper::before, .section--paper-alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ==========================================================================
   24. CLASSIC · NATURE · HERITAGE  (botanical touch — removable layer)
   Laurel/leaf sprig motif, a leaf crest on heritage frames, botanical eyebrow
   labels, sage-cream bands, and a gentle aged warmth on photography.
   Delete this whole block to return to the quiet-luxury look.
   ========================================================================== */

/* Botanical eyebrow labels (deep natural green); keep light eyebrows light */
.eyebrow { color: var(--forest-500); }
.eyebrow--light { color: #CDB98C; }

/* Section motif → a fine laurel / leaf sprig (nature + classic) */
.section-head--center h2::after {
  height: 24px; margin-top: 1.3rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='176' height='24' viewBox='0 0 176 24'%3E%3Cg fill='none' stroke='%23A9884E' stroke-width='1'%3E%3Cpath d='M6 13h60'/%3E%3Cpath d='M110 13h60'/%3E%3Cpath d='M88 20V6'/%3E%3Cpath d='M88 13Q79 10 77 13Q83 15 88 13Z'/%3E%3Cpath d='M88 13Q97 10 99 13Q93 15 88 13Z'/%3E%3Cpath d='M88 9.5Q82 7 80.5 9.5Q85 11 88 9.5Z'/%3E%3Cpath d='M88 9.5Q94 7 95.5 9.5Q91 11 88 9.5Z'/%3E%3C/g%3E%3Ccircle cx='88' cy='5' r='1.4' fill='%23A9884E'/%3E%3C/svg%3E") center/176px 24px no-repeat;
}

/* Softer sage-cream on the alternate bands (a breath of nature) */
.section--paper-alt { background: #E8E6D2; }

/* A small leaf crest crowning the heritage image frames */
.framed { position: relative; }
.framed::before {
  content: ""; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 20px; z-index: 3; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cg fill='none' stroke='%23A9884E' stroke-width='1'%3E%3Cpath d='M20 19V5'/%3E%3Cpath d='M20 12Q11 9 9 12Q15 14 20 12Z'/%3E%3Cpath d='M20 12Q29 9 31 12Q25 14 20 12Z'/%3E%3C/g%3E%3Ccircle cx='20' cy='4' r='1.5' fill='%23A9884E'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Gentle aged warmth on photography (shows on real photos + the hero film) */
.pagehero__bg .ph > img, .feature__bg .ph > img, .testimonials__bg .ph > img,
.framed .ratio > img, .card__media .ph > img {
  filter: sepia(.12) saturate(.95) contrast(1.02) brightness(.99);
}
.hero__video { filter: sepia(.06) saturate(.98); }

/* Classic footer detail — a fine botanical rule on top */
.footer { border-top: 1px solid rgba(169,136,78,.3); }

/* ==========================================================================
   25. MOTION — cinematic Ken Burns drift on large backgrounds (removable)
   Paired with initHeroEntrance / initCinematicMotion in js/main.js.
   ========================================================================== */
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.08); } }
.pagehero__bg .ph, .feature__bg .ph, .testimonials__bg .ph {
  animation: kb 36s ease-in-out infinite alternate; transform-origin: center;
}
@media (prefers-reduced-motion: reduce) {
  .pagehero__bg .ph, .feature__bg .ph, .testimonials__bg .ph { animation: none; }
}

/* ==========================================================================
   26. HERO SLIDER  (Swiper slideshow on the Home hero)
   ========================================================================== */
.hero-swiper { position: absolute; inset: 0; z-index: 0; height: 100%; }
.hero-swiper .swiper-wrapper { height: 100%; }
.hero-slide { position: relative; height: 100%; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-slide__bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide__bg .ph { width: 100%; height: 100%; border-radius: 0; }
.hero-slide__bg .ph::after { content: none; }              /* no caption on hero images */
.hero-slide__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,30,24,.55) 0%, rgba(20,30,24,.18) 34%, rgba(20,30,24,.34) 66%, rgba(20,30,24,.82) 100%),
    linear-gradient(90deg, rgba(20,30,24,.5) 0%, rgba(20,30,24,0) 55%);
}
.hero-slide .hero__inner { position: relative; z-index: 2; }

/* Dots */
.hero-slider__dots { position: absolute; left: 0; right: 0; bottom: 78px; z-index: 6; display: flex; justify-content: center; gap: .55rem; }
.hero-slider__dots .swiper-pagination-bullet { width: 9px; height: 9px; margin: 0 !important; background: #fff; opacity: .45; border-radius: 50%; transition: opacity .3s var(--ease), width .3s var(--ease); }
.hero-slider__dots .swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 5px; background: var(--gold-soft, #C4A56A); }

/* Arrows */
.hero-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  color: #fff; display: grid; place-items: center; background: rgba(20,30,24,.18);
  backdrop-filter: blur(4px); transition: background .3s var(--ease), color .3s, border-color .3s;
}
.hero-slider__arrow:hover { background: rgba(255,255,255,.92); color: var(--forest-700); border-color: #fff; }
.hero-slider__arrow svg { width: 20px; height: 20px; }
.hero-slider__arrow--prev { left: clamp(12px, 3vw, 34px); }
.hero-slider__arrow--next { right: clamp(12px, 3vw, 34px); }
.hero-slider__arrow.swiper-button-disabled { opacity: .3; }
@media (max-width: 760px) { .hero-slider__arrow { display: none; } .hero-slider__dots { bottom: 66px; } }

/* ==========================================================================
   27. STYLE PRESETS (demos) + live switcher
   Default = "Ivory & Forest" (no data-theme). Alternates set on <html data-theme>.
   ========================================================================== */
/* — Sage & Linen: cooler, greener, airy — */
:root[data-theme="sage"] {
  --bone-100: #F1F2E9; --bone-200: #E5E8D9;
  --forest-900: #1B2A20; --forest-700: #33513E; --forest-500: #4C6B54;
  --teak-600: #6C5A3E; --gold: #93A06A; --gold-soft: #AEB985; --sage-500: #8BA07E;
  --heading: #2B4635;
}
:root[data-theme="sage"] .section--paper-alt { background: #E4E8D6; }
:root[data-theme="sage"] .hero__eyebrow,
:root[data-theme="sage"] .footer h4,
:root[data-theme="sage"] .testimonial__name { color: #C7D0A8; }

/* — Terracotta & Teak: warm earthy heritage (green base, terracotta accent) — */
:root[data-theme="terracotta"] {
  --bone-100: #F6EDE0; --bone-200: #EEDFCB;
  --teak-600: #9C5A34; --gold: #B26A3C; --gold-soft: #CE8A5A;
  --heading: #3B4A38;
}
:root[data-theme="terracotta"] .section--paper-alt { background: #EEDFCB; }
:root[data-theme="terracotta"] .hero__eyebrow,
:root[data-theme="terracotta"] .footer h4,
:root[data-theme="terracotta"] .testimonial__name { color: #E0B48A; }

/* — Emerald & Brass: deeper, more luxe — */
:root[data-theme="emerald"] {
  --bone-100: #F0ECDC; --bone-200: #E5DEC9;
  --forest-900: #0E1F16; --forest-700: #1C3A2A; --forest-500: #2C5240;
  --teak-600: #5E4126; --gold: #BE9A4E; --gold-soft: #D4B36A;
  --heading: #173124;
}
:root[data-theme="emerald"] .section--paper-alt { background: #E7E1CE; }
:root[data-theme="emerald"] .hero__eyebrow,
:root[data-theme="emerald"] .footer h4,
:root[data-theme="emerald"] .testimonial__name { color: #DCBE7C; }

/* — Live switcher (demo control; remove once a style is chosen) — */
.style-switcher { position: fixed; left: 16px; bottom: 16px; z-index: 85; font-family: var(--font-body); }
.style-switcher__toggle { display: inline-flex; align-items: center; gap: .45rem; background: var(--forest-700); color: #fff; border-radius: 40px; padding: .55rem .95rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; box-shadow: var(--shadow-md); }
.style-switcher__panel { display: none; margin-top: .6rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: .8rem; box-shadow: var(--shadow-lg); width: 216px; }
.style-switcher.open .style-switcher__panel { display: block; }
.style-switcher__title { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: .55rem; }
.style-opt { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .45rem .35rem; border-radius: 6px; text-align: left; font-size: .85rem; color: var(--text); }
.style-opt:hover { background: var(--bone-200); }
.style-opt.is-active { background: var(--bone-200); font-weight: 700; }
.style-opt .sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); flex: none; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%); }
@media (max-width: 720px) { .style-switcher { left: 10px; bottom: 58px; } }

/* ==========================================================================
   28. SPLASH / PRELOADER — activity icons circling the mark (Home entry)
   ========================================================================== */
.splash { position: fixed; inset: 0; z-index: 2000; background: var(--forest-900); display: grid; place-items: center; opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility .9s var(--ease); }
.splash.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
/* Returning visitors (flagged in <head> before paint): skip the splash entirely, no flash */
html.splash-seen .splash { display: none !important; }

.splash-ring { position: relative; width: 360px; height: 360px; }
@media (max-width: 480px) { .splash-ring { transform: scale(.78); } }

/* The ring line draws itself first */
.splash-ring__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.splash-ring__line circle { fill: none; stroke: rgba(196,165,106,.32); stroke-width: 1.5; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: splashDraw 1s var(--ease-out) .1s forwards; }

/* Centre wordmark */
.splash-ring__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; }
.splash__mark { height: 34px; width: auto; color: #F3ECDA; opacity: 0; transform: translateY(10px); animation: splashUp .9s var(--ease-out) .15s forwards; }
.splash__sub { font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft, #C4A56A); opacity: 0; transform: translateY(8px); animation: splashUp .9s var(--ease-out) .4s forwards; }

/* Activity icon cards positioned around the ring, popping in one by one */
.splash-ring .item { position: absolute; width: 58px; height: 58px; }
.splash-ring .card { width: 100%; height: 100%; border-radius: 15px; background: rgba(243,236,218,.05); border: 1px solid rgba(196,165,106,.45); display: grid; place-items: center; opacity: 0; transform: scale(.4); animation: splashPop .55s cubic-bezier(.34,1.56,.64,1) var(--d, 0s) forwards; }
.splash-ring .card svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-soft, #C4A56A); }
.splash-ring .label { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); width: 110px; text-align: center; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; color: #CBB98C; opacity: 0; animation: splashFadeLabel .5s var(--ease-out) calc(var(--d, 0s) + .12s) forwards; }

@keyframes splashUp { to { opacity: 1; transform: none; } }
@keyframes splashDraw { to { stroke-dashoffset: 0; } }
@keyframes splashPop { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes splashFadeLabel { to { opacity: 1; } }

/* The splash is a brief one-time intro, so it keeps its gentle build-in animation
   even under reduced-motion — re-assert its timings over the site-wide
   reduced-motion rule (which otherwise forces all durations to ~0). */
@media (prefers-reduced-motion: reduce) {
  .splash { transition-duration: .9s !important; }
  .splash-ring__line circle { animation-duration: 1s !important; }
  .splash-ring .card { animation-duration: .55s !important; }
  .splash-ring .label { animation-duration: .5s !important; }
  .splash__mark, .splash__sub { animation-duration: .9s !important; }
}
