/* ============================================================
   99-polish — FastBack PT template polish (3-temp standards).
   Loads last (build.mjs sorts css/sections/), so these targeted
   overrides win without editing the master section files.
   ============================================================ */

/* ---------- 1. Mobile navigation ---------- */
.sec-01-nav .sec-01-nav__overlay-link {
  font-size: clamp(1.4rem, 1.15rem + 2vw, 2rem);
}
.sec-01-nav .sec-01-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.sec-01-nav .sec-01-nav__phone-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}
@media (max-width: 1200px) {
  .sec-01-nav .sec-01-nav__phone {
    display: inline-flex; /* master hides it below 1200px; keep it beside the hamburger */
    font-size: 0.9rem;
    min-height: 44px;
  }
}
@media (max-width: 420px) {
  .sec-01-nav .sec-01-nav__phone { font-size: 0.8rem; gap: 0.3rem; }
}

/* ---------- 3. Hero reviews: align with hero copy ---------- */
.sec-02-hero__rating {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ---------- 4. Images: no decorative tints/greyscale, no arches ---------- */
.sec-02-hero__photo img { filter: brightness(0.8); } /* slight darken for headline/form contrast; scrim stays too */
.sec-02-hero__tint { display: none; }
@media (min-width: 1024px) {
  .sec-02-hero__figure-frame,
  .sec-02-hero__figure-ring { border-radius: var(--radius-lg); }
  .sec-02-hero__figure-img { filter: none; transform: none; }
  .sec-02-hero__figure-tint { display: none; }
  .sec-02-hero__figure:hover .sec-02-hero__figure-img,
  .sec-02-hero__figure:focus-within .sec-02-hero__figure-img { filter: none; transform: scale(1.04); }
}
.sec-05-services__photo,
.sec-09-team__photo,
.sec-40-about-team__photo,
.sec-40-about-gallery__img,
.sec-60-svc-grid__photo,
.sec-40-about-story__photo {
  filter: none !important;
  transform: none;
  transition: transform 600ms var(--ease-out);
}
.sec-05-services__tile::before,
.sec-09-team__photo-wrap::after { display: none; }   /* decorative colour/multiply tints */
.sec-05-services__tile:hover .sec-05-services__photo,
.sec-05-services__tile:focus-visible .sec-05-services__photo,
.sec-09-team__card:hover .sec-09-team__photo,
.sec-09-team__card:focus-within .sec-09-team__photo,
.sec-40-about-team__card:hover .sec-40-about-team__photo,
.sec-40-about-team__card:focus-within .sec-40-about-team__photo,
.sec-40-about-gallery__slide:hover .sec-40-about-gallery__img,
.sec-40-about-gallery__slide:focus-within .sec-40-about-gallery__img,
.sec-60-svc-grid__row:hover .sec-60-svc-grid__photo,
.sec-60-svc-grid__row:focus-within .sec-60-svc-grid__photo,
.sec-40-about-story__photo-wrap:hover .sec-40-about-story__photo {
  filter: none !important;
  transform: scale(1.04);
}
.sec-09-team__photo-wrap,
.sec-09-team__ring,
.sec-40-about-team__photo-wrap,
.sec-40-about-team__ring,
.sec-40-about-story__photo-wrap,
.sec-40-about-story__ring { border-radius: var(--radius-card); }
/* Body-map model: drop the greyscale + accent duotone, show the model as rendered */
.sec-04-conditions .bm-model img,
.sec-50-wwt-bodymap .sec-50-wwt-bodymap__model img { filter: none; }
.sec-04-conditions .bm-model__tint,
.sec-50-wwt-bodymap__tint { display: none; }
@media (prefers-reduced-motion: reduce) {
  .sec-02-hero__figure-img, .sec-05-services__photo, .sec-09-team__photo, .sec-40-about-team__photo,
  .sec-40-about-gallery__img, .sec-60-svc-grid__photo, .sec-40-about-story__photo { transition: none; transform: none !important; }
}
html.reduced-motion .sec-02-hero__figure-img, html.reduced-motion .sec-05-services__photo,
html.reduced-motion .sec-09-team__photo, html.reduced-motion .sec-40-about-team__photo,
html.reduced-motion .sec-40-about-gallery__img, html.reduced-motion .sec-60-svc-grid__photo,
html.reduced-motion .sec-40-about-story__photo { transition: none; transform: none !important; }

/* ---------- 5. Timelines: dots sit on the track ---------- */
@media (min-width: 821px) {
  /* Track is at the timeline top; the stops start 2.75rem lower (padding-top). */
  .sec-19-firstvisit__dot { top: -2.75rem; }
}
@media (max-width: 820px) {
  /* Centre each dot on the vertical rail (rail centre = .35rem + 1px from the timeline edge). */
  .sec-19-firstvisit__dot { left: calc(-1.75rem + 0.35rem + 1px); transform: translate(-50%, -50%); }
}

/* ---------- 9. Spotlight: clip the cursor glow to its own section ---------- */
.cursor-glow-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* ---------- 7. Chapter spine: only visible inside a numbered section ---------- */
.chapter-spine { transition: opacity 300ms var(--ease-out); }
.chapter-spine.is-hidden { opacity: 0; }

/* ---------- 8. Back to top ---------- */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 120;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--text-on-ink);
  border: 1px solid hsl(0 0% 100% / 0.18);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 0s linear 250ms, background-color 200ms;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 0s, background-color 200ms;
}
.back-to-top:hover { background: var(--accent); }
.back-to-top:focus-visible { outline-color: hsl(var(--accent-h) 60% 62%); }
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 820px) {
  .back-to-top { bottom: calc(64px + 1rem); } /* clear the sticky Call | Book bar */
}
html.reduced-motion .back-to-top { transition: none; }

/* ---------- 12. Home services: equal heights within each row ---------- */
@media (min-width: 900px) {
  .sec-05-services__tile--massage { margin-top: 0; align-self: stretch; }
  .sec-05-services__tile { align-self: stretch; }
}

/* ---------- 13. Second section padding (home trust strip) ---------- */
.sec-03-trust { padding-block: max(60px, clamp(2.25rem, 1.6rem + 2vw, 3.25rem)); }
@media (max-width: 820px) { .sec-03-trust { padding-block: 60px; } }

/* ---------- 14. Testimonials: 4-line clamp + Read More ---------- */
.tm-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.tm-clamp.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
.tm-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  font-style: normal;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Carousel quotes sit on the dark section; wall cards are light (#fbfbf9) and keep the AA accent. */
.sec-10-testimonials__slide .tm-toggle { color: hsl(var(--accent-h) 60% 62%); }

/* ---------- 13b. Plain-content pages (FAQ, Careers, Privacy, Paperwork, Refer, Parkinson's):
   .sec-23-prose had no section padding at all. Use the site's section rhythm (>= 72px). ---------- */
.sec-23-prose { padding-block: var(--sp-section); }

/* ---------- Home hero: booking form replaces the figure (desktop right column,
   stacked under the hero copy on tablet/mobile). The wrapper carries
   .sec-12-booking + #booking so the existing form JS/CSS and every #booking link work. ---------- */
.sec-02-hero__booking {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 34rem;
  margin-top: clamp(2.25rem, 6vw, 3rem);
  padding: 0;
  background: none;
  overflow: visible;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
@media (min-width: 1024px) {
  .sec-02-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 1fr);
  }
  .sec-02-hero__booking {
    margin-top: 0;
    justify-self: end;
    align-self: center;
  }
}

/* ---------- Buttons: FastBack's live-site button green #80BC42 with dark text
   (white on #80BC42 is 2.29:1 and fails AA; ink text is 7.67:1, hover 6.12:1).
   Scoped to buttons only: --accent stays the darker AA green for text links on light. ---------- */
:root { --btn-green: #80BC42; --btn-green-hover: #6FA836; --btn-green-ink: #0e1b21; }
.btn--solid,
.sec-17-mobilebar__book {
  background: var(--btn-green);
  color: var(--btn-green-ink);
  box-shadow: 0 8px 24px hsl(89 48% 50% / 0.35);
}
.btn--solid:hover,
.btn--solid:focus-visible,
.sec-17-mobilebar__book:hover {
  background: var(--btn-green-hover);
  color: var(--btn-green-ink);
  box-shadow: 0 12px 32px hsl(89 48% 50% / 0.4);
}
.btn--solid svg, .sec-17-mobilebar__book svg { color: currentColor; }

/* ---------- Home hero form: no green glow (panel halo + button glow), keep a neutral lift ---------- */
.sec-02-hero__booking .sec-12-booking__panel { box-shadow: var(--shadow-lift); }
.sec-02-hero__booking .btn--solid,
.sec-02-hero__booking .btn--solid:hover,
.sec-02-hero__booking .btn--solid:focus-visible { box-shadow: none; }
