/* Quanta Clinix — site styles
   Palette from the existing brand: clinic green #3B7D23, brand black, sage paper #EDEFEB.
   System fonts only: no third-party font requests (speed + privacy). */

:root {
  --green: #3b7d23;
  --green-deep: #24501a;
  --green-tint: #e4eedf;
  --ink: #000;
  --text: #2f352c;
  --muted: #545c50;
  --paper: #edefeb;
  --paper-2: #f6f7f4;
  --white: #fff;
  --line: #cfd6ca;
  --field: #6b7466;
  --alert: #a3261b;
  --alert-tint: #fbe9e7;
  --flag: #ffe58a;
  --flag-ink: #3d2e00;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.35rem);
  --step-4: clamp(2.2rem, 1.4rem + 3vw, 3.5rem);
  --measure: 66ch;
  --wrap: 72rem;
  --gap: clamp(1rem, 0.6rem + 1.5vw, 2rem);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  color: var(--text); background: var(--white); text-rendering: optimizeLegibility;
}
img, svg, picture { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.005em; }
p, ul, ol, dl { margin: 0 0 1em; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--white); border-radius: 3px; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 42rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: 6px; }
.skip-link:focus { top: 1rem; color: var(--white); }
.plain-list { list-style: none; padding: 0; }
.plain-list li { margin-bottom: 0.35em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ review markers (staging only) */
.review-banner { background: var(--flag); color: var(--flag-ink); padding: 0.5rem var(--gap); font-size: var(--step--1); text-align: center; }
.confirm-flag {
  background: var(--flag); color: var(--flag-ink); font-size: var(--step--1); font-weight: 600;
  padding: 0.1em 0.45em; border-radius: 4px; outline: 1px dashed #9a7b00; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.review-status { margin: 0.5rem 0 0; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: 0.8em 1.4em; border-radius: 999px; border: 2px solid transparent; min-height: 48px;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--green-deep); border-color: var(--green); }
.btn--secondary:hover { background: var(--green-tint); color: var(--ink); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn--danger { background: var(--white); color: var(--alert); border-color: var(--alert); }
.btn--danger:hover { background: var(--alert); color: var(--white); }
.btn--large { font-size: var(--step-1); padding: 0.85em 1.6em; }
.btn--small { min-height: 38px; padding: 0.45em 1em; font-size: var(--step--1); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link-strong { font-weight: 700; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--green-deep); text-decoration: underline; cursor: pointer; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.button-row form { margin: 0; }

/* ------------------------------------------------------------ header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand { flex: none; }
.brand img { height: 52px; width: auto; max-width: none; }
.nav-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.site-nav ul a, .site-nav .btn { white-space: nowrap; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 0.4rem 0; border-bottom: 3px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { border-bottom-color: var(--green); }
.site-nav__actions { display: flex; align-items: center; gap: 1rem; }
.site-nav__phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }

@media (max-width: 78rem) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; font: inherit; font-weight: 700;
    background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 0.5rem 1rem; min-height: 44px; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0.75rem; padding-bottom: 1rem; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--green); padding-left: 0.75rem; }
  .site-nav__actions { flex-direction: column; align-items: stretch; }
  .site-nav__phone { padding: 0.4rem 0; }
}

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) 0; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero__title { max-width: 15ch; margin-bottom: 0.45em; }
.hero__lede { font-size: var(--step-1); max-width: 44ch; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1rem; }
.hero__note { font-size: var(--step--1); color: var(--muted); }
.hero__photo img { border-radius: var(--radius) var(--radius) var(--radius) 120px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  background: var(--paper); border-radius: var(--radius); padding: 1.25rem 0;
}
.facts__item { min-width: 0; padding: 0.25rem 1.5rem; border-left: 3px solid var(--green); margin-left: 1.5rem; }
.facts__item:first-child { margin-left: 1.5rem; }
.facts dt { font-weight: 800; color: var(--ink); margin-bottom: 0.2rem; }
.facts dd { margin: 0; }
.facts .hours { margin: 0; }
@media (max-width: 56rem) {
  .facts__item, .facts__item:first-child { margin-left: 1.25rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__photo img { aspect-ratio: 16 / 10; border-radius: var(--radius) var(--radius) var(--radius) 64px; }
  .facts { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* ------------------------------------------------------------ sections */
.section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.section--paper { background: var(--paper); }
.section__head { max-width: var(--measure); margin-bottom: 2rem; }
.section__head p { font-size: var(--step-1); color: var(--muted); }
.section__more { margin-top: 2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); }
@media (max-width: 56rem) { .split, .split--wide { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 1rem; }
.stack img, .portrait img { border-radius: var(--radius); }
.page-head { background: var(--paper); padding-block: clamp(2rem, 1rem + 3vw, 3.5rem); }
.page-head h1 { font-size: var(--step-4); max-width: 22ch; }
.page-head__lede { font-size: var(--step-1); max-width: 54ch; color: var(--text); margin-bottom: 0; }
.crumbs { font-size: var(--step--1); margin-bottom: 0.75rem; color: var(--muted); }
.meta-line, .disclaimer { color: var(--muted); font-size: var(--step--1); }
.link-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 0.75rem 0; font-weight: 600; }

/* ------------------------------------------------------------ fee board (price list) */
.board { columns: 2 26rem; column-gap: clamp(2rem, 5vw, 4rem); }
.board__group { break-inside: avoid; margin-bottom: 2.25rem; }
.board__heading {
  font-size: var(--step--1); font-weight: 800; color: var(--green-deep); letter-spacing: 0.02em;
  padding-bottom: 0.5rem; border-bottom: 3px solid var(--ink); margin-bottom: 0;
}
.board__list { list-style: none; padding: 0; margin: 0; }
.board__service { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.board__name { font-weight: 700; font-size: var(--step-1); color: var(--ink); text-decoration: none; }
.board__name:hover { text-decoration: underline; }
.board__summary { margin: 0.25rem 0 0; color: var(--muted); max-width: 50ch; }
.board__fees { list-style: none; padding: 0; margin: 0.6rem 0 0; }
.board__fees li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.2rem 0; flex-wrap: wrap; }
.board__option { flex: 1 1 auto; display: flex; align-items: baseline; gap: 0.5rem; min-width: 0; }
.board__option::after { content: ""; flex: 1 1 2rem; border-bottom: 2px dotted var(--line); transform: translateY(-0.25em); }
.fee { font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.board__fees .confirm-flag { flex-basis: 100%; width: max-content; margin-bottom: 0.3rem; }
.fee--ask { font-weight: 600; color: var(--muted); }
.board__wellness { margin-top: 1rem; padding: 1.25rem 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius); }

/* ------------------------------------------------------------ booking journey (signature) */
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.journey__line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 60px; overflow: visible; pointer-events: none; }
.journey__line path { fill: none; stroke: var(--green); stroke-width: 14; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.journey.is-drawing .journey__line path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: journey-draw 1.6s cubic-bezier(.6,.1,.3,1) 0.2s forwards; }
@keyframes journey-draw { to { stroke-dashoffset: 0; } }
.journey__step { position: relative; padding-top: 5rem; }
.journey__node {
  position: absolute; top: 12px; left: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 7px solid var(--ink); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 12px var(--green);
}
.journey__step:nth-child(3) .journey__node { left: 0; }
.journey__node--end { width: 48px; height: 48px; top: 6px; border-width: 9px; box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 16px var(--green); }
.journey h3 { margin-bottom: 0.35rem; }
.journey p { margin: 0; color: var(--text); max-width: 30ch; }
@media (max-width: 56rem) {
  .journey { grid-template-columns: 1fr; gap: 0; padding-left: 0.25rem; }
  .journey__line { display: none; }
  .journey::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 30px; width: 10px; background: var(--green); border-radius: 5px; }
  .journey__step { padding: 0 0 1.75rem 4rem; }
  .journey__node { top: 0; }
  .journey__node--end { left: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey.is-drawing .journey__line path { animation: none; stroke-dashoffset: 0; }
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ------------------------------------------------------------ team */
.team { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 22rem)); gap: 2rem; }
.team__photo img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.team__name { margin: 0.9rem 0 0.2rem; font-size: var(--step-2); }
.team__name a { color: var(--ink); text-decoration: none; }
.team__name a:hover { text-decoration: underline; }
.team__meta { color: var(--muted); margin: 0; }
.voices { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; }
.voices blockquote { margin: 0; font-size: var(--step-1); color: var(--ink); }
.voices__who { color: var(--muted); font-weight: 600; }

/* ------------------------------------------------------------ FAQs */
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.5rem 1rem 0; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.7rem; font-size: 1.5rem; font-weight: 400; color: var(--green); }
.faq[open] summary::after { content: "–"; }
.faq__answer { padding: 0 0 1rem; }
.faq-filter { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.faq-filter__input { max-width: 28rem; margin-bottom: 1.5rem; }
.guide { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 2rem; }
.guide a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.guide strong { display: block; color: var(--ink); font-size: var(--step-1); }
.guide a:hover strong { text-decoration: underline; }

/* ------------------------------------------------------------ prose */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose li { margin-bottom: 0.35em; }
.prose--page h2:first-child { margin-top: 0; }
.details { display: grid; gap: 0; margin-bottom: 1.5rem; }
.details > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.details dt { font-weight: 700; color: var(--ink); }
.details dd { margin: 0; }
@media (max-width: 40rem) { .details > div { grid-template-columns: 1fr; gap: 0.1rem; } }

.callout { background: var(--paper); border-left: 6px solid var(--green); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 2rem; max-width: var(--measure); }
.callout h2 { font-size: var(--step-1); }
.callout p:last-child { margin: 0; }
.callout--alert { border-left-color: var(--alert); background: var(--alert-tint); }
.side-panel { background: var(--paper); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 6.5rem; }
.side-panel__title { font-size: var(--step-2); }
.side-panel__fees { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.side-panel__fees li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.side-panel__fees small { display: block; color: var(--muted); }
.side-panel__help { margin-top: 1rem; font-size: var(--step--1); }
@media (max-width: 56rem) { .side-panel { position: static; } }

/* ------------------------------------------------------------ hours & address */
.hours { margin: 0 0 0.5rem; }
.hours__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.15rem 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.address { font-style: normal; margin-bottom: 0.5rem; }

/* ------------------------------------------------------------ forms */
.field { margin-bottom: 1.4rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .choice-group > legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.35rem; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: var(--step--1); margin: 0 0 0.45rem; max-width: 60ch; }
.input {
  display: block; width: 100%; max-width: 34rem; font: inherit; font-size: 1.0625rem; color: var(--ink);
  padding: 0.7rem 0.85rem; border: 2px solid var(--field); border-radius: 8px; background: var(--white); min-height: 48px;
}
.input:focus-visible { border-color: var(--ink); }
.input--short { max-width: 14rem; }
.input--date { max-width: 14rem; }
textarea.input { min-height: 6rem; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--alert); border-width: 3px; }
.field-error { color: var(--alert); font-weight: 700; margin: 0.4rem 0 0; }
.choice { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; cursor: pointer; }
.choice input { width: 1.4rem; height: 1.4rem; accent-color: var(--green); flex: none; }
.choice--block { align-items: flex-start; }
.choice--block input { margin-top: 0.15rem; }
.choice-group { border: 0; padding: 0; margin: 0 0 1.4rem; }
.fee-out { font-weight: 700; color: var(--ink); margin: 0.5rem 0 0; min-height: 1.6em; }
.privacy-note { font-size: var(--step--1); color: var(--muted); }

.notice { border-radius: var(--radius); padding: 1.1rem 1.35rem; margin-bottom: 1.5rem; background: var(--paper); border-left: 6px solid var(--ink); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice--success { background: var(--green-tint); border-left-color: var(--green); }
.notice--error { background: var(--alert-tint); border-left-color: var(--alert); }
.notice--error a { color: var(--alert); font-weight: 700; }
.notice--warn { background: #fff4d6; border-left-color: #9a7b00; color: #3d2e00; }
.notice__title { font-size: var(--step-2); margin-bottom: 0.4rem; }
.notice:focus { outline: 3px solid var(--ink); }
.reference { font-size: clamp(2rem, 1.5rem + 3vw, 3rem); font-weight: 800; letter-spacing: 0.08em; color: var(--ink); margin: 0.2rem 0 0.6rem; font-variant-numeric: tabular-nums; }

/* booking stepper */
.booking-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(15rem, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 56rem) { .booking-layout { grid-template-columns: 1fr; } }
.booking { max-width: 40rem; }
.step { border: 0; padding: 0 0 1.5rem; margin: 0 0 1.5rem; border-bottom: 1px solid var(--line); min-width: 0; }
.step__title { font-size: var(--step-2); font-weight: 750; color: var(--ink); margin-bottom: 1rem; padding: 0; }
.js .booking.is-stepped .step { border-bottom: 0; }
.js .booking.is-stepped .step[hidden] { display: none; }
.booking__progress { font-weight: 700; color: var(--green-deep); margin-bottom: 0.5rem; }
.step-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; }
.medaid { border-left: 4px solid var(--green); padding-left: 1rem; margin-bottom: 1.4rem; }
.summary { display: grid; gap: 0; margin-bottom: 1.5rem; background: var(--paper); border-radius: var(--radius); padding: 0.5rem 1.25rem; }
.summary > div { display: grid; grid-template-columns: 9rem 1fr auto; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.summary > div:last-child { border-bottom: 0; }
.summary dt { font-weight: 700; color: var(--ink); }
.summary dd { margin: 0; }
.summary button { font-size: var(--step--1); }
@media (max-width: 40rem) { .summary > div { grid-template-columns: 1fr auto; } .summary dd { grid-column: 1; } }
.mini-steps { padding-left: 1.25rem; }
.mini-steps li { margin-bottom: 0.4rem; }
.mini-steps--large li { margin-bottom: 0.9rem; font-size: var(--step-1); }
.emergency-note { font-size: var(--step--1); }

.form-panel { background: var(--paper); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.form-panel .input { max-width: none; }
.contact-methods { list-style: none; padding: 0; }
.contact-methods li { display: grid; grid-template-columns: 7rem 1fr; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.contact-methods span { font-weight: 700; color: var(--ink); }
.contact-methods a { font-size: var(--step-1); font-weight: 600; }

/* library */
.library__search { margin-bottom: 1.5rem; }
.library__search label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.library__search-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.library__search-row .input { flex: 1 1 18rem; }
.library__cats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 2rem; }
.library__cats a[aria-current] { font-weight: 800; color: var(--ink); text-decoration-thickness: 3px; text-decoration-color: var(--green); }
.count { color: var(--muted); font-weight: 400; }
.articles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 2rem; }
.articles__item { border-top: 3px solid var(--ink); padding-top: 1rem; }
.articles__cat { color: var(--green-deep); font-weight: 700; font-size: var(--step--1); margin-bottom: 0.3rem; }
.articles__title { font-size: var(--step-2); }
.articles__title a { color: var(--ink); text-decoration: none; }
.articles__title a:hover { text-decoration: underline; }
.article { max-width: var(--measure); }
.article__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; color: var(--muted); font-size: var(--step--1); border-block: 1px solid var(--line); padding: 0.75rem 0; }
.article__meta dt { font-weight: 700; } .article__meta dd { margin: 0; }
.empty { background: var(--paper); border-radius: var(--radius); padding: 2rem; max-width: 40rem; }
.pager { display: flex; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.pager a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: 8px; text-decoration: none; }
.pager a[aria-current] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tags a { margin-right: 0.5rem; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: #e9ece6; padding-block: 3rem 2rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #cfe5c4; }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.site-footer__heading { color: #fff; font-size: var(--step--1); font-weight: 800; letter-spacing: 0.02em; border-bottom: 3px solid var(--green); padding-bottom: 0.4rem; display: inline-block; }
.site-footer .hours__row { color: #e9ece6; }
.site-footer__base { border-top: 1px solid #3a3f37; margin-top: 2rem; padding-top: 1.5rem; }
.site-footer__small { font-size: var(--step--1); color: #c3c9be; }
.site-footer__small a { margin-right: 1rem; }
.site-footer .confirm-flag { display: inline-block; margin-top: 0.4rem; }
@media (max-width: 56rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ analytics consent */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; max-width: 34rem; margin-inline: auto;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
.consent p { margin-bottom: 0.75rem; font-size: var(--step--1); }
.consent__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

@media print {
  .site-header, .site-footer, .consent, .review-banner, .btn, .step-nav { display: none !important; }
  body { font-size: 12pt; }
}

/* ======================================================================
   v2 homepage: warmer hero, carousel, service tiles, CTA band
   ====================================================================== */
:root { --radius-lg: 18px; --shadow: 0 1px 2px rgba(20, 40, 12, .06), 0 8px 24px rgba(20, 40, 12, .08); }

.hero2 { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper-2) 0%, var(--white) 100%); padding-block: clamp(2rem, 1rem + 3.5vw, 4rem) clamp(2rem, 1rem + 3vw, 3.5rem); }
.hero2__curve { position: absolute; right: -8rem; top: -6rem; width: 46rem; height: 46rem; pointer-events: none; opacity: .5; }
.hero2__curve path { fill: none; stroke: var(--green-tint); stroke-width: 34; stroke-linecap: round; }
.hero2__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: center; }
.hero2__title { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); max-width: 17ch; margin-bottom: .5em; }
.hero2__title-soft { display: block; color: var(--green-deep); }
.hero2__lede { font-size: var(--step-1); max-width: 46ch; margin-bottom: 1.5rem; }
.ways { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .75rem; max-width: 36rem; }
.ways__item { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; box-shadow: var(--shadow); }
.ways__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green-deep); }
.ways__title { font-size: var(--step-1); margin: .1rem 0 .15rem; }
.ways__item p { margin: 0; color: var(--text); }
.hero2__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.hero2__today { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dot-open { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.hero2__photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 56rem) {
  .hero2__grid { grid-template-columns: 1fr; }
  .hero2__media { order: -1; }
  .hero2__curve { display: none; }
}

/* carousel */
.slider { position: relative; }
.slider__viewport { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--ink); }
.slider__track { list-style: none; margin: 0; padding: 0; display: flex; }
.slide { position: relative; flex: 0 0 100%; min-width: 0; }
.slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.slide__caption {
  position: absolute; inset: auto 0 0 0; padding: 3.5rem 1.5rem 1.4rem; color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.62) 38%, rgba(0,0,0,.82) 100%);
}
.slide__tag { display: inline-block; font-size: var(--step--1); font-weight: 700; background: var(--green); color: #fff; padding: .15rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.slide__title { color: #fff; font-size: var(--step-2); margin: 0 0 .3rem; }
.slide__body { margin: 0 0 .6rem; max-width: 44ch; color: #f1f4ee; }
.slide__link { color: #fff; font-weight: 700; text-decoration-thickness: 2px; text-decoration-color: #8fc274; }
.slide__link:hover { color: #fff; text-decoration-color: #fff; }
.slide .review-status { margin-top: .5rem; }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .9rem; }
.slider__btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.slider__btn:hover { border-color: var(--ink); }
.slider__dots { display: flex; gap: .2rem; margin: 0 .25rem; }
.slider__dot { width: 28px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.slider__dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--line); transition: width .2s, background-color .2s; }
.slider__dot[aria-current="true"]::before { width: 22px; background: var(--green); }
/* without JS: a swipeable row */
html:not(.js) .slider__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
html:not(.js) .slide { scroll-snap-align: start; }
.js .slider__track { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) { .js .slider__track { transition: none; } }

/* visit band */
.facts-band { background: var(--ink); color: #e9ece6; }
.facts2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-block: 1.75rem; }
.facts2__item h2 { color: #fff; font-size: var(--step--1); letter-spacing: .02em; margin-bottom: .5rem; padding-bottom: .35rem; border-bottom: 3px solid var(--green); display: inline-block; }
.facts2__item p { margin: 0; }
.facts2 a { color: #fff; }
.facts2 .hours { margin: 0; max-width: 20rem; }
.facts2 .hours__row { color: #e9ece6; }
.big-link { font-size: var(--step-2); font-weight: 800; text-decoration: none; }
@media (max-width: 56rem) { .facts2 { grid-template-columns: 1fr; gap: 1.25rem; } }

/* service tiles */
.tiles2 { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.25rem; }
.tile2 { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.4rem 1.1rem; transition: border-color .15s, box-shadow .15s; }
.tile2:hover { border-color: #9cc18a; box-shadow: var(--shadow); }
.tile2__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-tint); color: var(--green-deep); margin-bottom: .9rem; }
.tile2__title { font-size: var(--step-1); margin-bottom: .5rem; }
.tile2__links { list-style: none; padding: 0; margin: 0; }
.tile2__links li { border-top: 1px solid var(--line); }
.tile2__links a { display: block; padding: .5rem 0; color: var(--text); text-decoration: none; font-weight: 600; }
.tile2__links a:hover { color: var(--green-deep); text-decoration: underline; }

/* call-to-action band */
.cta-band { background: var(--green); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -6rem; top: -8rem; width: 22rem; height: 22rem; border: 26px solid rgba(255,255,255,.12); border-radius: 50%; }
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: clamp(2rem, 4vw, 3rem); }
.cta-band h2 { color: #fff; margin: 0; font-size: var(--step-3); max-width: 20ch; }
.cta-band__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn--light { background: #fff; color: var(--green-deep); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.cta-band :focus-visible, .facts-band :focus-visible, .slide :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--ink); }

/* small global polish */
.btn--primary { box-shadow: 0 2px 0 var(--green-deep); }
.team__photo img { box-shadow: var(--shadow); }
.page-head { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }

/* v2 fixes */
svg [hidden] { display: none; }
@media (min-width: 78.0625rem) {
  .site-nav { gap: 1rem; }
  .site-nav ul { gap: .95rem; }
  .site-nav ul a { font-size: .95rem; }
}
@media (min-width: 78.0625rem) and (max-width: 92rem) { .site-nav__phone { display: none; } }
.site-header__inner { min-width: 0; }
.hero2__actions .btn { min-width: 0; }
@media (max-width: 56rem) {
  .hero2__media { order: 0; }                     /* keep the main message first on phones */
  .slide__caption { position: static; background: var(--ink); padding: 1.1rem 1.25rem 1.25rem; }
  .slide img { aspect-ratio: 16 / 10; }
  .ways__item { padding: .8rem .9rem; }
}

/* ======================================================================
   v3 responsive polish: wide screens and phones
   ====================================================================== */
:root { --wrap: 80rem; }
@media (min-width: 100rem) { html { font-size: 112.5%; } :root { --wrap: 84rem; } }   /* 1600px+ */
@media (min-width: 125rem) { html { font-size: 118.75%; } }                            /* 2000px+ */

/* wide screens: give the hero more presence and balance */
@media (min-width: 64rem) {
  .hero2 { padding-block: 4.5rem 4rem; }
  .hero2__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr); }
  .hero2__title { max-width: 14ch; }
  .ways { grid-template-columns: 1fr 1fr; max-width: none; }
  .ways__item { flex-direction: column; gap: .6rem; }
  .tiles2 { grid-template-columns: repeat(4, 1fr); }
  .section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; max-width: none; align-items: end; }
  .section__head h2 { margin: 0; }
  .section__head p { margin: 0; }
  .page-head .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
  .page-head .wrap > .crumbs { grid-column: 1 / -1; margin-bottom: 0; }
  .page-head .wrap > h1 { margin: 0; }
}
.header-book { display: none; }

/* phones and small tablets */
@media (max-width: 56rem) {
  html { font-size: 100%; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .site-header__inner { min-height: 4rem; gap: .5rem; }
  .brand img { height: 42px; }
  .js .header-book { display: inline-flex; margin-left: auto; }
  .js .nav-toggle { padding: .45rem .8rem; }
  .section { padding-block: 2.25rem; }
  .section__head { margin-bottom: 1.25rem; }
  .section__head p, .page-head__lede, .hero2__lede { font-size: 1.05rem; }
  .hero2 { padding-block: 1.5rem 2rem; }
  .hero2__title { font-size: clamp(1.9rem, 1.2rem + 4vw, 2.4rem); }
  .hero2__actions .btn { flex: 1 1 100%; }
  .ways__icon { width: 40px; height: 40px; }
  .tiles2 { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .tile2 { padding: 1rem .9rem .75rem; }
  .tile2__icon { width: 42px; height: 42px; margin-bottom: .6rem; }
  .tile2__title { font-size: 1rem; }
  .tile2__links a { font-size: .9rem; padding: .4rem 0; }
  .facts2 { padding-block: 1.5rem; }
  .cta-band h2 { font-size: 1.6rem; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .board { columns: 1; }
  .board__name { font-size: 1.05rem; }
  .team { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .team__name { font-size: 1.1rem; }
  .page-head h1 { font-size: clamp(1.9rem, 1.2rem + 4vw, 2.4rem); }
  .details > div { grid-template-columns: 1fr; }
  .consent { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 1.5rem; }
}
@media (max-width: 26rem) { .tiles2, .team { grid-template-columns: 1fr; } }

/* fixed quick-action bar (phones only) */
.mobile-bar { display: none; }
@media (max-width: 56rem) {
  .mobile-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 700; }
  .mobile-bar__item svg { color: var(--green-deep); }
  .mobile-bar__item--book { background: var(--green); color: #fff; }
  .mobile-bar__item--book svg { color: #fff; }
  .mobile-bar__item:hover { color: var(--green-deep); }
  .mobile-bar__item--book:hover { color: #fff; background: var(--green-deep); }
}
@media print { .mobile-bar { display: none !important; } }
/* Fix: single-column grids on phones must not be stretched by the slider's content */
@media (max-width: 56rem) {
  .hero2__grid, .split, .split--wide, .booking-layout, .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero2__text, .hero2__media { min-width: 0; }
}
