/* ==========================================================================
   Isa Villas — website
   Brand: Isa Villas Brand & Identity System, Edition 01 (Fusco Studio).
   Colour: Linen page, Jungle Shade text, Banana Leaf chapters, Shell Sand
   accents, one Terracotta accent. Type: Gloock / IM Fell English Italic /
   Familjen Grotesk / Tenor Sans. Corners: 2px.
   ========================================================================== */

:root {
  --linen: #F3EFE7;
  --jungle: #1F2A1E;
  --leaf: #3B4630;
  --sand: #E4D3B4;
  --terracotta: #A5552E;
  --lagoon: #276B6D;
  --concrete: #A9A497;
  --moss: #5A5C4B;

  --f-display: 'Gloock', Georgia, serif;
  --f-italic: 'IM Fell English', Georgia, serif;
  --f-body: 'Familjen Grotesk', system-ui, sans-serif;
  --f-mono: 'Tenor Sans', 'Familjen Grotesk', system-ui, sans-serif;   /* labels (brand book: Tenor Sans 400) */

  --pad: clamp(20px, 5.6vw, 80px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--linen); color: var(--jungle);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
picture { display: block; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--terracotta); outline-offset: 4px; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 16px; background: var(--linen); color: var(--jungle); transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }

.mono { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.5; }
h1, h2, h3, .step__title { font-family: var(--f-display); font-weight: 400; }
.logo { display: block; width: 100%; height: auto; }

/* --- loader: the long line draws, the name appears, the page opens like a gate --- */
.loader { position: fixed; inset: 0; z-index: 120; color: var(--jungle); pointer-events: none; }
.loader__door { position: absolute; top: 0; bottom: 0; overflow: hidden; background: var(--linen); }
.loader__door--l { left: 0; }
.loader__door--r { right: 0; }
.loader__mark { position: absolute; opacity: 0; }
.loader__mark svg { width: 100%; height: 100%; display: block; }
.loader__dot, .loader__stem { position: absolute; background: var(--jungle); }
.loader__stem { transform-origin: top; }
.no-intro .loader { display: none; }

/* --- nav --------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: 96px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad);
  color: var(--linen); transition: color .6s var(--ease), transform .8s var(--ease);
}
.nav[data-theme="dark"] { color: var(--jungle); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; justify-self: start; }
.nav__logo { width: 52px; display: block; }
.nav__logo svg { width: 100%; height: auto; display: block; }
.nav__rule { width: 1px; height: 34px; background: currentColor; opacity: .5; }
.nav__lines { font-size: 9px; letter-spacing: .24em; line-height: 1.7; opacity: .85; }
.nav__links { display: flex; align-items: center; gap: 16px; }
.nav__links a, .nav__cta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; padding: 12px 0; position: relative; }
.nav__links a::after, .nav__cta::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav__links a:hover::after, .nav__cta:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__sep { width: 5px; height: 5px; transform: rotate(45deg); background: currentColor; opacity: .6; }
.nav__cta { justify-self: end; }

/* burger (mobile only): two hairlines that turn into a cross */
.nav__burger { display: none; justify-self: end; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.25px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* full-screen menu on Banana Leaf */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--leaf); color: var(--linen);
  display: flex; align-items: flex-end; padding: 0 var(--pad) 44px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s linear .8s;
}
.menu-open .menu { clip-path: inset(0 0 0% 0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu__inner { width: 100%; }
.menu__links { border-top: 1px solid rgba(243, 239, 231, .18); }
.menu__links li { border-bottom: 1px solid rgba(243, 239, 231, .18); overflow: hidden; }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px; padding: 18px 0;
  font-family: var(--f-display); font-size: clamp(40px, 12vw, 64px); line-height: 1; letter-spacing: -.012em; text-decoration: none;
  transform: translateY(100%); transition: transform .8s var(--ease);
}
.menu-open .menu__links a { transform: none; }
.menu-open .menu__links li:nth-child(2) a { transition-delay: .06s; }
.menu-open .menu__links li:nth-child(3) a { transition-delay: .12s; }
.menu-open .menu__links li:nth-child(4) a { transition-delay: .18s; }
.menu__num { font-size: 10px; color: var(--sand); opacity: .8; }
.menu__foot { margin-top: 32px; font-size: 10px; line-height: 2; color: rgba(243, 239, 231, .8); }
.menu-open .nav { color: var(--linen); transform: none; }

/* --- 1 · hero ------------------------------------------------------------------------ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--jungle); color: var(--linen); }
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__slide { position: absolute; inset: 0; opacity: 0; }
.hero__slide.is-on { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
/* Jungle Shade scrim, 40–55% where type sits (brand rule) */
.hero__slide + .hero__slide { clip-path: inset(0 50% 0 50%); }
/* Jungle Shade scrim: deeper behind the centred headline and the corner caption (WCAG 1.4.3) */
.hero__shade { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(64% 42% at 50% 47%, rgba(31, 42, 30, .66) 0%, rgba(31, 42, 30, .48) 55%, rgba(31, 42, 30, 0) 100%),
  linear-gradient(180deg, rgba(31, 42, 30, .74) 0%, rgba(31, 42, 30, .5) 11%, rgba(31, 42, 30, .12) 24%, rgba(31, 42, 30, .12) 70%, rgba(31, 42, 30, .62) 88%, rgba(31, 42, 30, .7) 100%); }
.hero__title, .hero__eyebrow, .hero__caption, .nav[data-theme="light"] a { text-shadow: 0 1px 16px rgba(31, 42, 30, .5); }
/* the headline sits across the middle of the photograph */
.hero__content { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 var(--pad); pointer-events: none; }
.hero__eyebrow { margin-bottom: 28px; }
.hero__title { font-size: clamp(56px, 9.4vw, 148px); line-height: .92; letter-spacing: -.02em; }
.hero__title .line { display: block; }
/* caption and controls in the corner */
.hero__foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 36px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero__caption { display: flex; align-items: baseline; gap: 18px; font-size: 15px; }
.hero__count { font-size: 11px; font-variant-numeric: tabular-nums; }
.hero__arrows { display: flex; gap: 2px; }
.hero__media { cursor: e-resize; touch-action: pan-y; }
.arrow { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; opacity: .9; transition: opacity .4s var(--ease); }
.arrow:hover { opacity: 1; }
.arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

/* --- 2 · intro ------------------------------------------------------------------------ */
.intro { padding: 176px 0 200px; }
.intro__inner { width: min(1024px, calc(100% - var(--pad) * 2)); margin-inline: auto; }
.intro__star { width: 30px; height: 30px; fill: var(--jungle); margin-bottom: 40px; }
.intro__text { font-family: var(--f-display); font-size: clamp(30px, 3.3vw, 48px); line-height: 1.18; letter-spacing: -.008em; }

/* --- 3 · a day (pinned) ----------------------------------------------------------------- */
.arrival { position: relative; background: var(--jungle); color: var(--linen); }
.arrival__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.arrival__frame { position: absolute; inset: 0; }
.arrival__frame img { width: 100%; height: 100%; object-fit: cover; }
.arrival__frame + .arrival__frame { clip-path: inset(50% 50% 50% 50%); }
/* Jungle Shade scrim where type sits (left and bottom) */
.arrival__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(31, 42, 30, .66) 0%, rgba(31, 42, 30, .3) 45%, rgba(31, 42, 30, 0) 70%),
  linear-gradient(0deg, rgba(31, 42, 30, .7) 0%, rgba(31, 42, 30, .45) 34%, rgba(31, 42, 30, 0) 56%),
  linear-gradient(180deg, rgba(31, 42, 30, .6) 0%, rgba(31, 42, 30, 0) 24%); }
/* the path: one long vertical line, like the i in the mark, filling as you walk */
.arrival__path { position: absolute; left: var(--pad); top: 120px; bottom: 72px; width: 1.25px; background: rgba(243, 239, 231, .3); }
.arrival__path span { position: absolute; inset: 0; background: var(--linen); transform: scaleY(0); transform-origin: top; }
.arrival__label { position: absolute; left: calc(var(--pad) + 28px); top: 112px; font-size: 11px; color: var(--linen); text-shadow: 0 1px 12px rgba(31, 42, 30, .55); }
.arrival__steps { position: absolute; left: calc(var(--pad) + 28px); right: var(--pad); bottom: 72px; height: 220px; }
.step { position: absolute; left: 0; right: 0; bottom: 0; }
.step + .step { opacity: 0; }
.step__num { font-size: 11px; color: var(--linen); margin-bottom: 16px; text-shadow: 0 1px 12px rgba(31, 42, 30, .55); }
.step__title { max-width: 11em; font-family: var(--f-display); font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.012em; text-shadow: 0 1px 18px rgba(31, 42, 30, .4); }

/* --- 4 · the villas: three named bands that stack as you scroll ------------------ */
.villas { padding-top: 140px; }
.villas__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; padding-bottom: 96px; }
.villas__label { grid-column: 1 / -1; color: var(--moss); margin-bottom: 18px; }
.villas__title { grid-column: 1 / span 7; font-size: clamp(48px, 7vw, 104px); line-height: .96; letter-spacing: -.02em; }
.villas__lede { grid-column: 9 / span 4; color: var(--moss); max-width: 30em; }
.villa { position: sticky; top: 0; min-height: 100vh; display: grid; align-items: center; padding: 96px 0; }
.villa--daun { background: var(--leaf); color: var(--linen); }
.villa--batu { background: var(--concrete); color: var(--jungle); }
.villa--air { background: var(--lagoon); color: var(--linen); }
.villa__inner { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: center; }
.villa__text { grid-column: 1; }
.villa__media { grid-column: 3; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.villa__media img { width: 100%; height: 100%; object-fit: cover; }
.villa__num { font-size: 11px; margin-bottom: 18px; }
.villa__name { font-size: clamp(80px, 11vw, 168px); line-height: .86; letter-spacing: -.03em; }
.villa__line { margin-top: 22px; font-size: 18px; max-width: 24em; }
.facts { margin-top: 36px; border-top: 1px solid currentColor; }
.facts li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid currentColor; font-size: 15px; }
.villa--daun .facts, .villa--daun .facts li, .villa--air .facts, .villa--air .facts li { border-color: rgba(243, 239, 231, .3); }
.villa--batu .facts, .villa--batu .facts li { border-color: rgba(31, 42, 30, .3); }
.facts svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.villa__link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; margin-top: 28px; font-family: var(--f-body); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-underline-offset: 6px; }
.villa__link:hover { text-decoration-thickness: 2px; }
.villa--batu :focus-visible { outline-color: var(--jungle); }
.villa--daun :focus-visible, .villa--air :focus-visible { outline-color: var(--linen); }
.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; }

/* --- 5 · questions ---------------------------------------------------------------------- */
.faq { padding: 44px 0 150px; }
.faq__kicker { font-family: var(--f-display); font-size: 14px; color: var(--moss); margin-bottom: 16px; }
.faq__title { font-size: clamp(38px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.012em; max-width: 15em; margin-bottom: 72px; }
.faq__list { border-top: 1px solid rgba(169, 164, 151, .5); }
.faq__row { display: grid; grid-template-columns: 511fr 40fr 672fr 57fr; padding: 36px 0; border-bottom: 1px solid rgba(169, 164, 151, .5); }
.faq__row dt { grid-column: 1; font-family: var(--f-display); font-size: clamp(20px, 1.6vw, 23px); line-height: 1.14; }
.faq__row dd { grid-column: 3; color: var(--moss); font-size: 15.5px; line-height: 1.7; }

/* --- 5 · in every villa: eight facts, line icons ------------------------------- */
.inside { padding: 150px 0 140px; }
.inside__label { color: var(--moss); margin-bottom: 18px; }
.inside__title { font-size: clamp(40px, 4.6vw, 68px); line-height: 1; letter-spacing: -.015em; max-width: 13em; margin-bottom: 72px; }
.inside__grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
.amenity { display: grid; gap: 18px; padding: 28px 0 40px; border-top: 1px solid rgba(169, 164, 151, .6); font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.15; }
.amenity svg { width: 30px; height: 30px; fill: none; stroke: var(--jungle); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

/* --- 6 · place: real distances, set large ------------------------------------------ */
.place { background: var(--leaf); color: var(--linen); padding: 150px 0; }
.place__inner { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: end; }
.place__text { grid-column: 1; }
.place__label { color: var(--sand); margin-bottom: 18px; }
.place__title { font-size: clamp(44px, 5.4vw, 80px); line-height: .98; letter-spacing: -.02em; }
.place__lede { margin-top: 26px; max-width: 30em; color: rgba(243, 239, 231, .88); }
.place__stats { grid-column: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.stat { border-top: 1px solid rgba(243, 239, 231, .3); padding-top: 22px; }
.stat__num { white-space: nowrap; font-family: var(--f-display); font-size: clamp(54px, 8vw, 128px); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 14px; font-size: 15px; color: rgba(243, 239, 231, .88); }

/* --- 8 · stay with us: Shell Sand, the shell lamp, the form ------------------------- */
.stay { background: var(--sand); color: var(--jungle); padding: 150px 0 140px; }
.stay__inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.stay__intro { grid-column: 1 / span 5; }
.stay__label { margin-bottom: 18px; }
.stay__title { font-size: clamp(42px, 4.8vw, 72px); line-height: 1; letter-spacing: -.015em; }
/* the one Terracotta moment on the page (brand rule) — large text, 3.62:1 on Sand passes for large type */
.stay__title em { font-family: var(--f-italic); font-style: italic; color: var(--terracotta); }
.stay__body { margin-top: 26px; max-width: 28em; }
.stay__shell { grid-column: 6 / span 2; align-self: end; width: 100%; max-width: 220px; justify-self: center; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius); }
.stay__shell img { width: 100%; height: 100%; object-fit: cover; }
.stay .enquire__form { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr; gap: 26px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field .mono { font-size: 10px; color: var(--jungle); }
.field input, .field textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--jungle); background: none; border: 0; border-bottom: 1px solid rgba(31, 42, 30, .5);
  padding: 8px 0 10px; border-radius: 0; resize: vertical; transition: border-color .6s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom: 1px solid var(--jungle); box-shadow: 0 1px 0 var(--jungle); }
.enquire__send { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.send {
  min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  background: var(--leaf); color: var(--linen);
  font-family: var(--f-body); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .6s var(--ease);
}
/* one primary per view: Banana Leaf at rest, warming to Terracotta on intent */
.send:hover, .send:focus-visible { background: var(--terracotta); }
.send span { display: inline-block; margin-left: 6px; transition: transform .6s var(--ease); }
.send:hover span { transform: translateX(4px); }
.enquire__note { font-size: 13px; color: rgba(31, 42, 30, .82); text-align: right; max-width: 24em; }
.stay :focus-visible { outline-color: var(--jungle); }

/* footer band */
.foot-band { background: var(--jungle); padding: 56px var(--pad) 44px; }
.foot-band .site-foot { max-width: 1280px; margin: 0 auto; }

/* --- motion presets (only once JS runs) --------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .arrival__pin { height: auto; }
  .arrival__frame { position: relative; height: 70vh; }
  .arrival__frame + .arrival__frame { clip-path: none; }
  .arrival__shade, .arrival__path { display: none; }
  .arrival__label { position: static; display: block; padding: 96px var(--pad) 24px; }
  .arrival__steps { position: static; height: auto; display: grid; gap: 28px; padding: 32px var(--pad) 96px; }
  .step, .step + .step { position: static; opacity: 1; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { grid-template-columns: 1fr auto; height: 76px; }
  .nav nav, .nav__rule, .nav__lines, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__foot { bottom: 24px; }
  .hero__shade { background:
    radial-gradient(120% 40% at 50% 46%, rgba(31, 42, 30, .7) 0%, rgba(31, 42, 30, .5) 60%, rgba(31, 42, 30, 0) 100%),
    linear-gradient(180deg, rgba(31, 42, 30, .74) 0%, rgba(31, 42, 30, .45) 11%, rgba(31, 42, 30, .12) 24%, rgba(31, 42, 30, .12) 70%, rgba(31, 42, 30, .62) 86%, rgba(31, 42, 30, .72) 100%); }
  .hero__caption { flex-direction: column; gap: 4px; font-size: 14px; }
  .intro { padding: 110px 0 120px; }
  .arrival__path { top: 96px; bottom: 40px; }
  .arrival__label { top: 88px; }
  .arrival__steps { bottom: 40px; height: 180px; }
  .villas__head { padding-bottom: 56px; row-gap: 20px; }
  .villas__title, .villas__lede { grid-column: 1 / -1; }
  .villa { position: relative; min-height: 0; padding: 64px 0; }
  .villa__inner { grid-template-columns: 1fr; row-gap: 36px; }
  .villa__text, .villa__media { grid-column: 1; }
  .villa__media { order: -1; }
  .faq__row { grid-template-columns: 1fr; gap: 10px; }
  .faq__row dt, .faq__row dd { grid-column: 1; }
  .inside { padding: 96px 0; }
  .inside__grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .amenity { padding: 20px 0 28px; }
  .place { padding: 96px 0; }
  .place__inner { grid-template-columns: 1fr; row-gap: 56px; }
  .place__text, .place__stats { grid-column: 1; }
  .stat__num { font-size: clamp(44px, 13vw, 64px); }
  .stay { padding: 96px 0; }
  .stay__inner { row-gap: 40px; }
  .stay__intro, .stay .enquire__form { grid-column: 1 / -1; }
  .stay__shell { grid-column: 1 / -1; justify-self: start; max-width: 160px; }
  .enquire__send { flex-direction: column; align-items: stretch; gap: 14px; }
  .send { width: 100%; min-height: 52px; }
  .enquire__note { text-align: left; }
}

/* ==========================================================================
   Compliance + accessibility additions
   ========================================================================== */

/* visible focus on dark grounds */
.hero :focus-visible, .arrival :focus-visible, .place :focus-visible, .foot-band :focus-visible, .menu :focus-visible,
.nav[data-theme="light"] :focus-visible { outline-color: var(--linen); }



/* form: hints, errors, consent */
.field__req { text-transform: none; letter-spacing: .04em; opacity: .8; }
.field__hint { font-size: 13px; color: rgba(31, 42, 30, .82); }
.field__err { font-size: 13px; color: #7A3A1C; }
.field__err:empty { display: none; }
.field [aria-invalid="true"] { border-bottom-color: #7A3A1C; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 6px 12px; align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--leaf); cursor: pointer; }
.consent label { font-size: 14px; line-height: 1.55; color: var(--jungle); cursor: pointer; }
.consent a { color: var(--jungle); text-underline-offset: 3px; }
.consent .field__err { grid-column: 2; }

/* shared footer (business details + legal links) */
.site-foot { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; padding-top: 26px; border-top: 1px solid rgba(243, 239, 231, .2); font-size: 13px; line-height: 1.7; color: rgba(243, 239, 231, .85); }
.site-foot a { color: inherit; text-underline-offset: 3px; }
.site-foot__label { font-size: 10px; margin-bottom: 4px; color: var(--linen); }
.site-foot__legal { display: grid; gap: 4px; align-content: start; text-align: right; }
.site-foot__legal a { text-decoration: none; min-height: 24px; }
.site-foot__legal a:hover { text-decoration: underline; }
.site-foot__copy { grid-column: 1 / -1; font-size: 10px; color: rgba(243, 239, 231, .8); }

/* information only the owner can supply — must be filled in before launch */
.todo { background: var(--sand); color: var(--jungle); padding: 0 .3em; border-radius: var(--radius); font-style: normal; }

/* policy pages */
.legal-page { background: var(--linen); }
.legal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--pad); color: var(--jungle); }
.legal-head__brand { display: block; }
.legal-head__back { text-decoration: none; padding: 12px 0; }
.legal-head__back:hover { text-decoration: underline; text-underline-offset: 6px; }
.legal { width: min(760px, calc(100% - var(--pad) * 2)); margin: 0 auto; padding: 72px 0 120px; }
.legal__kicker { color: var(--moss); margin-bottom: 18px; }
.legal__title { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.012em; }
.legal__lede { margin-top: 20px; font-size: 19px; color: var(--moss); max-width: 36em; }
.legal__body { margin-top: 56px; border-top: 1px solid rgba(169, 164, 151, .6); padding-top: 16px; }
.legal__body h2 { font-size: 26px; line-height: 1.15; margin: 44px 0 14px; }
.legal__body h3 { font-family: var(--f-body); font-weight: 600; font-size: 17px; margin: 24px 0 6px; }
.legal__body p, .legal__body li { max-width: 65ch; }
.legal__body p + p { margin-top: 12px; }
.legal__body ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 8px; margin: 12px 0; }
.legal__body a { color: var(--jungle); text-underline-offset: 3px; }
.legal-foot { background: var(--jungle); padding: 48px var(--pad) 40px; }
.legal-foot .site-foot { max-width: 1280px; margin: 0 auto; }

@media (max-width: 860px) {
  .site-foot { grid-template-columns: 1fr; }
  .site-foot__legal { text-align: left; }
  .consent label { font-size: 14px; }
}

/* reduced motion on small screens: the day section simply stacks (after the mobile rules so it wins) */
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .arrival__steps { position: static; height: auto; }
}

/* ==========================================================================
   Phones: comfortable labels, real tap targets, no tap flash, steady heights
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
a:active, button:active, summary:active { opacity: .72; }
.menu { overscroll-behavior: contain; }
@media (max-width: 860px) {
  /* spaced uppercase labels: 12px on small screens */
  .mono, .nav__cta, .hero__count, .arrival__label, .step__num, .villa__num, .inside__label, .place__label,
  .stay__label, .villas__label, .field .mono, .site-foot__label, .site-foot__copy, .menu__num, .menu__foot,
  .legal__kicker, .legal-head__back { font-size: 12px; letter-spacing: .16em; }
  .field__req { font-size: 11px; }
  /* 44px targets */
  .consent { grid-template-columns: 28px 1fr; }
  .consent input { width: 24px; height: 24px; margin: 0; }
  .site-foot__legal a { display: block; padding: 10px 0; min-height: 44px; }
  .site-foot a[href^="https://wa.me"] { display: inline-block; padding: 10px 0; }
  .villa__link { min-height: 48px; }
}
/* phones held sideways: everything fits the short screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero__title { font-size: clamp(40px, 11vh, 72px); }
  .hero__eyebrow { margin-bottom: 14px; }
  .arrival__label { top: 76px; }
  .arrival__path { top: 80px; bottom: 24px; }
  .arrival__steps { bottom: 24px; height: 120px; }
  .step__title { font-size: clamp(28px, 8vh, 44px); }
  .menu { align-items: center; padding-bottom: 0; }
  .menu__links a { padding: 8px 0; font-size: 32px; }
  .menu__foot { display: none; }
}

/* the top bar's ground once you are past the hero (colour follows the section beneath) */
.nav { transition: color .6s var(--ease), transform .8s var(--ease), background-color .5s var(--ease); }
.nav.is-solid[data-theme="dark"] { background: rgba(243, 239, 231, .94); }
.nav.is-solid[data-theme="light"] { background: rgba(31, 42, 30, .82); }
@supports (backdrop-filter: blur(1px)) {
  .nav.is-solid { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .nav.is-solid[data-theme="dark"] { background: rgba(243, 239, 231, .86); }
  .nav.is-solid[data-theme="light"] { background: rgba(31, 42, 30, .7); }
}
.menu-open .nav.is-solid { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav[data-theme="sand"] { color: var(--jungle); }
.nav.is-solid[data-theme="sand"] { background: rgba(228, 211, 180, .9); }
