/* =====================================================================
   MOKA Boutique Resort · styles
   Palette and type follow the Moka brand book (Dec 2025):
   Dark Moka #3e311e · Desert Dune #9d8262 · Sandstone Beige #cfbca7
   Crème Moka #ebddcf · Terracotta #b3624f · canvas #fff6f4
   Headers: Recoleta (licensed, drop the files in fonts/ and uncomment below),
   fallback Fraunces "soft". Body: Satoshi.
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-soft.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
/* Recoleta, the brand header font. Licensed font: buy the webfont, put the files
   in fonts/ and remove the comment markers. Headings switch automatically.
@font-face {
  font-family: "Recoleta";
  src: url("../fonts/RecoletaAlt-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
*/

/* ---------- Tokens ---------- */
:root {
  --canvas: #fff6f4;
  --canvas-2: #f9eeea;
  --white: #fffdfb;
  --creme: #ebddcf;
  --sand: #cfbca7;
  --dune: #9d8262;
  --terracotta: #b3624f;
  --terracotta-deep: #9e5340;
  --terracotta-btn: #a85845;  /* a hair deeper than the brand tone so white text passes AA */
  --dark: #3e311e;
  --ink: #3e311e;
  --ink-2: #6b5a45;
  --label: #856848;          /* dune, darkened for small text (AA contrast on the canvas) */
  --line: rgba(157, 130, 98, .28);
  --ring: rgba(179, 98, 79, .28);

  --font-display: "Recoleta", "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 14px;            /* cards and panels */
  --radius-sm: 10px;         /* buttons, inputs, chips */
  --radius-pill: 999px;      /* only round icon buttons and the date circles */
  --nav-h: 72px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 12px 34px -22px rgba(62, 49, 30, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Faint paper grain, like a printed brochure */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: .022;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, output { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--creme); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--dark); color: var(--canvas); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.1vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  font-weight: 600;
  text-wrap: balance;
}
.lead { color: var(--ink-2); font-size: 1.02rem; max-width: 56ch; text-wrap: pretty; }
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(26px, 4vw, 40px); }
.link { color: var(--terracotta-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--dark); }
.dot { opacity: .6; }

#book { scroll-margin-top: var(--nav-h); }
#homes { scroll-margin-top: calc(var(--nav-h) + 96px); }
#details, #grounds, #location, #contact, #confirm { scroll-margin-top: calc(var(--nav-h) + 24px); }
@media (max-width: 899px) { #homes { scroll-margin-top: calc(var(--nav-h) + 12px); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; line-height: 1;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta-btn); color: #fffdfb; }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-dark { background: var(--dark); color: var(--canvas); }
.btn-dark:hover { background: #2e2416; }
.btn-outline { border: 1.5px solid var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark); color: var(--canvas); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn-lg { padding: 18px 30px; font-size: 1.05rem; width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- Logo (inline SVG symbol, takes the text colour) ---------- */
.logo-mark { display: block; width: 92px; height: 46px; fill: currentColor; }
.logo { color: var(--canvas); display: inline-flex; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  color: var(--canvas);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: .95rem; }
.nav-links a { opacity: .9; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .2s; }
.nav-links a:hover { border-color: currentColor; }
.nav.is-solid {
  background: rgba(255, 246, 244, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-solid .logo { color: var(--dark); }
.nav.is-hidden { transform: translateY(-100%); }
.nav { transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(560px, 92svh, 940px);
  color: var(--canvas);
  display: grid; align-content: end; justify-items: center;
  padding-bottom: clamp(96px, 15vh, 160px);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--sand); }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-media video {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .7s linear;
}
.hero-media video.is-playing { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(62, 49, 30, .7) 0%, rgba(62, 49, 30, .34) 34%, rgba(62, 49, 30, 0) 66%),
    linear-gradient(to bottom, rgba(62, 49, 30, .28) 0%, rgba(62, 49, 30, 0) 30%);
}
.hero-text { text-align: center; padding: 0 var(--gutter); text-shadow: 0 2px 30px rgba(62, 49, 30, .45); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-weight: 500;
  text-wrap: balance;
}
.hero-sub { margin-top: 18px; font-size: clamp(.95rem, 1.4vw, 1.1rem); font-weight: 500; opacity: .92; letter-spacing: .01em; }
.hero-sub .dot { padding: 0 4px; }

/* ---------- Booking bar (step 01) ---------- */
.stay { position: relative; }
.bar-wrap {
  position: sticky; top: 0; z-index: 60;
  margin-top: -54px;
  padding: 0 var(--gutter);
  transition: top .3s var(--ease);
}
.bar {
  width: min(1000px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr .9fr auto;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(157, 130, 98, .2);
  padding: 8px;
  transition: border-radius .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.bar-field {
  position: relative;
  display: grid; gap: 3px; align-content: center;
  text-align: left;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  transition: background-color .2s;
}
.bar-field + .bar-field::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px;
  width: 1px; background: var(--line);
}
button.bar-field:hover, button.bar-field.is-open { background: var(--canvas-2); }
button.bar-field.is-open::before, button.bar-field.is-open + .bar-field::before { opacity: 0; }
.bar-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.bar-value { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.bar-value.is-empty { color: var(--ink-2); font-weight: 500; }
.bar-submit { margin: 2px; padding-inline: 28px; }
.bar-field.is-invalid { box-shadow: inset 0 0 0 1.5px var(--terracotta); }

.stepper { display: inline-flex; align-items: center; gap: 4px; margin-left: -6px; }
.step-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--sand); color: var(--ink);
  display: grid; place-items: center; font-size: 1.15rem; line-height: 1;
  transition: background-color .2s, border-color .2s;
}
.step-btn:hover { background: var(--creme); border-color: var(--dune); }
.step-btn[disabled] { opacity: .35; cursor: default; }
.step-value { min-width: 28px; text-align: center; font-weight: 600; font-size: 1.02rem; }

/* Stuck state: compact, under the nav */
.bar-wrap.is-stuck { top: var(--nav-h); padding-top: 8px; padding-bottom: 8px; }
.bar-wrap.is-stuck .bar { border-radius: 12px; padding: 4px; box-shadow: 0 10px 30px -18px rgba(62, 49, 30, .45), 0 0 0 1px rgba(157, 130, 98, .18); }
.bar-wrap.is-stuck .bar-field { padding: 8px 20px; }
.bar-wrap.is-stuck .bar-label { display: none; }

/* ---------- Date picker ---------- */
.dp {
  position: absolute; left: 50%; top: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(700px, calc(100vw - 2 * var(--gutter)));
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(62, 49, 30, .42), 0 0 0 1px rgba(157, 130, 98, .2);
  padding: 18px 20px 16px;
  z-index: 70;
}
.dp[hidden] { display: none; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-hint { font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.dp-nav { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--sand); display: grid; place-items: center; }
.dp-nav:hover { background: var(--creme); }
.dp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dp-month { display: grid; gap: 6px; }
.dp-title { text-align: center; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.dp-wd { text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--label); padding: 6px 0; text-transform: uppercase; }
.dp-day {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  font-size: .95rem; font-weight: 500; border-radius: 50%;
  transition: background-color .15s, color .15s;
}
.dp-day.is-pad { pointer-events: none; }
.dp-day:not([disabled]):hover { background: var(--creme); }
.dp-day[disabled] { color: rgba(107, 90, 69, .38); cursor: default; }
.dp-day.is-blocked { text-decoration: line-through; }
.dp-day.is-today::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--dune); }
.dp-day.in-range { background: var(--creme); border-radius: 0; }
.dp-day.is-start, .dp-day.is-end { background: var(--dark); color: var(--canvas); border-radius: 50%; }
.dp-day.is-start.in-range { border-radius: 50% 0 0 50%; box-shadow: 8px 0 0 var(--creme); }
.dp-day.is-end.in-range { border-radius: 0 50% 50% 0; }
.dp-day.is-start.is-end { border-radius: 50%; box-shadow: none; }
.dp-day.is-hover-end { background: var(--sand); color: var(--ink); }
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dp-nights { font-weight: 600; font-size: .92rem; color: var(--ink-2); }

/* ---------- Steps ---------- */
.steps {
  display: flex; gap: clamp(18px, 4vw, 44px);
  margin: clamp(28px, 5vw, 56px) 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-2);
}
.step { display: flex; align-items: center; gap: 10px; }
.step-n {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--sand);
  display: grid; place-items: center;
  font-size: .68rem; letter-spacing: .04em;
  transition: background-color .3s, border-color .3s, color .3s;
}
.step.is-active { color: var(--ink); }
.step.is-active .step-n { border-color: var(--terracotta); color: var(--terracotta-deep); }
.step.is-done .step-n { background: var(--terracotta); border-color: var(--terracotta); color: var(--canvas); }
.step.is-done .step-n::before { content: "✓"; font-size: .75rem; }
.step.is-done .step-n span { display: none; }

/* ---------- Homes (step 02) ---------- */
.homes { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 90px); }
.group-note {
  margin: -12px 0 24px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--canvas-2);
  color: var(--ink-2);
  font-size: .95rem;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 34px); }
.card {
  position: relative;
  display: grid; gap: 14px; align-content: start;
  padding: 0 0 22px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(157, 130, 98, .16);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), opacity .3s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(157, 130, 98, .32), var(--shadow); }
.card.is-suggested { box-shadow: 0 0 0 1.5px var(--sand); }
.card.is-selected { box-shadow: 0 0 0 2px var(--terracotta), var(--shadow); }
.card.is-muted { opacity: .62; }
.card.is-muted:hover { transform: none; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--creme); cursor: pointer; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-tag {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 12px; border-radius: 6px;
  background: rgba(255, 246, 244, .94); color: var(--ink);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  white-space: nowrap;
}
.card-tag.is-warn { background: rgba(62, 49, 30, .82); color: var(--canvas); }
.card-body { display: grid; gap: 10px; padding: 4px 20px 0; }
.card-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.card-count { display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label); margin-top: 6px; }
.card-facts { color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-sm { padding: 6px 11px; border-radius: 6px; background: var(--canvas-2); color: var(--ink); font-size: .8rem; font-weight: 600; }
.card-desc { font-size: .95rem; color: var(--ink-2); }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.btn-choose { border: 1.5px solid var(--dark); color: var(--dark); background: transparent; padding: 11px 20px; font-size: .92rem; }
.btn-choose:hover { background: var(--dark); color: var(--canvas); }
.card.is-selected .btn-choose { background: var(--terracotta-btn); border-color: var(--terracotta-btn); color: #fffdfb; }
.btn-choose[disabled] { opacity: .45; cursor: default; }
.btn-choose[disabled]:hover { background: transparent; color: var(--dark); }
.card-more { font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--sand); }
.card-more:hover { text-decoration-color: var(--dark); }

/* ---------- Details (step 03) ---------- */
.details { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); }
.req {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "fields summary" "submit summary";
  gap: 18px clamp(24px, 4vw, 56px);
  align-items: start;
}
.fields { grid-area: fields; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--label); }
.field input, .field textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--sand);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.phone-row { display: grid; grid-template-columns: minmax(170px, 42%) minmax(0, 1fr); gap: 8px; }
.dial {
  width: 100%; min-width: 0;
  padding: 15px 38px 15px 14px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--sand);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5a45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  -webkit-appearance: none; appearance: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color .2s, box-shadow .2s;
}
.dial:focus { outline: none; border-color: var(--dune); box-shadow: 0 0 0 4px var(--ring); }
@media (max-width: 480px) { .phone-row { grid-template-columns: 1fr; } }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--dune); box-shadow: 0 0 0 4px var(--ring); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--terracotta); }
.err { color: var(--terracotta-deep); font-size: .88rem; font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.form-err { margin-top: 12px; }

.summary {
  grid-area: summary;
  position: sticky; top: calc(var(--nav-h) + 16px);
  display: grid; gap: 6px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--creme);
  color: var(--ink);
}
.sum-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin-bottom: 6px; }
.summary .sum-kicker { color: var(--ink-2); }
.sum-home { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.sum-line { font-size: 1rem; font-weight: 500; }
.sum-rate { font-size: .9rem; color: var(--ink-2); margin-top: 8px; }
.sum-rate:empty { display: none; }
.sum-missing { font-size: .9rem; color: #7d3d2e; font-weight: 600; margin-top: 6px; }
.sum-missing:empty { display: none; }

/* Photo strip inside the summary card: a visual double-check of the chosen home */
.sum-gal { position: relative; margin-top: 16px; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }
.sum-gal[hidden] { display: none; }
.sum-gal .gal-strip img { height: auto; aspect-ratio: 3 / 2; }
.gal-nav-sm { width: 30px; height: 30px; }
.gal-nav-sm.gal-prev { left: 10px; } .gal-nav-sm.gal-next { right: 10px; }
.gal-count-sm { right: 10px; bottom: 10px; font-size: .72rem; padding: 4px 9px; }
.sum-gal .gal-strip figcaption { left: 10px; bottom: 10px; font-size: .72rem; padding: 4px 9px; max-width: 62%; }

.submit { grid-area: submit; display: grid; gap: 14px; }
.policy { font-size: .95rem; color: var(--ink-2); padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--canvas-2); }
.alt { text-align: center; font-size: .95rem; }
.alt a { color: var(--terracotta-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.privacy { text-align: center; font-size: .82rem; color: var(--label); }
.btn.is-busy { opacity: .7; pointer-events: none; }

.req[hidden] { display: none; }

/* Confirmation */
.confirm { display: grid; gap: 12px; justify-items: start; max-width: 620px; padding: 30px 0 10px; }
.confirm[hidden] { display: none; }
.check { width: 64px; height: 64px; fill: none; stroke: var(--terracotta); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.check circle { stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw 1s var(--ease) forwards; }
.check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .7s var(--ease) forwards; }
.check[hidden] { display: none; }
.check-mail rect, .check-mail path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw .8s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 10px; }

/* ---------- Scene ---------- */
.scene { margin: 0; }
.scene img { width: 100%; height: clamp(260px, 46vw, 640px); object-fit: cover; }

/* ---------- Grounds ---------- */
.band { position: relative; overflow: hidden; background: var(--canvas-2); }
.band .wrap { position: relative; }
.grounds { padding: clamp(60px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); }
.ground-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(24px, 3vw, 44px); position: relative; }
.ground { display: grid; gap: 10px; align-content: start; }
.ground-icon { width: 40px; height: 40px; color: var(--dune); }
.ground-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ground h3 { font-size: 1.05rem; font-weight: 700; }
.ground p { font-size: .95rem; color: var(--ink-2); }
.arrival { margin-top: clamp(30px, 5vw, 50px); padding: 18px 22px; border-radius: var(--radius-sm); background: var(--white); color: var(--ink-2); font-size: .95rem; max-width: 720px; position: relative; }
.arrival::before { content: "❋"; color: var(--terracotta); margin-right: 10px; }
.arrival[hidden], .arrival:empty { display: none; }

/* ---------- Location ---------- */
.location { padding: clamp(44px, 6vw, 72px) 0 clamp(72px, 10vw, 130px); }
.loc-grid { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.loc-grid .lead { margin-top: 12px; }

/* ---------- Contact / footer: the three ways to reach Moka are the point, the logo signs off small ---------- */
.footer { background: var(--terracotta-btn); color: #fffdfb; padding: clamp(56px, 8vw, 100px) 0 36px; }
.contact-head { display: grid; gap: 12px; text-align: center; justify-items: center; margin-bottom: clamp(28px, 4vw, 44px); }
.contact-title { color: #fffdfb; }
.contact-lead { color: rgba(255, 253, 251, .92); font-size: 1.02rem; max-width: 52ch; text-wrap: pretty; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 22px); }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  min-height: 92px; padding: 18px 20px;
  border-radius: var(--radius);
  background: #fffdfb; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(62, 49, 30, .06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(62, 49, 30, .12), 0 14px 34px -24px rgba(62, 49, 30, .5); }
.contact-card:focus-visible { outline: 2px solid #fffdfb; outline-offset: 4px; }
.contact-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--canvas-2); color: var(--terracotta-deep); display: grid; place-items: center; }
.contact-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-text { display: grid; gap: 2px; min-width: 0; }
.contact-title-sm { font-weight: 700; font-size: 1rem; }
.contact-sub { font-size: .92rem; color: var(--ink-2); overflow-wrap: anywhere; }
.contact-arrow { margin-left: auto; color: var(--dune); font-size: 1.1rem; }
.foot-bottom { display: grid; justify-items: center; gap: 8px; text-align: center; margin-top: clamp(44px, 6vw, 72px); padding-top: 30px; border-top: 1px solid rgba(255, 253, 251, .28); }
.logo-foot { width: 120px; height: 60px; color: #fffdfb; }
.foot-tag { font-family: var(--font-display); font-size: 1.1rem; color: #fffdfb; }
.foot-line { font-size: .92rem; opacity: .94; }
.credits { margin-top: 18px; font-size: .8rem; opacity: .96; }

/* ---------- Mobile bar ---------- */
.mbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: var(--radius);
  background: rgba(255, 253, 251, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -18px rgba(62, 49, 30, .5), 0 0 0 1px rgba(157, 130, 98, .2);
  transform: translateY(0); transition: transform .35s var(--ease), opacity .35s;
}
.mbar[hidden] { display: none; }
.mbar.is-off { transform: translateY(140%); opacity: 0; pointer-events: none; }
.mbar-text { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (min-width: 900px) { .mbar { display: none; } }

/* ---------- Home details sheet ---------- */
.sheet {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0; border: 0;
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(62, 49, 30, .6);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(62, 49, 30, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { display: grid; grid-template-rows: auto 1fr; }
.sheet-close {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 246, 244, .92); color: var(--ink);
  display: grid; place-items: center;
}
.gal { position: relative; background: var(--creme); }
.gal-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gal-strip::-webkit-scrollbar { display: none; }
.gal-strip figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.gal-strip img { width: 100%; height: clamp(240px, 42vw, 520px); object-fit: cover; }
.gal-strip figcaption { position: absolute; left: 16px; bottom: 14px; font-size: .82rem; color: var(--canvas); background: rgba(62, 49, 30, .55); padding: 6px 12px; border-radius: 999px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 246, 244, .92); color: var(--ink);
  display: grid; place-items: center;
}
/* Arrows and the close cross are inline SVGs, so they sit dead centre in their circles */
.gal-nav svg, .dp-nav svg, .sheet-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.gal-nav-sm svg { width: 15px; height: 15px; }
.gal-prev { left: 14px; } .gal-next { right: 14px; }
.gal-count { position: absolute; right: 16px; bottom: 14px; font-size: .8rem; font-weight: 600; color: var(--canvas); background: rgba(62, 49, 30, .55); padding: 6px 12px; border-radius: 999px; }
.sheet-body { padding: clamp(22px, 4vw, 40px); overflow-y: auto; display: grid; gap: 14px; align-content: start; }
.facts { color: var(--ink-2); font-weight: 500; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-top: 6px; }
.feat-list li { position: relative; padding-left: 22px; font-size: .97rem; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta); opacity: .8; }
.names { font-size: .92rem; color: var(--ink-2); }
.names:empty { display: none; }
.names b { color: var(--ink); font-weight: 600; }
.sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 10px; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .cards { gap: 16px; }
  .card-name { font-size: 1.3rem; }
}
@media (max-width: 899px) {
  .req { grid-template-columns: 1fr; grid-template-areas: "fields" "summary" "submit"; }
  .summary { position: static; }
  .ground-list { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .loc-grid { grid-template-columns: 1fr; align-items: start; }
  .bar-wrap { position: static; margin-top: -40px; }
}
@media (max-width: 759px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .logo-mark { width: 76px; height: 38px; }
  .hero { height: clamp(500px, 74svh, 760px); padding-bottom: 72px; }
  .hero-sub .dot { display: none; }
  .hero-sub > span { display: block; }
  #heroOpening { margin-top: 6px; white-space: nowrap; }
  .bar { grid-template-columns: 1fr 1fr; grid-template-areas: "in out" "guests guests" "go go"; border-radius: 26px; padding: 8px; gap: 2px; }
  .bar-field { padding: 12px 16px; border-radius: 18px; }
  .bar-field + .bar-field::before { display: none; }
  #fCheckIn { grid-area: in; } #fCheckOut { grid-area: out; }
  .bar-guests { grid-area: guests; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-radius: 0; }
  .bar-submit { grid-area: go; margin: 4px 0 0; width: 100%; }
  .stepper { margin: 0; }
  .dp { position: fixed; left: 0; right: 0; bottom: 0; top: auto; transform: none; width: 100%; max-height: 86vh; overflow-y: auto; border-radius: 26px 26px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .dp-months { grid-template-columns: 1fr; }
  .dp-month + .dp-month { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 5 / 4; }
  .steps { gap: 14px; font-size: .78rem; }
  .step-t { display: none; }
  .step.is-active .step-t { display: inline; }
  .feat-list { grid-template-columns: 1fr; }
  .sheet { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; max-width: 100vw; margin: 0; }
  .details { padding-bottom: 120px; }
  .footer { padding-bottom: 110px; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .bar-value { font-size: .95rem; }
}

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-media video { display: none; }
}
@media print { .nav, .mbar, .bar-wrap, .scene { display: none !important; } body::after { display: none; } }

/* Footer: terracotta, like the buttons (the brand book's white-on-terracotta logo version). Dark Moka is kept for text only. */
