/* ============================================================
   PHYSIO CLINIC — LAYOUT WIREFRAME
   Fonts: Source Serif 4 (display) / Inter (body)
   Palette: shared light wireframe greys, accent via --pop
   ============================================================ */

:root {
  --bg: #ededed;
  --surface: #e2e2e2;
  --surface-2: #dcdcdc;
  --line: #c6c6c6;
  --dash: #a8a8a8;
  --text: #333333;
  --muted: #777777;
  --faint: #9a9a9a;
  --accent: var(--pop);
  --accent-ink: var(--pop-ink);
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius: 8px;
  --header-h: 76px;
  --speed: .35s;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .section-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .005em;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

[hidden] { display: none !important; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; font-weight: 600; font-size: 14px;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

/* ============ IMAGE PLACEHOLDER BOXES ============ */
.img-ph {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px dashed var(--dash);
  color: var(--muted);
  font: 500 11px/1.5 ui-monospace, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

/* Logo placeholder: small bordered box labelled LOGO */
.logo-ph {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px dashed var(--dash);
  color: var(--muted);
  font: 500 8px/1 ui-monospace, monospace;
  letter-spacing: .1em;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--speed) ease, background var(--speed) ease,
              border-color var(--speed) ease, filter var(--speed) ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { filter: brightness(.88); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--faint);
}
.btn--ghost:hover { border-color: var(--text); transform: translateY(-1px); }
.btn--sm { padding: 11px 20px; font-size: 14px; }

/* ============ EYEBROW / SECTION HEADS ============ */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--muted);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px; background: var(--accent);
  border-radius: 2px;
  flex: none;
}

.section { padding: 104px 0; }
.section--tint { background: var(--surface); }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-title { font-size: clamp(30px, 3.8vw, 44px); }
.section-sub { color: var(--muted); margin: 16px 0 0; max-width: 56ch; }
.section-sub a { text-decoration: underline; text-underline-offset: 3px; }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.topbar__inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 40px; padding: 5px 0;
}
.topbar__item { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar__item svg { width: 13px; height: 13px; color: var(--text); flex: none; }
.topbar__item a { text-decoration: none; font-weight: 600; color: var(--text); }
.topbar__item--note { margin-left: auto; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(237, 237, 237, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--speed) ease;
}
.header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.header__inner {
  display: flex; align-items: center; gap: 32px;
  height: var(--header-h);
  transition: height var(--speed) ease;
}
.header.is-scrolled .header__inner { height: 62px; }

.logo { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.logo__mark { width: 44px; height: 30px; border-radius: 3px; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 600; font-size: 21px; letter-spacing: .01em;
  display: flex; flex-direction: column; line-height: 1.1;
}
.logo__text span {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav__link {
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 13px;
  position: relative;
  transition: color var(--speed) ease;
}
.nav__link::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 5px;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--speed) ease;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__book { white-space: nowrap; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  transition: border-color var(--speed) ease;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--speed) ease, opacity var(--speed) ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ MOBILE MENU ============ */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--header-h) + 28px) 24px 28px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px);
  opacity: 0; visibility: hidden;
  transition: transform var(--speed) ease, opacity var(--speed) ease,
              visibility 0s linear var(--speed);
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1; visibility: visible;
  transition: transform var(--speed) ease, opacity var(--speed) ease;
}
.mobile-menu__link {
  display: block;
  padding: 13px 4px;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color var(--speed) ease, padding-left var(--speed) ease;
}
.mobile-menu__link:hover { color: var(--muted); padding-left: 10px; }
.mobile-menu__book { margin-top: 20px; }
.mobile-menu__meta { margin-top: 16px; font-size: 13px; color: var(--muted); }
.mobile-menu__meta a { font-weight: 600; text-decoration: none; }

/* ============ HERO ============ */
.hero { padding: 96px 0 110px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
}
.hero__title { font-size: clamp(38px, 5vw, 60px); font-weight: 600; }
.hero__lede {
  margin-top: 22px;
  font-size: 17.5px;
  color: var(--muted);
  max-width: 54ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__points {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 38px;
}
.hero__points li {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.hero__points li::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.hero__art { aspect-ratio: 4 / 3.1; border-radius: var(--radius); }

/* ============ CONDITIONS GRID ============ */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.condition-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: border-color var(--speed) ease, transform var(--speed) ease,
              background var(--speed) ease;
}
.condition-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--bg);
}
.condition-card h3 {
  font-size: 19px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.condition-card h3::after {
  content: '';
  position: absolute; left: 0; bottom: -1px;
  width: 34px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--speed) ease;
}
.condition-card:hover h3::after { width: 56px; }
.condition-card p { font-size: 14.5px; color: var(--muted); }
.conditions-note { margin-top: 32px; font-size: 14.5px; color: var(--muted); }
.conditions-note a { font-weight: 600; color: var(--text); }

/* ============ FIRST VISIT STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 38px;
  position: relative;
}
.step__num {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  margin-bottom: 22px;
}
.step h3 { font-size: 21px; margin-bottom: 12px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--speed) ease, transform var(--speed) ease;
}
.team-card:hover { border-color: var(--faint); transform: translateY(-3px); }
.team-card__photo { aspect-ratio: 4 / 3.4; border: none; border-bottom: 1px dashed var(--dash); }
.team-card__body { padding: 24px 26px 30px; }
.team-card__body h3 { font-size: 21px; }
.team-card__role {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted);
  margin: 6px 0 14px;
}
.team-card__body > p:last-child { font-size: 14.5px; color: var(--muted); }

/* ============ FEES ============ */
.fees-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 56px;
  align-items: start;
}
.fees-tablewrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 30px 26px;
}
.fees-table { width: 100%; border-collapse: collapse; }
.fees-table th {
  text-align: left;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted);
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--line);
}
.fees-table td {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 15px;
}
.fees-table tbody tr:last-child td { border-bottom: none; }
.fees-table td strong { font-weight: 600; display: inline; }
.fees-table td span:not(.pill) { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.fees-table__price { text-align: right; font-weight: 600; white-space: nowrap; }
.fees-table th.fees-table__price,
.fees-table td.fees-table__price { text-align: right; padding-left: 24px; }
.pill {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: 999px;
  vertical-align: 2px;
  margin-left: 6px;
}
.fees-note { margin-top: 22px; font-size: 13.5px; color: var(--muted); }

.funds__label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 18px;
}
.funds__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.funds__logo { aspect-ratio: 2.6 / 1; border-radius: 6px; }

/* ============ FAQ ============ */
.faq__inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.faq__intro { position: sticky; top: 110px; }
.faq__intro .section-title { font-size: clamp(28px, 3.2vw, 40px); }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--speed) ease;
}
.faq-item.is-open { border-color: var(--accent); }
.faq-item__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  transition: color var(--speed) ease;
}
.faq-item__q svg {
  width: 15px; height: 15px; flex: none;
  color: var(--muted);
  transition: transform var(--speed) ease, color var(--speed) ease;
}
.faq-item.is-open .faq-item__q svg { transform: rotate(45deg); color: var(--accent); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s ease;
}
.faq-item__a p {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 62ch;
}

/* ============ BOOKING ============ */
.book__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.book__points { margin-top: 30px; }
.book__points li {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--muted);
}
.book__points li::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex: none;
  margin-top: 8px;
}
.book__alt { margin-top: 34px; }
.book__alt p { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.book__phone {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 30px; font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  transition: color var(--speed) ease;
}
.book__phone:hover { color: var(--muted); }

.book__panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 38px 34px;
}
.book-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field label {
  font-size: 13px; font-weight: 600;
  letter-spacing: .02em;
}
.field input,
.field select {
  width: 100%;
  font: inherit; font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  transition: border-color var(--speed) ease, background var(--speed) ease;
  appearance: none;
}
.field input { appearance: auto; }
.field select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" fill="none" stroke="%23777" stroke-width="2"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.field input:hover,
.field select:hover { border-color: var(--faint); }
.field input:focus,
.field select:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.field input::placeholder { color: var(--faint); }
.field.has-error input,
.field.has-error select { border-color: var(--accent); background: var(--bg); }
.field__error {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.field__error::before {
  content: '!';
  display: inline-grid; place-items: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10px; font-weight: 700;
  flex: none;
}
.book-form__submit { margin-top: 6px; width: 100%; }
.book-form__note { font-size: 12.5px; color: var(--muted); text-align: center; }

.book-success { text-align: center; padding: 12px 6px; }
.book-success__icon {
  display: inline-grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  margin-bottom: 22px;
}
.book-success__icon svg { width: 26px; height: 26px; }
.book-success h3 { font-size: 26px; margin-bottom: 10px; }
.book-success > p { font-size: 14.5px; color: var(--muted); max-width: 46ch; margin-inline: auto; }
.book-success__summary {
  margin: 26px 0 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}
.book-success__summary div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.book-success__summary div:last-child { border-bottom: none; }
.book-success__summary dt { color: var(--muted); }
.book-success__summary dd { margin: 0; font-weight: 600; text-align: right; }

/* ============ FOOTER ============ */
.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding: 72px 0 56px;
}
.footer__col h3 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer__subhead { margin-top: 30px; }
.footer__col--brand p { font-size: 14px; color: var(--muted); margin-top: 18px; max-width: 34ch; }
.footer address { font-style: normal; font-size: 14.5px; line-height: 1.9; }
.footer address a { text-decoration: none; font-weight: 500; }
.footer address a:hover { text-decoration: underline; }
.hours { border-collapse: collapse; font-size: 14.5px; width: 100%; }
.hours td { padding: 5px 0; }
.hours td:last-child { text-align: right; color: var(--muted); }
.footer__links li { padding: 4px 0; }
.footer__links a {
  font-size: 14.5px; text-decoration: none; color: var(--text);
  transition: color var(--speed) ease;
}
.footer__links a:hover { color: var(--muted); }
.footer__map { aspect-ratio: 4 / 2.6; border-radius: var(--radius); }
.footer__bar { border-top: 1px solid var(--line); }
.footer__bar-inner {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 13px; color: var(--muted);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .hero__inner { gap: 48px; }
  .conditions-grid { grid-template-columns: repeat(2, 1fr); }
  .fees-layout { grid-template-columns: 1fr; gap: 44px; }
  .funds__list { grid-template-columns: repeat(3, 1fr); }
  .faq__inner, .book__inner { grid-template-columns: 1fr; gap: 48px; }
  .faq__intro { position: static; }
}

@media (max-width: 900px) {
  .hero { padding: 64px 0 84px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { aspect-ratio: 16 / 9; margin-top: 12px; }
  .steps, .team-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .nav, .header__book { display: none; }
  .menu-toggle { display: flex; }
  .topbar__item--note { display: none; }
  .topbar__inner { justify-content: center; }
  .section-head { margin-bottom: 40px; }
  .field-row { grid-template-columns: 1fr; gap: 20px; }
  .book__panel { padding: 28px 22px; }
  .conditions-grid { grid-template-columns: 1fr; }
  .funds__list { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; padding: 56px 0 44px; }
  .footer__bar-inner { flex-direction: column; gap: 4px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* COLOUR OPTION — accent is re-themed by the corner widget; default is wireframe grey */
:root { --pop: #9a9a9a; --pop-ink: #ffffff; }
