/* =========================================================
   The Sports Doc: main stylesheet
   Mobile first: base styles are for phones; wider screens
   are added with min-width media queries further down.
   ========================================================= */

/* ---------- Design tokens (change colours and fonts here only) ---------- */
:root {
  --color-white: #FFFFFF;
  --color-off-white: #F3F3F2;
  --color-text: #111111;
  --color-text-secondary: #4A4A4A;   /* Steel Grey */
  --color-accent: #D61515;           /* Primary Red: buttons and small accents only */
  --color-accent-dark: #B01010;      /* hover state for red buttons */
  --color-accent-text: #B01010;      /* small red text labels: stays readable over the 15% watermark */
  --color-border: #DCDCDA;

  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --header-height: 64px;
  --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;   /* 17px */
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

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

:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 3px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--color-text);
  color: var(--color-white);
  padding: 12px 16px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn-secondary:hover { background: var(--color-off-white); }

.btn-small {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.9375rem;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
  flex-wrap: wrap;
}

.logo {
  flex-shrink: 0;   /* never squeeze the logo; the menu adapts instead */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

/* Small red square: a quiet brand accent until the real logo is supplied */
.logo-mark {
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 2px;
}

.logo-text {
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Brand name in running text: always shown as bold capitals (THE SPORTS DOC).
   Written normally in the HTML so screen readers say it as words. */
.brand {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-long { display: none; }

/* Phone number in the header: shown on wide screens only (the Book button calls on phones) */
.header-phone {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 4px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--color-text-secondary); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  cursor: pointer;
}

/* Three-line menu icon drawn in CSS; turns into an X when open */
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu: a full-width panel under the header.
   Without JavaScript it simply stays open, so links are always reachable. */
.site-nav {
  order: 3;
  width: 100%;
  padding-bottom: 20px;
}
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
html:not(.js) .nav-toggle { display: none; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.nav-list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-list a:hover { color: var(--color-text-secondary); }

.nav-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 40px 48px;
}

.hero-inner {
  display: grid;
  gap: 32px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Short red line before the eyebrow: a small accent */
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}

.hero h1 {
  font-size: clamp(2rem, 7.5vw, 3.25rem);
  max-width: 18ch;
}

.hero-lead {
  margin-top: 16px;
  max-width: 44ch;
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

/* Buttons: Book full width on phones, WhatsApp and Practo side by side below */
.hero-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}
.hero-cta .btn-wide { grid-column: 1 / -1; }

.hero-media { margin: 0; }

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(17, 17, 17, 0.04) 14px 15px),
    var(--color-off-white);
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  text-align: center;
  padding: 16px;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--color-off-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-list {
  list-style: none;
  margin-block: 0;
  display: grid;
  gap: 0;
  padding-block: 8px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 16px;
}
.trust-item + .trust-item { border-top: 1px solid var(--color-border); }

.trust-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.trust-text {
  margin-top: 2px;
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* ---------- Shared section layout ---------- */
.section { padding-block: 56px; }

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
}
/* Short red line under section headings: a small accent */
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 14px;
  background: var(--color-accent);
}

.section-lead {
  margin-top: 14px;
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

/* ---------- What brings you in? (body-area tiles) ---------- */
.area-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.area-grid > li { display: flex; }

.area-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px 12px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.area-tile:hover { border-color: var(--color-text); }

/* Empty illustration slot until the line drawings arrive */
.area-art {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(17, 17, 17, 0.04) 10px 11px),
    var(--color-off-white);
}

.area-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  padding-right: 24px;
}

.area-arrow {
  position: absolute;
  right: 12px;
  bottom: 14px;
  color: var(--color-accent);
  font-size: 1.125rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.area-tile:hover .area-arrow { transform: translateX(3px); }

/* "Not sure?" tile: no illustration, text sits at the top */
.area-tile-help {
  background: var(--color-off-white);
  padding: 16px 16px 44px;
}
.area-help-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
}
.area-help-text {
  margin-top: 6px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ---------- How we treat you (clinical pathway) ----------
   Phones: a vertical timeline. Desktop: a horizontal strip. */
.journey { background: var(--color-off-white); }

.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.journey-step {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 28px;
}
.journey-step:last-child { padding-bottom: 0; }

/* Thin line joining the numbered circles */
.journey-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.journey-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
}

.journey-label {
  color: var(--color-accent-text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.journey-title {
  margin-top: 2px;
  font-size: 1.25rem;
}

.journey-text {
  margin-top: 6px;
  color: var(--color-text-secondary);
}

.journey-more { margin-top: 32px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-accent);
}
.text-link:hover { color: var(--color-text-secondary); }

/* ---------- Treatments ---------- */
.treatment-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.treatment-grid > li { display: flex; }

.treatment-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.treatment-card:hover { border-color: var(--color-text); }

/* Line icon in a soft grey square */
.treatment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--color-off-white);
}
.treatment-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--color-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.treatment-name { font-size: 1.25rem; }

/* Small red label: "Our main treatment" / "Specialist treatment" */
.treatment-badge {
  margin-bottom: 6px;
  color: var(--color-accent-text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Exercise therapy: full-width featured card on a soft grey background */
.treatment-featured { grid-column: 1 / -1; }
.treatment-featured .treatment-card {
  background: var(--color-white);
  border-color: var(--color-border);
  border-top: 3px solid var(--color-accent);
}
.treatment-featured .treatment-card:hover { border-color: var(--color-text); }

/* Same size as the other cards, centred on its own row above them (owner, 15 Nov 2026) */
.treatment-featured { justify-content: center; }
.treatment-featured .treatment-card { width: 100%; }
@media (min-width: 768px) {
  .treatment-featured .treatment-card { width: calc((100% - 16px) / 2); }
}
@media (min-width: 1024px) {
  .treatment-featured .treatment-card { width: calc((100% - 40px) / 3); }
}
.treatment-body { flex-grow: 1; }

.treatment-text {
  margin-top: 8px;
  color: var(--color-text-secondary);
  flex-grow: 1;
}

.treatment-more {
  display: inline-flex;
  gap: 6px;
  margin-top: 18px;
  font-weight: 500;
}
.treatment-more span {
  color: var(--color-accent);
  transition: transform 0.15s ease;
}
.treatment-card:hover .treatment-more span { transform: translateX(3px); }

/* ---------- Meet the team ---------- */
.team { background: var(--color-off-white); }

.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}

.team-card {
  display: block;
  text-decoration: none;
}

/* Portrait slot until real photos arrive */
.team-photo {
  display: block;
  aspect-ratio: 4 / 5;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(17, 17, 17, 0.05) 12px 13px),
    #E6E6E4;
}

.team-name {
  font-size: 1.0625rem;
  line-height: 1.3;
}
.team-card:hover .team-name {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 4px;
}

.team-role {
  margin-top: 4px;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.team-quals {
  margin-top: 2px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

/* ---------- Patient stories ---------- */
.rating-card {
  display: grid;
  gap: 6px;
  max-width: 480px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.rating-score {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rating-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}
/* Stars in text colour, not red: red is for buttons and small accents */
.rating-stars {
  font-size: 1.25rem;
  letter-spacing: 2px;
}
.rating-text { color: var(--color-text-secondary); }

.story-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.story-grid:empty { display: none; }

.story-card {
  padding: 24px;
  background: var(--color-off-white);
  border-radius: var(--radius);
}
.story-quote { margin: 0; font-size: 1.0625rem; }
.story-name { margin-top: 16px; font-weight: 600; }
.story-meta { color: var(--color-text-secondary); font-size: 0.9375rem; }

/* ---------- Locations ---------- */
.locations { background: var(--color-off-white); }

.location-grid {
  display: grid;
  gap: 16px;
}

.location-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.location-name { font-size: 1.5rem; }

.location-note {
  margin-top: 10px;
  color: var(--color-text-secondary);
}

.location-details {
  display: grid;
  gap: 16px;
  align-content: start;
  margin: 20px 0 0;
  flex-grow: 1;
}
.location-details dt {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.location-details dd { margin: 2px 0 0; }
.location-details dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

.location-landmark {
  display: block;
  margin-top: 2px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* ---------- Teams and institutions (logos) ---------- */
.org-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.org-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

/* Logos keep their original colours; shown at a fixed height so they look even */
.org-logo {
  height: 72px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
}

.org-name {
  font-family: var(--font-heading);
  font-weight: 600;
}
.org-role {
  margin-top: 2px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.trust-link {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  padding-block: 12px;
}

/* ---------- Get fit (Athlete Factory) ----------
   The one dark band on the page, to mark a separate wing. */
.getfit {
  background: var(--color-text);
  color: var(--color-white);
}
.getfit .section-lead,
.getfit .getfit-text { color: #CFCFCD; }
.eyebrow-light { color: #CFCFCD; }

.getfit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.getfit-item {
  padding: 20px;
  border: 1px solid #3A3A3A;
  border-radius: var(--radius);
}

.getfit-name { font-size: 1.1875rem; }

.getfit-text { margin-top: 6px; }

.getfit-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}

.btn-light {
  background: var(--color-white);
  color: var(--color-text);
}
.btn-light:hover { background: var(--color-off-white); }

.text-link-light { color: var(--color-white); }
.text-link-light:hover { color: #CFCFCD; }

.getfit :focus-visible { outline-color: var(--color-white); }

/* ---------- Athlete Factory page: programme cards ---------- */
.af-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.af-item {
  padding: 24px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  border-radius: var(--radius);
}
.af-name { font-size: 1.25rem; }
.af-text {
  margin-top: 8px;
  color: var(--color-text-secondary);
}

/* ---------- FAQ (native <details>, no JavaScript needed) ---------- */
.faq-list { border-top: 1px solid var(--color-border); }

.faq-item { border-bottom: 1px solid var(--color-border); }

.faq-q {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 20px 44px 20px 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }

/* Plus sign that turns into a minus when open */
.faq-q::before,
.faq-q::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--color-accent);
  transition: transform 0.2s ease;
}
.faq-q::after { transform: rotate(90deg); }
.faq-item[open] .faq-q::after { transform: rotate(0deg); }

.faq-a {
  padding: 0 0 24px;
  max-width: 68ch;
  color: var(--color-text-secondary);
}
.faq-a p + p { margin-top: 10px; }

/* ---------- Final call to action ---------- */
.final-cta {
  background: var(--color-off-white);
  border-top: 1px solid var(--color-border);
}
.final-cta-title { font-size: clamp(1.75rem, 5.5vw, 2.5rem); }
.final-cta .section-lead { max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 56px 32px;
  background: var(--color-text);
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  gap: 36px;
}

.logo-light { color: var(--color-white); }

.footer-title {
  margin-bottom: 12px;
  color: #CFCFCD;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-text {
  margin-top: 12px;
  color: #E4E4E2;
  font-size: 1rem;
}
.footer-brand .footer-text { max-width: 32ch; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a,
.footer-legal a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  min-width: 44px;
  color: var(--color-white);
  text-decoration: none;
}
.footer-links a:hover,
.footer-legal a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 4px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #3A3A3A;
}

.footer-disclaimer {
  max-width: 72ch;
  color: #CFCFCD;
  font-size: 0.9375rem;
}

.footer-legal {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
}

.footer-copy {
  margin-top: 12px;
  color: #CFCFCD;
  font-size: 0.9375rem;
}

.site-footer :focus-visible { outline-color: var(--color-white); }

/* ---------- Condition pages ---------- */
.breadcrumb ol {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin-inline: 8px;
  color: var(--color-border);
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--color-text-secondary);
}

.problem-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.problem-card {
  padding: 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.problem-name { font-size: 1.125rem; }
.problem-text {
  margin-top: 6px;
  color: var(--color-text-secondary);
}

.symptoms { margin-top: 56px; }
.symptoms .section-title { margin-bottom: 20px; font-size: clamp(1.5rem, 4.5vw, 2rem); }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
}
/* Small red tick before each symptom */
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

.section-note {
  margin-top: 24px;
  max-width: 68ch;
  color: var(--color-text-secondary);
}

.subhead {
  margin: 32px 0 14px;
  font-size: 1.25rem;
}

.treat-feature {
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
}
.treat-feature p:not(.treatment-badge) {
  margin-top: 8px;
  max-width: 68ch;
  color: var(--color-text-secondary);
}

.treat-list {
  margin: 0;
  padding-left: 1.25em;
  display: grid;
  gap: 8px;
}
.treat-list li::marker { color: var(--color-accent); }
.treat-list a {
  font-weight: 500;
  padding-block: 11px;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

/* ---------- Treatment pages ---------- */
/* Session steps have no title, so the text sits level with the number */
.session-text { margin-top: 8px; color: var(--color-text); }

/* Safety box: calm grey panel (red is kept for urgent warnings) */
.safety-box {
  padding: 24px;
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-text-secondary);
  border-radius: var(--radius);
}
.safety-box .urgent-title { margin-bottom: 8px; }
.safety-box ul { margin: 12px 0 0; padding-left: 1.25em; display: grid; gap: 6px; }

/* "Conditions it's used for": simple pill links */
.used-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.used-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
}
.used-link:hover { border-color: var(--color-text); }

.other-list { max-width: 72ch; }

/* ---------- Team profile pages ---------- */
.profile-hero {
  display: grid;
  gap: 28px;
  align-items: start;
}
.profile-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(17, 17, 17, 0.05) 12px 13px),
    #E6E6E4;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  /* Phones: name and booking buttons first, smaller portrait after */
  order: 2;
  max-width: 220px;
}
.profile-name { font-size: clamp(2rem, 6vw, 3rem); }
.profile-quals {
  margin-top: 12px;
  max-width: 52ch;
  font-size: 1.0625rem;
  font-weight: 500;
}
.profile-reg {
  margin-top: 6px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}
.profile-facts { margin-bottom: 20px; }
.profile-bio { max-width: 68ch; }
.profile-details {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}
.profile-details dt {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.profile-details dd { margin: 2px 0 0; }
/* Visible placeholders, to be replaced before launch */
.placeholder-text { color: var(--color-text-secondary); font-style: italic; }

@media (min-width: 768px) {
  .profile-hero { grid-template-columns: 280px 1fr; gap: 48px; }
  .profile-photo { order: 0; max-width: 320px; }
}

/* ---------- Book, Return to Sport and articles ---------- */
/* Return to Sport: the 4 test cards sit 2 by 2 on wide screens */
.tests-grid { margin-bottom: 8px; }
/* Book: phone numbers as headings */
.book-card .treatment-name { font-size: 1.375rem; }
/* Book: fees and clinic choice side by side on wide screens */
.book-two { display: grid; gap: 48px; }
/* Articles reuse the legal page layout */
.article h2 { font-size: 1.5rem; }
.article-urgent { margin-top: 40px; }
.article-urgent h2 { margin-top: 0; }
.article-disclaimer { margin-top: 32px; }
/* Breadcrumb links keep their own style inside articles and legal pages */
.legal .breadcrumb li + li { margin-top: 0; }
.legal-inner .breadcrumb a:not(.btn) { padding-block: 0; text-decoration-color: currentColor; text-underline-offset: auto; }

/* ---------- Logo and photos ---------- */
.logo-img { height: 36px; width: auto; flex-shrink: 0; }

/* Real photos in the main (hero) area: portrait 4:5 */
.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Real portraits replacing the grey slots */
img.team-photo { width: 100%; height: auto; object-fit: cover; }
.profile-photo-img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  order: 2;
}
@media (min-width: 768px) {
  .profile-photo-img { order: 0; max-width: 320px; }
}

/* Illustrations: homepage tiles and condition-page heroes (white background, never cropped) */
img.area-art {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--color-white);
}
.hero-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-inline: auto;
  object-fit: contain;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* Portrait not yet supplied: neutral initials badge instead of an empty box */
.photo-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1A1A1A;
  background-image: linear-gradient(160deg, #2A2A2A, #111111);
  color: #FFFFFF;
}
.photo-initials span {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

/* Wide team photo (Team page and homepage team section) */
.team-photo-wide { margin: 32px 0 0; }
.team .team-photo-wide { margin: 0 0 32px; }
.team-photo-wide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Landscape photo in the hero (homepage team photo): keep the whole group visible */
.hero-photo.hero-photo-wide { aspect-ratio: 3 / 2; object-position: 50% 40%; }

/* Two photos side by side (e.g. inside the clinic) */
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.photo-row img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Pop-out illustrations on condition and treatment cards (owner, 15 Nov 2026) ----------
   On hover or keyboard focus, the card's illustration springs out in front, larger than the card,
   breaking past its top-right corner. Mouse and trackpad only; hidden on touch screens. */
.pop-art { display: none; }
@media (hover: hover) {
  .treatment-card:has(.pop-art),
  .area-tile:has(.pop-art) { position: relative; overflow: visible; }
  .treatment-card:has(.pop-art) > *:not(.pop-art),
  .area-tile:has(.pop-art) > *:not(.pop-art):not(.area-arrow) { position: relative; z-index: 1; }
  .pop-art {
    display: block;
    position: absolute;
    top: -196px;
    right: -40px;
    width: 220px;
    height: auto;
    z-index: 3;
    opacity: 0;
    transform: scale(0.5) rotate(-8deg);
    transform-origin: 50% 50%;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 24px 50px rgba(17, 17, 17, 0.24), 0 0 0 6px var(--color-white);
    transition: opacity 0.25s ease, transform 0.5s var(--ease-pop, ease-out);
    pointer-events: none;
  }
  .treatment-card:hover .pop-art,
  .treatment-card:focus-visible .pop-art,
  .area-tile:hover .pop-art,
  .area-tile:focus-visible .pop-art {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
  /* Condition cards have no icon row, so the circle sits higher; titles keep clear of it */
  .cond-card .pop-art { top: -200px; }
  /* Homepage body-area tiles: circle over the tile's top-right; the tile's own drawing fades back */
  .area-tile .pop-art { top: -170px; right: -30px; width: 200px; }
  .area-tile img.area-art { transition: opacity 0.3s ease; }
  .area-tile:hover img.area-art,
  .area-tile:focus-visible img.area-art { opacity: 0.25; }

  /* Hide the small line icon while the big illustration is showing */
  .treatment-card:has(.pop-art) .treatment-icon { transition: opacity 0.2s ease, transform 0.4s var(--ease-pop, ease-out); }
  .treatment-card:hover:has(.pop-art) .treatment-icon { opacity: 0; }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .pop-art { transition: none; transform: none; }
}

/* ---------- Google Maps card (click to load) ---------- */
.google-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-off-white);
  overflow: hidden;
}
.google-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.google-embed-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(17, 17, 17, 0.04) 14px 15px),
    var(--color-off-white);
}
.google-embed-text { color: var(--color-text-secondary); max-width: 44ch; }
@media (max-width: 767px) { .google-embed { aspect-ratio: 4 / 5; } }

/* ---------- Gallery page ---------- */
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.gallery-item { margin: 0; }
.gallery-item a { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out, ease-out);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery-item a:hover img, .gallery-item a:focus-visible img { transform: scale(1.06); }
}
.gallery-item figcaption { margin-top: 8px; color: var(--color-text-secondary); font-size: 0.9375rem; }
.gallery-dialog {
  max-width: min(92vw, 960px);
  padding: 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-white);
}
.gallery-dialog::backdrop { background: rgba(17, 17, 17, 0.8); }
.gallery-dialog img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: var(--radius); }
.gallery-dialog figure { margin: 0; }
.gallery-dialog figcaption { margin-top: 10px; color: var(--color-text-secondary); }
.gallery-close { float: right; margin-bottom: 10px; }

/* Conditions overview: the "Not sure?" card matches the homepage help tile */
.hub-help { background: var(--color-off-white); }

/* Vertical numbered list (assessment steps) at every width */
.steps-vertical { max-width: 720px; }

.section-tight { padding-block: 48px; }
/* When it follows a white section, drop the doubled gap above it */
.section:not(.journey):not(.team):not(.locations) + .section-tight { padding-top: 0; }

/* "When to see a doctor urgently": calm but unmissable */
.urgent-box {
  padding: 24px;
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
}
.urgent-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.375rem;
}
.urgent-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.urgent-box ul {
  margin: 12px 0;
  padding-left: 1.25em;
  display: grid;
  gap: 6px;
}
.urgent-box li::marker { color: var(--color-accent); }
/* Sub-labels inside the urgent box, e.g. "With back pain:" */
.urgent-group {
  margin-top: 16px;
  font-weight: 600;
}
.urgent-box .btn { margin-top: 8px; }

/* ---------- Legal pages ---------- */
.legal-inner { max-width: 760px; }

.legal-title { font-size: clamp(2rem, 7vw, 3rem); }

.legal-updated {
  margin-top: 12px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.legal-lead {
  margin-top: 20px;
  font-size: 1.125rem;
}

.legal h2 {
  margin-top: 40px;
  font-size: 1.375rem;
}
.legal h2 + p,
.legal h2 + ul { margin-top: 10px; }
.legal p + p,
.legal p + ul,
.legal ul + p { margin-top: 12px; }

.legal ul { padding-left: 1.25em; margin-bottom: 0; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--color-accent); }

.legal-inner a:not(.btn) {
  /* Taller tap area for links inside text, without changing line spacing */
  padding-block: 11px;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}
/* Short but important links (e.g. the emergency number) get a wider tap area too */
.tap-wide {
  display: inline-block;
  min-width: 44px;
  padding-block: 10px !important;
  text-align: center;
}

/* ---------- Measured motion (playbook: subtle fades only) ---------- */
/* Header: soft shadow once the page is scrolled */
.site-header { transition: box-shadow 0.25s ease; }
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(17, 17, 17, 0.07); }

/* Fade-in on scroll. Classes are added by JavaScript only, so without it everything is simply visible. */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* FAQ answers animate their height; hide the overflow while they do */
.faq-a { overflow: hidden; }

/* ---------- Pop-out hover effects (owner's choice, 9 Nov 2026) ----------
   Mouse and trackpad only, and only when the device hasn't asked for reduced motion.
   Keyboard users get the same effect via :focus-visible. */
:root {
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);   /* slight overshoot, like a spring */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-pop: 0 24px 48px rgba(17, 17, 17, 0.18);
}
/* Scaled cards must not cause sideways scrolling at the screen edge */
html, body { overflow-x: clip; }

/* Touch screens: a quick press feedback on tap */
.btn:active,
.treatment-card:active,
.area-tile:active,
.team-card:active,
.used-link:active { transform: scale(0.97); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* Clickable cards: grow, deeper shadow, come to the front */
  .treatment-card,
  .area-tile,
  .used-link,
  .location-card,
  .org-item,
  .problem-card,
  .getfit-item,
  .af-item {
    position: relative;
    transition: transform 0.35s var(--ease-pop), box-shadow 0.35s var(--ease-out), border-color 0.2s ease;
  }
  .treatment-card:hover, .treatment-card:focus-visible,
  .area-tile:hover, .area-tile:focus-visible {
    transform: translateY(-8px) scale(1.06);
    box-shadow: var(--shadow-pop);
    border-color: var(--color-text);
    z-index: 2;
  }
  .used-link:hover, .used-link:focus-visible {
    transform: translateY(-3px) scale(1.06);
    border-color: var(--color-accent);
    box-shadow: 0 8px 18px rgba(214, 21, 21, 0.15);
  }
  /* Information cards (not links): a gentler pop */
  .location-card:hover, .org-item:hover, .problem-card:hover,
  .getfit-item:hover, .af-item:hover {
    transform: translateY(-6px) scale(1.035);
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.12);
    z-index: 2;
  }
  .getfit-item:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); border-color: #5A5A5A; }

  /* Icons and illustrations inside cards */
  .treatment-icon, .area-art, .org-logo { transition: transform 0.4s var(--ease-pop); }
  .treatment-card:hover .treatment-icon { transform: scale(1.12) rotate(-4deg); }
  .area-tile:hover .area-art { transform: scale(1.05); }
  .org-item:hover .org-logo { transform: scale(1.08); }

  /* Arrows slide further */
  .treatment-more span, .area-arrow, .text-link span { transition: transform 0.3s var(--ease-pop); }
  .treatment-card:hover .treatment-more span,
  .area-tile:hover .area-arrow,
  .text-link:hover span { transform: translateX(6px); }

  /* Team cards: the photo pops and zooms */
  .team-photo {
    transition: transform 0.35s var(--ease-pop), box-shadow 0.35s var(--ease-out);
  }
  .team-card:hover .team-photo, .team-card:focus-visible .team-photo {
    transform: translateY(-8px) scale(1.06);
    box-shadow: var(--shadow-pop);
  }

  /* Photos zoom gently inside their frames */
  .hero-media, .team-photo-wide, .photo-row { overflow: hidden; border-radius: var(--radius); }
  .photo-row { overflow: visible; }
  .photo-row img, .hero-photo, .team-photo-wide img { transition: transform 0.7s var(--ease-out); }
  .hero-media:hover .hero-photo,
  .team-photo-wide:hover img,
  .photo-row img:hover { transform: scale(1.08); }

  /* Buttons lift; red buttons glow softly */
  .btn { transition: transform 0.25s var(--ease-pop), box-shadow 0.25s ease, background-color 0.15s ease, border-color 0.15s ease; }
  .btn:hover, .btn:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(17, 17, 17, 0.12); }
  .btn-primary:hover, .btn-primary:focus-visible { box-shadow: 0 10px 26px rgba(214, 21, 21, 0.35); }
  .btn:active { transform: translateY(0) scale(0.97); }

  /* Menu and footer links: a red underline slides in */
  .nav-list a, .footer-links a, .footer-legal a { position: relative; }
  .nav-list a::after, .footer-links a::after, .footer-legal a::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 6px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
  }
  .footer-links a::after, .footer-legal a::after { left: 0; right: 0; bottom: 8px; }
  .nav-list a:hover::after, .nav-list a:focus-visible::after,
  .footer-links a:hover::after, .footer-legal a:hover::after { transform: scaleX(1); }
  .footer-links a:hover, .footer-legal a:hover { text-decoration: none; }

  /* Logo and phone number */
  .logo-img { transition: transform 0.4s var(--ease-pop); }
  .logo:hover .logo-img { transform: scale(1.12) rotate(-6deg); }
  .header-phone .icon { transition: transform 0.4s var(--ease-pop); }
  .header-phone:hover .icon { transform: rotate(-12deg) scale(1.15); }
}


/* ---------- Title Case headings (owner, 9 Nov 2026) ----------
   Headings are written in normal sentence case in the HTML; CSS shows them with Each Word Capitalised. */
h1, h2, h3, .trust-title, .area-name, .area-help-title, .org-name, .used-link { text-transform: capitalize; }

/* ---------- Logo watermark (owner, 9 Nov 2026) ----------
   Fixed in the centre of the screen at very low opacity. It shows on the plain section backgrounds;
   page content sits above it, and cards, photos and the footer cover it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url("../images/logo/logo-watermark.webp") center 55% / min(88vw, 720px) no-repeat;
  /* 15% at the owner's request (10 Nov 2026). Small red text labels use --color-accent-text so they stay ≥ 4.5:1 over it */
  opacity: 0.15;
}
main .container,
main > section > .container { position: relative; z-index: 2; }
.site-header { z-index: 50; }
.site-footer { position: relative; z-index: 3; }

/* ---------- Enhanced motion (owner, 9 Nov 2026) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Page entrance: the top of every page arrives in a quick sequence as it loads */
  @keyframes rise-in {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes photo-in {
    from { opacity: 0; transform: scale(1.06); clip-path: inset(8% 8% 8% 8% round 12px); }
    to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 4px); }
  }
  .js .hero .breadcrumb,
  .js .hero .eyebrow,
  .js .hero h1,
  .js .hero .hero-lead,
  .js .hero .hero-cta,
  .js .hero .legal-updated { animation: rise-in 0.8s var(--ease-out) both; }
  .js .hero .eyebrow { animation-delay: 0.05s; }
  .js .hero h1 { animation-delay: 0.12s; }
  .js .hero .hero-lead { animation-delay: 0.24s; }
  .js .hero .hero-cta { animation-delay: 0.36s; }
  .js .hero .hero-media,
  .js .profile-photo,
  .js .hero .team-photo-wide { animation: photo-in 1.1s var(--ease-out) 0.2s both; }

  /* Section underlines draw themselves in when the heading appears */
  .reveal .section-title::after { width: 0; transition: width 0.9s var(--ease-out) 0.35s; }
  .reveal.is-visible .section-title::after { width: 40px; }

  /* Photos open with a "curtain" reveal instead of a fade */
  .team-photo-wide.reveal,
  .photo-row img.reveal {
    opacity: 1;
    transition: clip-path 1.1s var(--ease-out), transform 0.7s var(--ease-out);
  }
  /* Hidden state only, so the hover zoom still works once the photo has appeared */
  .team-photo-wide.reveal:not(.is-visible),
  .photo-row img.reveal:not(.is-visible) {
    transform: none;
    clip-path: inset(14% 14% 14% 14% round 12px);
  }
  .team-photo-wide.reveal.is-visible,
  .photo-row img.reveal.is-visible { clip-path: inset(0 0 0 0 round 4px); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* 3D tilt (set by JavaScript) follows the mouse; this keeps the movement smooth */
  .is-tilting { transition: transform 0.12s ease-out, box-shadow 0.35s var(--ease-out), border-color 0.2s ease !important; }
  /* Soft red glow that follows the pointer across a card */
  .treatment-card::after,
  .area-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(214, 21, 21, 0.10), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .treatment-card:hover::after,
  .area-tile:hover::after { opacity: 1; }

  /* Red buttons: a light sweeps across on hover */
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 50%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease-out);
    pointer-events: none;
  }
  .btn-primary:hover::before { left: 120%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* =========================================================
   Larger phones and small tablets
   ========================================================= */
@media (min-width: 480px) {
  .label-short { display: none; }
  .label-long { display: inline; }
}

/* =========================================================
   Tablets
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 32px; }

  .hero { padding-block: 56px 64px; }

  .hero-cta {
    display: flex;
    flex-wrap: wrap;
  }

  /* Wider, shorter photo when it sits below the text */
  .photo-placeholder { aspect-ratio: 16 / 9; }

  .section { padding-block: 72px; }
  /* Tablets: keep the portrait photo a sensible size when it sits under the text */
  .hero-photo { max-width: 460px; }
  .photo-row { gap: 20px; max-width: 760px; }
  .area-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .getfit-list,
  .af-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .treatment-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-grid { grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
  .location-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .org-list { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .check-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .urgent-box { padding: 32px; }
  .org-logo { height: 80px; }
  .story-grid { grid-template-columns: repeat(3, 1fr); }
  .team-name { font-size: 1.125rem; }

  .trust-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
  .trust-item + .trust-item { border-top: 0; }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 1024px) {
  :root { --header-height: 76px; }

  .header-inner { flex-wrap: nowrap; gap: 24px; }
  /* Desktop: slightly smaller logo so the menu has room */
  .logo { gap: 8px; }
  .logo-img { height: 32px; }

  /* Menu is always visible on desktop; the toggle is hidden */
  .nav-toggle { display: none; }
  .js .site-nav,
  .site-nav {
    display: block;
    order: 0;
    width: auto;
    padding: 0;
    margin-left: auto;
  }
  .nav-list {
    display: flex;
    gap: 4px;
    border: 0;
  }
  .nav-list {
    gap: 0;
  }
  .nav-list a {
    padding: 12px 8px;
    border: 0;
    font-size: 0.9375rem;
    white-space: nowrap;
  }
  .nav-actions { display: none; }

  .hero { padding-block: 80px 88px; }

  .hero-inner {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 48px;
  }

  .hero h1 { font-size: clamp(2.5rem, 3.6vw, 3.25rem); }

  /* Back to a 4:3 photo beside the text */
  .photo-placeholder { aspect-ratio: 4 / 3; }
  .hero-photo { max-width: none; max-height: 600px; }

  .section { padding-block: 96px; }
  .treatment-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  .problem-grid.tests-grid { grid-template-columns: repeat(2, 1fr); }
  .book-two { grid-template-columns: 1fr 1fr; gap: 64px; }

  /* Assessment steps stay vertical; recovery phases run in 4 columns */
  .journey-steps.steps-vertical { grid-template-columns: 1fr; gap: 0; }
  .steps-vertical .journey-step { flex-direction: row; gap: 16px; padding-bottom: 28px; }
  .steps-vertical .journey-step:last-child { padding-bottom: 0; }
  .steps-vertical .journey-step:not(:last-child)::before {
    left: 19px; right: auto; top: 40px; bottom: 0; width: 2px; height: auto;
  }
  .journey-steps.phases-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 40px; }

  /* FAQ: heading on the left, questions on the right */
  .faq-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
  }

  .area-grid { gap: 20px; }
  .area-tile { padding: 14px 14px 18px; }

  /* Pathway becomes a horizontal strip, with the line running between circles */
  .journey-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
  .journey-step {
    flex-direction: column;
    gap: 18px;
    padding-bottom: 0;
  }
  .journey-step:not(:last-child)::before {
    left: 52px;
    right: -16px;
    top: 19px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
}

/* =========================================================
   Wide desktop
   ========================================================= */
@media (min-width: 1200px) {
  .header-phone { display: inline-flex; }
  /* With the phone number showing, tighten spacing so everything fits inside the page width */
  .header-inner { gap: 16px; }

  .nav-list a {
    padding-inline: 7px;
    font-size: 1rem;
  }

  .hero-inner { gap: 64px; }

  .trust-list {
    grid-template-columns: repeat(4, 1fr);
    padding-block: 16px;
  }
}
