/* Larchmoor prototype. Tokens mirror products/product-002/design.md and the Framer colour/text styles. */
:root {
  --bg: #ECEEE8; --surface: #E1E5DD; --ink: #18241E; --muted: #4A5850; --line: #C5CCC3;
  --forest: #1E3A2D; --accent: #C8862E; --on-accent: #18241E; --accent-ink: #8A5414;
  --on-photo: #F1F2EC; --scrim: 10 16 12; --shadow: 30 58 45;
  --f-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --r: 2px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: 40px; --max: 1200px; --section: var(--s10);
  --z-base: 1; --z-sticky: 50; --z-nav: 100; --z-menu: 200;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1712; --surface: #17221B; --ink: #E6EAE2; --muted: #A2AEA5; --line: #2A372F;
    --forest: #9DBFA8; --accent: #D9963A; --on-accent: #0F1712; --accent-ink: #E0A65A; --shadow: 0 0 0;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1712; --surface: #17221B; --ink: #E6EAE2; --muted: #A2AEA5; --line: #2A372F;
  --forest: #9DBFA8; --accent: #D9963A; --on-accent: #0F1712; --accent-ink: #E0A65A; --shadow: 0 0 0;
}
@media (max-width: 1199px) { :root { --gutter: 32px; --section: var(--s9); } }
@media (max-width: 809px)  { :root { --gutter: 20px; --section: var(--s8); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
section[id] { scroll-margin-top: 72px; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: var(--r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: var(--z-menu); background: var(--accent); color: var(--on-accent); padding: var(--s2) var(--s4); border-radius: var(--r); }
.skip:focus { top: var(--s4); }

/* Type scale: display 84/60/40, h2 52/42/32, h3 30/26/24, lead 19/18/17 */
.display, h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 84px; line-height: 1.1; }
h2 { font-size: 52px; line-height: 1.1; }
h3 { font-size: 30px; line-height: 1.15; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0; max-width: 65ch; }
.lead { font-size: 19px; color: var(--muted); }
.label { font: 600 13px/1.4 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
@media (max-width: 1199px) { h1 { font-size: 60px; } h2 { font-size: 42px; } h3 { font-size: 26px; } .lead { font-size: 18px; } }
@media (max-width: 809px)  { h1 { font-size: 40px; } h2 { font-size: 32px; } h3 { font-size: 24px; } .lead { font-size: 17px; } }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: var(--r); border: 1px solid transparent;
  font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .15s; white-space: nowrap; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.link:hover { color: var(--accent-ink); }
.link i { transition: transform .2s; } .link:hover i { transform: translateX(3px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; font: 600 26px/1 var(--f-display); letter-spacing: 0.01em; }
.mono { width: 34px; height: 34px; border: 1px solid currentColor; border-radius: var(--r); display: grid; place-items: center; font: italic 500 22px/1 var(--f-display); }
.nav ul { display: flex; gap: var(--s6); list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: 15px; padding: var(--s2) 0; }
.nav ul a:hover { color: var(--accent-ink); }
.nav-actions { display: flex; align-items: center; gap: var(--s3); }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: transparent; border-radius: var(--r); font-size: 22px; cursor: pointer; }
@media (max-width: 1023px) {
  .nav ul { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav[data-open="true"] ul { display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s3) var(--gutter) var(--s5); z-index: var(--z-menu); }
  .nav[data-open="true"] ul a { display: block; padding: var(--s3) 0; font-size: 18px; }
}
@media (max-width: 420px) { .nav .wrap { gap: var(--s3); } .nav-actions { gap: var(--s2); } .nav .btn { padding: 0 var(--s3); } .brand { gap: var(--s2); } .brand span:last-child { font-size: 22px; } .menu-btn { width: 44px; height: 44px; } }

/* Hero: full-bleed media */
.hero { position: relative; height: calc(100svh - 72px); min-height: 560px; max-height: 960px; overflow: hidden; color: var(--on-photo); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(var(--scrim) / .88) 0%, rgb(var(--scrim) / .76) 55%, rgb(var(--scrim) / .6) 75%, rgb(var(--scrim) / .25) 100%); }
.hero .wrap { position: relative; z-index: var(--z-base); height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: var(--s9); }
.hero .label { margin-bottom: var(--s4); text-shadow: 0 1px 10px rgb(var(--scrim) / .6); }
.hero h1 .ln { display: block; }
@media (max-width: 380px) { .hero h1 { font-size: 36px; } }
.hero p { margin-top: var(--s4); font-size: 19px; max-width: 46ch; color: var(--on-photo); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero .btn-ghost { color: var(--on-photo); background: rgb(var(--scrim) / .25); }
@media (max-width: 809px) { .hero .wrap { padding-bottom: var(--s7); } .hero p { font-size: 17px; } }

/* Intro: editorial statement */
.intro h2 { grid-column: 2 / span 9; font-size: 56px; line-height: 1.12; }
.intro .body { grid-column: 2 / span 5; align-self: start; margin-top: var(--s9); display: grid; gap: var(--s5); justify-items: start; }
.intro figure { grid-column: 8 / span 5; margin: var(--s7) 0 0; }
.intro figure img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); width: 100%; }
figcaption { margin-top: var(--s3); font-size: 14px; color: var(--muted); }
@media (max-width: 1199px) { .intro h2 { grid-column: 1 / -1; font-size: 44px; } .intro .body { grid-column: 1 / span 6; margin-top: var(--s8); } .intro figure { grid-column: 8 / -1; } }
@media (max-width: 809px)  { .intro h2 { font-size: 32px; } .intro .body, .intro figure { grid-column: 1 / -1; } .intro .body { margin-top: var(--s5); } .intro figure { margin-top: var(--s5); } }

/* Spaces: asymmetric grid */
.sec-head { display: grid; gap: var(--s4); margin-bottom: var(--s7); max-width: 720px; }
.spaces-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s5); }
.spaces-grid .stack { display: grid; gap: var(--s5); }
.space-card { text-decoration: none; display: grid; gap: var(--s3); }
.space-card .ph-img { overflow: hidden; border-radius: var(--r); }
.space-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.space-card:hover img { transform: scale(1.04); }
.space-card.big .ph-img { aspect-ratio: 4 / 4.4; }
.space-card.small .ph-img { aspect-ratio: 16 / 9.6; }
.space-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); flex-wrap: wrap; }
.space-card .meta span { color: var(--muted); font-size: 15px; }
.spaces-foot { margin-top: var(--s7); }
@media (max-width: 809px) { .spaces-grid { grid-template-columns: 1fr; } .space-card.big .ph-img { aspect-ratio: 4 / 3.6; } }

/* Guest-Fit Finder: tool panel */
.tinted { background: var(--surface); }
.finder { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; }
.finder .controls { display: grid; gap: var(--s6); }
.field { display: grid; gap: var(--s2); }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.count-row { display: flex; justify-content: space-between; align-items: baseline; }
.count-row output { font: 500 44px/1 var(--f-display); }
input[type="range"] { width: 100%; accent-color: var(--forest); height: 32px; cursor: pointer; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; gap: 3px; margin: 0; }
.seg legend { margin-bottom: var(--s2); padding: 0; }
.seg label { position: relative; text-align: center; padding: var(--s3) var(--s2); font-weight: 500; font-size: 14px; cursor: pointer; border-radius: var(--r); }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--forest); color: var(--bg); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.fit-summary { font: 500 26px/1.25 var(--f-display); }
.fit-list { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s3); }
.fit-row { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s4); align-items: center; background: var(--bg); padding: var(--s3); border-radius: var(--r); }
.fit-row img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r); }
.fit-row strong { font: 600 22px/1.2 var(--f-display); display: block; }
.fit-row small { color: var(--muted); font-size: 14px; }
.fit-row .status { font-weight: 600; font-size: 14px; padding: var(--s1) var(--s3); border: 1px solid var(--line); border-radius: var(--r); }
.fit-row[data-fit="yes"] .status { background: var(--forest); color: var(--bg); border-color: var(--forest); }
.fit-row[data-fit="tight"] .status { border-color: var(--accent-ink); color: var(--accent-ink); }
.fit-row[data-fit="no"] .status { border-style: dashed; color: var(--muted); }
.fit-row[data-fit="no"] img { filter: grayscale(1); }
.fit-row a { text-decoration: none; }
.fit-row a:hover strong { text-decoration: underline; }
@media (max-width: 1023px) { .finder { grid-template-columns: 1fr; gap: var(--s7); } }
@media (max-width: 420px) { .fit-row { grid-template-columns: 56px 1fr; } .fit-row img { width: 56px; height: 56px; } .fit-row .status { grid-column: 2; justify-self: start; } }

/* Packages: column index + estimate bar */
.pkg-cols { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pkg { padding: var(--s5) var(--s5) var(--s6) 0; display: grid; gap: var(--s3); align-content: start; }
.pkg + .pkg { border-left: 1px solid var(--line); padding-left: var(--s5); }
.pkg .price { font: 500 30px/1.1 var(--f-display); }
.pkg .tag { color: var(--accent-ink); font-weight: 600; font-size: 14px; min-height: 1.6em; }
.pkg p { font-size: 15px; color: var(--muted); }
@media (max-width: 1023px) { .pkg-cols { grid-template-columns: 1fr 1fr; } .pkg:nth-child(3) { border-left: 0; padding-left: 0; } .pkg:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .pkg-cols { grid-template-columns: 1fr; } .pkg + .pkg { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

.estimate { margin-top: var(--s7); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s6); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: var(--s5); align-items: end;
  box-shadow: 0 18px 40px -28px rgb(var(--shadow) / .45); background: var(--bg); }
.estimate h3 { grid-column: 1 / 4; font-size: 28px; align-self: start; }
.estimate .est-result { grid-column: 4; grid-row: 1 / span 2; border-left: 1px solid var(--line); padding-left: var(--s6); align-self: stretch; align-content: center; }
.estimate select, .estimate input[type="number"] { width: 100%; min-height: 48px; padding: 0 var(--s3); border: 1px solid var(--muted); border-radius: var(--r); background: var(--bg); }
.estimate .err { color: #A3341F; font-size: 14px; min-height: 1.4em; }
:root[data-theme="dark"] .estimate .err { color: #F0937A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .estimate .err { color: #F0937A; } }
.est-result { display: grid; gap: var(--s2); }
.est-result .range { font: 500 34px/1.1 var(--f-display); }
.est-result .note { font-size: 13px; color: var(--muted); }
.est-result[data-state="error"] .range { color: var(--muted); }
@media (max-width: 1023px) { .estimate { grid-template-columns: 1fr 1fr; } .estimate h3 { grid-column: 1 / -1; } .estimate .est-result { grid-column: 1 / -1; grid-row: auto; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--s5); } }
@media (max-width: 560px) { .estimate { grid-template-columns: 1fr; padding: var(--s5); } }

/* Real events: scroll-snap row */
.row-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s5); margin-bottom: var(--s7); flex-wrap: wrap; }
.row-ctrls { display: flex; gap: var(--s2); }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: transparent; cursor: pointer; font-size: 20px; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.snap { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s4); scrollbar-width: thin; }
.snap > * { scroll-snap-align: start; }
.event-card { text-decoration: none; display: grid; gap: var(--s3); align-content: start; }
.event-card .ph-img { overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 5; }
.event-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.event-card:hover img { transform: scale(1.04); }
.event-card small { color: var(--muted); font-size: 14px; }
.event-card p { font-size: 15px; color: var(--muted); }
@media (max-width: 809px) { .snap { grid-auto-columns: 82%; } }

/* Testimonial: quote with portrait */
.quote { align-items: center; }
.quote figure { grid-column: 1 / span 4; margin: 0; }
.quote figure img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); width: 100%; }
.quote blockquote { grid-column: 5 / span 8; margin: 0; }
.quote blockquote p { font: italic 500 32px/1.3 var(--f-display); max-width: none; }
.quote cite { display: block; margin-top: var(--s5); font-style: normal; }
.quote cite strong { display: block; }
@media (max-width: 809px) { .quote figure { grid-column: 1 / span 8; } .quote blockquote { grid-column: 1 / -1; } .quote blockquote p { font-size: 24px; } }

/* Plan a visit: image CTA */
.visit { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.visit .media { position: relative; }
.visit .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit .body { padding: var(--s9) var(--gutter) var(--s9) var(--s8); display: grid; gap: var(--s5); align-content: center; max-width: 680px; }
.carry { font-size: 15px; border-left: 2px solid var(--accent); padding-left: var(--s3); }
.carry[hidden] { display: none; }
.avail { list-style: none; padding: 0; margin: var(--s3) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.avail li { padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 2px; }
.avail strong { font-size: 15px; }
.avail span { font-size: 14px; color: var(--muted); }
.avail li[data-status="limited"] span { color: var(--accent-ink); font-weight: 600; }
.avail li[data-status="full"] { border-style: dashed; }
.avail li[data-status="full"] span { text-decoration: line-through; }
.visit .ctas { display: flex; gap: var(--s3); flex-wrap: wrap; }
@media (max-width: 1023px) { .visit { grid-template-columns: 1fr; } .visit .media { aspect-ratio: 16 / 10; } .visit .body { padding: var(--s8) var(--gutter); max-width: none; } }
@media (max-width: 420px) { .avail { grid-template-columns: 1fr; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s6); }
.foot .grid > div { grid-column: span 3; display: grid; gap: var(--s2); align-content: start; }
.foot .grid > div:first-child { grid-column: span 6; gap: var(--s4); }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 809px) { .foot .grid > div > a { padding-block: 10px; } }
.foot .small { margin-top: var(--s8); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 809px) { .foot .grid > div, .foot .grid > div:first-child { grid-column: 1 / -1; } }

/* Space detail */
.crumbs { font-size: 14px; color: var(--muted); padding-top: var(--s7); }
.crumbs a { color: var(--muted); }
.sp-head { padding: var(--s5) 0 var(--s7); display: grid; gap: var(--s5); max-width: 760px; }
.sp-head .side { display: flex; gap: var(--s6); align-items: center; flex-wrap: wrap; }
.sp-head .side p { flex: 1 1 360px; }
.mosaic { display: grid; grid-template-columns: 8fr 4fr; grid-template-rows: 1fr 1fr; gap: var(--s4); height: min(72vh, 680px); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.mosaic img:first-child { grid-row: 1 / span 2; }
@media (max-width: 809px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; } .mosaic img:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; } .mosaic img { aspect-ratio: 1; } }
.specs-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
.specs-wrap > * { min-width: 0; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin-top: var(--s6); }
@media (max-width: 809px) { .specs { grid-template-columns: 1fr 1fr; } }
.spec { background: var(--surface); border-radius: var(--r); padding: var(--s5); display: grid; gap: var(--s1); }
.spec b { font: 500 44px/1 var(--f-display); }
.spec span { font-size: 14px; color: var(--muted); }
.plan-scroll { overflow-x: auto; }
.plan { display: block; width: 100%; height: auto; max-width: 960px; max-height: 720px; object-fit: contain; object-position: left top; border-radius: var(--r); background: var(--bg); }
@media (max-width: 809px) { .plan { min-width: 760px; max-height: none; } }
.plan-link { display: inline-flex; align-items: center; min-height: 44px; }
.features { display: grid; grid-template-columns: 6fr 6fr; gap: var(--s8); align-items: center; }
.features ul { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s6); }
.features li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); font-size: 16px; }
.features li i { color: var(--accent-ink); font-size: 20px; margin-top: 2px; }
.features img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); width: 100%; }
@media (max-width: 1023px) { .features { grid-template-columns: 1fr; } .features figure { order: -1; margin: 0; } .features img { aspect-ratio: 16 / 10; } }
@media (max-width: 560px) { .features ul { grid-template-columns: 1fr; } }
.tabs [role="tablist"] { display: flex; gap: var(--s2); border-bottom: 1px solid var(--line); margin: var(--s6) 0 var(--s6); overflow-x: auto; }
.tabs [role="tab"] { background: none; border: 0; border-bottom: 2px solid transparent; padding: var(--s3) var(--s4); font-weight: 600; cursor: pointer; color: var(--muted); margin-bottom: -1px; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs [role="tabpanel"] p { font: 500 34px/1.3 var(--f-display); max-width: 30ch; }
@media (max-width: 809px) { .tabs [role="tabpanel"] p { font-size: 26px; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.pair .event-card .ph-img { aspect-ratio: 3 / 2; }
@media (max-width: 809px) { .pair { grid-template-columns: 1fr; } }
