/* ============================================================
   ReAlign Physiotherapy Clinic — Design System
   Palette: sage green + warm brown/gold on cream (matched to the
   clinic's own logo and visiting card branding)
   ============================================================ */

:root {
  /* Color palette — matched to the ReAlign Physiotherapy Clinic brand
     (sage green + warm brown/gold on cream), extracted from the clinic's
     own visiting card design. */
  --primary: #536357;
  --primary-dark: #3C4941;
  --primary-darker: #2B3630;
  --primary-light: #E7EBE6;
  --primary-lighter: #F3F5F2;
  --accent: #846140;
  --accent-dark: #6B4E32;
  --text: #2E2A26;
  --text-light: #5F6660;
  --text-lighter: #8D9289;
  --bg: #FFFFFF;
  --bg-alt: #F6F2EC;
  --border: #E6E0D6;
  --white: #FFFFFF;
  --success: #4C7A5A;
  --shadow-sm: 0 1px 3px rgba(43, 54, 48, 0.08);
  --shadow-md: 0 6px 20px rgba(43, 54, 48, 0.10);
  --shadow-lg: 0 16px 40px rgba(43, 54, 48, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Faint paper-grain texture over the whole site — a tactile, printed
   feel that reads as "premium material" rather than flat digital color.
   Deliberately subtle: a static SVG noise tile at very low opacity, no
   blend mode (mix-blend-mode washes out almost entirely against these
   light backgrounds, tested and discarded in favor of plain low-alpha
   compositing). Fixed positioning + a very high z-index so it sits over
   every section uniformly without needing to be repeated per-element;
   pointer-events:none keeps it fully inert. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 500; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22200%22%20height%3D%22200%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.85%22%20numOctaves%3D%222%22%20stitchTiles%3D%22stitch%22%20result%3D%22t%22/%3E%3CfeColorMatrix%20in%3D%22t%22%20type%3D%22matrix%22%20values%3D%220%200%200%200%200%20%200%200%200%200%200%20%200%200%200%200%200%20%200%200%200%200.9%200%22/%3E%3C/filter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23n%29%22/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary-darker);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { color: var(--text-light); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-primary { background: var(--primary); color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(132, 97, 64, 0.07);
  border: 1px solid rgba(132, 97, 64, 0.18);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head p { margin-top: 14px; font-size: 1.05rem; }
.section-head.left { margin: 0 0 48px; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-teal { background: var(--primary); color: var(--white); }
.btn-teal:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--primary-light); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Header / Nav ---------- */
.top-bar {
  background: var(--primary-darker);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; }
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar .top-links { display: flex; gap: 22px; }
.top-bar .top-links span, .top-bar .top-links a { display: inline-flex; align-items: center; gap: 6px; }

header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Playfair Display', serif; }
.brand .logo-mark {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-text strong { font-size: 1.15rem; color: var(--primary-darker); }
.brand .brand-text span { font-size: 0.72rem; color: var(--text-lighter); letter-spacing: 0.03em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 10px 13px; border-radius: 100px; font-weight: 500; font-size: 0.92rem;
  color: var(--text); transition: all 0.15s ease; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: var(--primary-light); color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary-darker); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--primary-lighter) 0%, var(--white) 60%);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-top: 76px; padding-bottom: 76px;
}
.hero-copy p.lead { font-size: 1.15rem; margin: 20px 0 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--primary); font-variant-numeric: lining-nums tabular-nums; }
.hero-stats div strong span { font-size: inherit; font-family: inherit; font-weight: inherit; color: inherit; }
.hero-stats div > span { font-size: 0.85rem; color: var(--text-light); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/4.3;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
/* Fine open-corner frame accents — a classic gallery/print presentation
   touch that reads as considered, premium photography rather than a
   plain cropped rectangle. Inset (not outside the box) so they're never
   clipped by this element's own overflow:hidden. */
.hero-visual::before, .hero-visual::after {
  content: ""; position: absolute; width: 28px; height: 28px; z-index: 2; pointer-events: none;
}
.hero-visual::before { top: 16px; left: 16px; border-top: 1.5px solid rgba(255,255,255,0.8); border-left: 1.5px solid rgba(255,255,255,0.8); }
.hero-visual::after { bottom: 16px; right: 16px; border-bottom: 1.5px solid rgba(255,255,255,0.8); border-right: 1.5px solid rgba(255,255,255,0.8); }
.hero-visual .placeholder-label {
  color: rgba(255,255,255,0.85); text-align: center; padding: 24px; font-size: 0.9rem;
}
.hero-visual-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-badge {
  position: absolute; bottom: 22px; left: 22px; right: 22px;
  background: rgba(255,255,255,0.97); border-radius: var(--radius-md);
  padding: 16px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-md);
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); flex-shrink: 0; }

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

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px 26px; transition: all 0.2s ease;
  border-top: 2px solid rgba(132, 97, 64, 0.35);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; border-top-color: var(--accent); }
.card .icon-box {
  width: 54px; height: 54px; border-radius: 14px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--primary); font-size: 1.4rem;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--primary); font-weight: 600; font-size: 0.9rem; }

.card-cta {
  display: flex; flex-direction: column; text-decoration: none;
  background: linear-gradient(150deg, var(--primary), var(--primary-dark));
  border-color: transparent;
}
.card-cta .icon-box { background: rgba(255,255,255,0.16); color: white; }
.card-cta h3, .card-cta p, .card-cta .card-link { color: white; }
.card-cta .card-link { opacity: 0.92; }
.card-cta:hover { background: linear-gradient(150deg, var(--primary-dark), var(--primary-darker)); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 30px; position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.testimonial-card::before {
  content: "\201C"; position: absolute; top: -14px; right: 14px; z-index: 0;
  font-family: 'Playfair Display', serif; font-size: 5.5rem; line-height: 1;
  color: var(--accent); opacity: 0.10; pointer-events: none;
}
.testimonial-card > * { position: relative; z-index: 1; }
.google-badge {
  position: absolute; top: 16px; right: 16px;
  display: flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 600; color: var(--text-lighter);
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px; white-space: nowrap;
}
.google-badge i { color: #4285F4; font-size: 0.78rem; }

.rating-summary {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; font-size: 0.95rem; color: var(--text-light);
}
.rating-summary i { color: #F5A623; }
.rating-summary strong { color: var(--primary-darker); }
.testimonial-card .stars { color: #F5A623; letter-spacing: 2px; margin-bottom: 14px; font-size: 0.95rem; }
.testimonial-card .quote, .testimonial-card .quote p { color: var(--text); font-style: italic; margin-bottom: 0; }
.testimonial-card .quote { margin-bottom: 20px; }
.testimonial-card .quote p:last-child { margin-bottom: 0; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar-circle {
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.testimonial-person strong { display: block; font-size: 0.95rem; }
.testimonial-person span { font-size: 0.82rem; color: var(--text-lighter); }

/* ---------- Steps / process ---------- */
.steps { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.step { flex: 1; min-width: 200px; text-align: center; position: relative; }
.step .step-num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 16px;
  font-family: 'Playfair Display', serif;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  color: white;
}
.cta-band h2 { color: white; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
input, select, textarea {
  width: 100%;
  padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; color: var(--text); background: var(--white);
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--text-lighter); margin-top: 6px; }
.form-status-msg { margin-top: 14px; font-size: 0.92rem; font-weight: 600; }
.form-status-msg.success { color: var(--success); }
.form-status-msg.error { color: var(--accent-dark); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--primary-darker); color: rgba(255,255,255,0.75); }
.footer-top { padding: 64px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-top h4 { color: white; font-size: 1rem; margin-bottom: 18px; }
.footer-top .brand .brand-text strong, .footer-top .brand .brand-text span { color: white; }
.footer-top p.about { font-size: 0.9rem; margin: 16px 0 20px; max-width: 280px; }
.footer-top ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-top ul li a:hover { color: white; }
.social-row { display: flex; gap: 10px; margin-top: 8px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.social-row a:hover { background: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem;
}
.developer-credit { display: inline-flex; align-items: center; gap: 8px; }
.developer-credit a { color: inherit; opacity: 0.85; font-size: 1rem; line-height: 1; display: inline-flex; }
.developer-credit a:hover { opacity: 1; color: var(--accent); }
.footer-bottom a { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: white; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--primary-lighter), var(--white));
  padding: 56px 0 44px; text-align: center; border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-header .container { position: relative; z-index: 1; }

/* ---------- Premium ambient background system ----------
   Soft, large, softly-feathered radial glows in the brand palette — pure
   CSS (no images, no JS), sized with min()/vw so they scale fluidly at
   any viewport instead of needing per-breakpoint overrides. Meant to read
   as ambient light and depth, not decoration, so opacity stays very low
   and the glow always sits behind real content (which needs
   position:relative + z-index to paint on top — see .hero .container,
   .page-header .container, .section-motif > .container, and the
   .cta-band / .card-cta / footer rules below). Never intercepts clicks. */
.hero .container { position: relative; z-index: 1; }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(min(46vw, 620px) circle at 6% 112%, rgba(132,97,64,0.10), transparent 60%),
    radial-gradient(min(40vw, 560px) circle at 96% -14%, rgba(83,99,87,0.11), transparent 58%);
}
.page-header::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(min(42vw, 560px) circle at 100% -12%, rgba(83,99,87,0.09), transparent 60%);
}

/* Opt-in per section (not a blanket rule on .section, since some pages
   rely on absolutely-positioned content — like the body diagram markers —
   that shouldn't get clipped by an ancestor's overflow:hidden). Add this
   class alongside .section on any section that should carry a glow. */
.section-motif { position: relative; overflow: hidden; }
.section-motif > .container { position: relative; z-index: 1; }
.section-motif::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(min(38vw, 520px) circle at 102% -8%, rgba(83,99,87,0.08), transparent 60%),
    radial-gradient(min(34vw, 460px) circle at -4% 106%, rgba(132,97,64,0.06), transparent 58%);
}

/* Same opt-in pattern for the smaller decorative "cards" — the gradient
   CTA band and CTA card — and for the footer, each getting a soft warm
   highlight instead of the section-level two-tone glow above. */
.cta-band, .card-cta, footer.site-footer { position: relative; overflow: hidden; }
.cta-band::before, .card-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(min(30vw, 420px) circle at 106% 118%, rgba(255,255,255,0.16), transparent 62%);
}
.cta-band > *, .card-cta > * { position: relative; z-index: 1; }
footer.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(min(36vw, 520px) circle at 100% 100%, rgba(255,255,255,0.05), transparent 60%);
}
footer.site-footer .footer-top, footer.site-footer .footer-bottom { position: relative; z-index: 1; }
.breadcrumb { font-size: 0.85rem; color: var(--text-lighter); margin-bottom: 14px; }
.breadcrumb a { color: var(--primary); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-alt));
  display: flex; align-items: center; justify-content: center; color: var(--primary); text-align:center; padding: 16px;
  border: 1px dashed var(--primary);
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block; padding: 0; border: none;
  transition: transform 0.45s ease;
}
.gallery-item:has(img):hover img { transform: scale(1.08); }
.gallery-item:has(img) { border: none; padding: 0; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  color: #fff; font-size: 0.78rem; text-align: left;
}

/* ---------- Certification badges (About page) ---------- */
.cert-row { display: flex; flex-wrap: wrap; gap: 18px; }
.cert-badge {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 20px; flex: 0 1 260px; transition: all 0.2s ease;
}
.cert-badge:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.cert-badge .icon-box { width: 46px; height: 46px; font-size: 1.15rem; margin-bottom: 0; flex-shrink: 0; }
.cert-badge strong { display: block; font-size: 0.98rem; }
.cert-badge span { display: block; font-size: 0.82rem; color: var(--text-lighter); margin-top: 2px; }

/* ---------- Blog ---------- */
.blog-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: white; }
.blog-thumb {
  aspect-ratio: 16/9; background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
  display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 2rem;
}
.blog-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ---------- Case study / post images ---------- */
.case-study-thumb {
  aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 14px;
}
.case-study-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-study-image, .post-image {
  border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; max-height: 420px;
}
.case-study-image img, .post-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 22px 22px 26px; }
.blog-meta { font-size: 0.78rem; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px; }
.blog-card h3 { margin-bottom: 10px; font-size: 1.15rem; }

/* ---------- Conditions (body diagram + condition lists) ---------- */
.condition-name { display: flex; align-items: center; gap: 12px; }
.condition-icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem;
}
.condition-answer p { font-size: 0.95rem; }

.body-diagram-wrap {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center;
}

/* Front/back anatomical reference photos, each in its own card with a
   clickable SVG hotspot layer positioned exactly over it. Numbered badges
   live in the wide side margins baked into the images — never on top of
   the figure — connected to the exact body landmark by a thin leader
   line, so the anatomy underneath always stays visible. */
.body-diagram-figures { display: flex; gap: 16px; justify-content: center; max-width: 620px; margin: 0 auto; }
.body-figure-panel { flex: 1 1 0; max-width: 300px; text-align: center; }
.body-figure-media {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.body-figure-img {
  width: 100%; height: auto; display: block;
  animation: bodyBreathe 5s ease-in-out infinite; transform-origin: center bottom;
}
@keyframes bodyBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012); }
}
.body-diagram-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.body-figure-caption {
  margin-top: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-lighter);
}
@media (prefers-reduced-motion: reduce) {
  .body-figure-img { animation: none; }
}

.body-hotspot { cursor: pointer; }

/* Small dot pinned exactly on the body landmark — deliberately tiny so it
   never covers the part it's pointing at. */
.body-hotspot .anchor-dot {
  fill: var(--accent); stroke: var(--white); stroke-width: 2;
  transition: transform 0.2s ease, fill 0.2s ease;
  transform-origin: center; transform-box: fill-box;
}
.body-hotspot:hover .anchor-dot, .body-hotspot:focus .anchor-dot { fill: var(--primary); transform: scale(1.5); }

/* Thin connector from the anchor dot out to the numbered badge in the margin */
.body-hotspot .leader-line {
  stroke: var(--accent); stroke-width: 2; opacity: 0.5;
  transition: opacity 0.2s ease, stroke-width 0.2s ease;
}
.body-hotspot:hover .leader-line, .body-hotspot:focus .leader-line { opacity: 1; stroke-width: 2.5; stroke: var(--primary); }

.body-hotspot circle.pulse-ring {
  fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0;
  transform-origin: center; transform-box: fill-box;
  animation: hotspotPulse 2.6s ease-out infinite;
}
.body-hotspot:nth-child(3n) circle.pulse-ring { animation-delay: 0.5s; }
.body-hotspot:nth-child(3n+1) circle.pulse-ring { animation-delay: 1s; }
@keyframes hotspotPulse {
  0% { transform: scale(0.7); opacity: 0.55; }
  100% { transform: scale(2.1); opacity: 0; }
}
.body-hotspot circle.dot {
  fill: var(--accent); stroke: var(--white); stroke-width: 3;
  transition: transform 0.2s ease, fill 0.2s ease;
  transform-origin: center; transform-box: fill-box;
}
.body-hotspot:hover circle.dot, .body-hotspot:focus circle.dot { fill: var(--primary); transform: scale(1.15); }
.body-hotspot:active circle.dot { transform: scale(1.05); }
.body-hotspot text { fill: var(--white); font-size: 10px; font-weight: 700; font-family: 'Inter', sans-serif; pointer-events: none; }

/* Floating label that appears above a hotspot on hover/focus */
.body-hotspot .hotspot-label { opacity: 0; transition: opacity 0.15s ease; pointer-events: none; }
.body-hotspot .hotspot-label rect { fill: var(--primary-darker); rx: 12; }
.body-hotspot .hotspot-label text { fill: var(--white); font-size: 11px; font-weight: 600; }
.body-hotspot:hover .hotspot-label, .body-hotspot:focus .hotspot-label { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .body-hotspot circle.pulse-ring { animation: none; }
}

/* Home visit callout */
.home-visit-banner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-alt));
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px 28px; margin-top: 44px;
}
.home-visit-banner .icon-box { width: 56px; height: 56px; font-size: 1.6rem; flex-shrink: 0; }
.home-visit-banner .hvb-copy { flex: 1; min-width: 220px; }
.home-visit-banner .hvb-copy strong { display: block; color: var(--primary-darker); font-size: 1.05rem; margin-bottom: 4px; }

/* Reassurance / trust strip on the combined Treatments & Conditions page */
.trust-strip { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.trust-strip div { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-light); }
.trust-strip i { color: var(--primary); }

.region-legend { display: flex; flex-direction: column; gap: 6px; }
.region-legend a {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); transition: all 0.15s ease;
}
.region-legend a:hover { background: var(--primary-light); border-color: transparent; }
.region-legend .num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
}
.region-legend .rname { font-weight: 600; color: var(--primary-darker); flex: 1; }
.region-legend .rcount { font-size: 0.78rem; color: var(--text-lighter); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-weight: 600; font-size: 1.02rem; color: var(--primary-darker);
}
.faq-question .faq-icon { font-size: 1.3rem; color: var(--primary); transition: transform 0.2s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; font-size: 0.95rem; }
.faq-item.open .faq-answer { max-height: 300px; margin-top: 14px; }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Contact info list ---------- */
.contact-info-list { display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .icon-box { width: 46px; height: 46px; flex-shrink: 0; }
.contact-info-item strong { display: block; margin-bottom: 4px; color: var(--primary-darker); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  font-size: 1.7rem; transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Badges / tags ---------- */
.tag { display: inline-block; padding: 5px 14px; border-radius: 100px; background: var(--primary-light); color: var(--primary); font-size: 0.78rem; font-weight: 600; margin-bottom: 12px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ---------- Split (image + text) two-column sections ----------
   Used on About and Contact for side-by-side image/content rows. These
   used to be raw inline `style="display:grid; grid-template-columns:..."`
   on the .container, which meant no media query could ever touch them
   (inline styles always win over a stylesheet rule of equal or lower
   specificity) — on narrow phones the two columns kept trying to sit
   side by side, squeezing the image into a tiny box and the text into a
   sliver next to it. Moving the column definition into these classes
   lets the 900px breakpoint below collapse them to one column properly. */
.split-grid { display: grid; gap: 56px; }
.split-grid.split-center { align-items: center; }
.split-grid.split-top { align-items: flex-start; }
.split-1-1 { grid-template-columns: 1fr 1fr; }
.split-doctor { grid-template-columns: 0.85fr 1.15fr; }
.split-contact { grid-template-columns: 0.9fr 1.1fr; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 44px; }
  .split-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .body-diagram-wrap { grid-template-columns: 1fr; }
}

/* Mobile: stack the front/back diagram panels instead of squeezing both
   side by side — each panel gets roughly double the width, so the
   callout badges and their numbers stay legible and easier to tap. The
   text legend below remains the primary, fully-accessible way to
   navigate on small screens either way. */
@media (max-width: 640px) {
  .body-diagram-figures { flex-direction: column; align-items: center; max-width: 400px; }
  .body-figure-panel { max-width: 400px; width: 100%; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-teal-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 12px 24px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .steps { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .btn { white-space: normal; }
}

/* ---------- Scroll-reveal motion ----------
   Applied via JS (main.js) so the page degrades gracefully with JS
   disabled/blocked — the .js class is only added once main.js confirms
   it's running, and .reveal elements stay fully visible until then. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.21, 0.6, 0.35, 1), transform 0.7s cubic-bezier(0.21, 0.6, 0.35, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js .reveal.revealed { opacity: 1; transform: translateY(0); }

  /* Staggered entrance for items inside a grid/row so cards don't all
     fade in at once. */
  .reveal-stagger > *:nth-child(1) { --reveal-delay: 0ms; }
  .reveal-stagger > *:nth-child(2) { --reveal-delay: 90ms; }
  .reveal-stagger > *:nth-child(3) { --reveal-delay: 180ms; }
  .reveal-stagger > *:nth-child(4) { --reveal-delay: 270ms; }
  .reveal-stagger > *:nth-child(n+5) { --reveal-delay: 340ms; }
}
