/* Alta Ranch base styles + shared components. Tokens only — no raw values. */

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font: 400 var(--t-body)/var(--lh-body) var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, summary, input, select, textarea, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, p, li, a { overflow-wrap: break-word; }
a { color: var(--c-link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: var(--r-sm); }
.on-dark :focus-visible { outline-color: var(--c-lantern); }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: var(--lh-heading); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--t-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; max-width: 68ch; }
.display { font-family: var(--f-display); font-size: var(--t-display); line-height: var(--lh-tight); font-weight: 400; letter-spacing: -0.02em; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--c-ink-soft); }
.on-dark .lead { color: var(--c-fog); }
.small { font-size: var(--t-small); }
.muted { color: var(--c-ink-soft); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.wrap { width: 100%; max-width: var(--w-page); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.section--loose { padding-block: var(--s-10); }
.on-dark { background: var(--c-pine); color: var(--c-paper); }
.surface-linen { background: var(--c-linen); }
.on-dark a:not(.btn) { color: var(--c-paper); }
.surface { background: var(--c-surface); }
@media (min-width: 1024px) {
  .section { padding-block: var(--s-11); }
  .section--tight { padding-block: var(--s-9); }
  .section--loose { padding-block: var(--s-12); }
}

/* Skip link */
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--c-paper); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); }
.skip:focus { top: var(--s-4); }

/* Buttons */
.btn {
  --btn-bg: var(--c-pine);
  --btn-fg: var(--c-paper);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 50px; padding: var(--s-3) var(--s-6);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg); border-radius: var(--r-sm);
  font: 500 var(--t-small)/1.2 var(--f-body); letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer;
  transition: transform var(--d-press) var(--ease-out), background-color var(--d-ui) var(--ease-out), border-color var(--d-ui) var(--ease-out), color var(--d-ui) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) { .btn:hover { --btn-bg: var(--c-pine-hover); text-decoration: none; } }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
/* Accent = pine on light grounds; white with pine text on pine sections and over photos (.on-photo) */
.btn--accent { --btn-bg: var(--c-pine); --btn-fg: var(--c-paper); }
.on-dark .btn--accent, .on-photo .btn--accent, .hero .btn--accent, .page-hero .btn--accent, .pkg--feature .btn--accent { --btn-bg: var(--c-paper); --btn-fg: var(--c-pine); }
@media (hover: hover) { .on-dark .btn--accent:hover, .on-photo .btn--accent:hover, .hero .btn--accent:hover, .page-hero .btn--accent:hover, .pkg--feature .btn--accent:hover { --btn-bg: var(--c-mist); } }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-ink); border-color: rgba(31, 58, 45, 0.35); }
@media (hover: hover) { .btn--ghost:hover { --btn-bg: rgba(31, 58, 45, 0.06); border-color: var(--c-lodgepole); } }
.on-dark .btn--ghost, .on-photo .btn--ghost, .btn--ghost-light { --btn-fg: var(--c-fog); border-color: rgba(237, 239, 232, 0.45); }
@media (hover: hover) { .on-dark .btn--ghost:hover, .btn--ghost-light:hover { --btn-bg: rgba(237, 239, 232, 0.1); border-color: var(--c-fog); } }
.btn--lg { min-height: 56px; padding-inline: var(--s-6); font-size: var(--t-body); }

/* Text link with quiet underline */
.link { font-weight: 600; color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-lichen); text-underline-offset: 0.25em; transition: text-decoration-color var(--d-ui) var(--ease-out); }
@media (hover: hover) { .link:hover { text-decoration-color: currentColor; } }
.on-dark .link { color: var(--c-fog); text-decoration-color: rgba(237, 239, 232, 0.4); }

/* Header / nav — mobile first. Attached to the top edge, never a floating pill. */
/* The blur lives on a ::before layer: backdrop-filter on the header itself would trap the fixed menu sheet inside it */
.site-header { position: sticky; top: 0; z-index: 50; view-transition-name: site-header; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(237, 239, 232, 0.94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); box-shadow: 0 1px 0 rgba(31, 58, 45, 0.08); transition: opacity var(--d-ui-slow) var(--ease-out); }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--nav-h); }
.brand { display: block; width: 116px; flex: none; position: relative; z-index: 2; }
.brand img { width: 100%; transition: filter var(--d-ui-slow) var(--ease-out); }
/* Over a full-bleed hero: transparent bar, light logo, until the hero scrolls away */
.site-header--over { position: fixed; inset: 0 0 auto 0; }
.site-header--over:not(.is-scrolled)::before, .menu-open .site-header::before { opacity: 0; }
.site-header--over:not(.is-scrolled) .brand img { filter: invert(1) brightness(2); }
.site-header--over:not(.is-scrolled) .menu-toggle { color: var(--c-paper); border-color: rgba(248, 249, 245, 0.55); }
.site-header--over:not(.is-scrolled) .nav-desktop a:not(.btn) { color: var(--c-paper); }
/* Menu sheet open: white sheet, so the bar behind it reads dark again */
.menu-open .site-header .brand img { filter: none; }
.menu-open .site-header .menu-toggle { color: var(--c-lodgepole); border-color: rgba(36, 51, 43, 0.3); }


.menu-toggle { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s-4); background: transparent; color: var(--c-ink); border: 1px solid rgba(31, 58, 45, 0.3); border-radius: var(--r-sm); font-weight: 600; font-size: var(--t-small); cursor: pointer; transition: transform var(--d-press) var(--ease-out), color var(--d-ui) var(--ease-out), border-color var(--d-ui) var(--ease-out); }
.menu-toggle:active { transform: scale(0.97); }


/* The menu sheet (phones and tablets): big type, a photo beside each page */
.nav { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; padding: calc(var(--nav-h) + var(--s-5)) var(--gutter) max(var(--s-8), env(safe-area-inset-bottom)); background: var(--c-fog); color: var(--c-lodgepole); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity var(--d-ui) var(--ease-out), visibility 0s linear var(--d-ui); }
.nav.is-open { opacity: 1; visibility: visible; transition: opacity var(--d-ui) var(--ease-out), visibility 0s; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { opacity: 0; transform: translateY(10px); transition: opacity var(--d-ui-slow) var(--ease-out), transform var(--d-ui-slow) var(--ease-out); }
.nav.is-open li { opacity: 1; transform: none; }
.nav.is-open li:nth-child(2) { transition-delay: 30ms; } .nav.is-open li:nth-child(3) { transition-delay: 60ms; } .nav.is-open li:nth-child(4) { transition-delay: 90ms; }
.nav.is-open li:nth-child(5) { transition-delay: 120ms; } .nav.is-open li:nth-child(6) { transition-delay: 150ms; } .nav.is-open li:nth-child(7) { transition-delay: 180ms; } .nav.is-open li:nth-child(8) { transition-delay: 210ms; }
.nav a:not(.btn) { display: flex; align-items: center; min-height: 60px; padding-block: var(--s-2); color: var(--c-lodgepole); text-decoration: none; font-family: var(--f-display); font-size: var(--t-h2); line-height: 1.1; border-bottom: 1px solid var(--c-rule); }
.nav a[aria-current="page"]:not(.btn) { color: var(--c-slate); }
.nav .btn { margin-top: var(--s-6); width: 100%; }
.nav__contact { margin-top: var(--s-6); font-size: var(--t-small); color: var(--c-ink-soft); }
.nav .nav__contact a { display: inline; min-height: 0; padding: 0; border: 0; font: inherit; color: var(--c-lodgepole); text-decoration: underline; }
body.menu-open { overflow: hidden; }

/* Desktop nav — shown from 1024px; the sheet and toggle go away */
.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .brand { width: 132px; }
  .menu-toggle, .nav { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: var(--s-1); }
  .nav-desktop a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s-3); color: var(--c-ink); text-decoration: none; font-weight: 500; font-size: var(--t-small); border-radius: var(--r-sm); transition: background-color var(--d-ui) var(--ease-out), color var(--d-ui) var(--ease-out); }
  .nav-desktop a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-color: var(--c-brass); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
  .nav-desktop .btn { margin-left: var(--s-3); }
}
@media (min-width: 1024px) and (hover: hover) { .nav-desktop a:not(.btn):hover { background: rgba(31, 58, 45, 0.06); } }

/* Thumb bar — phones only. Slides away on scroll down, back on scroll up. */
.thumb-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: var(--s-2); padding: var(--s-2) var(--gutter) max(var(--s-2), env(safe-area-inset-bottom)); background: rgba(237, 239, 232, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -1px 0 rgba(31, 58, 45, 0.1); transform: translateY(0); transition: transform var(--d-ui-slow) var(--ease-out); }
.thumb-bar .btn { flex: 1; }
.thumb-bar .btn--ghost { flex: none; }
.thumb-bar.is-hidden { transform: translateY(110%); }
.menu-open .thumb-bar { transform: translateY(110%); }
body { padding-bottom: 72px; }
@media (min-width: 1024px) { .thumb-bar { display: none; } body { padding-bottom: 0; } }

/* Footer */
.site-footer { background: var(--c-lodgepole); color: var(--c-fog); padding-block: var(--s-10) var(--s-6); }
.site-footer a { color: var(--c-fog); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-5); }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } .footer-grid > :first-child { grid-column: auto; } }
.footer-grid h2 { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.footer-grid li a { text-decoration: none; display: inline-block; padding-block: var(--s-1); }
@media (hover: hover) { .footer-grid li a:hover { text-decoration: underline; } }
.footer-logo { width: 150px; filter: invert(1) brightness(1.9) sepia(0.15); opacity: 0.92; margin-bottom: var(--s-4); }
.footer-base { margin-top: var(--s-9); padding-top: var(--s-5); border-top: 1px solid rgba(237, 239, 232, 0.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); font-size: var(--t-small); color: var(--c-lichen); }

/* Forms */
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 600; font-size: var(--t-small); }
.field .hint { font-size: var(--t-small); color: var(--c-ink-soft); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4);
  background: var(--c-paper); color: var(--c-ink);
  border: 1px solid rgba(31, 58, 45, 0.28); border-radius: var(--r-sm);
  font-size: var(--t-body);
  transition: border-color var(--d-ui) var(--ease-out), box-shadow var(--d-ui) var(--ease-out);
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-slate); box-shadow: 0 0 0 3px rgba(61, 90, 102, 0.22); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--c-error); }
.field .error { color: var(--c-error); font-size: var(--t-small); font-weight: 500; }
.input::placeholder, .textarea::placeholder { color: var(--c-placeholder); }

/* Package card */
.pkg { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6); background: var(--c-paper); border-radius: var(--r-md); box-shadow: var(--e-rest); }
.pkg__name { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 600; }
.pkg__price { font-family: var(--f-display); font-size: var(--t-h2); line-height: 1; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.pkg__price small { display: block; margin-top: var(--s-2); font-family: var(--f-body); font-size: var(--t-small); font-weight: 400; color: var(--c-ink-soft); }
.pkg__fit { color: var(--c-ink-soft); font-size: var(--t-small); }
.pkg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); font-size: var(--t-small); }
.pkg li { position: relative; padding-left: var(--s-5); }
.pkg li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 1.5px; background: var(--c-moss); }
.pkg .btn { margin-top: auto; }
.pkg--feature { background: var(--c-lodgepole); color: var(--c-fog); box-shadow: var(--e-overlay); }
.pkg--feature .pkg__fit, .pkg--feature .pkg__price small { color: var(--c-lichen); }
.pkg--feature li::before { background: var(--c-lantern); }
.tag { display: inline-flex; align-self: flex-start; align-items: center; min-height: 26px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--c-mist); color: var(--c-slate); font-size: var(--t-label); font-weight: 600; letter-spacing: 0.02em; }
.on-dark .tag, .pkg--feature .tag { background: rgba(255, 255, 255, 0.16); color: var(--c-paper); }

/* Photo */
.photo { border-radius: var(--r-sm); overflow: hidden; background: var(--c-lichen); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: var(--t-small); color: var(--c-ink-soft); margin-top: var(--s-2); }

/* Quote */
.quote { font-family: var(--f-display); font-size: var(--t-h2); line-height: 1.3; font-weight: 400; font-style: italic; text-wrap: balance; }
.quote-cite { margin-top: var(--s-5); font-style: normal; font-weight: 600; font-size: var(--t-small); }

/* FAQ — v2: airy cards, a round plus/minus, smooth open where supported */
.faq { display: grid; gap: var(--s-3); border: 0; }
.faq details { background: var(--c-paper); border-radius: var(--r-md); box-shadow: var(--e-rest); transition: box-shadow var(--d-ui) var(--ease-out); interpolate-size: allow-keywords; }
.faq details[open] { box-shadow: var(--e-hover); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; min-height: 64px; padding: var(--s-4) var(--s-5); cursor: pointer; font-family: var(--f-display); font-size: var(--t-body); line-height: 1.35; font-weight: 400; color: var(--c-lodgepole); border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: var(--r-pill); background-color: var(--c-mist); background-image: linear-gradient(var(--c-slate), var(--c-slate)), linear-gradient(var(--c-slate), var(--c-slate)); background-size: 12px 1.5px, 1.5px 12px; background-position: center; background-repeat: no-repeat; transition: transform var(--d-ui) var(--ease-out), background-color var(--d-ui) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--c-paper); box-shadow: 0 0 0 1px var(--c-rule); }
@media (hover: hover) { .faq summary:hover::after { background-color: var(--c-lantern-hover); } }
.faq details > div { padding: 0 var(--s-5) var(--s-5); color: var(--c-ink-soft); }
.faq details > div p + p { margin-top: var(--s-3); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size var(--d-ui-slow) var(--ease-out), content-visibility var(--d-ui-slow) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (min-width: 760px) { .faq summary { font-size: var(--t-lead); padding-inline: var(--s-6); } .faq details > div { padding: 0 var(--s-6) var(--s-6); } }
/* Two-column FAQ section: intro + contact on the left, questions on the right */
.faq-layout { display: grid; gap: var(--s-7); }
.faq-layout__aside { display: grid; gap: var(--s-4); align-content: start; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--s-10); } .faq-layout__aside { position: sticky; top: calc(var(--nav-h) + var(--s-6)); } }

/* Placeholder for unconfirmed facts — deliberately visible */
.placeholder { background: repeating-linear-gradient(-45deg, rgba(78, 107, 118, 0.1) 0 6px, transparent 6px 12px); outline: 1px dashed var(--c-slate); outline-offset: 2px; padding-inline: var(--s-1); }

/* Editorial motion — once per element, gated by reduced motion */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--d-edit) var(--ease-fluid), transform var(--d-edit) var(--ease-fluid); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Package grid — shared by Home and Weddings. Mobile first: a swipe row with the next card peeking. */
.pkg-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--s-3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: var(--s-2) var(--gutter) var(--s-5); scrollbar-width: none; }
.pkg-grid::-webkit-scrollbar { display: none; }
.pkg-grid > * { scroll-snap-align: start; }
.pkg-swipe-hint { font-size: var(--t-small); color: var(--c-ink-soft); margin-top: var(--s-2); }
@media (min-width: 760px) { .pkg-grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: var(--s-5); } .pkg-swipe-hint { display: none; } }
@media (min-width: 1200px) { .pkg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); } .pkg-grid .pkg--feature { transform: translateY(calc(-1 * var(--s-4))); } }

/* Page hero — every inner page opens with one. Mobile: tall photo, title at the bottom. */
.page-hero { position: relative; display: grid; align-items: end; min-height: 72svh; color: var(--c-paper); overflow: hidden; background: var(--c-lodgepole); }
.page-hero__img { position: absolute; inset: 0; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__img::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.page-hero__copy { position: relative; padding-block: var(--s-10) var(--s-8); display: grid; gap: var(--s-4); }
.page-hero__copy .lead { color: var(--c-fog); max-width: 34rem; }
.page-hero__copy h1, .page-hero__copy .lead { text-shadow: 0 1px 24px rgba(20, 38, 29, 0.45); }
@media (min-width: 1024px) { .page-hero { min-height: min(78svh, 720px); } .page-hero__copy { padding-block: var(--s-12) var(--s-10); } }

/* Curtain reveal — photos only, a handful per page. The light-coming-up feel. */
/* The frame stays unclipped so IntersectionObserver can see it; only the photo inside is clipped */
.js .curtain { overflow: hidden; }
.js .curtain img { clip-path: inset(0 0 100% 0); transform: scale(1.08); transition: clip-path var(--d-edit) var(--ease-fluid), transform var(--d-edit-long) var(--ease-fluid); }
.js .curtain.is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* Section heading block used across pages */
.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); max-width: var(--w-text); }
.section-head p { color: var(--c-ink-soft); }
.on-dark .section-head p { color: var(--c-lichen); }
@media (min-width: 1024px) { .section-head { margin-bottom: var(--s-9); } }

/* Swipe row — horizontal scroll-snap used by stories, carousels, package cards */
.swipe { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--s-3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
.swipe::-webkit-scrollbar { display: none; }
.swipe > * { scroll-snap-align: start; }
.swipe-controls { display: none; gap: var(--s-2); }
@media (min-width: 1024px) { .swipe-controls { display: flex; } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-sm); border: 1px solid rgba(31, 58, 45, 0.3); background: transparent; color: var(--c-ink); cursor: pointer; transition: transform var(--d-press) var(--ease-out), background-color var(--d-ui) var(--ease-out); }
.icon-btn:active { transform: scale(0.97); }
.icon-btn svg { width: 20px; height: 20px; }
.on-dark .icon-btn { border-color: rgba(237, 239, 232, 0.4); color: var(--c-fog); }
@media (hover: hover) { .icon-btn:hover { background: rgba(31, 58, 45, 0.06); } .on-dark .icon-btn:hover { background: rgba(237, 239, 232, 0.1); } }

/* Scroll-linked photo drift — browsers with scroll timelines only; others get a still photo */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .parallax { overflow: hidden; }
    .parallax img { animation: parallax-drift linear both; animation-timeline: view(); animation-range: cover; will-change: transform; }
    @keyframes parallax-drift { from { transform: translateY(-7%) scale(1.14); } to { transform: translateY(7%) scale(1.14); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .curtain img { clip-path: none; transform: none; }
  .nav li { opacity: 1; transform: none; }
}

/* Review carousel — shared by Home and Reviews.
   Markup: <div class="quotes" data-carousel>
             <ul class="quotes__track swipe" id="x" aria-label="Guest reviews"><li class="quote-card">…</li></ul>
             <div class="quotes__nav"><button data-swipe-prev="x">…</button><div class="quotes__dots" aria-hidden="true"></div><button data-swipe-next="x">…</button></div>
           </div>
   Auto-advances every 7s; pauses on hover, focus, touch, or when off screen; never under reduced motion. */
.quotes__track { grid-auto-columns: 88%; gap: var(--s-4); list-style: none; margin-block: 0; padding-block: var(--s-2) var(--s-5); }
.quote-card { display: grid; align-content: space-between; gap: var(--s-5); min-height: 280px; padding: var(--s-6); background: var(--c-paper); border-radius: var(--r-md); box-shadow: var(--e-rest); }
.quote-card blockquote { margin: 0; font-family: var(--f-display); font-size: var(--t-lead); line-height: 1.45; color: var(--c-lodgepole); text-wrap: pretty; }
.quote-card blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: 0.6; margin-bottom: var(--s-3); color: var(--c-slate-soft); }
.quote-card footer { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: var(--t-small); color: var(--c-ink-soft); }
.quote-card footer b { color: var(--c-lodgepole); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--c-star); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.on-dark .stars { color: var(--c-paper); }
.quotes__nav { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-2); }
.quotes__dots { display: flex; gap: var(--s-2); }
.quotes__dots span { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--c-rule); transition: background-color var(--d-ui) var(--ease-out), width var(--d-ui) var(--ease-out); }
.quotes__dots span.is-active { width: 24px; background: var(--c-slate); }
.on-dark .quotes__dots span { background: rgba(255, 255, 255, 0.3); }
.on-dark .quotes__dots span.is-active { background: var(--c-paper); }
@media (min-width: 760px) { .quotes__track { grid-auto-columns: calc((100% - var(--s-4)) / 2); } }
@media (min-width: 1200px) { .quotes__track { grid-auto-columns: calc((100% - 2 * var(--s-4)) / 3); } .quote-card { padding: var(--s-7); } }

/* Compare — shared by Weddings (packages) and Cabins.
   Phones: a row of option buttons; the table shows the label column + the chosen option only,
   as an easy two-column list. Tablet and up: the full side-by-side table, buttons hidden.
   Markup:
   <div class="compare" data-compare data-default="2">
     <div class="compare__picker" role="group" aria-label="Choose a package to compare">
       <button type="button" data-col="1">The Meadow</button> … (data-col = table column index, 1-based after the label column)
     </div>
     <div class="compare__scroll"><table class="compare__table"> <thead><tr><th>…</th><th>Option 1</th>…</tr></thead> <tbody><tr><th scope="row">Price</th><td>…</td>…</tr></tbody></table></div>
   </div> */
/* Buttons wrap into an even grid (2 across for four options, 3 across for three); never a sideways strip */
.compare__picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: var(--s-2); margin-bottom: var(--s-4); }
.compare__picker button { min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--c-rule); background: var(--c-paper); color: var(--c-lodgepole); font-size: var(--t-small); font-weight: 500; line-height: 1.25; text-align: center; cursor: pointer; transition: background-color var(--d-ui) var(--ease-out), color var(--d-ui) var(--ease-out), border-color var(--d-ui) var(--ease-out), transform var(--d-press) var(--ease-out); }
.compare__picker button:active { transform: scale(0.97); }
.compare__picker button[aria-pressed="true"] { background: var(--c-pine); border-color: var(--c-pine); color: var(--c-paper); }
@media (hover: hover) { .compare__picker button:not([aria-pressed="true"]):hover { border-color: var(--c-slate); background: var(--c-mist); } }
.compare__table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--c-paper); border-radius: var(--r-md); box-shadow: var(--e-rest); overflow: hidden; font-size: var(--t-small); }
.compare__table th, .compare__table td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-rule); }
.compare__table tbody tr:last-child > * { border-bottom: 0; }
.compare__table tbody th { width: 42%; font-weight: 500; color: var(--c-ink-soft); }
.compare__table td { color: var(--c-lodgepole); }
.compare__table thead th { font-family: var(--f-display); font-size: var(--t-body); font-weight: 400; background: var(--c-linen); color: var(--c-lodgepole); }
.compare__table .is-price { font-family: var(--f-display); font-size: var(--t-h3); font-variant-numeric: lining-nums tabular-nums; }
/* phone: only the chosen column */
.compare .is-off { display: none; }
.compare__table thead { display: none; }
@media (min-width: 760px) {
  .compare__picker { display: none; }
  .compare .is-off { display: table-cell; }
  .compare__table thead { display: table-header-group; }
  .compare__table tbody th { width: auto; }
  .compare__scroll { overflow-x: auto; }
}
