/* ==========================================================================
   Ekayana Resort — style.css
   Rustic-vintage system. Palette is taken from the property itself:
   red brick, teak, teal roof sheets, pine green (logo), marigold (logo sun).
   Motion follows Section 27 (transform + opacity only, tokens, motion gate).
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/young-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/karla-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/karla-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/karla-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --paper: #F3EAD7; --paper-2: #EADFC6; --paper-3: #DFD0AE; --cream: #FBF5E8;
  --ink: #2B1F16; --ink-soft: #5A4636;
  --brick: #9C3F27; --brick-d: #74291A;
  --teal: #1F5959; --teal-d: #163F40;
  --gold: #D4992A; --sage: #75835A; --line: #CDBB98;

  --f-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --f-body: 'Karla', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-accent: 'Cormorant Garamond', Georgia, serif;

  /* motion tokens (Section 27.3) */
  --m-fast: 150ms; --m-base: 250ms; --m-slow: 400ms; --m-reveal: 600ms; --m-fade: 1200ms; --m-kenburns: 9000ms;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --top-h: 40px; --nav-h: 78px;
  --wrap: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.72; color: var(--ink);
  background: var(--paper) url('../images/brand/paper-grain.webp') repeat; background-size: 256px 256px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick-d); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--cream); padding: 10px 16px; z-index: 2000; }
.skip:focus { left: 8px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.16; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap-narrow { max-width: 780px; margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.center { text-align: center; }
.lead { font-size: 1.2rem; line-height: 1.7; color: var(--ink-soft); }
.accent { font-family: var(--f-accent); font-style: italic; font-weight: 500; font-size: 1.45em; line-height: 1.25; color: var(--brick); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brick); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; opacity: .7; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; opacity: .7; }

/* ornament divider */
.orn { display: flex; align-items: center; gap: 14px; color: var(--brick); margin: 26px auto; max-width: 280px; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.orn svg { width: 30px; height: 30px; flex: none; }

/* ---------- Buttons (leather-stitch edge) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--brick); color: var(--cream); text-decoration: none;
  font: 700 13.5px/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 3px 0 var(--brick-d);
  transition: background-color var(--m-fast) var(--ease-out), color var(--m-fast) var(--ease-out), transform var(--m-fast) var(--ease-out);
}
.btn::after { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(251,245,232,.55); border-radius: 2px; pointer-events: none; }
.btn:hover { background: var(--brick-d); color: var(--cream); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-teal { background: var(--teal); box-shadow: 0 3px 0 var(--teal-d); }
.btn-teal:hover { background: var(--teal-d); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line::after { border-color: rgba(43,31,22,.35); }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(251,245,232,.85); }
.btn-light:hover { background: var(--cream); color: var(--ink); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 12.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } .btn:active { transform: scale(.98); } }

.text-link { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.text-link:hover { border-color: var(--brick); }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; color: var(--cream); }
.topbar { background: var(--teal-d); color: var(--cream); font-size: 13.5px; max-height: var(--top-h); overflow: hidden; transition: max-height var(--m-base) var(--ease-out); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: var(--top-h); gap: 18px; }
.topbar a { color: var(--cream); text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--gold); }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 22px; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.topbar svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; color: var(--gold); }
.site-header.is-scrolled .topbar { max-height: 0; }
.navbar { background: linear-gradient(rgba(24,15,9,.62), rgba(24,15,9,0)); transition: background-color var(--m-base) var(--ease-out); }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 20px; }
.site-header.is-scrolled .navbar { background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 8px 18px -12px rgba(43,31,22,.35); color: var(--ink); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand img { width: 56px; height: 56px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--f-display); font-size: 25px; }
.brand-sub { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; opacity: .85; margin-top: 4px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: inherit; text-decoration: none; font-weight: 700; font-size: 14.5px; letter-spacing: .02em; position: relative; padding: 8px 0; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--m-base) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1.5px solid currentColor; background: transparent; color: inherit; border-radius: 3px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

/* mobile nav (Section 21 Rules 2+3, 27.7.1) */
.mobile-nav {
  display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 1000; overflow-y: auto;
  padding: 130px 28px 100px; background: var(--paper) url('../images/brand/paper-grain.webp') repeat; color: var(--ink);
  visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity var(--m-base) var(--ease-out), transform var(--m-base) var(--ease-out), visibility 0s linear var(--m-base);
}
.mobile-nav.active { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
.mobile-nav a.mn-link { font-family: var(--f-display); font-size: 1.7rem; color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mobile-nav a.mn-link[aria-current="page"] { color: var(--brick); }
.mobile-nav .mn-actions { display: grid; gap: 12px; margin-top: 28px; }
.mobile-nav-close {
  position: fixed; top: 72px; right: 20px; z-index: 1002; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2px solid #eee; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.mobile-nav-close.active { display: flex; }
.nav-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 940px; color: var(--cream); background: var(--teal-d); overflow: hidden; }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1); }
.hero-slide.is-active { opacity: 1; z-index: 2; transition: opacity var(--m-fade) var(--ease-in-out); }
.hero-slide.is-leaving { opacity: 1; z-index: 1; }
.motion-on .hero-slide.is-active img, .motion-on .hero-slide.is-leaving img { animation: hero-zoom var(--m-kenburns) var(--ease-out) forwards; will-change: transform; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (max-width: 767px) { @keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.06); } } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(26,16,9,.78) 0%, rgba(26,16,9,.46) 48%, rgba(26,16,9,.08) 100%), linear-gradient(0deg, rgba(26,16,9,.55) 0%, rgba(26,16,9,0) 38%); }
.hero-content { position: absolute; z-index: 4; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: flex-end; padding-top: calc(var(--top-h) + var(--nav-h) + 28px); padding-bottom: clamp(72px, 11vh, 130px); }
.hero-content .wrap { width: 100%; }
.hero-content .wrap { max-width: var(--wrap); }
.hero-copy { max-width: 780px; }
.hero h1 { font-size: clamp(2.1rem, min(4.6vw, 8.2vh), 3.6rem); color: var(--cream); text-shadow: 0 2px 22px rgba(0,0,0,.35); margin-bottom: .35em; }
.hero .eyebrow { color: var(--gold); }
.hero .accent { color: #F2D9A0; display: block; margin-bottom: 14px; font-size: clamp(1.3rem, min(2.6vw, 4.2vh), 1.9rem); }
.hero p.hero-sub { color: rgba(251,245,232,.92); max-width: 540px; font-size: 1.1rem; }
.motion-on .hero-copy > * { animation: rise var(--m-slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
.hero-pause { position: absolute; left: 22px; bottom: 26px; width: 44px; height: 44px; z-index: 5; border-radius: 50%; border: 1.5px solid rgba(251,245,232,.7); background: rgba(26,16,9,.45); color: var(--cream); cursor: pointer; font-size: 12px; }
.motion-off .hero-pause { display: none; }
.postmark { position: absolute; z-index: 4; right: clamp(150px, 13vw, 240px); bottom: clamp(110px, 17vh, 190px); width: 150px; height: 150px; transform: rotate(-9deg); color: rgba(251,245,232,.92); }
.postmark svg { width: 100%; height: 100%; }

@media (max-height: 760px) and (min-width: 900px) { .hero p.hero-sub { display: none; } .hero .eyebrow { margin-bottom: 8px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: var(--cream); background: var(--teal-d); overflow: hidden;
  padding: calc(var(--top-h) + var(--nav-h) + 64px) 0 clamp(44px, 6vw, 72px); min-height: 400px; display: flex; align-items: flex-end; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26,16,9,.8) 0%, rgba(26,16,9,.42) 55%, rgba(26,16,9,.35) 100%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: var(--cream); max-width: 820px; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.page-hero .accent { color: #F2D9A0; display: block; font-size: clamp(1.3rem, 2.4vw, 1.7rem); max-width: 720px; }
.page-hero--plain { background: var(--teal-d) url('../images/brand/paper-grain.webp'); background-blend-mode: multiply; min-height: 300px; }
.page-hero--plain::after { display: none; }
.crumbs { font-size: 13px; letter-spacing: .08em; margin-bottom: 14px; opacity: .92; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--cream); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Facts band ---------- */
.facts { background: var(--cream); border-top: 3px double var(--line); border-bottom: 3px double var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { display: flex; align-items: center; gap: 14px; padding: 22px 18px; border-left: 1px dashed var(--line); }
.facts li:first-child { border-left: 0; }
.facts svg { width: 38px; height: 38px; color: var(--brick); flex: none; }
.facts strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.12rem; line-height: 1.2; }
.facts span { font-size: .9rem; color: var(--ink-soft); line-height: 1.35; display: block; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.split.flip { grid-template-columns: .95fr 1.05fr; }
.split.flip > :first-child { order: 2; }
.stack > * + * { margin-top: 1em; }

/* print-style photo frames */
.print { position: relative; margin: 0; background: #FBF6EA; padding: 10px 10px 38px; border: 1px solid #E2D6BB; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 16px 28px -14px rgba(43,31,22,.45); }
.print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.print.tall img { aspect-ratio: 4 / 5; }
.print figcaption { position: absolute; left: 14px; right: 14px; bottom: 7px; font-family: var(--f-accent); font-style: italic; font-weight: 500; font-size: 1.12rem; color: var(--ink-soft); line-height: 1.2; }
.print::before { content: ""; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: rgba(212,153,42,.42); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,.12); z-index: 2; }
.tilt-l { transform: rotate(-1.6deg); } .tilt-r { transform: rotate(1.4deg); }
.print-pair { position: relative; padding-bottom: 12%; }
.print-pair .print:nth-child(2) { position: absolute; width: 58%; right: -2%; bottom: 0; }
.print-pair .print:nth-child(1) { width: 82%; }

/* ---------- Stay cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stay-card { background: var(--cream); border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.stay-card .ph { overflow: hidden; display: block; aspect-ratio: 4 / 3; }
.stay-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--m-slow) var(--ease-out); }
.stay-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.stay-card h3 { margin: 0; font-size: 1.45rem; }
.stay-card h3 a { color: var(--ink); text-decoration: none; }
.stay-card .tag { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
.stay-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.stay-card .more { margin-top: auto; padding-top: 12px; }
@media (hover: hover) { .stay-card:hover .ph img { transform: scale(1.04); } }

/* ledger (menu-style dotted leaders) */
.ledger { margin: 0 0 1.2em; padding: 0; }
.ledger > div { display: flex; align-items: baseline; padding: 3px 0; }
.ledger dt { font-weight: 700; order: 0; }
.ledger > div::before { content: ""; order: 1; flex: 1; border-bottom: 2px dotted var(--line); margin: 0 8px; transform: translateY(-4px); }
.ledger dd { order: 2; margin: 0; text-align: right; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; columns: 2; column-gap: 28px; }
.checks li { position: relative; padding-left: 26px; margin-bottom: 6px; break-inside: avoid; font-size: .98rem; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 11px; height: 6px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.2em; }
.chips li { border: 1px dashed var(--brick); color: var(--brick-d); padding: 3px 12px; font-size: .88rem; font-weight: 700; border-radius: 99px; }

/* ---------- Activity list ---------- */
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.icon-list li { display: flex; gap: 16px; align-items: flex-start; }
.icon-list svg { width: 34px; height: 34px; color: var(--brick); flex: none; margin-top: 2px; }
.icon-list b { font-family: var(--f-display); font-weight: 400; font-size: 1.12rem; display: block; line-height: 1.25; }
.icon-list span { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Dark band (travellers) ---------- */
.band { --band: var(--teal-d); background: var(--band) url('../images/brand/paper-grain.webp'); background-blend-mode: multiply; color: var(--cream); position: relative; }
.band h2, .band h3 { color: var(--cream); }
.band .eyebrow { color: var(--gold); }
.band p { color: rgba(251,245,232,.88); }
.band .accent { color: #F2D9A0; }
.scallop-top::before, .scallop-bottom::after { content: ""; position: absolute; left: 0; right: 0; height: 15px; background: radial-gradient(circle at 14px 0, var(--band) 13.5px, transparent 14.5px) 0 0 / 28px 15px repeat-x; }
.scallop-top::before { top: -14px; transform: scaleY(-1); }
.scallop-bottom::after { bottom: -14px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tile { border: 1px dashed rgba(251,245,232,.4); padding: 26px 22px; position: relative; }
.tile svg { width: 40px; height: 40px; color: var(--gold); margin-bottom: 12px; }
.tile h3 { font-size: 1.3rem; margin-bottom: .35em; }
.tile p { margin: 0; font-size: .98rem; }

/* ---------- Places (things to do) ---------- */
.place-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.place { background: var(--cream); border: 1px solid var(--line); padding: 26px 26px 22px; position: relative; }
.place .dist { display: inline-block; background: var(--teal); color: var(--cream); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 2px; margin-bottom: 12px; }
.place h3 { margin-bottom: .4em; }
.place .spec { font-size: .92rem; border-top: 1px dashed var(--line); padding-top: 10px; margin: 14px 0 0; color: var(--ink-soft); }
.place .spec b { color: var(--ink); }
.table-wrap { overflow-x: auto; }
table.ledger-table { width: 100%; border-collapse: collapse; font-size: .98rem; background: var(--cream); border: 1px solid var(--line); }
.ledger-table th, .ledger-table td { text-align: left; padding: 12px 16px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.ledger-table thead th { background: var(--teal-d); color: var(--cream); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 0; }
.ledger-table tbody th { font-weight: 700; }
.note { font-size: .9rem; color: var(--ink-soft); border-left: 3px solid var(--gold); padding: 6px 0 6px 14px; margin: 22px 0; }

/* ---------- Room sections ---------- */
.room { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding: 56px 0; border-top: 3px double var(--line); }
.room:first-of-type { border-top: 0; }
.room.flip > :first-child { order: 2; }
.room-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.room-gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); grid-column: span 2; }
.room-gallery a:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.room-gallery.g4 a:not(:first-child) { grid-column: span 3; }
.room-gallery.g5 a:nth-child(n+5) { grid-column: span 3; }
@media (min-width: 900px) { .room-gallery { position: sticky; top: calc(var(--top-h) + var(--nav-h) + 16px); } .site-header.is-scrolled ~ main .room-gallery { top: calc(var(--nav-h) + 16px); } }
.room-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--m-slow) var(--ease-out); }
@media (hover: hover) { .room-gallery a:hover img { transform: scale(1.04); } }
.room h2 { margin-bottom: .25em; }
.room .sub { font-family: var(--f-accent); font-style: italic; font-weight: 500; font-size: 1.5rem; color: var(--brick); line-height: 1.2; margin-bottom: 16px; }
.room h3.mini { font-size: 12.5px; font-family: var(--f-body); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin: 22px 0 8px; }

/* ---------- Amenity rows ---------- */
.amen-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: 44px 0; }
.amen-row.flip > :first-child { order: 2; }
.amen-icon { width: 54px; height: 54px; color: var(--brick); margin-bottom: 10px; }
.amen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.amen-card { background: var(--cream); border: 1px solid var(--line); padding: 26px; }
.amen-card svg { width: 42px; height: 42px; color: var(--brick); margin-bottom: 10px; }
.amen-card h3 { font-size: 1.25rem; }
.amen-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal-item { aspect-ratio: 4 / 3; overflow: hidden; display: block; background: var(--paper-3); position: relative; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--m-slow) var(--ease-out); }
@media (hover: hover) { .gal-item:hover img { transform: scale(1.05); } }
.gal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.gal-head p { margin: 0; color: var(--ink-soft); max-width: 460px; }
.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(20,13,8,.95); display: flex; align-items: center; justify-content: center; padding: 56px 64px;
  visibility: hidden; opacity: 0; transition: opacity var(--m-base) var(--ease-out), visibility 0s linear var(--m-base); }
.lightbox.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; transform: scale(.98); transition: transform var(--m-base) var(--ease-out); }
.lightbox.open .lb-fig img { transform: none; }
.lb-cap { color: var(--cream); font-family: var(--f-accent); font-style: italic; font-size: 1.15rem; margin-top: 14px; text-align: center; max-width: 720px; }
.lightbox button { position: absolute; background: rgba(251,245,232,.12); border: 1px solid rgba(251,245,232,.5); color: var(--cream); width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(251,245,232,.28); }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 14px; top: 50%; margin-top: -24px; } .lb-next { right: 14px; top: 50%; margin-top: -24px; }
.lb-open { overflow: hidden; }

/* ---------- Policy / legal ---------- */
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.callout { background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--brick); padding: 20px 24px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 44px; }
.faq-item { border-top: 1px dashed var(--line); padding: 22px 0 6px; }
.faq-item h3 { font-size: 1.3rem; margin-bottom: .4em; }
.faq-item p { color: var(--ink-soft); }
details.faq-d { border-top: 1px dashed var(--line); padding: 4px 0; }
details.faq-d:last-of-type { border-bottom: 1px dashed var(--line); }
details.faq-d summary { cursor: pointer; list-style: none; font-family: var(--f-display); font-size: 1.2rem; padding: 16px 40px 16px 0; position: relative; }
details.faq-d summary::-webkit-details-marker { display: none; }
details.faq-d summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--brick); border-bottom: 2px solid var(--brick); transform: rotate(45deg); transition: transform var(--m-base) var(--ease-out); }
details.faq-d[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
details.faq-d p { color: var(--ink-soft); padding-bottom: 14px; margin: 0; }

/* ---------- Form ---------- */
.form-card { background: var(--cream); border: 1px solid var(--line); padding: clamp(22px, 4vw, 40px); box-shadow: 0 18px 30px -22px rgba(43,31,22,.5); position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-bottom: 2px solid var(--ink-soft); border-radius: 2px; padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.form-ok { background: #E7EFD9; border: 1px solid var(--sage); padding: 14px 18px; margin-top: 18px; color: #2d3a1c; }
.form-note { font-size: .88rem; color: var(--ink-soft); margin: 12px 0 0; }

/* ---------- Map ---------- */
.map-frame { border: 10px solid #FBF6EA; box-shadow: 0 16px 28px -14px rgba(43,31,22,.45); background: var(--paper-3); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }
address { font-style: normal; }

/* ---------- CTA closing band ---------- */
.cta-band { background: var(--brick-d) url('../images/brand/paper-grain.webp'); background-blend-mode: multiply; color: var(--cream); text-align: center; padding: clamp(56px, 8vw, 96px) 0; }
.cta-band h2 { color: var(--cream); }
.cta-band .eyebrow { color: var(--gold); }
.cta-band p { color: rgba(251,245,232,.9); max-width: 620px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn { background: var(--cream); color: var(--brick-d); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.cta-band .btn::after { border-color: rgba(116,41,26,.4); }
.cta-band .btn:hover { background: #fff; }
.cta-band .btn-light { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(251,245,232,.85); }
.cta-band .btn-light::after { border-color: rgba(251,245,232,.45); }
.cta-band .btn-light:hover { background: var(--cream); color: var(--brick-d); }

/* ---------- Footer ---------- */
.site-footer { --band: #2A1D14; background: var(--band) url('../images/brand/paper-grain.webp'); background-blend-mode: multiply; color: rgba(251,245,232,.86); padding: 86px 0 0; margin-top: 15px; position: relative; font-size: .97rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 15px; background: radial-gradient(circle at 14px 0, var(--band) 13.5px, transparent 14.5px) 0 0 / 28px 15px repeat-x; transform: scaleY(-1); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: 40px; }
.site-footer h2 { font-size: 1.15rem; color: var(--gold); margin-bottom: .8em; letter-spacing: .02em; }
.site-footer a { color: rgba(251,245,232,.9); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 330px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 44px; height: 44px; border: 1px solid rgba(251,245,232,.5); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); text-decoration: none; }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 54px; border-top: 1px dashed rgba(251,245,232,.28); padding: 22px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .88rem; }
.footer-credit { margin: 0; }
.footer-credit a { color: var(--gold); font-weight: 700; }

/* ---------- Sticky bar + floating widgets (Section 25.5: static, no motion) ---------- */
.sticky-bar { display: none; }
.float-stack { position: fixed; right: 20px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.float-stack a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; min-width: 48px; padding: 0 18px 0 14px; border-radius: 99px; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; box-shadow: 0 8px 18px -6px rgba(0,0,0,.45); }
.float-stack svg { width: 24px; height: 24px; flex: none; }
.float-stack .f-wa { background: #1E7A47; } .float-stack .f-call { background: var(--teal); } .float-stack .f-book { background: var(--brick); }
.float-stack a:hover { color: #fff; filter: brightness(1.1); }

/* ---------- Reveal (Section 27.6) ---------- */
.reveal-ready .reveal { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity var(--m-reveal) var(--ease-out), transform var(--m-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles-3 { grid-template-columns: repeat(3, 1fr); }
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .amen-grid { grid-template-columns: repeat(2, 1fr); }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px dashed var(--line); }
}
@media (max-width: 899px) {
  :root { --top-h: 0px; --nav-h: 66px; }
  body { padding-bottom: 96px; }
  .topbar { display: none; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 21px; }
  .brand-sub { display: none; }
  .split, .split.flip, .amen-row, .room { grid-template-columns: 1fr; }
  .split.flip > :first-child, .amen-row.flip > :first-child, .room.flip > :first-child { order: 0; }
  .place-grid { grid-template-columns: 1fr; }
  .postmark { display: none; }
  .hero { min-height: 600px; }
  .hero-pause { bottom: 110px; left: 14px; }
  .float-stack { display: none; }
  .sticky-bar { display: grid; grid-template-columns: .8fr 1.15fr 1.45fr; grid-template-rows: auto auto; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: var(--paper); border-top: 2px solid var(--ink); box-shadow: 0 -8px 20px -10px rgba(43,31,22,.5); padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); gap: 4px 8px; }
  .sticky-bar .sb-price { grid-column: 1 / -1; margin: 0; font-size: 12.5px; text-align: center; color: var(--ink-soft); font-weight: 700; letter-spacing: .04em; line-height: 1.3; }
  .sticky-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 3px; font-weight: 700; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; color: #fff; padding: 0 6px; }
  .sticky-bar svg { width: 20px; height: 20px; }
  .sticky-bar .sb-call { background: var(--teal); } .sticky-bar .sb-wa { background: #1E7A47; } .sticky-bar .sb-book { background: var(--brick); }
}
@media (max-width: 767px) {
  body { font-size: 16.5px; }
  .cards, .tiles, .tiles-3, .amen-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gal-head { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .checks { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .lightbox { padding: 60px 10px 24px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .print-pair { padding-bottom: 18%; }
  .map-frame iframe { height: 320px; }
}
@media (max-width: 480px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li:nth-child(3) { border-left: 0; }
  .facts li + li { border-top: 1px dashed var(--line); }
  .btn-row .btn { width: 100%; }
}

/* ---------- Reduced motion + print (Section 27.4.3) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .sticky-bar, .float-stack, .hero-pause, .lightbox { display: none !important; }
  body { background: #fff; }
}
