/* ==========================================================================
   Edwards Chiropractors Inc, Design System & Site Styles
   Brand palette (supplied):
     #ffffff  white,       page background
     #06357a  navy,        primary brand colour (logo ring + "EDWARDS")
     #555555  grey,        body copy
     #869ab7  steel blue,  secondary / muted accents, borders
     #c2964a  gold,        accent, highlights, primary call-to-action
   Fonts: Poppins (headings) + Inter (body).
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #06357a;
  --navy-dark:   #052a61;
  --navy-900:    #04204a;
  --ink:         #555555;
  --ink-strong:  #3d3d3d;
  --steel:       #869ab7;
  --steel-tint:  #eef2f7;
  --steel-line:  #d7dfea;
  --gold:        #c2964a;
  --gold-dark:   #a97c37;
  --gold-tint:   #f7f0e2;
  --steel-text:  #52688a;   /* steel for small text on light backgrounds (4.5:1+) */
  --gold-text:   #85601f;   /* gold for small text on light backgrounds (4.5:1+) */
  --white:       #ffffff;
  --off-white:   #f7f9fc;

  /* Type */
  --font-heading: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(6, 53, 122, 0.08), 0 1px 2px rgba(6, 53, 122, 0.06);
  --shadow-md: 0 12px 30px rgba(6, 53, 122, 0.12);
  --shadow-lg: 0 24px 60px rgba(6, 53, 122, 0.16);
  --transition: 0.2s ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Never let a long word or URL push the page wider than the screen */
p, li, h1, h2, h3, h4, h5, a, span, td, blockquote { overflow-wrap: break-word; }

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-text); }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.22;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink-strong); font-weight: 600; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

section { padding: 80px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.section-alt  { background: var(--off-white); }
.section-steel { background: var(--steel-tint); }
.section-navy { background: var(--navy); color: rgba(255,255,255,0.82); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}
.section-navy .eyebrow { color: var(--gold); }

.section-head {
  max-width: 660px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head p { color: var(--ink); font-size: 1.05rem; }
.section-head.left { margin-left: 0; text-align: left; }

.lead { font-size: 1.15rem; color: var(--ink); }

/* Brand slogan treatment: MOVE BETTER. FEEL BETTER. LIVE BETTER. */
.slogan { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.01em; }
.slogan .w1 { color: var(--gold); }
.slogan .w2 { color: var(--navy); }
.section-navy .slogan .w2, .hero .slogan .w2 { color: var(--white); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 300;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-dark); color: var(--white); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--navy-900);
  color: rgba(255,255,255,0.78);
  font-size: 0.8rem;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 9px;
  padding-bottom: 9px;
}
.utility-bar a { color: rgba(255,255,255,0.78); transition: color var(--transition); }
.utility-bar a:hover { color: var(--gold); }
.utility-group { display: flex; gap: 16px; flex-wrap: wrap; }
.utility-group span,
.utility-group a { display: inline-flex; align-items: center; gap: 7px; }
.utility-bar svg { width: 14px; height: 14px; flex-shrink: 0; fill: currentColor; }
@media (max-width: 720px) {
  .utility-bar { display: none; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--steel-line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 48px; height: 48px; }
.brand-text { font-family: var(--font-heading); line-height: 1.05; }
.brand-name {
  display: block;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-transform: uppercase;
}
.brand-sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--ink);
  text-transform: uppercase;
  margin-top: 3px;
}

.main-nav ul { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-strong);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy);
  border-color: var(--gold);
}

.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; border-radius: 2px; transition: var(--transition); }

.nav-backdrop { display: none; }

@media (max-width: 1040px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 86vw);
    background: var(--white);
    padding: 92px 28px 32px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 160;
  }
  .main-nav.is-open { display: block; animation: navSlideIn 0.22s ease; }
  @keyframes navSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--steel-line); font-size: 1rem; }
  .main-nav a:hover,
  .main-nav a[aria-current="page"] { border-color: var(--steel-line); color: var(--gold-text); }
  .nav-toggle { display: flex; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(4, 32, 74, 0.45); z-index: 150;
  }
  .nav-backdrop.is-visible { display: block; animation: navFadeIn 0.22s ease; }
  @keyframes navFadeIn { from { opacity: 0; } to { opacity: 1; } }
}
.btn-text-short { display: none; }

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .nav-wrap { gap: 10px; padding: 10px 0; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 11px 16px; font-size: 0.85rem; }
  .nav-toggle { padding: 6px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1rem; }
  .btn-nav-book .btn-text-full { display: none; }
  .btn-nav-book .btn-text-short { display: inline; }

  .btn { padding: 13px 22px; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .service-block { padding: 32px 0; }
  .service-block h2 { gap: 12px; align-items: flex-start; }
  .service-block h2 .icon-badge { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; }
  .service-block h2 .icon-badge svg { width: 19px; height: 19px; }
  .testimonial { padding: 28px 22px; }
  .testimonial blockquote { font-size: 1.05rem; }
  .page-header { padding: 44px 0; }
  section { padding: 48px 0; }
}
@media (max-width: 360px) {
  .brand-sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 55%, var(--navy-900) 100%);
  color: rgba(255,255,255,0.9);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px; top: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(194,150,74,0.22), transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--gold);
  margin: 0 0 18px;
}
.hero .hero-title { color: var(--white); margin: 0 0 18px; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.22; }
.hero p { color: rgba(255,255,255,0.82); }
.hero .lead { max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,0.06);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px; gap: 6px;
  color: rgba(255,255,255,0.72); font-size: 0.85rem;
}
.hero-visual .placeholder strong { color: var(--white); font-size: 0.95rem; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
  .hero-visual { order: 1; aspect-ratio: 16 / 9; max-height: 260px; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--navy-900);
  color: rgba(255,255,255,0.85);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
}
.trust-item svg { width: 18px; height: 18px; fill: var(--gold); flex-shrink: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--steel); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; }
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gold-tint);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; fill: var(--navy); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.card-link:hover { color: var(--gold-text); }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Feature split ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-split.reverse .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel-tint);
  border: 1px solid var(--steel-line);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  color: var(--steel-text); font-size: 0.85rem;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media.has-photo { padding: 0; align-items: flex-end; }
.feature-media.has-photo img.portrait { object-fit: contain; object-position: center bottom; }
/* Chiropractor portraits (home carousel): same framing as the Our Team page, a cropped 3:4 portrait with a thin border */
.carousel .feature-media.has-photo { aspect-ratio: 3 / 4; width: 100%; max-width: 340px; justify-self: center; align-items: center; }
.carousel .feature-media.has-photo img.portrait { object-fit: cover; object-position: center top; }
.feature-list { margin: 20px 0 28px; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px;
  color: var(--ink);
}
.feature-list li::before {
  content: "";
  width: 9px; height: 9px; margin-top: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .feature-split, .feature-split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature-split.reverse .feature-media { order: -1; }
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.team-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  padding: 26px;
}
.team-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--steel-tint);
  aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
  color: var(--steel-text); font-size: 0.78rem; text-align: center; padding: 12px;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-card h3 { margin-bottom: 2px; }
.team-role { font-family: var(--font-heading); font-weight: 600; color: var(--gold-text); font-size: 0.9rem; margin-bottom: 6px; }
.team-meta { font-size: 0.85rem; color: var(--steel-text); margin-bottom: 14px; }
.team-card p { font-size: 0.94rem; }
.team-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.team-tags span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold-tint);
  border-radius: 999px;
  padding: 5px 12px;
}
@media (max-width: 1000px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .team-card { grid-template-columns: 1fr; }
  .team-photo { max-width: 220px; }
}

/* ---------- Accordion (FAQ / resources) ---------- */
.accordion { border: 1px solid var(--steel-line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.accordion + .accordion { margin-top: 0; }
.accordion-item + .accordion-item { border-top: 1px solid var(--steel-line); }
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
}
.accordion-trigger:hover { background: var(--off-white); }
.accordion-trigger .chev {
  width: 18px; height: 18px; flex-shrink: 0;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform var(--transition);
  margin-top: -4px;
}
.accordion-trigger[aria-expanded="true"] .chev { transform: rotate(-135deg); margin-top: 4px; }
.accordion-panel { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.accordion-panel-inner { padding: 0 0 22px; color: var(--ink); }
.accordion-panel-inner p { font-size: 0.96rem; }

/* ---------- FAQ static (JSON-LD-friendly, no JS dependency) ---------- */
.faq-list { display: grid; gap: 4px; }
.faq-q {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.08rem;
  margin: 24px 0 6px;
}
.faq-a { color: var(--ink); margin: 0; }

/* ---------- FAQ detailed (short "tweet" answer + expandable long/SEO answer) ---------- */
.faq-list-detailed { display: grid; }
.faq-item { padding: 26px 0; border-bottom: 1px solid var(--steel-line); }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq-item .faq-q { margin: 0 0 8px; }
.faq-short { color: var(--ink-strong); font-size: 1.02rem; margin: 0 0 14px; }
.faq-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
}
.faq-toggle:hover { color: var(--gold-text); }
.faq-toggle .chev {
  width: 13px; height: 13px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
  margin-top: -3px;
}
.faq-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg); margin-top: 3px; }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.faq-panel-inner { padding-top: 16px; }
.faq-panel-inner p { font-size: 0.96rem; color: var(--ink); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: rgba(255,255,255,0.85);
  padding: 60px 0;
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.82); max-width: 60ch; font-size: 1.05rem; }
.breadcrumbs {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.breadcrumbs a { color: rgba(255,255,255,0.6); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: rgba(255,255,255,0.85); }

/* ---------- Prose ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--ink-strong); }
.prose ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.prose ol li { list-style: decimal; padding-left: 6px; margin-bottom: 10px; }
.prose ul { margin: 0 0 1.2em; padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.prose ul li::before {
  content: "";
  position: absolute; left: 4px; top: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}
.prose ol { margin: 0 0 1.2em; padding-left: 22px; }
.prose ol li { margin-bottom: 10px; }
.prose a { border-bottom: 1px solid var(--steel); }
.prose a:hover { border-color: var(--gold); }

.page-header p { text-wrap: pretty; }

/* ---------- Carousel ---------- */
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.carousel-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; }
.carousel-controls[hidden] { display: none; }
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--steel-line); background: var(--white); color: var(--navy);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}
.carousel-btn:hover:not(:disabled) { background: var(--gold-tint); border-color: var(--gold); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-dots { display: flex; gap: 10px; }
.carousel-dot {
  width: 11px; height: 11px; padding: 0; border-radius: 50%;
  border: 0; background: var(--steel-line); cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot[aria-selected="true"] { background: var(--gold); transform: scale(1.25); }

/* ---------- Patient resources ---------- */
.resource-search { position: relative; max-width: 560px; margin: 0 auto 34px; }
.resource-search label { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; color: var(--navy); margin-bottom: 8px; }
.resource-search input[type="search"] {
  width: 100%; padding: 14px 44px 14px 16px;
  border: 1px solid var(--steel-line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink-strong); background: var(--white);
}
.resource-search input[type="search"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.resource-search-clear {
  position: absolute; right: 8px; bottom: 7px; width: 34px; height: 34px;
  border: 0; background: transparent; color: var(--steel-text); font-size: 1.3rem; cursor: pointer; border-radius: 50%;
}
.resource-search-clear:hover { color: var(--navy); background: var(--steel-tint); }
.resource-search-clear[hidden] { display: none; }
.resource-search-status { min-height: 1.3em; margin: 8px 0 0; font-size: 0.85rem; color: var(--steel-text); }
[data-filter-item][hidden] { display: none !important; }
.resource-empty { text-align: center; color: var(--ink); padding: 24px 0; }
.resource-card { display: flex; flex-direction: column; color: inherit; }
.resource-card:hover { color: inherit; }
.resource-card .card-link { margin-top: auto; padding-top: 16px; }
.resource-card:hover .card-link { color: var(--gold-text); }
.exercise-media {
  aspect-ratio: 16 / 9;
  background: var(--steel-tint);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; margin: 0 0 20px;
  color: var(--steel-text); font-size: 0.85rem;
}
/* ---------- Article extras (SEO / answer-engine structure) ---------- */
.article-hero { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--steel-line); margin: 36px 0 28px; }
.answer-box { background: var(--steel-tint); border-left: 4px solid var(--navy); border-radius: var(--radius-sm); padding: 20px 24px; margin: 0 0 28px; }
.answer-box .label { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.answer-box p { margin: 0; }
.toc { border: 1px solid var(--steel-line); border-radius: var(--radius-sm); padding: 18px 24px 8px; margin: 0 0 32px; background: var(--white); }
.toc .toc-title { font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; color: var(--navy); margin: 0 0 10px; }
.toc ol { margin: 0 0 10px; padding-left: 1.3em; }
.toc li { margin-bottom: 6px; font-size: 0.95rem; }
.toc a { border-bottom: 0; }
.prose h2[id] { scroll-margin-top: 100px; }
.page-header .post-meta a { color: inherit; border-bottom: 1px solid rgba(255,255,255,0.45); transition: color var(--transition), border-color var(--transition); }
.page-header .post-meta a:hover { color: var(--gold); border-color: var(--gold); }
.sources ol li { font-size: 0.92rem; color: var(--ink); }
.exercise-art { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--steel-line); margin: 0 0 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--steel-line); }
.prose th { background: var(--steel-tint); color: var(--navy); font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; }

/* ---------- Anchored service blocks ---------- */
#map { scroll-margin-top: 100px; }
.condition-list a { font-weight: 500; border-bottom: 0; }
.condition-list a::after { content: " \2192"; color: var(--gold-text); transition: margin-left var(--transition); }
.condition-list a:hover::after { margin-left: 3px; }
.service-block { scroll-margin-top: 100px; padding: 44px 0; border-bottom: 1px solid var(--steel-line); }
.service-block:last-child { border-bottom: 0; }
.service-block h2 { display: flex; align-items: center; gap: 14px; }
.service-block h2 .icon-badge { margin-bottom: 0; }

/* ---------- Modality tiles (Services page: click a tile to expand) ---------- */
.modality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.modality-tile {
  scroll-margin-top: 100px;
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.modality-tile:hover { border-color: var(--steel); box-shadow: var(--shadow-md); }
.modality-tile .modality-name {
  margin: 0;
  padding: 24px 24px 0;
  font-size: 1.08rem;
}
.modality-teaser {
  margin: 10px 0 0;
  padding: 0 24px;
  color: var(--ink);
  font-size: 0.92rem;
}
.modality-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 14px 24px;
  background: none;
  border: 0;
  border-top: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--gold-text);
  text-align: left;
}
.modality-toggle .chev {
  width: 11px; height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
  margin-top: -4px;
}
.modality-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg); margin-top: 4px; }
.modality-panel { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.modality-panel-inner {
  margin: 0 24px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--steel-line);
}
.modality-panel-inner p { font-size: 0.94rem; color: var(--ink); margin: 0 0 1em; }
.modality-panel-inner p:last-child { margin-bottom: 0; }
.modality-panel-inner h3 {
  font-size: 0.96rem;
  color: var(--ink-strong);
  margin: 1.3em 0 0.4em;
}
.modality-panel-inner h3:first-child { margin-top: 0; }

@media (max-width: 960px) { .modality-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .modality-grid { grid-template-columns: 1fr; } }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-row span {
  font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 600;
  color: var(--navy);
  background: var(--steel-tint);
  border: 1px solid var(--steel-line);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- Sticky sub-nav (services / resources) ---------- */
.subnav {
  position: sticky; top: 73px; z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--steel-line);
}
.subnav .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; }
.subnav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-strong);
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--steel-tint);
}
.subnav a:hover { background: var(--gold-tint); color: var(--navy); }
@media (max-width: 720px) { .subnav { display: none; } }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--steel-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-strong);
  background: var(--white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-note { font-size: 0.8rem; color: var(--steel-text); margin-top: 14px; }
.form-status { max-width: 760px; margin: 0 auto 24px; }
.form-status[hidden] { display: none; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Contact info list ---------- */
.info-list li {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--steel-line);
}
.info-list li:last-child { border-bottom: 0; }
.info-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--gold-tint);
  display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 20px; height: 20px; fill: var(--navy); }
.info-list h4,
.info-list .info-title { font-size: 1.02rem; margin-bottom: 3px; }
.info-list p { margin: 0; font-size: 0.94rem; }

/* ---------- Online booking embed (Cliniko) ---------- */
.booking-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--steel-line);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.booking-embed iframe { display: block; width: 100%; border: 0; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--steel-line);
  background: var(--steel-tint);
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  color: var(--steel-text); font-size: 0.9rem; text-align: center; padding: 24px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Portrait photo beside text (Services intro) */
.portrait-figure { margin: 0; width: 100%; max-width: 340px; justify-self: center; }
.portrait-figure .feature-media.has-photo { aspect-ratio: 3 / 4; align-items: center; }
.portrait-figure .feature-media img { object-fit: cover; object-position: center 30%; }
.portrait-figure figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--steel-text); }

/* Photographs set into page content */
.photo-figure { margin: 22px 0 0; }
.photo-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--steel-line); }
.photo-figure figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--steel-text); }
.photo-figure-portrait { max-width: 380px; margin: 28px auto; }

/* ---------- Callout / note ---------- */
.callout {
  background: var(--gold-tint);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.95rem;
  color: var(--ink-strong);
}
.callout strong { color: var(--navy); }

.placeholder-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  border-radius: 999px;
  padding: 3px 10px;
  vertical-align: middle;
}

/* ---------- Google reviews badge (placeholder until Google Business Profile is live) ---------- */
.google-reviews-strip {
  padding: 26px 0;
  text-align: center;
  background: var(--off-white);
  border-top: 1px solid var(--steel-line);
  border-bottom: 1px solid var(--steel-line);
}
.google-reviews-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
/* Hidden until the Google Business Profile link is set in main.js */
.google-reviews-strip[hidden], .footer-google-reviews[hidden], .google-reviews-badge[hidden] { display: none !important; }
.google-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-radius: 999px;
  padding: 9px 18px;
  transition: border-color var(--transition), color var(--transition);
}
.google-reviews-badge svg { width: 16px; height: 16px; fill: var(--gold); }
.google-reviews-badge:hover { border-color: var(--gold); color: var(--gold-text); }
.google-reviews-badge[aria-disabled="true"] { cursor: default; }
.google-reviews-badge[aria-disabled="true"]:hover { border-color: var(--steel-line); color: var(--navy); }

.footer-google-reviews {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}
.footer-google-reviews svg { width: 15px; height: 15px; fill: var(--gold); flex-shrink: 0; }
.footer-google-reviews:hover { color: var(--gold); }
.footer-google-reviews[aria-disabled="true"] { cursor: default; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote { margin: 0 0 18px; font-size: 1.2rem; font-style: italic; color: rgba(255,255,255,0.92); }
.testimonial .cite { font-family: var(--font-heading); font-weight: 600; color: var(--gold); font-style: normal; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
  color: rgba(255,255,255,0.85);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 54ch; margin: 0 auto 28px; color: rgba(255,255,255,0.82); }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--steel-tint); display: flex; align-items: center; justify-content: center; color: var(--steel-text); font-size: 0.8rem; }
.post-thumb img { max-width: 50%; max-height: 55%; object-fit: contain; }
.post-thumb img.cover { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { font-size: 0.78rem; color: var(--steel-text); text-transform: uppercase; letter-spacing: 0.06em; }
.post-body h3 { font-size: 1.1rem; }
.post-body .card-link { margin-top: auto; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.empty-state {
  text-align: center;
  border: 1px dashed var(--steel);
  border-radius: var(--radius);
  background: var(--off-white);
  padding: 56px 24px;
}
.empty-state .icon-badge { margin: 0 auto 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.72);
  padding: 60px 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: rgba(255,255,255,0.6); }
.footer-brand p { margin-top: 16px; color: rgba(255,255,255,0.72); }
.footer-slogan { font-family: var(--font-heading); font-weight: 600; margin-top: 14px !important; font-size: 0.9rem; }
.site-footer .slogan .w2 { color: var(--steel); }
.footer-brand .brand-mark { border-radius: 50%; background: var(--white); }
.footer-col h4,
.footer-col .footer-title {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.22;
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.72); transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--gold); flex-shrink: 0; margin-top: 3px; }

.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.footer-social a svg { width: 17px; height: 17px; fill: rgba(255,255,255,0.8); transition: fill var(--transition); }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.footer-social a:hover svg { fill: var(--navy-900); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 28px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Build note (visible only during shell phase) ---------- */
.build-note {
  background: var(--gold-tint);
  border-bottom: 1px solid var(--gold);
  color: var(--navy-900);
  font-size: 0.82rem;
  text-align: center;
  padding: 9px 0;
}
.build-note .container { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
