/* ==========================================================================
   Colonial Manor Hackettstown — 9163
   Design system derived from screen3.jpg
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces — Mediterranean cream, sand and blush */
  --cream:        #F6EFE4;
  --cream-lift:   #FCF8F0;
  --sand:         #F1E5D5;
  --panel:        #EADCC8;
  --panel-deep:   #DCCBB0;
  --blush:        #F0DFCC;   /* the pale circles behind screen3's icons */

  /* Warm brown carries the type; screen3 has no green in its headings. */
  --bark:         #453626;

  /* Green survives only as the testimonial panel and the olive branches. */
  --sage-soft:    #8A9460;   /* botanical line art */
  --sage-pale:    #D9DCC0;   /* eyebrows on the olive panel */
  --band-olive:   #565C34;

  /* Terracotta — the signature of screen3, and the whole accent layer.
     --terra is bright enough only for fills and large display type; text
     uses --terra-ink, and the CTA band uses --terra-deep. */
  --terra:        #C05E28;   /* icon medallions, badges, large display */
  --terra-ink:    #9D4D21;   /* terracotta AS text: links, figures, italics */
  --terra-deep:   #A14F22;   /* full-bleed CTA band, primary button */
  --terra-shade:  #75401C;   /* screen3's deepest burnt umber: hover states */
  --warm-pale:    #F5E5D7;   /* eyebrows on the terracotta band (4.67:1 on it) */

  /* Ink */
  --ink:          #3A3025;
  --muted:        #6E6152;
  --line:         #E3D4BE;
  --line-soft:    #EDE2D2;
  --on-dark:      #FBF5EC;   /* text on the colour panels */

  /* Channel copies for the handful of rules that need alpha.
     Keep these in step with the hex values above. */
  --cream-rgb:      246 239 228;
  --cream-lift-rgb: 252 248 240;
  --panel-rgb:      234 220 200;
  --bark-rgb:        69  54  38;
  --terra-ink-rgb:  157  77  33;
  --ink-rgb:         58  48  37;
  --on-dark-rgb:    251 245 236;

  --serif:  "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:   "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* screen3 sets its tagline in a light monoline script. Used for one short
     emphasised phrase only — never for body copy or anything load-bearing. */
  --script: "Parisienne", "Snell Roundhand", "Apple Chancery", cursive;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Organic shapes.
     --wave and --sprig are used as MASKS (alpha only), so the colour always
     comes from a token via background-color — never baked into the data URI. */
  /* Each side's pair of radii must sum to well under 100%, otherwise the
     curves meet with no straight edge between them and the shape collapses
     into a plain ellipse — which covers only ~78% of its box and makes the
     photo look too small for the space it is given. These sum to ~70-78%. */
  --blob-a: 30% 46% 34% 42% / 26% 40% 30% 48%;
  --blob-b: 44% 28% 46% 32% / 38% 30% 44% 34%;
  /* screen3's dividers are one long asymmetric sweep, not a repeating ribbon,
     and they are deep — about 10% of the page width. Two mirrored variants so
     consecutive dividers on a page don't read as the same stamp. */
  --wave-h: clamp(46px, 6vw, 100px);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,120 L0,18 C340,104 900,112 1440,52 L1440,120 Z' fill='%23000'/%3E%3C/svg%3E");
  --wave-alt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,120 L0,52 C540,112 1100,104 1440,18 L1440,120 Z' fill='%23000'/%3E%3C/svg%3E");
  --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22 C12 14 12 8 12 2'/%3E%3Cpath d='M12 12 C6 11 3 7.5 2.6 3 C8 2.6 11.4 6.4 12 12 Z'/%3E%3Cpath d='M12 17 C18 16 21 12.5 21.4 8 C16 7.6 12.6 11.4 12 17 Z'/%3E%3C/svg%3E");
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  --caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  --sprig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 260' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M62 256 C58 200 56 150 60 100 C63 62 70 30 80 2'/%3E%3Cpath d='M59 218 C40 214 27 197 25 176 C47 175 57 194 59 218 Z'/%3E%3Cpath d='M58 193 C77 189 90 172 92 151 C70 150 60 169 58 193 Z'/%3E%3Cpath d='M57 163 C38 159 25 142 23 121 C45 120 55 139 57 163 Z'/%3E%3Cpath d='M58 136 C77 132 90 115 92 94 C70 93 60 112 58 136 Z'/%3E%3Cpath d='M60 108 C41 104 28 87 26 66 C48 65 58 84 60 108 Z'/%3E%3Cpath d='M64 81 C83 77 96 60 98 39 C76 38 66 57 64 81 Z'/%3E%3C/svg%3E");

  --shadow-sm: 0 2px 10px rgb(var(--bark-rgb) / .05);
  --shadow-md: 0 12px 34px rgb(var(--bark-rgb) / .09);
  --shadow-lg: 0 26px 60px rgb(var(--bark-rgb) / .13);

  --wrap: 1180px;
  --gutter: 28px;
  --header-h: 84px;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Grey flash on tap looks broken on a warm palette. */
  -webkit-tap-highlight-color: rgb(var(--terra-ink-rgb) / .16);
}
/* The header is sticky, so anchored jumps must clear it — otherwise the skip
   link lands with the heading hidden underneath. */
#main, [id] { scroll-margin-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  /* Jost runs a smaller x-height than the Inter it replaced — the bump holds
     the previous apparent reading size rather than enlarging the type. */
  font-size: 17px;
  line-height: 1.74;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--terra-ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--terra-shade); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bark);
  letter-spacing: -.005em;
  margin: 0 0 .5em;
  line-height: 1.14;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.15rem); }
h2 { font-size: clamp(2rem, 3.9vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.65rem); line-height: 1.28; }
h4 { font-size: 1.16rem; line-height: 1.35; }

/* screen3 breaks its display type with a script phrase. Applied only to an
   <em> inside a heading — a short emphasised fragment whose meaning the
   surrounding sentence already carries, so nothing depends on reading it. */
h1 em, h2 em, h3 em {
  font-family: var(--script);
  font-style: normal;
  font-size: 1.24em;      /* Parisienne runs a small x-height */
  line-height: .95;
  color: var(--terra-ink);
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--terra-ink); color: var(--on-dark); }

:focus-visible {
  outline: 2.5px solid var(--terra-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--bark); color: var(--on-dark);
  padding: 11px 20px; border-radius: var(--r-pill);
  font-size: .84rem; font-weight: 600;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--on-dark); }

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

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 820px; }

.section { padding: clamp(64px, 8.5vw, 118px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 78px) 0; }
.section--sand { background: var(--sand); }
.section--panel { background: var(--panel); }
.section--lift  { background: var(--cream-lift); }

/* Every sand block rises into the section above it on a wavy crest. Only the
   top edge is waved — the bottom is left to whatever follows (a colour band
   draws its own wave over it, and the footer is sand too, so it needs none).
   That keeps a single owner for each boundary and avoids two waves colliding
   in the same gap. */
.section--sand {
  margin-top: var(--wave-h);
}
.section--sand::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; z-index: 1;
  height: var(--wave-h);
  background-color: var(--sand);
  -webkit-mask: var(--wave) center / 100% 100% no-repeat;
          mask: var(--wave) center / 100% 100% no-repeat;
}
/* Sand meeting sand needs no divider at all (schedule-a-tour stacks two). */
.section--sand + .section--sand { margin-top: 0; }
.section--sand + .section--sand::before { content: none; }

/* Where a sand block sits directly above a colour band (every interior page:
   the Visit Us strip, then the CTA), the band's top margin would otherwise
   show the page's cream through the wave troughs as a stray sliver. Fill that
   gap with sand at z-index 0 so the band's wave draws straight onto it. */
.section--sand:has(+ .band)::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; z-index: 0;
  height: var(--wave-h);
  background: var(--sand);
}

@supports not ((-webkit-mask-image: none) or (mask-image: none)) {
  .section--sand { margin-top: 0; }
  .section--sand::before { content: none; }
}

/* ---------- Colour bands with wavy edges ----------
   One component for every full-bleed colour block. The wave is drawn by two
   pseudo-elements that sit just outside the band and are masked with --wave,
   so the colour is always var(--band-bg) and stays fully tokenized. */
.band {
  position: relative;
  --band-bg: var(--sand);   /* default; overridden by the modifiers below */
  background: var(--band-bg);
  padding: clamp(72px, 9vw, 124px) 0;
  margin: var(--wave-h) 0;
}
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: var(--wave-h);
  background-color: var(--band-bg);
  -webkit-mask: var(--wave-img) center / 100% 100% no-repeat;
          mask: var(--wave-img) center / 100% 100% no-repeat;
}
.band::before { --wave-img: var(--wave);     bottom: 100%; z-index: 1; }
.band::after  { --wave-img: var(--wave-alt); top: 100%; z-index: 1; transform: scaleY(-1); }

/* The closing CTA band is the last thing in <main>, so let its wave dip
   straight into the footer rather than leaving a cream strip between them.
   The footer's own top padding is widened to match (see Footer). */
main > .band:last-child { margin-bottom: 0; }

.band--terra { --band-bg: var(--terra-deep); color: var(--on-dark); }
.band--sand  { --band-bg: var(--sand); }

/* screen3 floats its olive block as an inset, heavily rounded panel rather
   than a full-bleed band. The colour moves onto the inner .wrap so this needs
   no markup change; the wavy edges belong to the terracotta band only. */
.band--olive {
  background: none;
  color: var(--on-dark);
  padding: clamp(18px, 3vw, 40px) 0;
  margin: 0;
}
.band--olive::before, .band--olive::after { content: none; }
.band--olive > .wrap {
  /* The panel is inset, so it needs its own width — .wrap's padding-inline is
     overridden below, and without this the panel would run edge-to-edge on a
     phone instead of floating. */
  width: calc(100% - var(--gutter) * 2);
  max-width: calc(var(--wrap) - var(--gutter) * 2);
  margin-inline: auto;
  background: var(--band-olive);
  border-radius: clamp(40px, 5.5vw, 84px) clamp(40px, 5.5vw, 84px)
                 clamp(40px, 5.5vw, 84px) clamp(40px, 5.5vw, 84px) / clamp(34px, 4.5vw, 70px);
  padding: clamp(44px, 5.6vw, 78px) clamp(28px, 4.6vw, 62px);
}

.band--olive h2, .band--olive h3, .band--olive h4,
.band--terra h2, .band--terra h3, .band--terra h4 { color: var(--on-dark); }
.band--olive .lede, .band--terra .lede,
.band--olive p, .band--terra p,
/* .card p / .svc-card-body p set --muted at equal specificity, so the
   descendant forms below are needed to win inside a band. */
.band--olive .card p, .band--terra .card p,
.band--olive .checklist li, .band--terra .checklist li { color: rgb(var(--on-dark-rgb) / .9); }
.band--olive .eyebrow { color: var(--sage-pale); }
.band--terra .eyebrow { color: var(--warm-pale); }
.band .wrap { position: relative; z-index: 1; }

/* Where masks are unavailable, fall back to a clean straight edge rather
   than leaving a coloured rectangle hanging off the band. */
@supports not ((-webkit-mask-image: none) or (mask-image: none)) {
  .band { margin: 0; }
  .band::before, .band::after { display: none; }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .715rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terra-ink);
  margin: 0 0 1.1rem;
}
/* The small botanical glyph the reference sets after each eyebrow. */
.eyebrow::after {
  content: ""; flex: none;
  width: 12px; height: 12px;
  background-color: currentColor; opacity: .62;
  -webkit-mask: var(--leaf) center / contain no-repeat;
          mask: var(--leaf) center / contain no-repeat;
}
.eyebrow--chip {
  background: var(--blush);
  border-radius: var(--r-pill);
  padding: 7px 17px;
  color: var(--bark);
}

.lede {
  font-size: 1.075rem;
  color: var(--muted);
  line-height: 1.78;
  max-width: 56ch;
}
.lede--center { margin-inline: auto; }

.section-head { max-width: 62ch; margin-bottom: clamp(38px, 4.6vw, 60px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .lede { margin-inline: auto; }
/* screen3 flanks its centred section labels with short rules: — WHAT I DO —
   The leaf glyph on .eyebrow::after becomes the right-hand rule, so the mask
   has to be cleared or the 30x1 bar would be cut to a leaf silhouette. */
.section-head--center .eyebrow { gap: 14px; }
.section-head--center .eyebrow::before,
.section-head--center .eyebrow::after {
  content: ""; flex: none;
  width: 30px; height: 1px;
  background-color: currentColor; opacity: .62;
  -webkit-mask: none; mask: none;
}
.section-head p:last-child { margin-bottom: 0; }

.section-head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; max-width: none;
}
.section-head--split > div { max-width: 60ch; }

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-size: .885rem; font-weight: 600; letter-spacing: .015em;
  line-height: 1;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn svg { flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--terra-deep); color: var(--on-dark); }
.btn--primary:hover {
  background: var(--terra-shade); color: var(--on-dark);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent; color: var(--bark);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--cream-lift); color: var(--bark);
  border-color: var(--terra); transform: translateY(-2px);
}

.btn--light { background: var(--cream-lift); color: var(--terra-ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--blush); color: var(--terra-ink); transform: translateY(-2px); }

/* .65 keeps the control's boundary at 3:1 against both band colours. */
.btn--outline-light { background: transparent; color: var(--on-dark); border-color: rgb(var(--on-dark-rgb) / .65); }
.btn--outline-light:hover {
  background: rgb(var(--on-dark-rgb) / .14); color: var(--on-dark);
  border-color: var(--on-dark);
}

/* On the olive band the light button keeps the green family. */
.band--olive .btn--light, .band--olive .btn--light:hover { color: var(--bark); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600; color: var(--terra-ink);
  letter-spacing: .03em; text-transform: uppercase;
}
.link-arrow:hover { color: var(--terra-deep); }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.band--olive .link-arrow, .band--terra .link-arrow { color: var(--on-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(var(--cream-rgb) / .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 26px rgb(var(--bark-rgb) / .055);
}

.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand:hover { color: inherit; }
.brand-mark { flex: none; color: var(--terra-ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif); font-size: 1.42rem;
  color: var(--bark); letter-spacing: .002em;
}
.brand-sub {
  font-size: .585rem; font-weight: 600; letter-spacing: .175em;
  text-transform: uppercase; color: var(--terra-ink); margin-top: 2px;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 2px;
}
.nav-item { position: relative; }

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: var(--r-pill);
  font-size: .855rem; font-weight: 500; color: var(--ink);
  letter-spacing: .04em;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--bark); background: rgb(var(--panel-rgb) / .72); }
.nav-link[aria-current="page"],
.nav-item.is-active > .nav-link { color: var(--bark); font-weight: 600; }
.nav-item.is-active > .nav-link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 1.5px; background: var(--terra); border-radius: 2px;
}

.nav-caret { transition: transform .28s var(--ease); }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }

/* Dropdown */
.has-dropdown > .nav-link { background: none; border: 0; }
.dropdown {
  list-style: none; margin: 0;
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 10px);
  min-width: 268px; padding: 10px;
  background: var(--cream-lift);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
}
.nav-item.is-open > .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.dropdown::before {
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--r-sm);
  font-size: .855rem; color: var(--ink); line-height: 1.4;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.dropdown a:hover { background: var(--panel); color: var(--bark); }
.dropdown a[aria-current="page"] { background: var(--panel); color: var(--bark); font-weight: 600; }

.header-cta { flex: none; }
/* The nav carries its own copy of the CTA for the mobile drawer; on desktop
   only the one outside the drawer is shown. */
.nav .header-cta { display: none; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-pill); color: var(--bark);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:hover { background: var(--panel); }
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 1.6px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5.2px; }
.nav-toggle-bars span:nth-child(3) { top: 10.4px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5.2px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5.2px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* screen3 sets its hero in a distinct tinted block that ends in a big sweep.
   .hero keeps overflow:hidden to clip its blobs, so the divider is drawn
   INSIDE the box — the following section's colour eats up into the sand.
   --wave-into must match whatever section follows the hero (currently
   .section--lift on the home page, the only page with a .hero). */
.hero {
  position: relative; overflow: hidden;
  --wave-into: var(--cream-lift);
  background: var(--sand);
  padding: clamp(46px, 6vw, 78px) 0 calc(clamp(64px, 8vw, 104px) + var(--wave-h));
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3;
  height: var(--wave-h);
  background-color: var(--wave-into);
  -webkit-mask: var(--wave) center / 100% 100% no-repeat;
          mask: var(--wave) center / 100% 100% no-repeat;
}
/* The hero owns this boundary, so the following block must not wave into it. */
.hero + .section--sand { margin-top: 0; }
.hero + .section--sand::before { content: none; }
@supports not ((-webkit-mask-image: none) or (mask-image: none)) {
  .hero { padding-bottom: clamp(64px, 8vw, 104px); }
  .hero::after { content: none; }
}
.hero-bg {
  position: absolute; z-index: 0; pointer-events: none;
  top: -18%; right: -12%; width: 62%; height: 128%;
  /* --panel, not --blush: the hero sits on sand now, and blush on sand is
     too close in value to register. */
  background: var(--panel);
  border-radius: 46% 54% 58% 42% / 52% 46% 54% 48%;
  /* Toned down so it supports the terracotta arch rather than fighting it. */
  opacity: .5;
}
/* Botanical line art. Both pseudo-elements of this decorative, empty div are
   free, so the sprigs cost no markup. Hidden on small screens (see Responsive). */
.hero-bg::before, .hero-bg::after,
.page-hero-bg::before,
.site-footer::before,
.cta-inner::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  background-color: var(--sage-soft);
  -webkit-mask: var(--sprig) center / contain no-repeat;
          mask: var(--sprig) center / contain no-repeat;
}
/* These two sit inside .hero-bg, which is itself at opacity .68 — the values
   below are pre-multiplied so the sprigs land around .3 / .24 on screen. */
.hero-bg::before {
  left: -34%; bottom: 4%; width: 20%; height: 62%;
  opacity: .45; transform: rotate(-14deg);
}
.hero-bg::after {
  right: 8%; top: -6%; width: 12%; height: 40%;
  opacity: .35; transform: rotate(160deg);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  /* Media column takes the larger share so the photo reads as the anchor of
     the hero rather than something floating inside the beige blob behind it. */
  grid-template-columns: .93fr 1.07fr;
  gap: clamp(32px, 4.2vw, 58px);
  align-items: center;
}

.hero-title { margin-bottom: .42em; }
.hero-title em { display: inline-block; }
.hero-copy { max-width: 47ch; margin-bottom: 2rem; }

/* screen3 seats its hero photo inside a terracotta architectural arch that
   peeks out around the image. Drawn as a pseudo-element so it costs no markup. */
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 10%; right: -7%; top: -7%; bottom: 12%;
  background: var(--terra);
  border-radius: 50% 50% 12% 12% / 36% 36% 6% 6%;
}
.hero-frame {
  position: relative; z-index: 1;
  border-radius: var(--blob-a);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 11 / 10;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }

/* screen3's radial badge: a solid terracotta disc with its label set around
   the ring and the figure in the middle. */
.hero-badge {
  position: absolute; left: -30px; bottom: 8px; z-index: 2;
  width: clamp(132px, 14vw, 168px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--terra-deep);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--on-dark);
}
.hero-badge-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-badge-ring text {
  font-family: var(--sans);
  font-size: 8.4px;          /* user units — the viewBox is 140 wide */
  font-weight: 600;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  fill: var(--on-dark);
}
.hero-badge-num {
  font-family: var(--serif); font-size: 2.1rem;
  color: var(--on-dark); line-height: 1;
}

/* Trust strip */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 2.1rem;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgb(var(--cream-lift-rgb) / .78);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  padding: 9px 17px;
  font-size: .795rem; font-weight: 500; color: var(--bark);
}
.trust-pill svg { color: var(--terra); flex: none; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(52px, 6vw, 88px) 0 calc(clamp(52px, 6vw, 84px) + var(--wave-h));
  background: var(--sand);
}
/* The hero keeps overflow:hidden to clip its blob, so the wave is drawn
   *inside* the box: the page's cream eats up into the sand from below.
   Every interior page's first section is plain .section (cream), so the
   colours meet cleanly. */
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2;
  height: var(--wave-h);
  background-color: var(--cream);
  -webkit-mask: var(--wave-alt) center / 100% 100% no-repeat;
          mask: var(--wave-alt) center / 100% 100% no-repeat;
}
@supports not ((-webkit-mask-image: none) or (mask-image: none)) {
  .page-hero { padding-bottom: clamp(52px, 6vw, 84px); }
  .page-hero::after { display: none; }
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero-bg {
  position: absolute; z-index: 0; pointer-events: none;
  top: -40%; right: -8%; width: 48%; height: 180%;
  background: var(--blush);
  border-radius: 46% 54% 58% 42% / 52% 46% 54% 48%;
  opacity: .62;
}
/* Pre-multiplied against .page-hero-bg's own .62 opacity. */
.page-hero-bg::before {
  right: 62%; bottom: 12%; width: 22%; height: 34%;
  opacity: .48; transform: rotate(12deg);
}
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lede { max-width: 60ch; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  font-size: .775rem; color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--terra); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--terra-ink); }
.breadcrumb [aria-current="page"] { color: var(--bark); font-weight: 500; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(18px, 2.2vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--cream-lift);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--panel-deep); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .935rem; }
.card .link-arrow { margin-top: auto; padding-top: 18px; }

/* Circular medallion, as in the reference's process and service rows. */
.card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--terra); color: var(--on-dark);
  border: 1px solid var(--terra);
  display: grid; place-items: center;
  margin-bottom: 20px; flex: none;
  transition: background .32s var(--ease), color .32s var(--ease), border-color .32s var(--ease);
}
.card:hover .card-icon { background: var(--terra-deep); color: var(--on-dark); border-color: var(--terra-deep); }

/* Cards sitting on the olive band invert to cream-on-olive. */
.band--olive .card {
  background: transparent; border-color: rgb(var(--on-dark-rgb) / .22);
}
.band--olive .card:hover {
  background: rgb(var(--on-dark-rgb) / .07);
  border-color: rgb(var(--on-dark-rgb) / .38);
  box-shadow: none;
}
.band--olive .card-icon {
  background: rgb(var(--on-dark-rgb) / .12); color: var(--on-dark);
  border-color: rgb(var(--on-dark-rgb) / .3);
}
.band--olive .card:hover .card-icon {
  background: var(--on-dark); color: var(--band-olive); border-color: var(--on-dark);
}

/* Service card with image — the reference gives these no card chrome at all:
   a blob-masked photo with the text sitting straight on the page. */
.svc-card {
  background: transparent;
  border: 0;
  display: flex; flex-direction: column;
  transition: transform .32s var(--ease);
}
.svc-card:hover { transform: translateY(-5px); }
.svc-card-media {
  aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--panel);
  border-radius: var(--blob-b);
  box-shadow: var(--shadow-sm);
}
.svc-card:nth-child(even) .svc-card-media { border-radius: var(--blob-a); }
.svc-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-card:hover .svc-card-media img { transform: scale(1.05); }
.svc-card-body { padding: 24px 6px 0; display: flex; flex-direction: column; flex: 1; }
.svc-card-body h3 { margin-bottom: .45rem; }
.svc-card-body p { color: var(--muted); font-size: .93rem; }
.svc-card-body .link-arrow { margin-top: auto; padding-top: 18px; }

/* Feature (icon + text, no border) */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--terra); border: 1px solid var(--terra);
  color: var(--on-dark);
  display: grid; place-items: center;
}
.feature h4 { margin-bottom: .25rem; color: var(--bark); }
.feature p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split--wide-text { grid-template-columns: .88fr 1.12fr; }
.split-media { position: relative; }
.split-frame {
  border-radius: var(--blob-b);
  overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 6;
}
.split-frame--flip { border-radius: var(--blob-a); }
.split-frame--wide { aspect-ratio: 4 / 3; }
.split-frame img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split-media { order: 2; }

.split-badge {
  position: absolute; right: -18px; bottom: 30px;
  background: var(--cream-lift);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 17px 22px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.split-badge strong {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 2rem; color: var(--terra-ink); line-height: 1;
}
.split-badge span {
  font-size: .655rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist--2col { grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .945rem; color: var(--ink); line-height: 1.6;
}
/* The tick is a mask so its colour stays tokenized (it used to bake --sage
   into the data URI, which silently desynced on a palette change). */
.checklist li::before {
  content: ""; flex: none; position: relative;
  width: 21px; height: 21px; margin-top: 3px; border-radius: 50%;
  background: var(--panel);
}
.checklist li::after {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 21px; height: 21px;
  background-color: var(--terra-ink);
  -webkit-mask: var(--tick) center / 11px no-repeat;
          mask: var(--tick) center / 11px no-repeat;
}
.checklist li { position: relative; }
.band--olive .checklist li::before { background: rgb(var(--on-dark-rgb) / .16); }
.band--olive .checklist li::after  { background-color: var(--on-dark); }

/* ---------- Amenity panels ---------- */
.amenity-panel {
  background: var(--cream-lift);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  height: 100%;
}
.amenity-panel h3 {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.32rem; margin-bottom: 1.1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft);
}
.amenity-panel h3 svg { color: var(--terra-ink); flex: none; }

/* ---------- Stats ---------- */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--cream-lift);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.4vw, 42px) clamp(20px, 3vw, 36px);
}
.stat { text-align: center; padding: 6px 10px; }
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat strong {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 3.5vw, 2.9rem); color: var(--terra-ink); line-height: 1;
}
.stat span {
  display: block; margin-top: 9px;
  font-size: .715rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Schedule table ---------- */
.schedule {
  width: 100%; border-collapse: collapse;
  background: var(--cream-lift);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: .93rem;
}
.schedule caption {
  caption-side: top; text-align: left;
  font-size: .715rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--terra-ink);
  padding-bottom: 12px;
}
.schedule th, .schedule td { padding: 14px 20px; text-align: left; }
.schedule thead th {
  background: var(--blush); color: var(--bark);
  font-size: .715rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.schedule tbody tr + tr { border-top: 1px solid var(--line-soft); }
.schedule tbody th { font-weight: 600; color: var(--bark); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Hours list ---------- */
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 11px 0; font-size: .91rem;
  border-bottom: 1px solid var(--line-soft);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list dt, .hours-list span:first-child { color: var(--muted); }
.hours-list strong { color: var(--bark); font-weight: 600; text-align: right; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--cream-lift);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  display: flex; flex-direction: column; gap: 20px;
  height: 100%;
}
.quote-mark { color: var(--terra); opacity: .55; flex: none; }
.quote-card blockquote {
  margin: 0; font-size: 1.02rem; line-height: 1.7; color: var(--ink);
  font-style: normal;
}
.quote-foot { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.quote-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--blush); color: var(--bark);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.06rem;
}
.quote-name { font-weight: 600; font-size: .9rem; color: var(--bark); line-height: 1.3; }
.quote-role { font-size: .78rem; color: var(--muted); }

/* Editor note — remove once real content is in */
.editor-note {
  display: flex; gap: 13px; align-items: flex-start;
  background: #FBF1DC;
  border: 1px dashed #CBAE7C;
  border-radius: var(--r-md);
  padding: 17px 20px;
  font-size: .86rem; line-height: 1.62; color: #6A5327;
  margin-bottom: 34px;
}
.editor-note svg { flex: none; margin-top: 2px; color: #A9803A; }
.editor-note strong { color: #52401A; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.gallery-item {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  background: var(--panel);
  border: 0; padding: 0; cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(var(--bark-rgb) / .55), rgb(var(--bark-rgb) / 0) 52%);
  opacity: 0; transition: opacity .32s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-caption {
  position: absolute; left: 18px; right: 18px; bottom: 15px; z-index: 2;
  color: var(--on-dark); font-size: .84rem; font-weight: 500; text-align: left;
  opacity: 0; transform: translateY(8px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  padding: 28px;
  background: rgb(var(--ink-rgb) / .94);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; max-width: 1000px; width: 100%; text-align: center; }
.lightbox-figure img {
  max-width: 100%; max-height: 76vh; width: auto; margin-inline: auto;
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.lightbox-figure figcaption {
  color: var(--on-dark); font-size: .9rem; margin-top: 18px; letter-spacing: .02em;
}
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgb(var(--on-dark-rgb) / .14); border: 1px solid rgb(var(--on-dark-rgb) / .28);
  color: var(--on-dark); display: grid; place-items: center;
  transition: background .2s var(--ease);
}
.lightbox-btn:hover { background: rgb(var(--on-dark-rgb) / .28); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-close {
  position: absolute; top: 22px; right: 22px; transform: none;
  width: 46px; height: 46px;
}

/* ---------- Forms ---------- */
.form-panel {
  background: var(--cream-lift);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.6vw, 44px);
}
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: .785rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted);
}
.field .req { color: var(--terra-ink); }

.field input, .field select, .field textarea {
  /* Never below 16px: iOS Safari zooms the whole page when a focused field is
     smaller than that, and the visitor is left scrolled sideways. */
  font-family: inherit; font-size: max(16px, .95rem); color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  width: 100%;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
/* The caret is a mask so --muted stays the single source of its colour. */
.field { position: relative; }
.field select { appearance: none; cursor: pointer; padding-right: 42px; }
.field:has(select)::after {
  content: ""; position: absolute; right: 15px; bottom: 18px;
  width: 14px; height: 14px; pointer-events: none;
  background-color: var(--muted);
  -webkit-mask: var(--caret) center / contain no-repeat;
          mask: var(--caret) center / contain no-repeat;
}
/* Without :has() there is no element to hang the caret on, so give the
   select its native arrow back rather than leaving it with none. */
@supports not selector(:has(select)) {
  .field select { appearance: auto; padding-right: 15px; }
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--terra); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--cream-lift);
  border-color: var(--terra-ink);
  box-shadow: 0 0 0 3.5px rgb(var(--terra-ink-rgb) / .16);
}
.field input::placeholder, .field textarea::placeholder { color: #A79C8B; }

.field label .opt { font-weight: 400; text-transform: none; letter-spacing: .02em; opacity: .8; }
.field-hint {
  font-size: .78rem; color: var(--muted); line-height: 1.5;
}
.field-hint a { font-weight: 600; }

.field-error {
  font-size: .78rem; color: var(--terra-ink); display: none;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--terra); }
.field.has-error .field-error { display: block; }

.form-consent {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: .82rem; color: var(--muted); line-height: 1.6;
}
.form-consent input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--terra-ink); }

.form-status {
  display: none;
  border-radius: var(--r-sm);
  padding: 14px 18px; font-size: .89rem; line-height: 1.6;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--panel); color: var(--bark); border: 1px solid var(--sage-soft); }
.form-status--err { background: #F7E6DE; color: var(--terra-ink); border: 1px solid #DFAF99; }

/* ---------- Contact cards / map ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 4vw, 56px); align-items: start;
}

.info-card {
  background: var(--cream-lift);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  height: 100%;
}
.info-card h3 {
  display: flex; align-items: center; gap: 11px;
  font-size: 1.24rem; margin-bottom: 1rem;
}
.info-card h3 svg { color: var(--terra-ink); flex: none; }
.info-card p, .info-card address { font-style: normal; color: var(--muted); font-size: .93rem; }
.info-card a { font-weight: 500; }

.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.contact-lines li { display: flex; gap: 11px; align-items: baseline; font-size: .93rem; }
.contact-lines .lbl { color: var(--muted); min-width: 74px; flex: none; }

.map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  background: var(--panel);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- CTA band ----------
   The colour and the wavy edges now come from .band--terra on the section;
   .cta-band is only the inner layout. */
/* The old inset blob is gone: it was there to give the rounded box depth, and
   on a full-bleed band it would spill past the wave edges. The band's own wavy
   edges and the sprig below carry the decoration now. */
.cta-band { position: relative; }
.cta-band p { max-width: 54ch; }
.cta-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(28px, 4vw, 56px); flex-wrap: wrap;
}
.cta-inner::before {
  right: -2%; bottom: -34%; width: 9%; height: 150%;
  opacity: .22; transform: rotate(8deg);
  background-color: var(--on-dark);
}
.cta-inner > div:first-child { flex: 1 1 420px; }
.cta-inner .btn-row { flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--sand);
  /* Kept for 404.html, whose last section is also sand. On every other page
     the terracotta wave covers this edge completely. */
  border-top: 1px solid var(--line);
  padding: calc(clamp(52px, 6vw, 76px) + var(--wave-h)) 0 34px;
  margin-top: 0;
}
.site-footer::before {
  left: -3%; bottom: -8%; width: 10%; height: 66%;
  opacity: .2; transform: rotate(-10deg);
}
.site-footer .wrap { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 3.6vw, 52px);
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: .89rem; color: var(--muted); max-width: 34ch; }

.footer-col h4 {
  font-family: var(--sans); font-size: .715rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--bark);
  margin-bottom: 17px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { font-size: .885rem; color: var(--muted); }
.footer-links a:hover { color: var(--terra-ink); }

.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: .885rem; color: var(--muted); }
.footer-contact svg { flex: none; margin-top: 4px; color: var(--terra-ink); }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--terra-ink); }
.footer-contact address { font-style: normal; }

.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream-lift); border: 1px solid var(--line);
  color: var(--terra-ink); display: grid; place-items: center;
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.social-btn:hover { background: var(--terra-ink); color: var(--on-dark); transform: translateY(-2px); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 26px;
  font-size: .795rem; color: var(--muted);
}
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: var(--muted); font-size: .795rem; }
.footer-legal a:hover { color: var(--terra-ink); }
.footer-bottom p { margin: 0; max-width: 68ch; }

/* ---------- Scroll reveal ----------
   Gated on .js (set by an inline script in <head>) so that with JavaScript
   disabled or broken the content stays visible rather than invisible. */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --gutter: 22px; }

  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed; inset: var(--header-h) 0 0;
    display: block; overflow-y: auto;
    background: var(--cream);
    padding: 22px var(--gutter) 44px;
    border-top: 1px solid var(--line-soft);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .34s var(--ease), visibility .34s;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  body.nav-open { overflow: hidden; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    padding: 15px 4px; font-size: 1.02rem; border-radius: var(--r-sm);
    justify-content: space-between; width: 100%;
  }
  .nav-item.is-active > .nav-link::after { display: none; }
  .nav-item + .nav-item { border-top: 1px solid var(--line-soft); }

  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    pointer-events: auto; min-width: 0; width: 100%;
    box-shadow: none; border: 0; background: transparent;
    padding: 0 0 8px 14px;
    border-left: 1.5px solid var(--panel-deep);
    margin: 0 0 10px 4px;
    display: none;
  }
  .nav-item.is-open > .dropdown { display: block; transform: none; }
  .dropdown a { padding: 11px 12px; }

  .header-cta { display: none; }
  .nav .header-cta { display: flex; margin-top: 26px; }
  .nav .header-cta .btn { width: 100%; justify-content: center; }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 560px; }
  .hero-bg { width: 88%; right: -26%; top: -8%; height: 62%; }

  .split, .split--wide-text { grid-template-columns: 1fr; gap: 38px; }
  .split--reverse .split-media { order: 0; }
  .split-media { max-width: 560px; }
  .split-frame { aspect-ratio: 4 / 3; }

  .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 26px 8px; }
  .stat:nth-child(3) { border-left: 0; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist--2col { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }

  /* Botanical decoration is a large-screen luxury — it only crowds a phone. */
  .hero-bg::before, .hero-bg::after,
  .page-hero-bg::before,
  .site-footer::before,
  .cta-inner::before { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  /* Touch targets. WCAG 2.5.8 asks for 24px minimum; 44px is the comfortable
     figure, and this audience skews older with less precise aim. */
  .social-btn { width: 46px; height: 46px; }
  .footer-links a, .footer-legal a { display: inline-block; padding: 7px 0; }
  .contact-lines a, .footer-contact a { display: inline-block; padding: 4px 0; }

  /* A 420px map eats a whole phone screen. */
  .map-frame iframe { height: 300px; }
  .field textarea { min-height: 112px; }

  /* Parisienne is wide; keep the script phrase from running off the line. */
  .hero-title em { font-size: 1.12em; }

  .lightbox { padding: 14px; }
  .lightbox-figure img { max-height: 68vh; }
  .band--olive > .wrap { border-radius: clamp(28px, 9vw, 48px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Blobs read as lopsided at phone widths — ease them back toward a soft
     rounded rectangle rather than dropping the organic feel entirely. */
  .hero-frame, .split-frame, .split-frame--flip,
  .svc-card-media, .svc-card:nth-child(even) .svc-card-media {
    border-radius: 28% 40% 32% 44% / 30% 36% 34% 40%;
  }
  .hero-badge { left: -6px; bottom: -30px; width: 112px; }
  .hero-media::before { left: 7%; right: -4%; top: -5%; bottom: 14%; }
  .split-badge { right: 0; bottom: -20px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { width: 100%; }
  .link-arrow, .breadcrumb a { width: auto; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-btn { width: 44px; height: 44px; }
}

@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-soft); padding-top: 22px; }
  .brand-name { font-size: 1.24rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .band--terra, .nav-toggle,
  .lightbox, .blob, .hero-bg, .page-hero-bg { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .band { padding: 18px 0; margin: 0; }
  .band::before, .band::after, .page-hero::after { display: none !important; }
  .band--olive { background: none; color: #000; }
  .band--olive h2, .band--olive h3, .band--olive h4, .band--olive p { color: #000; }
  a { color: #000; text-decoration: underline; }
}
