/* =========================================================================
   Design tokens: change these to rebrand the whole site.

   Colour source: colored-logo.pdf (project root). The PDF holds a single
   4000x4000 RGB image; these hex values were sampled from its pixels
   (background, line work, and the pastel fills of the feet and book pages).
   Values marked "derived" are darker shades of a sampled hue, needed so
   text and buttons pass WCAG AA; they were not in the logo itself.

   Contrast ratios (WCAG 2.x, AA needs 4.5:1 for normal text, 3:1 for UI):
     --color-text        #3d3c3c on --color-bg       #f5f6f5  10.15:1
     --color-text        #3d3c3c on --color-surface  #f3eee2   9.50:1
     --color-text        #3d3c3c on --color-tint-lavender #ecebf5  9.30:1
     --color-text        #3d3c3c on --color-lavender #bbb6dc   5.67:1
     --color-text        #3d3c3c on --color-sand     #dbcdab   6.98:1
     --color-text        #3d3c3c on --color-teal     #acd8d9   7.11:1
     --color-text        #3d3c3c on --color-peach    #e7b4a1   5.99:1
     --color-muted       #5d5e58 on --color-bg       #f5f6f5   6.04:1
     --color-muted       #5d5e58 on --color-surface  #f3eee2   5.66:1
     --color-muted       #5d5e58 on --color-tint-lavender #ecebf5  5.54:1
     --color-primary     #455e45 on --color-bg       #f5f6f5   6.59:1 (links, secondary button, focus ring)
     --color-primary     #455e45 on --color-surface  #f3eee2   6.17:1
     --color-primary     #455e45 on --color-tint-lavender #ecebf5  6.04:1
     --color-primary-contrast #ffffff on --color-primary #455e45  7.14:1 (primary button)
     --color-primary-contrast #ffffff on --color-primary-hover #3c533c  8.42:1
   Pastels (lavender, sage, teal, peach, sand) are for backgrounds, borders and
   accents only. Never use them for text on the off-white background.
   ========================================================================= */
:root {
  /* Neutrals */
  --color-bg: #f5f6f5;              /* off-white: logo background (sampled) */
  --color-text: #3d3c3c;            /* charcoal: logo wordmark (sampled) */
  --color-muted: #5d5e58;           /* muted text: logo line work (sampled) */
  --color-surface: #f3eee2;         /* sand tint: --color-sand mixed with white (derived) */
  --color-tint-lavender: #ecebf5;   /* lavender tint: --color-lavender mixed with white (derived) */

  /* Pastel accents (all sampled from the logo) */
  --color-lavender: #bbb6dc;        /* heel ring / toe */
  --color-sage: #97b397;            /* book spine */
  --color-sage-light: #d3e9c7;      /* heel centre */
  --color-teal: #acd8d9;            /* heel ring / dots */
  --color-peach: #e7b4a1;           /* toe / dots */
  --color-sand: #dbcdab;            /* page edges */

  /* Actions */
  --color-primary: #455e45;         /* deep sage: --color-sage darkened, same hue (derived) */
  --color-primary-hover: #3c533c;   /* deeper sage (derived) */
  --color-primary-contrast: #ffffff;

  /* Review stars: Google Maps star yellow. Decorative only (each rating also has
     visually-hidden "5 out of 5 stars" text), so it is exempt from AA text contrast. */
  --color-star: #fbbc04;

  /* Type: system fonts only (see DECISIONS.md, typography). */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-body);
  --heading-weight: 300;
  --heading-tracking: 0.06em;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --radius: 8px;
  --max-width: 1100px;

  /* Height of the sticky header, so in-page links don't land underneath it */
  --header-height: 3.5rem;

  /* Side gutter: 1rem, or wider where an iPhone's notch / rounded corners need it (landscape) */
  --gutter-left: max(var(--space-2), env(safe-area-inset-left));
  --gutter-right: max(var(--space-2), env(safe-area-inset-right));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;   /* stop iOS enlarging text in landscape */
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-tap-highlight-color: rgba(69, 94, 69, 0.15); /* soft sage flash on tap, not iOS grey */
}

img { max-width: 100%; height: auto; display: block; }

/* Headings: light, widely letter-spaced sans, echoing "by Jessica" in the logo */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.25;
  color: var(--color-text);
}
h1 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem); margin: 0 0 var(--space-2); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); margin: 0 0 var(--space-3); }
h3 { font-size: 1.25rem; font-weight: 400; margin: 0 0 var(--space-1); }

p { margin: 0 0 var(--space-2); }

a { color: var(--color-primary); text-underline-offset: 0.15em; }
@media (hover: hover) {
  a:hover { color: var(--color-primary-hover); }
}
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
}

/* Hidden on screen, still read by screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
  background: var(--color-bg);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-1) var(--space-2);
  z-index: 30;
}

/* Long words/URLs wrap instead of causing horizontal scroll at 320px */
body { overflow-wrap: break-word; }

/* Muted helper text */
.muted { color: var(--color-muted); }

/* Visible placeholder for content the owner still needs to supply */
.todo {
  color: var(--color-muted);
  font-style: italic;
}

/* -------------------------------------------------------------------------
   Buttons. Use on <a> or <summary>. Minimum 44x44px tap target.
   ------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 44px;
  min-width: 44px;
  padding: 0.625rem 1.5rem;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
@media (hover: hover) {
  .button:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-primary-contrast);
    text-decoration: underline;
  }
  .button--secondary:hover {
    background: var(--color-primary);
    color: var(--color-primary-contrast);
  }
}
.button:active { transform: scale(0.98); }
.button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}
.button--secondary {
  background: transparent;
  color: var(--color-primary);
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:active { transform: none; }
}

/* Header: sticky, so the nav is always one tap away on a long page.
   Mobile: one row of four links (the logo in the hero carries the brand).
   From 640px: brand on the left, links on the right. No JS. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 246, 245, 0.94);   /* --color-bg, slightly see-through */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-sand);
  padding-top: env(safe-area-inset-top);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-2);
  min-height: var(--header-height);
}
.brand {
  display: none;
  align-items: center;
  min-height: 44px;
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--color-text);
}
.site-nav { flex: 1; }
.site-nav ul {
  display: flex;
  justify-content: space-between;
  gap: 0 var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
@media (hover: hover) {
  .site-nav a:hover { text-decoration: underline; }
}
@media (min-width: 640px) {
  .brand { display: inline-flex; }
  .site-nav { flex: none; }
  .site-nav ul { gap: 0 var(--space-3); }
  .site-nav a { font-size: 1rem; font-weight: 400; }
}

/* main receives focus from the skip link (tabindex="-1"); it isn't interactive, so no outline */
main:focus { outline: none; }

/* Page sections (single-page layout): consistent spacing, alternating backgrounds */
.section { padding-block: var(--space-4); }
@media (min-width: 640px) {
  .section { padding-block: var(--space-5); }
}
.section--alt { background: var(--color-surface); }
.section--tint { background: var(--color-tint-lavender); }
.section > .container > :last-child { margin-bottom: 0; }

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-sand);
  color: var(--color-muted);
  padding-top: var(--space-3);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));  /* clear the iPhone home bar */
  font-size: 0.9375rem;
}

/* Hero logo: file is 640px wide (2x), shown at up to 320px. The logo image has
   the same off-white background as --color-bg, so keep it on that colour.
   Smaller on phones so the "Book now" button is visible without scrolling. */
.hero__logo {
  width: min(230px, 70%);
  margin-inline: auto;
}
@media (min-width: 640px) {
  .hero__logo { width: min(320px, 85%); }
}

/* Intro paragraph under a section heading */
.lead { font-size: 1.0625rem; max-width: 40em; }
@media (min-width: 640px) {
  .lead { font-size: 1.125rem; }
}

/* Plain-words guidance box (e.g. first session vs follow-up) */
.callout {
  background: var(--color-tint-lavender);
  border-left: 4px solid var(--color-lavender);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-2);
  margin: 0 0 var(--space-2);
}

/* -------------------------------------------------------------------------
   Treatments & prices
   ------------------------------------------------------------------------- */
/* Each treatment type is a closed card (native <details>, no JS): the summary
   shows only the name, starting price, durations and count; the sessions,
   prices and "Read more" descriptions open inside. One column on every
   screen size, so opening a card never leaves gaps in a grid. */
.treatment-hint { margin: calc(-1 * var(--space-2)) 0 var(--space-3); max-width: 40em; }
.categories {
  display: grid;
  gap: var(--space-2);
  max-width: 48rem;
}
.category {
  background: var(--color-surface);
  border-left: 4px solid var(--color-lavender);
  border-radius: var(--radius);
}
.category:nth-child(2) { border-left-color: var(--color-teal); }
.category:nth-child(3) { border-left-color: var(--color-peach); }
.category:nth-child(4) { border-left-color: var(--color-sage); }
.category__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  list-style: none;            /* hide default triangle (Firefox, Chrome) */
}
.category__summary::-webkit-details-marker { display: none; } /* Safari */
.category__text { display: block; min-width: 0; }
.category__name {
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
}
.category__meta {
  display: block;
  margin-top: 0.125rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
}
.category__price { font-weight: 600; color: var(--color-primary); }
/* Round chevron button: points down when closed, up when open */
.category__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.category__icon::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
  transition: transform 0.2s ease;
}
.category[open] > .category__summary .category__icon {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.category[open] > .category__summary .category__icon::after { transform: translateY(0.1rem) rotate(-135deg); }
.category[open] > .category__summary { border-bottom: 1px solid var(--color-sand); border-radius: 0 var(--radius) 0 0; }
@media (hover: hover) {
  .category__summary:hover .category__name { text-decoration: underline; text-decoration-color: var(--color-sage); text-underline-offset: 0.2em; }
  .category__summary:hover .category__icon { background: var(--color-primary); color: var(--color-primary-contrast); }
}
@media (prefers-reduced-motion: reduce) {
  .category__icon, .category__icon::after { transition: none; }
}
.category__panel { padding: var(--space-2); }
.category__panel .callout { background: var(--color-bg); }
@media (min-width: 640px) {
  .category__summary { padding: var(--space-2) var(--space-3); }
  .category__panel { padding: var(--space-2) var(--space-3) var(--space-3); }
}
.treatment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.treatment {
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-sand);
}
.treatment:first-child { padding-top: 0; }
.treatment:last-child { border-bottom: 0; }
.treatment__name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}
.treatment__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin: 0.25rem 0 0;
}
.treatment__duration { color: var(--color-muted); }
.treatment__price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* "Read more" disclosure for treatment descriptions and reviews (native <details>, no JS) */
.treatment__more > summary,
.review__more > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  color: var(--color-primary);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: var(--color-sage);
  text-underline-offset: 0.2em;
}
.treatment__more > summary::-webkit-details-marker,
.review__more > summary::-webkit-details-marker { display: none; }
.treatment__more > summary::after,
.review__more > summary::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
}
.treatment__more[open] > summary::after,
.review__more[open] > summary::after { transform: translateY(0.1em) rotate(-135deg); }
@media (hover: hover) {
  .treatment__more > summary:hover,
  .review__more > summary:hover { text-decoration-color: currentColor; }
}
.treatment__desc { margin: 0 0 var(--space-1); }
.treatment { padding-bottom: var(--space-1); }
.treatment:last-child { padding-bottom: 0; }

/* Call to action at the end of a section */
.section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.section-cta .muted { margin: 0; }
@media (max-width: 639px) {
  .section-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* -------------------------------------------------------------------------
   Locations & opening hours: cards stack on mobile, side by side from 640px
   ------------------------------------------------------------------------- */
.locations {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
@media (min-width: 640px) {
  .locations { grid-template-columns: 1fr 1fr; }
}
.location {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-surface);
  border-top: 4px solid var(--color-teal);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.location:nth-child(2) { border-top-color: var(--color-peach); }
.location address {
  font-style: normal;
  margin-bottom: var(--space-2);
}
.hours__label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 0.25rem;
}
.hours {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
}
.location .button { margin-top: auto; }
@media (max-width: 639px) {
  .location { padding: var(--space-3) var(--space-2) var(--space-2); }
  .location .button { align-self: stretch; }
}
.booking-note { margin-top: var(--space-3); }

/* -------------------------------------------------------------------------
   Contact: each method is one large, labelled link (min 44px tall)
   ------------------------------------------------------------------------- */
.contact-list {
  display: grid;
  gap: var(--space-2);
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}
@media (min-width: 640px) {
  .contact-list { grid-template-columns: 1fr 1fr; }
}
.contact-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: var(--space-2);
  min-height: 44px;
  height: 100%;
  padding: var(--space-2);
  background: var(--color-bg);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius);
  color: var(--color-text);
  text-decoration: none;
}
@media (hover: hover) {
  .contact-link:hover { border-color: var(--color-primary); }
  .contact-link:hover .contact__label { text-decoration: underline; }
}
.contact-link:active { border-color: var(--color-primary); background: var(--color-tint-lavender); }
.contact__icon {
  grid-row: span 2;
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact__label {
  font-weight: 600;
  color: var(--color-primary);
}
.contact__value { color: var(--color-text); min-width: 0; }
/* Long email/handle can break anywhere rather than overflow at 320px */
.contact__value--long { overflow-wrap: anywhere; }

/* "Book Online" card: a native <details> whose summary looks like a contact link.
   Spans both columns so opening it doesn't stretch a neighbouring card. */
.contact-list__wide { grid-column: 1 / -1; }
.contact-book > summary {
  grid-template-columns: auto 1fr auto;
  list-style: none;            /* hide default triangle (Firefox, Chrome) */
  cursor: pointer;
}
.contact-book > summary::-webkit-details-marker { display: none; } /* Safari */
.contact-book > summary::after {
  content: "";
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.25em;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-0.15em) rotate(45deg);
}
.contact-book[open] > summary::after { transform: translateY(0.15em) rotate(-135deg); }
.contact-book > summary:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}
.contact-book .book-chooser__panel { margin-top: var(--space-1); }

/* Footer: compact contact repeat */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-3);
  list-style: none;
  margin: 0 0 var(--space-1);
  padding: 0;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.site-footer p { margin: 0; }

/* -------------------------------------------------------------------------
   Hero: complete without a photo. Off-white at the top (matches the logo's
   own background), fading to a soft lavender tint.
   ------------------------------------------------------------------------- */
.hero {
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg) 45%, var(--color-tint-lavender) 100%);
  border-bottom: 4px solid var(--color-sage-light);
}
.hero { padding-top: var(--space-3); }
.hero h1 { margin-top: var(--space-2); }
@media (min-width: 640px) {
  .hero { padding-top: var(--space-5); }
  .hero h1 { margin-top: var(--space-3); }
}
.hero__tagline {
  font-size: 1.125rem;
  max-width: 34em;
  margin-inline: auto;
  margin-bottom: var(--space-3);
}

/* "Book now" chooser (<details>/<summary>) */
.book-chooser {
  max-width: 26rem;
  margin-inline: auto;
}
.book-chooser > summary {
  list-style: none;            /* hide default triangle (Firefox, Chrome) */
  min-width: 12rem;
}
.book-chooser > summary::-webkit-details-marker { display: none; } /* Safari */
.book-chooser > summary::after {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  margin-left: 0.25em;
}
.book-chooser[open] > summary::after { transform: translateY(0.15em) rotate(-135deg); }
.book-chooser__panel {
  margin-top: var(--space-2);
  padding: var(--space-2);
  background: var(--color-bg);
  border: 1px solid var(--color-lavender);
  border-radius: var(--radius);
}
.book-chooser__list {
  display: grid;
  gap: var(--space-1);
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
}
.book-chooser__list .button { width: 100%; }
.book-chooser__note { margin: 0; font-size: 0.9375rem; }
@media (max-width: 639px) {
  .book-chooser > summary { width: 100%; }
}
/* Left-aligned variant (under Treatments); full width on phones like the hero one */
.book-chooser--start { margin-inline: 0; width: 100%; }
@media (max-width: 639px) {
  .book-chooser--start { max-width: none; }
}

/* Keep short phrases (e.g. "Hay-on-Wye") from breaking at the hyphen */
.nowrap { white-space: nowrap; }

/* -------------------------------------------------------------------------
   About Jessica: the .about__photo sits above the text on mobile and beside
   it from 768px. Without a photo the section falls back to text only.
   ------------------------------------------------------------------------- */
.about {
  display: grid;
  gap: var(--space-3);
  max-width: 48rem;
}
/* Photo gallery: one row of photos that scrolls sideways with the next photo
   peeking in, like the reviews (CSS scroll-snap, no JS); main.js adds dots.
   Phones: full-bleed to the screen edges, 4:3 crops (face and certificate kept,
   about half the height of the portrait). From 768px: full portraits in the
   left column. */
.about__media { min-width: 0; }
.about__gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, 22rem);
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.about__gallery::-webkit-scrollbar { display: none; }
.about__gallery > li { scroll-snap-align: start; }
.about__gallery picture { display: block; }
.about__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--radius);
}
@media (max-width: 767px) {
  .about__gallery {
    scroll-padding-inline: var(--gutter-left) var(--gutter-right);
    margin-inline: calc(-1 * var(--gutter-left)) calc(-1 * var(--gutter-right));
    padding: 0 var(--gutter-right) var(--space-1) var(--gutter-left);
  }
  .about__gallery:focus-visible { outline-offset: -3px; }
}
@media (min-width: 768px) {
  .about:has(.about__photo) {
    grid-template-columns: minmax(12rem, 1fr) 2fr;
    align-items: start;
    max-width: none;
  }
  .about__media { max-width: 20rem; }
  .about__gallery { grid-auto-columns: 88%; }
  .about__photo { aspect-ratio: 3 / 4; }
}
/* Dots sit straight under the photos (no negative pull like the reviews) */
.about__media .scroll-dots { margin-top: 0; }
.about__text { max-width: 40em; }
.about__lead {
  font-size: 1.375rem;
  font-weight: 300;
  letter-spacing: var(--heading-tracking);
  line-height: 1.3;
  margin-bottom: var(--space-1);
}
.about__callout { background: var(--color-bg); }
.about__details {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
/* Category cards sit on the sand section here, so use the off-white */
.category--light { background: var(--color-bg); }
.about__list { margin: 0; padding-left: 1.25rem; }
.about__list li + li { margin-top: 0.25rem; }

/* -------------------------------------------------------------------------
   Reviews: hand-copied Google reviews as quote cards, link out to the listing.
   Phones (under 768px): one row of cards that scrolls sideways with the next
   card peeking in (CSS scroll-snap, no JS); main.js adds position dots.
   From 768px: a two-column grid. Cards in a row share the same height.
   ------------------------------------------------------------------------- */
.reviews {
  display: grid;
  gap: var(--space-2);
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}
.review { min-width: 0; }
.review figure {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  background: var(--color-bg);
  border-radius: calc(var(--radius) * 2);
  padding: var(--space-3) var(--space-3) var(--space-2);
  box-shadow: 0 1px 2px rgba(61, 60, 60, 0.06), 0 4px 14px rgba(61, 60, 60, 0.07);
}
/* Large decorative opening quote mark (pastel, so decoration only) */
.review figure::before {
  content: "\201C";
  content: "\201C" / "";   /* empty alt text so screen readers skip it (older browsers use the line above) */
  position: absolute;
  top: 0.25rem;
  right: var(--space-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--color-lavender);
  pointer-events: none;
}
.review:nth-child(4n+2) figure::before { color: var(--color-teal); }
.review:nth-child(4n+3) figure::before { color: var(--color-peach); }
.review:nth-child(4n+4) figure::before { color: var(--color-sage); }
.review__stars {
  margin: 0 0 var(--space-1);
  color: var(--color-star);
  font-size: 1.125rem;
  letter-spacing: 0.12em;
}
.review blockquote {
  margin: 0 0 var(--space-2);
  padding-right: var(--space-3);   /* keep the first lines clear of the quote mark */
}
.review blockquote p { margin: 0; }
.review blockquote p + p { margin-top: var(--space-1); }
.review__more-open,
.review__more[open] .review__more-closed { display: none; }
.review__more[open] .review__more-open { display: inline; }
/* Reviewer: initial in a pastel circle, name, source. Sits at the card bottom. */
.review figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-sand);
}
.review__avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-lavender);   /* charcoal text on these pastels passes AA */
  color: var(--color-text);
  font-weight: 600;
}
.review:nth-child(4n+2) .review__avatar { background: var(--color-teal); }
.review:nth-child(4n+3) .review__avatar { background: var(--color-peach); }
.review:nth-child(4n+4) .review__avatar { background: var(--color-sage-light); }
.review__who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.review__name { font-weight: 600; }
.review__source {
  color: var(--color-muted);
  font-size: 0.875rem;
}

@media (max-width: 767px) {
  /* Full-bleed sideways scroller: runs to the screen edges, cards line up with the gutter */
  .reviews {
    position: relative;
    grid-auto-flow: column;
    grid-auto-columns: min(85%, 22rem);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter-left) var(--gutter-right);
    margin-inline: calc(-1 * var(--gutter-left)) calc(-1 * var(--gutter-right));
    padding: var(--space-1) var(--gutter-right) var(--space-3) var(--gutter-left);
    scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .reviews:focus-visible { outline-offset: -3px; }
  .review { scroll-snap-align: start; }
  .review figure { padding: var(--space-3) var(--space-2) var(--space-2); }
}
@media (min-width: 768px) {
  .reviews { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .reviews:focus-visible { outline: none; }   /* nothing to scroll in the grid */
}

/* Position dots under a sideways scroller (added by main.js). Each is a 44px tap target. */
.scroll-dots {
  display: flex;
  justify-content: center;
  margin-top: calc(-1 * var(--space-2));
}
.scroll-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.scroll-dot::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--color-muted);
  transition: width 0.2s ease, background-color 0.2s ease;
}
.scroll-dot[aria-current="true"]::before {
  width: 1.5rem;
  background: var(--color-primary);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-dot::before { transition: none; }
}
@media (min-width: 768px) {
  .reviews + .scroll-dots { display: none; }   /* reviews sit in a grid here */
}

.reviews__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}
@media (max-width: 639px) {
  .reviews__actions { margin-top: var(--space-2); }
  .reviews__actions li { flex: 1 1 100%; }
  .reviews__actions .button { width: 100%; }
}
