/* styles.css: the Verandah Dental design system for every page (tokens, fonts, base, bands and every
   shared component). Mobile first; breakpoints 43.75em, 56.25em, 62.5em, 68.75em. Usage: notes/COMPONENTS.md */

/* == 1. Tokens == */

:root {
  /* Palette (DESIGN.md 2.5) */
  --color-brand: #1F4A3A;        /* Shutter green */
  --color-accent: #BE2A6A;       /* Bougainvillea */
  --color-ink: #1C2421;
  --color-surface: #F7F0E4;      /* Limewash, the page */
  --color-surface-2: #E4ECE3;    /* Sage */
  --color-surface-3: #F8E3E9;    /* Blush */
  --color-white: #FFFFFF;        /* Cards and fields only */
  --color-success: #2A7346;
  --color-error: #B42318;

  /* Tints: text and borders only */
  --color-ink-muted: color-mix(in srgb, var(--color-ink) 70%, var(--color-surface));        /* #5E615C */
  --color-on-brand-muted: color-mix(in srgb, var(--color-surface) 78%, var(--color-brand)); /* #C7CBBF, never on pink */
  --color-field-border: color-mix(in srgb, var(--color-ink) 55%, var(--color-white));       /* #828785 */
  --color-hairline: color-mix(in srgb, var(--color-ink) 14%, transparent);
  --color-on-brand-hairline: color-mix(in srgb, var(--color-surface) 24%, transparent);
  --color-focus: var(--color-brand);
  --color-scrim: color-mix(in srgb, var(--color-ink) 55%, transparent);                     /* dialog backdrop */

  /* Context colours, redefined by bands */
  --color-text: var(--color-ink); --color-text-muted: var(--color-ink-muted);
  --color-heading: var(--color-brand); --color-eyebrow: var(--color-accent);
  --color-link: var(--color-brand); --color-italic: var(--color-accent); --color-rule: var(--color-hairline);
  --color-btn-bg: var(--color-accent); --color-btn-fg: var(--color-white); --color-btn-line: var(--color-brand);
  --color-badge-bg: var(--color-brand); --color-badge-fg: var(--color-surface);
  --color-tile: var(--color-brand); --color-tile-fg: var(--color-surface); --color-icon-badge: var(--color-surface-2);
  --mark-arch: var(--color-brand); --mark-door: var(--color-accent);
  --color-mark: var(--color-accent); --color-mark-fg: var(--color-white); /* accent marks */

  /* Checkbox tick, in limewash */
  --check-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23F7F0E4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  /* Motif 1, used as a mask (2.9) */
  --motif-arcade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18'%3E%3Cpath d='M2.75 18V10.75a9.25 9.25 0 0 1 18.5 0V18' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");

  /* Type (2.7) */
  --font-display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Nunito Sans Fallback", "Segoe UI", system-ui, sans-serif;
  --step-display: clamp(2.75rem, 1.5429rem + 4.9524vw, 6rem);
  --step-h1: clamp(2.5rem, 1.6643rem + 3.4286vw, 4.75rem);
  --step-h2: clamp(1.875rem, 1.3643rem + 2.0952vw, 3.25rem);
  --step-h3: clamp(1.4375rem, 1.2286rem + 0.8571vw, 2rem);
  --step-eyebrow: clamp(1.125rem, 1.0786rem + 0.1905vw, 1.25rem);
  --step-lead: clamp(1.1875rem, 1.1179rem + 0.2857vw, 1.375rem);
  --step-body: clamp(1.0625rem, 1.0393rem + 0.0952vw, 1.125rem);
  --step-small: 0.9375rem;
  --step-tiny: 0.8125rem;
  --step-list: clamp(1.3125rem, 1.2rem + 0.45vw, 1.625rem);
  --step-quote: clamp(1.4375rem, 1.1696rem + 1.0989vw, 2.25rem);
  --step-menu: clamp(2rem, 1.5rem + 2.5vw, 2.75rem);
  --step-pull: clamp(1.875rem, 1.1786rem + 2.8571vw, 3.75rem);
  --step-button: 1rem; --step-numeral: 1.75rem; --step-logo: 1.5rem; --step-logo-sub: 0.5625rem;
  --tracking-display: -0.02em; --tracking-h3: -0.01em; --tracking-caps: 0.16em;
  --leading-display: 1.05; --leading-h1: 1.08; --leading-h2: 1.1; --leading-h3: 1.15;
  --leading-tight: 1.25; --leading-lead: 1.5; --leading-body: 1.6;
  --measure: 30em;               /* about 65 characters */

  /* Space (1.3) */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem; --space-10: 8rem;
  --container: 1200px;
  --gutter: 24px;
  --section-pad: clamp(64px, 10vw, 128px);
  --intro-top: clamp(var(--space-6), 5vw, var(--space-8)); /* text-only page heroes: the H1's distance under the header */
  --tap-target: 44px;

  /* Sizes; main.js measures --header-h */
  --header-row: 72px; --header-h: var(--header-row); --subnav-h: 3.75rem;
  --scroll-offset: calc(var(--header-h) + var(--space-4));
  --btn-h: 52px; --btn-h-sm: var(--tap-target);
  --icon-size: 24px; --icon-size-sm: 20px; --icon-size-xs: 18px; --icon-size-lg: 26px; --icon-stroke: 1.75;
  --mark-w: 26px; --float-size: 56px; --float-clearance: calc(var(--float-size) + var(--space-8));
  --portrait-offset: 14px; --arcade-h: 18px; --arcade-w: 24px; --rule-motif: 1.5px;
  --underline-thin: 1px; --underline-thick: 2.5px; --compare-grip: 48px; --map-h: 24rem;

  /* Layers */
  --z-float: 30; --z-subnav: 40; --z-nav: 45; --z-header: 50; --z-skip: 100;

  /* Shape (2.8) */
  --radius-sm: 4px;
  --radius-pill: 999px;
  --radius-arch: 999px 999px 0 0;
  --border-hairline: 1px;
  --border-field: 1.5px;
  --border-strong: 2px;
  --focus-ring: 3px;
  --focus-offset: 3px;

  --shadow-1: 0 1px 2px color-mix(in srgb, var(--color-brand) 14%, transparent), 0 4px 10px -4px color-mix(in srgb, var(--color-brand) 22%, transparent);
  --shadow-2: 0 14px 32px -16px color-mix(in srgb, var(--color-brand) 50%, transparent);

  /* Photo treatment (2.10) */
  --photo-filter: saturate(0.88) sepia(0.08); --photo-tint-opacity: 0.14;
  --compare-filter: saturate(0.72) sepia(0.28) brightness(0.96) contrast(0.96);

  /* Motion (1.3) */
  --dur-1: 150ms; --dur-2: 200ms; --dur-3: 250ms; --dur-entrance: 900ms; --dur-countup: 1200ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-1: var(--dur-1) var(--ease-out); --t-2: var(--dur-2) var(--ease-out); --t-3: var(--dur-3) var(--ease-out);
  --lift: -1px; --zoom: 1.02; --zoom-entrance: 1.06; --nudge: 3px;
  --reveal-rise: 16px; --reveal-stagger: 60ms;
}

/* The logo grows with the screen */
@media (min-width: 43.75em) { :root { --mark-w: 28px; --step-logo-sub: 0.625rem; } }
@media (min-width: 62.5em) {
  :root { --header-row: 88px; --mark-w: 34px; --mark-nudge: 3px; --step-logo: 1.75rem; --step-logo-sub: 0.6875rem; }
}

:root:has(.subnav) { --scroll-offset: calc(var(--header-h) + var(--subnav-h) + var(--space-4)); }

/* iOS 15.4 to 16.1: no color-mix() */
@supports not (color: color-mix(in srgb, currentColor 50%, transparent)) {
  :root {
    --color-ink-muted: #5E615C; --color-on-brand-muted: #C7CBBF; --color-field-border: #828785;
    --color-hairline: #1C242124; --color-on-brand-hairline: #F7F0E43D; --color-scrim: #1C24218C;
    --shadow-1: 0 1px 2px #1F4A3A24, 0 4px 10px -4px #1F4A3A38; --shadow-2: 0 14px 32px -16px #1F4A3A80;
  }
}

/* == 2. Fonts (latin plus the rupee sign) == */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-opsz-normal.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-opsz-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../assets/fonts/nunito-sans-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks limit the shift on swap */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"), local("Gelasio"); ascent-override: 98%; descent-override: 25.5%; line-gap-override: 0%; }
/* Big headings from 68.75em: optical sizing makes Fraunces narrower than Georgia at 64px and up (96% measured best) */
@font-face { font-family: "Fraunces Fallback L"; src: local("Georgia"), local("Gelasio"); size-adjust: 96%; ascent-override: 102.08%; descent-override: 26.56%; line-gap-override: 0%; }
@font-face {
  font-family: "Nunito Sans Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("Arimo");
  size-adjust: 101.3%; ascent-override: 99.8%; descent-override: 34.8%; line-gap-override: 0%;
}

/* == 3. Reset and base == */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* No overflow-x on html or body (1.3). The open menu locks the root only (on body too, body would
   become the sticky header's scroller and push it off screen); padding stands in for a classic scrollbar */
html.nav-open { overflow: hidden; padding-inline-end: var(--scrollbar-w, 0px); }
body {
  margin: 0; min-height: 100vh; background: var(--color-surface); color: var(--color-text);
  font-family: var(--font-body); font-size: var(--step-body); line-height: var(--leading-body);
  overflow-wrap: break-word; /* a word wider than its line (very large text) breaks instead of overflowing */
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; } table { border-collapse: collapse; } address { font-style: normal; } [hidden] { display: none; }

/* max-width: 100% (and min() on p) only acts when a single word is wider than the box: in a start-aligned
   grid or flex row the box then stays inside it and the word breaks (overflow-wrap on body) */
h1, h2, h3, h4, .display, .h1, .h2, .h3 { max-width: 100%; font-family: var(--font-display); font-weight: 400; color: var(--color-heading); text-wrap: balance; }
h1, .h1 { font-size: var(--step-h1); line-height: var(--leading-h1); letter-spacing: var(--tracking-display); }
h2, .h2 { font-size: var(--step-h2); line-height: var(--leading-h2); letter-spacing: var(--tracking-display); }
h3, .h3 { font-size: var(--step-h3); line-height: var(--leading-h3); letter-spacing: var(--tracking-h3); font-weight: 500; }
h4 { font-size: var(--step-lead); line-height: var(--leading-tight); font-weight: 500; }
.display { font-size: var(--step-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
@media (min-width: 68.75em) { h1, .h1, .display, .cta-band__title, .statement__text { font-family: "Fraunces", "Fraunces Fallback L", Georgia, "Times New Roman", serif; } }
h1 em, .h1 em, .display em, .statement__text em, .accent-word { font-style: italic; color: var(--color-italic); }
p { max-width: min(var(--measure), 100%); text-wrap: pretty; }
strong, b { font-weight: 700; }

a, .btn.btn--ghost, .card__more {
  color: var(--color-link); text-decoration-line: underline; text-decoration-thickness: var(--underline-thin);
  text-underline-offset: 0.22em; transition: text-decoration-thickness var(--t-2), color var(--t-1);
}
a:hover, .btn.btn--ghost:hover, .card:hover .card__more { text-decoration-thickness: var(--underline-thick); }

:focus-visible { outline: var(--focus-ring) solid var(--color-focus); outline-offset: var(--focus-offset); }
[tabindex="-1"]:focus { outline: none; }
/* Anchors and focus land below the sticky bars (scroll-padding would scroll on Tab inside them) */
main, main :is([id], a[href], button, input, select, textarea, [tabindex]):not(.subnav *) { scroll-margin-top: var(--scroll-offset); }
/* Tab scrolls focus clear of the fixed WhatsApp button too (WCAG 2.4.11) */
main :is(a[href], button, input, select, textarea, [tabindex]):not(.subnav *), .site-footer :is(a[href], button) { scroll-margin-bottom: var(--float-clearance); }

/* == 4. Layout, bands, type helpers == */

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-pad); }

.band { background-color: var(--band-bg, transparent); color: var(--color-text); }
.band--surface { --band-bg: var(--color-surface); }
.band--sage { --band-bg: var(--color-surface-2); --color-icon-badge: var(--color-surface); }
.band--blush { --band-bg: var(--color-surface-3); }
.band--brand, .band--accent, .on-brand, .nav-open .site-header {
  --band-bg: var(--color-brand); --color-text: var(--color-surface);
  --color-text-muted: var(--color-on-brand-muted); --color-heading: var(--color-surface);
  --color-eyebrow: var(--color-on-brand-muted); --color-link: var(--color-surface);
  --color-italic: var(--color-surface); --color-rule: var(--color-on-brand-hairline);
  --color-btn-bg: var(--color-surface); --color-btn-fg: var(--color-brand);
  --color-btn-line: var(--color-surface); --color-badge-bg: var(--color-surface);
  --color-badge-fg: var(--color-brand); --color-tile: var(--color-surface); --color-tile-fg: var(--color-brand);
  --color-focus: var(--color-surface); --mark-arch: var(--color-surface); --mark-door: var(--color-surface-3);
  --color-mark: var(--color-surface); --color-mark-fg: var(--color-accent);
}
/* On pink, muted text fails (3.41:1) */
.band--accent {
  --band-bg: var(--color-accent); --color-on-brand-muted: var(--color-white);
  --color-text: var(--color-white); --color-text-muted: var(--color-white); --color-heading: var(--color-white);
  --color-eyebrow: var(--color-white); --color-link: var(--color-white); --color-italic: var(--color-white);
  --color-btn-fg: var(--color-accent); --color-badge-fg: var(--color-accent); --mark-door: var(--color-surface);
}

.eyebrow, .hours__caption, .site-footer__heading {
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-eyebrow);
  line-height: var(--leading-tight); letter-spacing: 0; color: var(--color-eyebrow);
}
.ed-list__title, .accordion__heading, .process__title, .map-facade__title {
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-list);
  line-height: var(--leading-tight); letter-spacing: var(--tracking-h3); color: var(--color-heading);
  text-wrap: balance; text-wrap: pretty; /* no one-word last lines; balance where pretty is unsupported */
}
:is(.field__error, .booking__status, .booking__note):not([hidden]) { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--step-small); }
:is(.field__error, .booking__status, .booking__note) .icon { --icon-size: var(--icon-size-sm); margin-top: 0.1em; }
.eyebrow { display: block; margin-bottom: var(--space-3); }
.lead { font-size: var(--step-lead); line-height: var(--leading-lead); }
.small { font-size: var(--step-small); line-height: var(--leading-lead); }
.tiny { font-size: var(--step-tiny); line-height: var(--leading-lead); }
.muted { color: var(--color-text-muted); }
.prose > * + * { margin-top: var(--space-4); }
.prose > h3, .prose > h4 { margin-top: var(--space-6); }
.nowrap { white-space: nowrap; }
/* Very large text on a narrow screen (main under 13em of its own text): a heading's no-wrap phrase that
   is wider than the line may wrap inside itself. Normal text never gets here (main is 18em or more). */
main { container: page / inline-size; }
@container page (max-width: 13em) { :is(h1, h2, h3) .nowrap { display: inline-block; max-width: 100%; white-space: normal; } }

.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(var(--space-6), 5vw, var(--space-8)); }
.section-head > .eyebrow { margin-bottom: 0; }
.section-head__intro { color: var(--color-text-muted); }
.section-head__aside { display: grid; gap: var(--space-2); justify-items: start; }
@media (min-width: 56.25em) {
  .section-head--split { grid-template-columns: 7fr 5fr; align-items: end; column-gap: var(--space-8); }
  .section-head--split > .eyebrow { grid-column: 1 / -1; }
}

/* == 5. Utilities == */

.visually-hidden:not(:focus):not(:active), .whatsapp-float__label, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
/* Limewash over the green banner; the ring sits inside the pill */
.skip-link {
  position: fixed; top: var(--space-2); left: var(--space-2); z-index: var(--z-skip);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-pill); background: var(--color-surface);
  color: var(--color-brand); box-shadow: var(--shadow-2); font-weight: 700; text-decoration: none;
  outline-offset: calc(-2 * var(--focus-ring));
}

/* == 6. Icons, mark, logo == */

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: var(--icon-size); height: var(--icon-size); flex: none; fill: none; stroke: currentColor;
  stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { --icon-size: var(--icon-size-sm); }
.icon--filled { fill: currentColor; }
.icon-badge {
  display: inline-grid; place-items: center; flex: none; width: var(--tap-target); height: var(--tap-target);
  border-radius: var(--radius-pill); background: var(--color-icon-badge); color: var(--color-brand);
}

.mark { width: var(--mark-w); height: auto; flex: none; overflow: visible; }
.logo__mark { margin-top: var(--mark-nudge, 0px); }
.mark__arch { fill: none; stroke: var(--mark-arch); }
.mark__door { fill: var(--mark-door); }

.logo {
  display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--tap-target);
  color: var(--color-heading); text-decoration: none;
}
.logo--light { --mark-arch: var(--color-surface); --color-heading: var(--color-surface); }
.logo__text { display: grid; gap: var(--space-1); }
.logo__name { font-family: var(--font-display); font-weight: 500; font-size: var(--step-logo); line-height: 1; letter-spacing: var(--tracking-display); }
.logo__sub { font-weight: 700; font-size: var(--step-logo-sub); line-height: 1; letter-spacing: var(--tracking-caps); text-transform: uppercase; }

/* == 7. Buttons and links == */

.icon-btn {
  display: grid; place-items: center; flex: none; width: var(--tap-target); height: var(--tap-target);
  padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: inherit;
}
.icon-btn .icon { --icon-size: var(--icon-size-sm); }

.btn {
  --btn-pad: var(--space-5); display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2); min-height: var(--btn-h); padding: var(--space-2) var(--btn-pad);
  border: var(--border-strong) solid transparent; border-radius: var(--radius-pill); background: transparent;
  font-family: var(--font-body); font-weight: 700; font-size: var(--step-button);
  line-height: var(--leading-tight); text-align: center; text-decoration: none;
  transition: transform var(--t-2), box-shadow var(--t-2); max-width: 100%; overflow-wrap: anywhere;
}
.btn .icon { --icon-size: var(--icon-size-sm); }
/* Never wider than its row: with very large text the label wraps, a phone number where it must */
.btn .nowrap { white-space: normal; }
.btn--sm { --btn-h: var(--btn-h-sm); --btn-pad: var(--space-4); font-size: var(--step-small); }
.btn--primary { background: var(--color-btn-bg); color: var(--color-btn-fg); }
.btn--secondary { border-color: var(--color-btn-line); color: var(--color-btn-line); }
.btn--primary:hover, .btn--secondary:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-1); }
.btn--primary:active, .btn--secondary:active { transform: none; box-shadow: none; }
.btn--block { width: 100%; }
.btn--ghost { --btn-pad: 0; min-height: var(--tap-target); border: 0; border-radius: 0; }
.btn--ghost, .card__more { text-underline-offset: 0.3em; }
.btn--ghost .icon, .card__more .icon { --icon-size: var(--icon-size-sm); transition: transform var(--t-2); }
.btn--ghost:hover .icon, .card:hover .card__more .icon { transform: translateX(var(--nudge)); }
.btn[aria-disabled="true"] { cursor: progress; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }

/* == 8. Demo banner == */

.demo-banner {
  --mark-arch: var(--color-surface); --mark-door: var(--color-surface-3); --mark-w: 15px; --color-focus: var(--color-surface);
  background: var(--color-brand); color: var(--color-surface);
}
.demo-banner__inner { display: flex; align-items: center; gap: var(--space-2); padding-block: var(--space-1); }
.demo-banner__mark { display: none; }
.demo-banner__text { flex: 1; max-width: none; padding-block: var(--space-1); font-size: var(--step-tiny); line-height: var(--leading-lead); }
.demo-banner__text strong { font-weight: 700; }
.demo-banner__close { margin-inline-end: calc(-1 * var(--space-3)); }
.demo-banner__close:hover { background: var(--color-on-brand-hairline); }
.demo-banner__close:focus-visible { outline-offset: calc(-1 * var(--focus-ring)); }
html:not(.js) .demo-banner__close { display: none; }
.demo-banner-hidden .demo-banner { display: none; }
@media (min-width: 43.75em) { .demo-banner__inner { gap: var(--space-3); } .demo-banner__mark { display: block; } }
@media (min-width: 56.25em) {
  .demo-banner__inner { justify-content: center; }
  .demo-banner__text { flex: 0 1 auto; }
}

/* == 9. Header, nav, menu button == */

.site-header {
  position: sticky; top: 0; z-index: var(--z-header); border-bottom: var(--border-hairline) solid transparent;
  transition: background-color var(--t-2), border-color var(--t-2);
}
/* Without JavaScript the sticky header (from 1000px) is always opaque */
.site-header.is-scrolled, html:not(.js) .site-header { background: var(--color-surface); border-bottom-color: var(--color-hairline); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-3);
  min-height: var(--header-row);
}
.site-header__actions { display: flex; align-items: center; gap: var(--space-5); margin-inline-start: auto; }
.site-header__phone, .site-header__book { display: none; }
.site-header__phone {
  align-items: center; gap: var(--space-2); min-height: var(--tap-target); color: var(--color-heading);
  font-weight: 700; font-size: var(--step-small); text-decoration: none; white-space: nowrap;
}
.site-header__phone .icon { --icon-size: var(--icon-size-sm); }
.site-header__phone:hover span { text-decoration: underline; }

.site-nav__list { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.site-nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: var(--tap-target);
  color: var(--color-text); font-weight: 700; font-size: var(--step-small); text-decoration: none;
}
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: var(--space-2); height: var(--border-strong);
  border-radius: var(--radius-pill); background: var(--color-mark); transform: scaleX(0);
  transform-origin: left; transition: transform var(--t-2);
}
.site-nav__link:hover::after, .site-nav__link[aria-current="page"]::after { transform: none; }
.site-nav__link[aria-current="page"] { color: var(--color-heading); }

.menu-toggle {
  display: none; align-items: center; gap: var(--space-2); min-height: var(--tap-target); padding: 0 var(--space-4);
  border: var(--border-field) solid var(--color-btn-line); border-radius: var(--radius-pill); background: transparent;
  color: var(--color-btn-line); font-weight: 700; font-size: var(--step-small);
}
.menu-toggle .icon { --icon-size: var(--icon-size-sm); display: none; }
@media (min-width: 43.75em) {
  .menu-toggle { padding-inline-start: var(--space-3); }
  .menu-toggle__open, .nav-open .menu-toggle__close { display: block; }
  .nav-open .menu-toggle__open { display: none; }
}

/* Below 1000px the menu button replaces the nav; without JavaScript the nav wraps, unstuck.
   At very large text sizes the header wraps too: logo, then nav, then actions */
.js .site-nav { display: none; }
.js .site-header__inner { row-gap: var(--space-2); }
.js .menu-toggle { display: inline-flex; }
html:not(.js) { --header-h: 0px; }
html:not(.js) .site-header { position: relative; }
html:not(.js) .site-nav { flex-basis: 100%; padding-bottom: var(--space-2); }
@media (min-width: 62.5em) {
  html:not(.js) { --header-h: var(--header-row); }
  html:not(.js) .site-header { position: sticky; }
  html:not(.js) .site-nav, .js .site-nav { flex: 1; flex-basis: auto; display: flex; justify-content: center; padding-bottom: 0; }
  .js .menu-toggle { display: none; }
  .site-header__inner { column-gap: var(--space-5); }
  .site-nav__list { gap: 0 var(--space-5); }
  .site-header__phone, .site-header__book { display: inline-flex; }
}
@media (min-width: 68.75em) {
  .site-nav__list { gap: var(--space-6); }
  .site-nav__link, .site-header__phone { font-size: var(--step-button); }
}

.nav-open .site-header { background: var(--color-brand); border-bottom-color: var(--color-on-brand-hairline); }

/* == 10. Mobile nav panel == */

.mobile-nav {
  position: fixed; inset: var(--nav-top, var(--header-h)) 0 0; z-index: var(--z-nav); overflow-y: auto;
  overscroll-behavior: contain; background: var(--color-brand); color: var(--color-text); opacity: 0;
  transition: opacity var(--t-3);
}
.mobile-nav.is-open { opacity: 1; }
.mobile-nav__inner {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-7); min-height: 100%;
  padding-block: var(--space-4) calc(var(--space-7) + env(safe-area-inset-bottom, 0px));
}
.mobile-nav__list > li { border-bottom: var(--border-hairline) solid var(--color-rule); }
.mobile-nav__link {
  display: flex; align-items: center; min-height: calc(var(--tap-target) + var(--space-4)); padding-block: var(--space-2);
  font-family: var(--font-display); font-size: var(--step-menu); line-height: var(--leading-h2);
  letter-spacing: var(--tracking-display); color: var(--color-text); text-decoration: none;
}
.mobile-nav__link[aria-current="page"] { text-decoration: underline var(--border-strong); text-underline-offset: 0.18em; }
.mobile-nav__meta { display: grid; gap: var(--space-4); justify-items: start; }
.mobile-nav__phone {
  display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--tap-target);
  color: var(--color-text); font-weight: 700; font-size: var(--step-lead); text-decoration: none;
}
.mobile-nav__today { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--color-text-muted); }
.mobile-nav__hours:not([hidden]) { display: grid; gap: var(--space-1); font-size: var(--step-small); }
.mobile-nav__book { margin-top: var(--space-2); }
@media (min-width: 62.5em) { .mobile-nav { display: none; } }

/* == 11. Footer, arcade, WhatsApp button == */

/* Motif 1: whole arches atop the green block that ends the page */
.arcade {
  position: absolute; top: var(--space-5); inset-inline: max(var(--gutter), (100% - var(--container)) / 2);
  height: var(--arcade-h); background-color: var(--color-on-brand-muted);
  mask: var(--motif-arcade) 0 0 / var(--arcade-w) var(--arcade-h) space no-repeat;
}

.site-footer { position: relative; padding-block: var(--space-9) var(--float-clearance); }
/* After a closing CTA band, a hairline replaces the arcade */
main:has(> .cta-band:last-child) ~ .site-footer .site-footer__arcade { display: none; }
main > .cta-band:last-child { padding-bottom: var(--space-8); }
main:has(> .cta-band:last-child) ~ .site-footer { padding-top: var(--space-6); }
main:has(> .cta-band:last-child) ~ .site-footer .site-footer__inner {
  padding-top: var(--space-8); border-top: var(--border-hairline) solid var(--color-rule);
}
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
.site-footer__brand { display: grid; gap: var(--space-4); align-content: start; }
.site-footer__about { color: var(--color-text-muted); max-width: 22em; }
.site-footer__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.site-footer__heading { margin-bottom: var(--space-3); }
.site-footer__address { margin-bottom: var(--space-3); }
.site-footer__list { display: grid; grid-template-columns: minmax(0, 1fr); }
.site-footer__list a, .contact-link {
  display: inline-flex; align-items: center; gap: var(--space-3); max-width: 100%; min-height: var(--tap-target);
  color: var(--color-text); text-decoration-color: transparent;
}
/* The text wraps only when it can't fit (very large text); the email then breaks where it must */
.contact-link > :last-child { min-width: 0; }
.site-footer__list a:hover, .contact-link:hover { text-decoration-color: currentColor; }
.contact-link > .icon { --icon-size: var(--icon-size-sm); color: var(--color-text-muted); }
.site-footer__list--contact { gap: var(--space-2); }
.site-footer__hours { display: grid; gap: var(--space-3); }
.site-footer__hours span { display: block; }
.site-footer__hours span + span { color: var(--color-text-muted); }
/* Two columns on phones; one when a page name is wider than half the row (very large text) */
.site-footer__pages { display: flex; flex-wrap: wrap; column-gap: var(--space-5); }
.site-footer__pages > li { flex: 1 1 max(7em, (100% - var(--space-5)) / 2); }
.site-footer__bottom {
  display: grid; gap: var(--space-3); margin-top: var(--space-8); padding-top: var(--space-5);
  border-top: var(--border-hairline) solid var(--color-rule); font-size: var(--step-small);
}
.site-footer__demo { color: var(--color-text-muted); max-width: 40em; }
.site-footer__credit a { display: inline-flex; align-items: center; min-height: var(--tap-target); color: var(--color-text); }
/* Columns from 700px: never narrower than their content (the email), and they wrap rather than
   overflow when the text is very large. On phones the email breaks if it must. */
@media (min-width: 43.75em) {
  .site-footer__list { grid-template-columns: none; }
  .site-footer__list a, .contact-link { max-width: none; }
  .site-footer__cols { display: flex; flex-wrap: wrap; }
  .site-footer__cols > * { flex: 1 1 0%; }
  .site-footer__pages > li { flex-basis: 100%; }
}
@media (min-width: 62.5em) {
  .site-footer__inner { grid-template-columns: 4fr 8fr; column-gap: var(--space-8); }
  .site-footer__cols > :first-child { flex-grow: 5; }
  .site-footer__cols > :nth-child(2) { flex-grow: 4; }
  .site-footer__cols > :last-child { flex-grow: 3; }
  .site-footer__bottom { grid-template-columns: 1fr auto; align-items: end; column-gap: var(--space-8); }
}

/* Focus turns it limewash: the ring alone vanishes on green. A limewash halo under the ring keeps
   green off the pink P1 (pink and green never touch) and off the green footer */
.whatsapp-float {
  --float-inset: var(--space-4); --color-focus: var(--color-brand); position: fixed; z-index: var(--z-float);
  right: calc(var(--float-inset) + env(safe-area-inset-right, 0px)); bottom: calc(var(--float-inset) + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-width: var(--float-size); min-height: var(--float-size); padding: 0;
  border: var(--border-strong) solid var(--color-surface); border-radius: var(--radius-pill);
  background: var(--color-brand); color: var(--color-surface); box-shadow: var(--shadow-2);
  font-weight: 700; font-size: var(--step-small); text-decoration: none; transition: transform var(--t-2);
}
.whatsapp-float .icon { --icon-size: var(--icon-size-lg); }
.whatsapp-float:hover { transform: translateY(var(--lift)); }
.whatsapp-float:focus-visible {
  border-color: var(--color-brand); background: var(--color-surface); color: var(--color-brand);
  box-shadow: 0 0 0 calc(var(--focus-ring) + var(--focus-offset) + var(--border-strong)) var(--color-surface), var(--shadow-2);
}
@media (min-width: 43.75em) {
  .whatsapp-float__label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; }
  .whatsapp-float { --float-inset: var(--space-5); padding: 0 var(--space-5) 0 var(--space-4); }
}

/* == 12. Demo dialog == */

.demo-dialog {
  width: min(100% - 2 * var(--gutter), 30rem); max-height: calc(100% - 2 * var(--gutter)); padding: 0; border: 0;
  border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-ink);
  box-shadow: var(--shadow-2);
}
.demo-dialog::backdrop { background: var(--color-scrim); }
.demo-dialog[open] { animation: dialog-in var(--t-3); }
.demo-dialog__inner { position: relative; display: grid; gap: var(--space-4); justify-items: start; padding: var(--space-6); }
.demo-dialog__title { font-size: var(--step-h3); padding-inline-end: var(--space-7); }
.demo-dialog__text { color: var(--color-ink); }
.demo-dialog__ok { margin-top: var(--space-2); }
.demo-dialog__close { position: absolute; top: var(--space-3); right: var(--space-3); color: var(--color-brand); }
.demo-dialog__close:hover { background: var(--color-surface-2); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(var(--space-2)); } }

/* == 13. Page intro == */

.page-intro { padding-block: var(--intro-top) clamp(var(--space-7), 6vw, var(--space-9)); }
.page-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.page-intro__title { max-width: 15ch; }
.page-intro__body { display: grid; gap: var(--space-5); justify-items: start; }
@media (min-width: 56.25em) {
  .page-intro__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-8); align-items: end; }
  .page-intro__body { padding-bottom: var(--space-2); }
}

/* == 14. P1 Colour statement == */

.statement__text { max-width: 14ch; font-size: var(--step-display); line-height: var(--leading-display); }
.statement__support { margin-top: var(--space-5); max-width: 24em; font-size: var(--step-lead); line-height: var(--leading-lead); color: var(--color-text-muted); }

/* == 15. P2 Editorial split == */

.split { padding-bottom: 0; overflow: hidden; overflow: clip; }
.split__grid { display: grid; gap: var(--space-7); }
.split__text { align-self: center; }
.split__text > .eyebrow + h2, .split__text > .eyebrow + h1 { margin-top: 0; }
.split__text > h1, .split__text > h2 { margin-bottom: var(--space-5); }
.split__text > .btn--ghost { margin-top: var(--space-4); }
.split__media { align-self: end; justify-self: center; width: min(100%, 30rem); }
.split__media .photo { aspect-ratio: 4 / 5; }
@media (min-width: 56.25em) {
  .split__grid { grid-template-columns: 7fr 5fr; column-gap: var(--space-8); }
  .split__text { padding-bottom: var(--section-pad); }
  .split--media-left .split__grid { grid-template-columns: 5fr 7fr; }
  .split--media-left .split__media { order: -1; }
}

/* == 16. P3 Numbered process and scrollytelling == */

.arch-num {
  display: grid; place-items: end center; flex: none; width: 3.5rem; aspect-ratio: 4 / 5;
  padding-bottom: var(--space-2); border: var(--border-hairline) solid transparent; /* outline survives forced colours */
  border-radius: var(--radius-arch); background: var(--color-tile);
  color: var(--color-tile-fg); font-family: var(--font-display); font-size: var(--step-numeral); line-height: 1;
  transition: background-color var(--t-3), color var(--t-3);
}
.arch-num--current, .is-active > .arch-num { background: var(--color-mark); color: var(--color-mark-fg); }

.process { display: grid; gap: var(--space-6); }
.process__step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.process__title { margin-bottom: var(--space-2); }
.process__text { color: var(--color-text-muted); }

/* Scrollytelling: a list (always in print), or on screens from 900px with JavaScript a sticky panel and a progress line */
.scrolly__media { display: none; }
.scrolly__steps { display: grid; gap: var(--space-7); }
.scrolly__step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4) var(--space-5); align-items: end; }
.scrolly__illo { width: 7.5rem; height: auto; }
.scrolly__body { grid-column: 1 / -1; }
.scrolly__title { font-size: var(--step-h3); margin-bottom: var(--space-2); }
.scrolly__text { color: var(--color-text-muted); }

@media screen and (min-width: 56.25em) {
  .js .scrolly { display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--space-9); align-items: start; }
  .js .scrolly__media { display: grid; gap: var(--space-4); position: sticky; top: calc(var(--header-h) + var(--space-7)); justify-items: start; }
  .js :is(.scrolly__frame, .scrolly__progress) { position: relative; width: min(100%, (100vh - var(--header-h) - 11rem) * 0.8); }
  .js .scrolly__frame { aspect-ratio: 4 / 5; border-radius: var(--radius-arch); }
  .js .scrolly__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t-3); }
  .js .scrolly__img.is-active { opacity: 1; }
  .js .scrolly__progress { height: var(--rule-motif); background: var(--color-rule); }
  .js .scrolly__progress::after {
    content: ""; position: absolute; inset: 0; background: var(--color-brand);
    transform: scaleX(var(--scrolly-progress, 0)); transform-origin: left;
  }
  .js .scrolly__steps { gap: 0; }
  .js .scrolly__step { min-height: 72vh; align-content: center; align-items: start; padding-block: var(--space-7); }
  .js .scrolly__step:first-child { min-height: 50vh; align-content: start; padding-top: var(--space-4); }
  .js .scrolly__illo { display: none; }
  .js .scrolly__body { grid-column: 2; grid-row: 1; }
  .js .scrolly--media-right { grid-template-columns: 7fr 5fr; }
  .js .scrolly--media-right .scrolly__media { order: 2; }
}

/* == 17. P4 Pull quote == */

.pull-quote__quote p {
  max-width: 20ch; font-family: var(--font-display); font-style: italic; font-size: var(--step-pull); line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h3); color: var(--color-heading);
}
/* The opening mark hangs into the margin only where the pages set the quote in from the edge */
@media (min-width: 62.5em) { .pull-quote__quote p { text-indent: -0.42em; } }
.pull-quote__quote p::before { content: "\201C"; }
.pull-quote__quote p::after { content: "\201D"; }
.pull-quote__by { margin-top: var(--space-6); font-weight: 700; font-size: var(--step-small); color: var(--color-text); }

/* == 18. P5 Stats and count-up == */

/* Two (from 900px four) equal columns; a value wider than its share takes a row of its own */
.stats__list { display: flex; flex-wrap: wrap; gap: var(--space-7) var(--space-5); }
.stats__item { flex: 1 1 calc((100% - var(--space-5)) / 2); padding-top: var(--space-4); border-top: var(--rule-motif) solid var(--color-heading); }
.stats__value {
  font-family: var(--font-display); font-size: var(--step-h1); line-height: 1; letter-spacing: var(--tracking-display);
  color: var(--color-heading); font-variant-numeric: lining-nums tabular-nums;
}
.stats__label { margin-top: var(--space-3); font-size: var(--step-small); color: var(--color-text-muted); max-width: 14em; }
@media (min-width: 56.25em) {
  .stats__list { column-gap: var(--space-6); }
  .stats__item { flex-basis: calc((100% - 3 * var(--space-6)) / 4); }
}

/* The final value holds the width */
.countup { display: inline-grid; justify-items: start; }
.countup__digits, .countup::after { grid-area: 1 / 1; }
.countup::after { content: attr(data-final); visibility: hidden; }

/* == 19. P6 Photo collage == */

/* Near-square cells; from 700px a 5/7 split with level sides */
.collage {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: var(--space-3); aspect-ratio: 6 / 7.1;
}
.collage--three { grid-template-rows: repeat(9, minmax(0, 1fr)); aspect-ratio: 6 / 9.2; }
.collage > * { min-height: 0; }
.collage__item--tall { grid-area: 1 / 1 / 6 / 5; }
.collage__item--small { grid-area: 1 / 5 / 3 / 7; }
.collage__accent { grid-area: 3 / 5 / 6 / 7; border-radius: var(--radius-arch); background: var(--color-mark); }
.collage__item--wide { grid-area: 6 / 1 / 8 / 4; }
.collage__item--wide-2 { grid-area: 6 / 4 / 8 / 7; }
.collage--three .collage__item--wide { grid-area: 6 / 1 / 10 / 7; }
@media (min-width: 43.75em) {
  .collage { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(9, minmax(0, 1fr)); gap: var(--space-4); aspect-ratio: 12 / 9.1; }
  .collage--three { grid-template-rows: repeat(7, minmax(0, 1fr)); aspect-ratio: 12 / 7.1; }
  .collage__item--tall { grid-area: 1 / 1 / 7 / 6; }
  .collage__item--wide-2 { grid-area: 7 / 1 / 10 / 6; }
  .collage__item--wide { grid-area: 1 / 6 / 6 / 13; }
  .collage__item--small { grid-area: 6 / 6 / 10 / 10; }
  .collage__accent { grid-area: 6 / 10 / 10 / 13; }
  /* Three photos: a 6/6 split keeps the square arch square (every photo loses under 5%) */
  .collage--three .collage__item--tall { grid-area: 1 / 1 / 8 / 7; }
  .collage--three .collage__item--wide { grid-area: 1 / 7 / 5 / 13; }
  .collage--three .collage__item--small { grid-area: 5 / 7 / 8 / 10; }
  .collage--three .collage__accent { grid-area: 5 / 10 / 8 / 13; }
}

/* == 20. Photo, masks, portrait, team == */

.photo { position: relative; isolation: isolate; overflow: hidden; background: var(--color-surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--color-brand); mix-blend-mode: soft-light; opacity: var(--photo-tint-opacity); }
.photo--illo img { filter: none; } /* illustrated portraits: no photo grade or tint */
.photo--illo::after { content: none; }
.photo--zoom img { transition: transform var(--t-2); }
.photo--zoom:hover img, a:hover .photo--zoom img { transform: scale(var(--zoom)); }
.mask-arch, .mask-sm { border-radius: var(--radius-arch); overflow: hidden; }
.mask-sm { border-radius: var(--radius-sm); }

/* Motif 2: a blush arch behind */
.portrait { position: relative; padding: var(--portrait-offset) 0 0 var(--portrait-offset); }
.portrait::before {
  content: ""; position: absolute; inset: 0 var(--portrait-offset) var(--portrait-offset) 0;
  border-radius: var(--radius-arch); background: var(--color-surface-3);
}
.portrait .photo { aspect-ratio: 4 / 5; }

/* Phones: portrait, then the text at full width */
.team-grid { display: grid; gap: var(--space-7); }
.person { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); align-content: start; }
.person__portrait { width: min(60%, 15rem); margin-bottom: var(--space-4); }
.person__name { font-size: var(--step-h3); }
.person__qual { font-weight: 700; font-size: var(--step-small); color: var(--color-text); }
.person__role, .person__years { font-size: var(--step-small); color: var(--color-text-muted); }
.person__line, .person__bio { color: var(--color-text-muted); }
@media (min-width: 43.75em) {
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); column-gap: var(--space-6); row-gap: var(--space-8); }
  .person__portrait { width: auto; max-width: 20rem; }
  .team-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* == 21. Editorial list == */

.ed-list { border-top: var(--border-hairline) solid var(--color-rule); }
.ed-list__item { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1) var(--space-6); padding-block: var(--space-5); border-bottom: var(--border-hairline) solid var(--color-rule); }
.ed-list__text { color: var(--color-text-muted); }
/* From 900px the title sits beside its text, while the list is at least 24em wide (a container query
   in the list's own em): with very large text they stay stacked. */
.ed-list:not(.ed-list--numbered) { container: ed-list / inline-size; }
@media (min-width: 56.25em) {
  @container ed-list (min-width: 24em) { .ed-list__item { grid-template-columns: minmax(0, 14em) minmax(0, 1fr); align-items: baseline; } }
  @supports not (container-type: inline-size) { .ed-list__item { grid-template-columns: minmax(0, 14em) minmax(0, 1fr); align-items: baseline; } }
}
.ed-list--numbered { counter-reset: ed-list; }
.ed-list--numbered .ed-list__item { counter-increment: ed-list; grid-template-columns: 2.75rem minmax(0, 1fr); align-items: baseline; }
.ed-list--numbered .ed-list__item::before {
  content: counter(ed-list, decimal-leading-zero); font-family: var(--font-display); font-weight: 500;
  font-size: var(--step-eyebrow); color: var(--color-eyebrow); font-variant-numeric: lining-nums;
}
.ed-list--numbered .ed-list__title { color: var(--color-text); }
@media (min-width: 56.25em) { .ed-list--numbered .ed-list__item { grid-template-columns: 4rem minmax(0, 1fr); } }

/* == 22. Cards (flat, no border or shadow) == */

.card {
  --card-pad: clamp(var(--space-5), 3vw, var(--space-6));
  position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--card-pad);
  border-radius: var(--radius-sm); background: var(--color-surface-2);
}
.card--featured { background: var(--color-surface-3); }
.card--white { background: var(--color-white); }
.card__media { margin-bottom: var(--space-2); }
.card__media .photo { aspect-ratio: 3 / 2; }
.card__title { font-size: var(--step-h3); }
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-sm); }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: var(--focus-ring) solid var(--color-focus); outline-offset: var(--focus-offset); }
.card__text { color: var(--color-text-muted); }
.card__price { font-weight: 700; color: var(--color-heading); }
.card__more { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); font-weight: 700; }
.card:hover .photo--zoom img { transform: scale(var(--zoom)); }
.card-grid { display: grid; gap: var(--space-5); }
@media (min-width: 43.75em) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62.5em) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* == 23. Accordion (FAQ) == */

.accordion { border-top: var(--border-hairline) solid var(--color-rule); }
.accordion__item { border-bottom: var(--border-hairline) solid var(--color-rule); }
.accordion__trigger {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5); width: 100%;
  min-height: var(--tap-target); padding: var(--space-5) 0; border: 0; background: transparent;
  color: var(--color-heading); font: inherit; letter-spacing: inherit; text-align: left;
}
.accordion__question { min-width: 0; }
.accordion__trigger:hover .accordion__question { text-decoration: underline var(--underline-thin); text-underline-offset: 0.2em; }
.accordion__icon { display: none; margin-top: 0.15em; color: var(--color-heading); }
.js .accordion__icon--plus { display: block; }
.js .accordion__trigger[aria-expanded="true"] .accordion__icon--plus { display: none; }
.js .accordion__trigger[aria-expanded="true"] .accordion__icon--minus { display: block; }
.accordion__panel { display: grid; grid-template-rows: 1fr; }
.accordion__inner { min-height: 0; overflow: hidden; }
.accordion__inner > :first-child { margin-top: 0; }
.accordion__inner > :last-child { padding-bottom: var(--space-5); }
.accordion__inner > * + * { margin-top: var(--space-3); }
/* Panels collapse only with JavaScript */
.js .accordion__panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--t-3), visibility 0s linear var(--dur-3); }
.js .accordion__heading:has([aria-expanded="true"]) + .accordion__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--t-3), visibility 0s; }

/* == 24. Carousel and stars == */

.carousel { position: relative; }
.carousel__track {
  position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; border-radius: var(--radius-sm);
}
.carousel__track::-webkit-scrollbar { display: none; }
html:not(.js) .carousel__track { scrollbar-width: thin; }
.carousel__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel__controls { display: none; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.js .carousel__controls { display: flex; }
.carousel__btn {
  display: grid; place-items: center; flex: none; width: var(--btn-h); height: var(--btn-h); padding: 0;
  border: var(--border-field) solid var(--color-btn-line); border-radius: var(--radius-pill); background: transparent;
  color: var(--color-btn-line); transition: transform var(--t-2), box-shadow var(--t-2), color var(--t-1), border-color var(--t-1);
}
.carousel__btn:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-1); }
/* Disabled fades the content, not the focus ring */
.carousel__btn[aria-disabled="true"] { border-color: var(--color-rule); color: var(--color-text-muted); cursor: default; transform: none; box-shadow: none; }
.carousel__dots { display: flex; flex-basis: 100%; margin-inline-start: calc((var(--space-5) - var(--tap-target)) / 2); }
@media (min-width: 43.75em) { .carousel__dots { flex-basis: auto; margin-inline-start: var(--space-3); } }
.carousel__dot { display: grid; place-items: center; width: var(--tap-target); height: var(--tap-target); padding: 0; border: 0; background: transparent; }
.carousel__dot::before {
  content: ""; width: var(--space-2); height: var(--space-2); border-radius: var(--radius-pill);
  background: var(--color-text-muted); transition: width var(--t-2), background-color var(--t-1);
}
.carousel__dot[aria-current="true"]::before { width: var(--space-5); background: var(--color-heading); }

.review { display: grid; gap: var(--space-5); align-content: start; padding-inline-end: var(--space-2); }
.review__quote p { max-width: 30ch; font-family: var(--font-display); font-size: var(--step-quote); line-height: var(--leading-tight); letter-spacing: var(--tracking-h3); color: var(--color-text); }
.review__meta { display: grid; gap: var(--space-1); font-size: var(--step-small); color: var(--color-text-muted); }
.review__name { font-weight: 700; color: var(--color-text); }
.stars { display: flex; gap: var(--space-1); color: var(--color-mark); }
.stars .icon { --icon-size: var(--icon-size-sm); }
@media (min-width: 56.25em) {
  .review { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--space-8); align-items: end; }
  .review .stars { grid-column: 1 / -1; }
  .review__meta { padding-bottom: var(--space-2); border-left: var(--border-hairline) solid var(--color-rule); padding-left: var(--space-5); }
}

@media (forced-colors: active) {
  .carousel__dot::before { border: var(--space-1) solid CanvasText; }
  .carousel__dot[aria-current="true"]::before { border-color: Highlight; }
  .site-nav__link[aria-current="page"], .subnav__link[aria-current="true"] { text-decoration: underline; }
}

/* == 25. Before/after slider == */

.compare { --compare: 50; --compare-pos: calc(var(--compare-grip) / 2 + (100% - var(--compare-grip)) * var(--compare) / 100); }
.compare__frame { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface-2); }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.compare__img--before { filter: var(--compare-filter); clip-path: inset(0 calc(100% - var(--compare-pos)) 0 0); }
.compare__label {
  position: absolute; top: var(--space-4); z-index: 1; padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-brand);
  font-weight: 700; font-size: var(--step-tiny); pointer-events: none;
}
.compare__label--before { left: var(--space-4); }
.compare__label--after { right: var(--space-4); }
.compare__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; appearance: none; background: transparent; }
.compare__range::-webkit-slider-thumb { appearance: none; width: var(--compare-grip); height: 100vh; }
.compare__range::-moz-range-thumb { width: var(--compare-grip); height: 100vh; border: 0; }
html:not(.js) .compare__range { display: none; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--compare-pos); z-index: 2; width: var(--border-strong);
  margin-left: calc(var(--border-strong) / -2); background: var(--color-surface); pointer-events: none;
}
.compare__grip {
  position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center;
  width: var(--compare-grip); height: var(--compare-grip); border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-brand); box-shadow: var(--shadow-1);
  transform: translate(-50%, -50%);
}
.compare__grip .icon { --icon-size: var(--icon-size-xs); margin-inline: calc(-1 * var(--space-1)); }
.compare__range:focus-visible + .compare__handle .compare__grip { outline: var(--focus-ring) solid var(--color-brand); outline-offset: var(--focus-offset); }
.compare__caption { margin-top: var(--space-3); font-size: var(--step-small); color: var(--color-text-muted); }

/* == 26. Hours and Today badge == */

.hours { width: 100%; font-size: var(--step-small); }
.hours__caption { margin-bottom: var(--space-3); text-align: left; }
/* Each row wraps on its own: a time too long for the line drops under its day, still on the right */
.hours tr {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-4); padding-block: var(--space-3);
  border-bottom: var(--border-hairline) solid var(--color-rule);
}
.hours tr:first-child { border-top: var(--border-hairline) solid var(--color-rule); }
.hours th, .hours td { padding: 0; text-align: left; font-weight: 400; }
.hours th { flex: 1 1 auto; }
.hours td { margin-inline-start: auto; text-align: right; color: var(--color-text-muted); }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--color-text); }
.today-badge, .js .hours tr:not(.is-today) > th::after {
  display: inline-block; margin-inline-start: var(--space-2); padding: 0 var(--space-2); border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--step-tiny); line-height: var(--leading-lead); vertical-align: 0.1em;
}
.today-badge { background: var(--color-badge-bg); color: var(--color-badge-fg); }
/* A hidden "Today" on other rows holds the width: no reflow */
.js .hours tr:not(.is-today) > th::after { content: "Today"; visibility: hidden; margin-inline-start: calc(var(--space-2) + 0.25em); }

/* == 27. CTA band == */

.cta-band { padding-top: calc(var(--section-pad) + var(--space-5)); }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
.cta-band__title { font-size: var(--step-h1); line-height: var(--leading-h1); max-width: 13ch; }
.cta-band__support { margin-top: var(--space-4); color: var(--color-text-muted); }
.cta-band__actions { margin-top: var(--space-6); }
@media (min-width: 56.25em) { .cta-band__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-8); align-items: end; } }

/* The booking form and map facade (contact.css) and the services sub-nav (services.css) live in
   their page files, because only one page uses each. Their tokens stay in :root above. */

/* == 31. Scroll reveal == */

@media screen and (prefers-reduced-motion: no-preference) {
  html.smooth-scroll { scroll-behavior: smooth; } /* main.js adds it after load: arriving at a #anchor jumps */
  .js .reveal, .js [data-reveal-stagger] > * {
    opacity: 0; transform: translateY(var(--reveal-rise));
    transition: opacity var(--t-3) var(--reveal-delay, 0ms), transform var(--t-3) var(--reveal-delay, 0ms);
  }
  /* Failsafe if main.js never runs */
  .js:not(.reveal-ready) .reveal, .js:not(.reveal-ready) [data-reveal-stagger] > * { animation: reveal-failsafe var(--t-3) 2.5s forwards; }
  .js .reveal.is-revealed, .js [data-reveal-stagger] > .is-revealed { opacity: 1; transform: none; }
}
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

/* While main.js sets the first states (aria-current, disabled buttons, the active step), nothing animates */
.is-starting { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; }

/* == 32. Reduced motion == */

/* Motion reads tokens: zeroed, nothing moves */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; --dur-entrance: 0ms; --dur-countup: 0ms;
    --reveal-rise: 0px; --reveal-stagger: 0ms; --nudge: 0px; --lift: 0px; --zoom: 1; --zoom-entrance: 1;
  }
}

/* == 33. Print == */

/* Every part prints: reveals and the desktop scrollytelling are screen-only (above); closed answers open,
   every review shows and count-ups print their final value. Printers drop background colours, so the
   green and pink bands switch to dark text on white paper. Nothing sticks, floats or links to a booking. */
@media print {
  :root { --section-pad: var(--space-7); --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; }
  :root, .band--brand, .band--accent, .on-brand, .nav-open .site-header, .demo-banner, .logo--light {
    --band-bg: transparent; --color-text: var(--color-ink); --color-text-muted: var(--color-ink-muted);
    --color-on-brand-muted: var(--color-ink-muted); --color-heading: var(--color-brand); --color-eyebrow: var(--color-accent);
    --color-link: var(--color-brand); --color-italic: var(--color-accent); --color-rule: var(--color-hairline);
    --color-btn-bg: transparent; --color-btn-fg: var(--color-brand); --color-btn-line: var(--color-brand);
    --color-badge-bg: transparent; --color-badge-fg: var(--color-ink); --color-tile: transparent; --color-tile-fg: var(--color-brand);
    --mark-arch: var(--color-brand); --mark-door: var(--color-accent); --color-mark: var(--color-accent);
  }
  html.nav-open { overflow: visible; padding-inline-end: 0; }
  .site-header, :root .subnav, .nav-open .site-header { position: static; background: none; }
  .site-header__phone { display: inline-flex; }
  .skip-link, .demo-banner__close, .js .menu-toggle, .site-header__book, .mobile-nav, .whatsapp-float,
  .js .carousel__controls, .js .accordion__trigger[aria-expanded] .accordion__icon, .is-unloaded { display: none; }
  .card:has(> .is-unloaded) { grid-template-columns: none; }
  .demo-banner { background: none; color: var(--color-ink); border-bottom: var(--border-hairline) solid var(--color-hairline); }
  .btn--primary, .arch-num { border-color: currentColor; }
  .today-badge { border: var(--border-hairline) solid currentColor; }
  .arch-num--current, .is-active > .arch-num { background: none; color: var(--color-accent); }
  :root .subnav__link[aria-current="true"] { background: none; color: var(--color-brand); }
  .js .accordion__panel { grid-template-rows: 1fr; visibility: visible; }
  .carousel__track { display: grid; gap: var(--space-7); overflow: visible; }
  .js .countup__digits { visibility: hidden; }
  .js .countup::after { visibility: visible; }
  h2, h3, .eyebrow, .section-head { break-after: avoid; }
  h1, h2, h3, .section-head, .card, .stats__list, .ed-list__item, .accordion__item, .review, .process__step, .scrolly__step, .hours, .person, .compare { break-inside: avoid; }
}
