/* Client site theme. Every colour and font comes from the tenant's theme variables (tenant.json site.theme.vars),
   written into :root by the layout, so a new client is a palette and two fonts, not new CSS. Text pairs must be at
   least 4.5:1 (scripts/check-tenants.js checks the main pairs); accents are fills under ink, never text. */

@font-face { font-family: "Figtree"; src: url("/_static/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/_static/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/_static/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/_static/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

*, *::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; min-height: 100vh; background: var(--d-bg); color: var(--d-text);
  font-family: var(--d-font-body); font-size: 1.0625rem; line-height: 1.6;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--d-ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button { font: inherit; }
::selection { background: var(--d-accent); color: var(--d-ink); }
:focus-visible { outline: 2px solid var(--d-brand); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--d-ink); color: var(--d-bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.display { font-family: var(--d-font-display); font-weight: var(--d-display-weight); letter-spacing: var(--d-display-tracking); line-height: 1.02; color: var(--d-ink); text-wrap: balance; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--d-muted); }
.muted { color: var(--d-muted); }
.ink { color: var(--d-ink); }
.strong { font-weight: 600; color: var(--d-ink); }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 0.875rem; }
.link { font-weight: 600; color: var(--d-ink); text-decoration: underline; }
.rule { border-color: var(--d-line); }
.measure { max-width: 48ch; }
.lede { font-size: 1.125rem; max-width: 44ch; }

.t-hero { font-size: clamp(3rem, 1.6rem + 5.6vw, 6rem); }
.t-hero-s { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.6rem); }
.t-h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); }
.t-h2-m { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.t-h2-s { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem); }
.t-page { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.4rem;
  border-radius: var(--d-btn-radius); background: var(--d-brand); color: var(--d-on-brand); font-weight: 600; font-size: 1rem;
  line-height: 1.2; text-decoration: none; border: 1px solid var(--d-brand); cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.btn:hover { background: var(--d-brand-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--d-ink); border-color: var(--d-ink); }
.btn-ghost:hover { background: var(--d-ink); color: var(--d-bg); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.card { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--d-radius); }
.img { border-radius: var(--d-radius); object-fit: cover; width: 100%; height: 100%; }
.r-45 { aspect-ratio: 4 / 5; }
.r-32 { aspect-ratio: 3 / 2; }
.r-43 { aspect-ratio: 4 / 3; }

/* Demo banner (tenants marked "demo") */
.banner { position: sticky; top: 0; z-index: 50; background: #111210; color: #f5f6f2; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.8125rem; line-height: 1.35; }
.banner a { color: #f5f6f2; font-weight: 600; }
.banner .wrap { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 6px; }
.banner-tag { background: #d2f121; color: #111210; font-weight: 700; padding: 0.1rem 0.45rem; margin-right: 0.5rem; white-space: nowrap; }
.mode { background: #ffe9a8; color: #4a3500; font-size: 0.8125rem; text-align: center; padding: 6px 12px; }

/* Header */
.hdr { border-bottom: 1px solid var(--d-line); background: var(--d-bg); }
.hdr .wrap { display: flex; height: 64px; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { text-decoration: none; color: var(--d-ink); }
.logo.wordmark { font-family: var(--d-font-display); font-weight: var(--d-display-weight); font-size: 1.6rem; line-height: 1; }
.logo .suffix { font-family: var(--d-font-body); font-size: 0.95rem; color: var(--d-muted); margin-left: 0.4rem; }
.logo.mark { display: flex; align-items: center; gap: 0.6rem; font-family: var(--d-font-display); font-weight: var(--d-display-weight); letter-spacing: var(--d-display-tracking); font-size: 1.25rem; }
.nav { display: none; }
.nav ul { display: flex; gap: 1.75rem; font-size: 0.95rem; font-weight: 500; }
.nav a { color: var(--d-ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
@media (min-width: 640px) { .logo .suffix { display: inline; } }
@media (max-width: 639px) { .logo .suffix { display: none; } }
@media (min-width: 768px) { .nav { display: block; } }
@media (min-width: 1024px) { .hdr .wrap { height: 72px; } .logo.wordmark { font-size: 1.85rem; } .logo.mark { font-size: 1.4rem; } }

/* Sections */
.sec { margin-top: 6rem; scroll-margin-top: 3rem; }
@media (min-width: 1024px) { .sec { margin-top: 8rem; } }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.sec-head p { max-width: 40ch; font-size: 0.95rem; color: var(--d-muted); }

.hero-split { display: grid; gap: 2.5rem; align-items: center; padding-top: 2rem; }
.hero-split .copy { order: 2; }
.hero-split .pic { order: 1; position: relative; }
.hero-split .pic .img { max-height: 78vh; }
@media (min-width: 768px) {
  .hero-split { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; padding-top: 3.5rem; }
  .hero-split .copy { order: 1; }
  .hero-split .pic { order: 2; }
}
.feature { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 12px; background: var(--d-surface); padding: 0.75rem 1rem; text-decoration: none; box-shadow: 0 8px 30px rgba(27, 31, 28, 0.18); }
@media (min-width: 640px) { .feature { left: auto; max-width: 22rem; } }

.hero-overlay { position: relative; padding-top: 1.5rem; }
.hero-overlay .img { aspect-ratio: 4 / 3; }
.hero-overlay .panel { position: relative; z-index: 2; margin: -4rem 0.75rem 0; padding: 1.5rem; box-shadow: 0 10px 40px rgba(15, 39, 48, 0.14); }
@media (min-width: 640px) { .hero-overlay .img { aspect-ratio: 16 / 9; } .hero-overlay .panel { margin-inline: 1.5rem; padding: 2rem; } }
@media (min-width: 768px) { .hero-overlay { padding-top: 2.5rem; } }
@media (min-width: 1024px) {
  .hero-overlay .img { aspect-ratio: 2 / 1; object-position: 70% 50%; }
  .hero-overlay .frame { position: relative; }
  .hero-overlay .panel { position: absolute; left: 2rem; top: 50%; transform: translateY(-50%); margin: 0; max-width: 34rem; }
}

.svc-grid { display: grid; gap: 2.5rem 3rem; margin-top: 2.5rem; }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc-grid h3 { font-size: 1.05rem; font-weight: 600; }
.svc-list { margin-top: 0.75rem; border-top: 1px solid var(--d-line); }
.svc-list li { border-bottom: 1px solid var(--d-line); }
.svc { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.125rem 1rem; padding: 1rem 0; text-decoration: none; }
.svc .name { font-weight: 600; color: var(--d-ink); }
.svc:hover .name { text-decoration: underline; }
.svc .price { text-align: right; font-weight: 600; color: var(--d-ink); font-variant-numeric: tabular-nums; }
.svc .body { font-size: 0.95rem; color: var(--d-muted); }
.svc .meta { text-align: right; font-size: 0.875rem; color: var(--d-muted); font-variant-numeric: tabular-nums; }

.gallery-scroll { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 1rem; }
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll li { width: 68%; flex-shrink: 0; scroll-snap-align: start; }
@media (min-width: 768px) { .gallery-scroll { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; } .gallery-scroll li { width: auto; } }
.gallery-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.two { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .two { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.two.top { align-items: start; }
.staff-row { display: grid; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 640px) { .staff-row { grid-template-columns: repeat(3, 1fr); } }
.staff-row li { border-top: 1px solid var(--d-line); padding-top: 0.75rem; }
.staff-cards { display: grid; gap: 0.75rem; align-content: start; }
.staff-cards li { display: flex; align-items: center; gap: 1rem; padding: 1rem; }
.avatar { display: flex; width: 44px; height: 44px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; background: var(--d-sunk); color: var(--d-brand); }

.policies { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) { .policies { grid-template-columns: repeat(3, 1fr); } }
.policies li { border-top: 1px solid var(--d-line); padding-top: 1rem; }
.policies h3 { font-size: 1rem; font-weight: 600; }
.policies p { margin-top: 0.375rem; font-size: 0.95rem; }

.treats { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .treats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .treats { grid-template-columns: repeat(4, 1fr); } }
.treats li { padding: 1.25rem; }
.treats .bar { display: block; width: 2rem; height: 6px; border-radius: 999px; background: var(--d-accent); }
.treats h3 { margin-top: 1rem; font-size: 1.125rem; font-weight: 700; }
.treats p { margin-top: 0.375rem; font-size: 0.95rem; }

.band { background: var(--d-brand); color: rgba(255, 255, 255, 0.85); }
.band .wrap { padding-block: 4rem; }
.band h2, .band h3 { color: #fff; }
.steps { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } .band .wrap { padding-block: 5rem; } }
.steps li { border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 1rem; }
.steps .n { font-size: 0.875rem; font-weight: 700; color: var(--d-accent); }
.steps h3 { margin-top: 0.25rem; font-size: 1.125rem; font-weight: 700; }
.steps p { margin-top: 0.375rem; font-size: 0.95rem; }

.visit { display: grid; gap: 2.5rem; padding: 1.5rem; }
@media (min-width: 640px) { .visit { padding: 2.5rem; } }
@media (min-width: 768px) { .visit { grid-template-columns: 1.1fr 1fr; } }
.hours { display: grid; grid-template-columns: 1fr auto; gap: 0.625rem 1rem; align-content: start; border-top: 1px solid var(--d-line); padding-top: 1.25rem; }
@media (min-width: 768px) { .hours { border-top: 0; border-left: 1px solid var(--d-line); padding: 0 0 0 2.5rem; } }
.hours dd { text-align: right; font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--d-muted); }

.ftr { margin-top: 6rem; border-top: 1px solid var(--d-line); background: var(--d-sunk); }
.ftr .grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 768px) { .ftr .grid { grid-template-columns: repeat(3, 1fr); } }
.ftr dl { display: grid; grid-template-columns: 7rem 1fr; gap: 0.25rem 0; font-size: 0.95rem; margin-top: 0.75rem; }
.ftr .legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding-bottom: 2rem; font-size: 0.875rem; }

/* Long-form pages (privacy, cookies, extra pages) */
.prose { max-width: 68ch; padding-block: 2.5rem 1rem; }
.prose h1 { margin-bottom: 1rem; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 0.5rem; }
.prose p, .prose ul { margin-top: 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--d-line); padding: 0.5rem 0.5rem 0.5rem 0; vertical-align: top; }

/* Booking */
.bk { display: grid; gap: 2.5rem; padding-block: 1.5rem 2.5rem; }
@media (min-width: 768px) { .bk { padding-top: 2.5rem; } }
@media (min-width: 1024px) { .bk { grid-template-columns: 1fr 22rem; gap: 3.5rem; } }
.bk-main { min-width: 0; }
.progress { display: flex; gap: 6px; }
.progress li { height: 4px; flex: 1; border-radius: 999px; background: var(--d-line); }
.progress li.on { background: var(--d-brand); }
.choices { display: grid; gap: 0.625rem; margin-top: 0.625rem; }
.choices.cols { grid-template-columns: 1fr; }
@media (min-width: 640px) { .choices.cols { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; color: var(--d-ink); }
.choice { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 1rem; text-align: left; background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--d-radius); color: var(--d-text); cursor: pointer; transition: border-color 120ms ease, box-shadow 120ms ease; }
.choice.start { justify-content: flex-start; }
.choice:hover { border-color: var(--d-ink); }
.choice[aria-pressed="true"] { border-color: var(--d-brand); box-shadow: inset 0 0 0 1px var(--d-brand); }
.days { display: flex; gap: 0.5rem; overflow-x: auto; margin: 1.5rem -16px 0; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: 16px; }
.days::-webkit-scrollbar { display: none; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 3.6rem; min-height: 4.4rem; border-radius: var(--d-radius); border: 1px solid var(--d-line); background: var(--d-surface); color: var(--d-ink); cursor: pointer; line-height: 1.15; scroll-snap-align: start; }
.day[aria-pressed="true"] { background: var(--d-brand); border-color: var(--d-brand); color: var(--d-on-brand); }
.day:disabled { cursor: not-allowed; color: var(--d-muted); background: transparent; border-style: dashed; }
.day .dn { font-size: 0.75rem; font-weight: 500; }
.day .dd { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.75rem; }
@media (min-width: 640px) { .slots { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .slots { grid-template-columns: repeat(5, 1fr); } }
.slot { min-height: 44px; border-radius: var(--d-btn-radius); border: 1px solid var(--d-line); background: var(--d-surface); color: var(--d-ink); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; padding: 0 0.75rem; }
.slot:hover { border-color: var(--d-ink); }
.slot[aria-pressed="true"] { background: var(--d-brand); border-color: var(--d-brand); color: var(--d-on-brand); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.field label, .field .label { display: block; margin-bottom: 0.375rem; font-weight: 600; color: var(--d-ink); }
.field .hint { margin-top: 0.375rem; font-size: 0.875rem; color: var(--d-muted); }
.input, textarea.input, select.input { width: 100%; min-height: 48px; padding: 0 0.95rem; border: 1px solid var(--d-line); border-radius: calc(var(--d-radius) - 4px); background: var(--d-surface); color: var(--d-ink); font: inherit; font-size: 1rem; }
textarea.input { padding: 0.75rem 0.95rem; min-height: 96px; }
.input:focus { border-color: var(--d-brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-brand) 18%, transparent); }
.input[aria-invalid="true"] { border-color: #b42318; }
.error { color: #b42318; font-weight: 600; margin-top: 0.5rem; }
.notice { border-radius: 10px; padding: 0.75rem 1rem; background: var(--d-sunk); font-size: 0.95rem; }
.form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--d-brand); }
.summary { padding: 1.25rem; }
.summary dl { display: grid; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.95rem; }
.summary dl > div { display: flex; justify-content: space-between; gap: 1rem; }
.summary dd { text-align: right; }
.summary .money { margin-top: 1rem; border-top: 1px solid var(--d-line); padding-top: 1rem; gap: 0.375rem; }
.sticky { position: sticky; top: 4rem; display: grid; gap: 1rem; }
.aside-desktop { display: none; }
@media (min-width: 1024px) { .aside-desktop { display: block; } .aside-mobile { display: none; } }
.step-in { animation: none; }
@media (prefers-reduced-motion: no-preference) { .step-in { animation: step-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1); } }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.875rem; font-weight: 600; background: var(--d-sunk); color: var(--d-ink); }
.test-badge { display: inline-block; background: #ffe9a8; color: #4a3500; font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; }
.checkout { border-radius: var(--d-radius); border: 1px solid var(--d-line); background: var(--d-surface); overflow: hidden; }
.checkout .bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid var(--d-line); padding: 0.75rem 1.25rem; background: var(--d-sunk); }
.checkout .body { padding: 1.25rem; }
.spinner { width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px; display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cookie consent (only shown when a tenant turns on optional scripts) */
.consent { position: fixed; inset: auto 12px 12px 12px; z-index: 60; max-width: 30rem; margin-left: auto; padding: 1rem 1.25rem; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18); }
.consent[hidden] { display: none; }

.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
