/* FM Physiotherapy — design tokens & base */
:root {
  --bg: #ffffff;
  --bg-soft: #fafaf9;
  --ink: #0b1210;
  --ink-70: #39423e;
  --muted: #55605a;
  --line: #e6e8e6;
  --accent: #00a63c;
  --accent-ink: #027a2f;
  --accent-soft: #e7f6ec;
  --deep-1: #001703;
  --deep-2: #000e02;
  --star: #f5a623;
  --radius-card: 14px;
  --radius-pill: 999px;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-btn: 0 1px 2px rgba(11, 18, 16, 0.18);
  --z-header: 100;
  --z-toast: 200;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 1.0625rem;
}

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

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.022em; text-wrap: balance; font-weight: 800; }
p { text-wrap: pretty; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: 0.7rem;
}
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--ink); }
.brand b { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.brand b .dot { color: var(--accent); }
.brand span { font-size: 0.57rem; letter-spacing: 0.34em; font-weight: 600; color: var(--muted); margin-top: 2px; }

.main-nav { display: flex; gap: 1.4rem; margin-inline: auto; }
.main-nav a { text-decoration: none; color: var(--ink-70); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; }
.phone-link { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.phone-link svg { flex: none; }
.phone-link:hover { color: var(--accent-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius-pill);
  padding: 0.78rem 1.5rem;
  font-weight: 700; font-size: 1rem; font-family: var(--font);
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: #1d2a24; }
.btn-green { background: var(--accent); color: #fff; box-shadow: var(--shadow-btn); }
.btn-green:hover { background: #049238; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { background: #fff; color: var(--deep-1); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.92rem; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.08rem; }

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

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem); }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.rating-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--accent-soft); color: var(--accent-ink);
  border-radius: var(--radius-pill); padding: 0.42rem 0.95rem;
  font-weight: 700; font-size: 0.9rem;
  text-decoration: none;
}
.rating-badge .stars { color: var(--star); letter-spacing: 0.08em; font-size: 0.85rem; }

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  margin-block: 1.1rem 1.15rem;
}
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 0.45rem 1.15rem; margin-top: 1.9rem; padding: 0; list-style: none; }
.trust-strip li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; font-weight: 600; color: var(--ink-70); }
.trust-strip .tick { color: var(--accent); font-weight: 800; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover;
  border-radius: 18px;
}
.hero-card {
  position: absolute; left: -1.4rem; bottom: 1.4rem;
  background: #fff; border-radius: 12px; padding: 0.8rem 1.05rem;
  box-shadow: 0 8px 28px rgba(11, 18, 16, 0.14);
  display: flex; align-items: center; gap: 0.7rem;
}
.hero-card .num { font-size: 1.35rem; font-weight: 800; color: var(--accent-ink); line-height: 1; }
.hero-card .lbl { font-size: 0.8rem; color: var(--muted); font-weight: 600; line-height: 1.25; }

/* ---------- Section scaffolding ---------- */
section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head .tag {
  display: inline-block; color: var(--accent-ink); font-weight: 800; font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

/* ---------- Services ---------- */
.services { background: var(--bg-soft); border-block: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.3rem; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column;
}
.service-card img { aspect-ratio: 16 / 10.5; object-fit: cover; }
.service-card .body { padding: 1.25rem 1.3rem 1.45rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.service-card h3 { font-size: 1.18rem; letter-spacing: -0.012em; }
.service-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.service-card .covers { font-size: 0.85rem; font-weight: 700; color: var(--accent-ink); }

.funding-note {
  margin-top: 1.6rem; padding: 1.05rem 1.3rem; border-radius: var(--radius-card);
  background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 600; font-size: 0.97rem;
}

/* ---------- FM-System (dark band) ---------- */
.fm-system {
  background: linear-gradient(180deg, var(--deep-1) 0%, var(--deep-2) 100%);
  color: #fff;
}
.fm-system .section-head .tag { color: #4ade80; }
.fm-system .section-head p { color: rgba(255, 255, 255, 0.72); }
.fm-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.fm-intro img { border-radius: 16px; aspect-ratio: 16 / 11; object-fit: cover; }

.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 1.3rem; }
.package {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card); padding: 1.7rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.package.featured { background: rgba(0, 166, 60, 0.14); border-color: rgba(74, 222, 128, 0.5); position: relative; }
.package .flag {
  position: absolute; top: -0.8rem; left: 1.4rem;
  background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 800;
  padding: 0.22rem 0.75rem; border-radius: var(--radius-pill); letter-spacing: 0.04em;
}
.package h3 { font-size: 1.5rem; letter-spacing: 0.01em; }
.package .strap { color: #4ade80; font-weight: 700; font-size: 0.92rem; }
.package .duration { font-weight: 800; font-size: 1.02rem; }
.package p.fit { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.package ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.package li { display: flex; gap: 0.55rem; font-size: 0.93rem; color: rgba(255, 255, 255, 0.88); }
.package li::before { content: "✓"; color: #4ade80; font-weight: 800; flex: none; }
.package .price { font-size: 1.85rem; font-weight: 800; }
.package .price small { font-size: 0.8rem; font-weight: 600; color: rgba(255, 255, 255, 0.6); display: block; }
.fm-cta { text-align: center; margin-top: 2.4rem; }

/* ---------- About ---------- */
.about .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-panel {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem; position: sticky; top: 5.5rem;
}
.about-panel .headshot {
  width: 112px; height: 112px; border-radius: 50%;
  object-fit: cover; margin-bottom: 1.1rem;
  border: 4px solid #fff;
  outline: 2px solid var(--accent);
  outline-offset: 0;
  box-shadow: 0 4px 14px rgba(11, 18, 16, 0.14);
}
.about-panel h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.about-panel .role { color: var(--accent-ink); font-weight: 700; font-size: 0.92rem; margin-bottom: 1rem; }
.about-panel ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.about-panel li { display: flex; gap: 0.55rem; font-size: 0.94rem; color: var(--ink-70); font-weight: 600; }
.about-panel li::before { content: "•"; color: var(--accent); font-weight: 800; }
.about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.1rem; }
.about-copy p { color: var(--muted); margin-bottom: 1rem; max-width: 62ch; }
.about-copy p strong { color: var(--ink); }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-soft); border-block: 1px solid var(--line); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem; margin-bottom: 2.2rem; }
.google-pill { display: flex; align-items: center; gap: 0.8rem; }
.google-pill .score { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.google-pill .meta { font-size: 0.92rem; color: var(--muted); font-weight: 600; }
.google-pill .stars { color: var(--star); font-size: 1.05rem; letter-spacing: 0.1em; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; }
.review-card .stars { color: var(--star); letter-spacing: 0.12em; font-size: 0.95rem; }
.review-card blockquote { font-size: 0.99rem; color: var(--ink-70); flex: 1; }
.review-card cite { font-style: normal; font-weight: 700; font-size: 0.94rem; }
.review-card cite small { display: block; font-weight: 600; color: var(--muted); margin-top: 0.15rem; }
.review-cta { justify-content: center; align-items: flex-start; background: var(--accent-soft); border-color: transparent; }
.review-cta .big { font-size: 1.45rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.review-cta .sub { color: var(--ink-70); font-size: 0.96rem; }

/* ---------- Booking ---------- */
.booking .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.booking-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.9rem; }
.booking-copy > p { color: var(--muted); margin-bottom: 1.4rem; }
.cliniko-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.cliniko-wrap iframe { width: 100%; height: 560px; border: 0; }
.cliniko-fallback { margin-top: 0.7rem; font-size: 0.9rem; color: var(--muted); }
.cliniko-fallback a { color: var(--accent-ink); font-weight: 600; }
.booking-form {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem;
}
.booking-form h3 { font-size: 1.25rem; }
.booking-form p.sub { color: var(--muted); font-size: 0.94rem; margin-top: -0.5rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0.7rem 0.85rem; background: #fff; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #6b756f; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.booking-form .btn { margin-top: 0.3rem; }
.form-note { font-size: 0.83rem; color: var(--muted); }

/* ---------- Locations ---------- */
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.3rem; }
.location-card { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.7rem; display: flex; flex-direction: column; gap: 0.45rem; }
.location-card h3 { font-size: 1.25rem; }
.location-card .inside { color: var(--accent-ink); font-weight: 700; font-size: 0.9rem; }
.location-card p { color: var(--muted); font-size: 0.98rem; }
.location-card a { margin-top: 0.8rem; align-self: start; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); border-block: 1px solid var(--line); }
.faq-list { max-width: 50rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0.2rem; font-weight: 700; font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; font-weight: 500; color: var(--accent-ink); transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1); flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 0.2rem 1.25rem; color: var(--muted); max-width: 65ch; }
.faq-list .answer ul { margin: 0.5rem 0 0 1.2rem; }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(180deg, var(--deep-1) 0%, var(--deep-2) 100%); color: #fff; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.final-cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.final-cta p { color: rgba(255, 255, 255, 0.72); max-width: 36rem; margin: 0 auto 1.8rem; }
.final-cta .hero-ctas { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.8rem; border-top: 1px solid var(--line); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: start; }
.site-footer .tagline { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 0.6rem; }
.footer-col p, .footer-col a { color: var(--muted); font-size: 0.92rem; text-decoration: none; display: block; margin-bottom: 0.3rem; }
.footer-col a:hover { color: var(--ink); }
.site-footer .fine { width: 100%; color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 0.5rem; }

/* ---------- Reveal motion ----------
   Content is visible by default; the animation plays as an element
   enters the viewport. Nothing is ever left hidden if JS or IO fails. */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.js .reveal.in { animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal.in { animation: none; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hero .container, .about .container, .booking .container, .fm-intro { grid-template-columns: 1fr; }
  .about-panel { position: static; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero-card { left: 1rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .phone-link .phone-num { display: none; }
  .header-actions .btn { padding: 0.6rem 1.1rem; font-size: 0.92rem; }
  .form-row { grid-template-columns: 1fr; }
  .cliniko-wrap iframe { height: 560px; }
  .hero-ctas .btn { width: 100%; }
}
