/* =========================================================
   Meridian Physiotherapy — Homepage styles
   Design system: tokens, components, layout
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — teal (trust, calm) */
  --teal-800: #0a4842;
  --teal-700: #0d504c;
  --teal-600: #0e6b62;
  --teal-500: #12857d;
  --teal-100: #dcefec;
  --teal-050: #ecf6f4;

  /* Accent — coral / terracotta (passion, CTAs) */
  --coral-700: #a63d25;   /* button hover */
  --coral-600: #c0472c;   /* CTA button — 5.0:1 on white */
  --coral-500: #f27457;   /* decorative */
  --coral-400: #ff8a5b;   /* decorative bright (matches logo dot) */
  --coral-100: #fce3d9;
  --coral-050: #fdefe9;

  /* Neutrals — warm */
  --cream: #fbf6ef;
  --cream-deep: #f5ecdf;
  --sand: #f3e7d5;
  --white: #ffffff;
  --ink: #17302c;         /* body text */
  --ink-soft: #45544f;    /* muted text — 6.7:1 on cream */
  --line: #e7ddcd;

  /* WhatsApp */
  --wa: #1f7a4d;
  --wa-dark: #196340;

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Scale */
  --step-xl: clamp(2.6rem, 5.2vw + 1rem, 4.4rem);
  --step-lg: clamp(2rem, 3vw + 1rem, 3rem);
  --step-md: clamp(1.5rem, 1.4vw + 1rem, 2rem);
  --step-sm: clamp(1.15rem, 0.5vw + 1rem, 1.35rem);

  /* Space */
  --sp-section: clamp(3.5rem, 7vw, 6.5rem);
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(23, 48, 44, 0.06);
  --shadow-md: 0 12px 30px rgba(23, 48, 44, 0.10);
  --shadow-lg: 0 24px 60px rgba(23, 48, 44, 0.16);

  --maxw: 1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; color: var(--ink); }
h1 { font-size: var(--step-xl); letter-spacing: -0.02em; }
h2 { font-size: var(--step-lg); letter-spacing: -0.015em; }
h3 { font-size: var(--step-sm); letter-spacing: -0.01em; }
strong { font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--teal-600); color: var(--white);
  padding: 0.6rem 1rem; border-radius: 10px; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Icons ----------
   .ic       = Lucide line icons, one consistent stroke width (1.75)
   .social-ic = Simple Icons brand marks (solid fill, no stroke)
   .rating-star = Lucide star used as a filled rating meter */
.ic {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.social-ic {
  width: 20px; height: 20px; flex: none;
  fill: currentColor; stroke: none;
}
.rating-star {
  width: 22px; height: 22px; flex: none;
  fill: var(--coral-500); stroke: none;
}
/* .anat = Healthicons anatomy icons (solid fill) for the body-area cards */
.anat {
  width: 32px; height: 32px; flex: none;
  fill: currentColor; stroke: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  text-align: center; line-height: 1.2;
}
.btn .ic, .btn .social-ic { width: 20px; height: 20px; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.btn-block { display: flex; width: 100%; }

/* Buttons change background colour only on hover — no shadow, no transform */
.btn-primary { background: var(--coral-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--coral-700); }

.btn-accent { background: var(--white); color: var(--teal-700); }
.btn-accent:hover { background: var(--cream); }

.btn-whatsapp { background: var(--wa); color: var(--white); }
.btn-whatsapp:hover { background: var(--wa-dark); }

/* Ghost button used on hero over image */
.hero .btn-whatsapp { border-color: rgba(255,255,255,0.5); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 700; color: var(--teal-600);
  border-bottom: 2px solid transparent; padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.text-link span { transition: transform 0.15s ease; }
.text-link:hover { color: var(--coral-600); border-color: var(--coral-500); }
.text-link:hover span { transform: translateX(3px); }
.text-link-light { color: var(--cream); }
.text-link-light:hover { color: var(--coral-400); border-color: var(--coral-400); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(251, 246, 239, 0.97); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--teal-700); letter-spacing: -0.02em; }
.brand-sub { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 1.1rem; }
.primary-nav a {
  font-weight: 600; font-size: 0.98rem; color: var(--ink);
  padding: 0.4rem 0; position: relative;
}
/* Keep every top-level nav label on a single line (dropdown links may still wrap) */
.primary-nav > ul > li > a { white-space: nowrap; }
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--coral-500); transition: width 0.2s ease;
}
.primary-nav > ul > li > a:hover { color: var(--teal-600); }
.primary-nav > ul > li > a:hover::after { width: 100%; }

/* ---------- Header dropdown menus ---------- */
.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; }

.primary-nav .nav-item { position: relative; display: flex; align-items: center; gap: 0.1rem; }
.dropdown-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  padding: 0.35rem 0.2rem; border-radius: 8px; line-height: 0;
}
.dropdown-toggle:hover { color: var(--teal-600); }
.dropdown-toggle .chev { width: 16px; height: 16px; transition: transform 0.2s ease; }
.has-dropdown.open .dropdown-toggle .chev { transform: rotate(180deg); }
.has-dropdown.open > .nav-parent { color: var(--teal-600); }

.dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 0.5rem;
  min-width: 240px; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.55rem; box-shadow: var(--shadow-md);
  display: none; z-index: 120;
}
.has-dropdown.open > .dropdown { display: block; }
.dropdown ul { display: grid; gap: 0.1rem; }
.dropdown a { display: block; padding: 0.5rem 0.7rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--teal-050); color: var(--teal-700); }
.dropdown-all { margin-top: 0.35rem; padding-top: 0.35rem; border-top: 1px solid var(--line); }
.dropdown-all a { color: var(--teal-600); }
.dropdown-all a:hover { color: var(--teal-700); }
.dropdown-mega { min-width: 540px; }
.dropdown-mega ul { grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 0.1rem 0.5rem; }
.dropdown-mega .dropdown-all { grid-column: 1 / -1; }

.header-actions { display: flex; align-items: center; gap: 0.7rem; margin-left: 1rem; }

.social-icons { display: flex; align-items: center; gap: 0.35rem; }
.social-icons a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; color: var(--teal-700);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.social-icons a:hover { background: var(--teal-100); color: var(--teal-600); }
.social-icons .social-ic { width: 18px; height: 18px; }

.phone-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--teal-700); font-size: 0.95rem; white-space: nowrap; }
.phone-link .ic { width: 18px; height: 18px; color: var(--coral-600); flex: none; }
.phone-link:hover { color: var(--coral-600); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; padding: 10px; border-radius: 10px;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--teal-700); border-radius: 2px; margin: 4px 0; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("../images/hero.jpg");
  background-size: cover; background-position: 28% 32%;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(9,55,50,0.94) 0%, rgba(11,66,60,0.86) 34%, rgba(12,74,68,0.55) 62%, rgba(12,74,68,0.18) 100%),
    linear-gradient(0deg, rgba(9,50,46,0.55) 0%, rgba(9,50,46,0) 40%);
}
.hero-inner { position: relative; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(5rem, 9vw, 8rem); }
.hero-content { max-width: 640px; color: #fff; }
/* The hero eyebrow IS the page's single <h1> — small, plain, keyword-rich */
.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.95rem; line-height: 1.4;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #ffd9c9; margin-bottom: 1rem;
}
/* The slogan is the big visual centrepiece, but not a heading */
.hero-slogan {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-xl); line-height: 1.1; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 1rem; text-wrap: balance;
}
.hero-sub { font-size: var(--step-sm); color: #f3f7f5; max-width: 40ch; margin-bottom: 1.6rem; }

.trust-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.1rem; margin-bottom: 1.8rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.95rem; color: #fff; }
.trust-row .ic { width: 20px; height: 20px; color: var(--coral-400); }
.trust-row .rating-star { width: 20px; height: 20px; fill: var(--coral-400); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1rem; }
.hero-cta .btn { padding: 1rem 1.7rem; font-size: 1.05rem; }
.hero-note { font-size: 0.92rem; color: #e4efec; display: flex; align-items: center; gap: 0.4rem; }

/* ---------- Section shell ---------- */
.section { position: relative; padding-block: var(--sp-section); overflow: hidden; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.centered { margin-inline: auto; text-align: center; }
/* Only the hero has a kicker label (which is the <h1>); other sections lead with <h2> */
.section-lead { font-size: var(--step-sm); color: var(--ink-soft); margin-top: 0.9rem; text-wrap: pretty; }
.section-more { margin-top: 1.6rem; }

/* Plain hairline divider between sections (functional separator, not decorative) */
.section-divider { border: 0; height: 1px; margin: 0; background: rgba(14, 107, 98, 0.16); }

/* ---------- Where does it hurt ---------- */
/* Interactive cards (pain / service / chip): raised white, visible border, hover cue */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pain-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.85rem;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1rem; box-shadow: var(--shadow-sm);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
/* Clickable card: non-shadow hover cue (border + background tint) */
.pain-card:hover { background: var(--teal-050); border-color: var(--teal-500); }
.pain-ic {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--teal-050); color: var(--teal-600);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.pain-card:hover .pain-ic { background: var(--teal-600); color: #fff; }
.pain-ic .anat { width: 34px; height: 34px; }
.pain-label { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }

/* ---------- Conditions ---------- */
.conditions { background: var(--cream-deep); }
.chip-list { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  display: inline-flex; align-items: center; font-weight: 600; font-size: 0.98rem;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--line);
  padding: 0.6rem 1.1rem; border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }

/* ---------- Insurance ---------- */
.insurance { background: var(--teal-050); }
.insurance-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.insurance-copy h2 { margin-bottom: 1rem; }
.insurance-copy > p { color: var(--ink-soft); margin-bottom: 1.4rem; font-size: 1.08rem; }
.tick-list { display: grid; gap: 0.75rem; margin-bottom: 1.4rem; }
.tick-list li { display: flex; align-items: flex-start; gap: 0.7rem; font-weight: 600; }
.tick-list .ic { width: 22px; height: 22px; color: var(--teal-600); margin-top: 2px; }
.insurer-note { color: var(--ink-soft); margin-bottom: 1.2rem; }

.insurance-card {
  background: var(--teal-700); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.insurance-card .ic-badge {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.14); color: var(--coral-400); margin-bottom: 1rem;
}
.insurance-card .ic-badge .ic { width: 30px; height: 30px; }
.insurance-card-big { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin-bottom: 0.6rem; }
.insurance-card-text { color: #dceee9; margin-bottom: 1.5rem; }

/* Supported-insurer monochrome wordmark strip (swap for real logo files later) */
.insurer-strip { margin-top: clamp(2rem, 4vw, 2.75rem); padding-top: 1.6rem; border-top: 1px solid var(--teal-100); display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.6rem; }
.insurer-strip-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.insurer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.6rem; }
.insurer-logos li { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; color: #5f6d69; filter: grayscale(1); }

/* ---------- Treatments ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.service-card {
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex;
  transition: border-color 0.18s ease;
}
/* Whole card is the link (non-shadow hover cue: border colour) */
.service-card:hover { border-color: var(--teal-500); }
.service-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.service-card img { width: 100%; height: 180px; object-fit: cover; }
.service-body { padding: 1.2rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.service-body h3 { font-size: 1.15rem; transition: color 0.15s ease; }
.service-card:hover .service-body h3 { color: var(--teal-600); }
.service-text { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Approach ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
/* ---- Informational cards: white, BORDERLESS, no shadow, NO hover (not clickable) ---- */
.benefit {
  background: var(--white); border: none; border-radius: var(--radius-lg);
  padding: 1.7rem; box-shadow: none;
}
.benefit-ic {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px;
  background: var(--coral-050); color: var(--coral-600); margin-bottom: 1rem;
}
.benefit-ic .ic { width: 28px; height: 28px; }
.benefit h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.benefit p { color: var(--ink-soft); }

/* ---------- Team ---------- */
.team-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.team-photo { position: relative; }
.team-photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: cover; aspect-ratio: 3/2.4; }
.team-badge {
  position: absolute; right: -14px; bottom: -18px; background: var(--coral-600); color: #fff;
  border-radius: 20px; padding: 1rem 1.2rem; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; line-height: 1.1; max-width: 160px;
}
.team-badge-num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.team-badge-text { font-size: 0.82rem; font-weight: 600; }
.team-copy h2 { margin-bottom: 1rem; }
.team-copy p { color: var(--ink-soft); margin-bottom: 1rem; font-size: 1.08rem; }
.team-facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin: 1.5rem 0; }
.team-facts li { display: flex; flex-direction: column; }
.fact-num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--teal-600); line-height: 1; }
.fact-num span { color: var(--coral-500); font-size: 1.4rem; }
.fact-label { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; max-width: 16ch; margin-top: 0.3rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream-deep); }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
/* Informational, not clickable: white, borderless, no shadow, no hover */
.testimonial-card {
  background: var(--white); border: none; border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: none; display: flex; flex-direction: column; gap: 0.9rem;
}
.stars { display: flex; gap: 2px; }
.testimonial-card blockquote { font-size: 1.1rem; color: var(--ink); line-height: 1.6; }
.testimonial-card footer { display: flex; flex-direction: column; margin-top: auto; }
.test-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.test-meta { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Final CTA ---------- */
.cta-band { position: relative; background: linear-gradient(150deg, var(--teal-700), var(--teal-600)); color: #fff; }
.cta-band h2, .cta-band h3 { color: #fff; }
/* Homepage final CTA: full-bleed photo behind a teal scrim (text/form stay legible) */
.cta-photo {
  background:
    linear-gradient(150deg, rgba(10,72,66,0.93) 0%, rgba(12,80,74,0.86) 45%, rgba(12,90,82,0.72) 100%),
    url("../images/pilates.jpg");
  background-size: cover;
  background-position: center 35%;
}
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.cta-copy h2 { margin-bottom: 1rem; text-wrap: balance; }
.cta-copy > p { color: #dceee9; font-size: 1.12rem; margin-bottom: 1.6rem; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.cta-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); color: var(--ink); }
.cta-card h3 { color: var(--ink); margin-bottom: 1.1rem; font-size: 1.4rem; }
.book-form { display: grid; gap: 0.9rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field input, .field select {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.7rem 0.85rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream);
  width: 100%; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(18,133,125,0.18); }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }
.form-note a { color: var(--teal-600); font-weight: 700; }

.cta-hours { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.18); display: grid; gap: 0.5rem; }
.cta-hours p { color: #e4efec; font-size: 0.98rem; }
.cta-hours strong { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-800); color: #cfe0dc; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.4fr; gap: 2rem; padding-block: clamp(3rem, 5vw, 4.5rem) 2.5rem; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-sub { color: #9fbcb6; }
.footer-tag { margin: 1rem 0 1.2rem; font-size: 0.95rem; max-width: 34ch; }
.social-footer a { color: #cfe0dc; }
.social-footer a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.footer-heading { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 1rem; letter-spacing: 0.02em; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.95rem; color: #cfe0dc; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--coral-400); }
.footer-contact address { font-style: normal; font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.9rem; }
.footer-near { color: #9fbcb6; }
.footer-contact p { font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-contact a:hover { color: var(--coral-400); }
.footer-hours { color: #9fbcb6; }

.footer-bar { border-top: 1px solid rgba(255,255,255,0.10); }
.footer-bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; padding-block: 1.3rem; font-size: 0.85rem; color: #9fbcb6; }

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(23,48,44,0.12);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 0.55rem 0.4rem; font-size: 0.75rem; font-weight: 700; color: var(--teal-700);
}
.mobile-bar a .ic { width: 22px; height: 22px; }
.mobile-bar .mobile-bar-book { background: var(--coral-600); color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .pain-grid { grid-template-columns: repeat(4, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Tighten the header on narrow desktops (above the mobile drawer breakpoint)
   so every top-level nav item stays on one line without overflow */
@media (min-width: 901px) and (max-width: 1150px) {
  .header-inner { gap: 0.7rem; }
  .primary-nav ul { gap: 0.7rem; }
  .primary-nav a { font-size: 0.9rem; }
  .dropdown a { font-size: 0.95rem; }
  .header-actions { gap: 0.5rem; margin-left: 0.6rem; }
  .header-actions .btn-sm { padding: 0.55rem 0.85rem; font-size: 0.9rem; }
  .phone-link { font-size: 0.9rem; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .primary-nav {
    position: fixed; inset: 72px 0 auto 0; margin: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height 0.28s ease;
  }
  .primary-nav.open { max-height: 78vh; overflow-y: auto; }
  .primary-nav > ul { flex-direction: column; gap: 0; padding: 0.5rem 1rem 1rem; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 0.9rem 0.3rem; font-size: 1.05rem; }
  .primary-nav a::after { display: none; }

  /* Dropdowns fold into the drawer as expandable sub-lists */
  .primary-nav .nav-item { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
  .primary-nav .nav-parent { flex: 1; }
  .dropdown-toggle { margin-left: auto; padding: 0.9rem 0.6rem; }
  .dropdown-toggle .chev { width: 20px; height: 20px; }
  .dropdown { position: static; display: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0.5rem 0.9rem; margin: 0; min-width: 0; width: 100%; flex-basis: 100%; }
  .has-dropdown.open > .dropdown { display: block; }
  .dropdown-mega { min-width: 0; }
  .dropdown-mega ul { grid-template-columns: 1fr; }
  .dropdown ul { gap: 0; }
  .dropdown li { border-bottom: 0; }
  .dropdown a { padding: 0.65rem 0.4rem; font-size: 1rem; }
  .dropdown-all { border-top: 1px solid var(--line); }

  .nav-toggle { display: block; }
  .social-icons, .phone-link { display: none; }
  .header-actions { margin-left: auto; gap: 0.5rem; }

  .insurance-inner { grid-template-columns: 1fr; }
  .team-inner { grid-template-columns: 1fr; }
  .team-photo { max-width: 520px; }
  .team-badge { right: 10px; }
  .cta-inner { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; gap: 1rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .service-card-link { flex-direction: row; }
  .service-card img { width: 40%; height: auto; min-height: 100%; object-fit: cover; }
  .service-body { padding: 1rem; }

  .mobile-bar { display: grid; }
  body { padding-bottom: 64px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .team-facts { gap: 1rem 1.5rem; }
  .brand-sub { display: none; }
}

@media (max-width: 400px) {
  .pain-grid { gap: 0.7rem; }
  .hero-eyebrow { font-size: 0.75rem; }
  .service-card-link { flex-direction: column; }
  .service-card img { width: 100%; height: 170px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Interior pages (overview + detail templates)
   ========================================================= */
.footer-heading a { color: inherit; }
.footer-heading a:hover { color: var(--coral-400); }

/* Compact teal hero for interior pages (keyword line is the <h1>) */
.page-hero { background: linear-gradient(150deg, var(--teal-700), var(--teal-600)); color: #fff; }
.page-hero-inner { padding-block: clamp(1.8rem, 4vw, 3rem) clamp(2.4rem, 5vw, 3.5rem); }
.breadcrumb { font-size: 0.85rem; color: #cfe6e1; margin-bottom: 1.1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.15rem 0.45rem; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.45rem; }
.breadcrumb a { color: #cfe6e1; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.breadcrumb li[aria-current] { color: #fff; }
.breadcrumb .sep { opacity: 0.55; }
.page-eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: #ffd9c9; margin-bottom: 0.7rem; }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lg); line-height: 1.08; letter-spacing: -0.015em; color: #fff; margin-bottom: 1rem; max-width: 22ch; text-wrap: balance; }
.page-intro { font-size: var(--step-sm); color: #eaf3f1; max-width: 60ch; margin-bottom: 1.6rem; }
.page-hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.page-hero .btn-accent { background: #fff; color: var(--teal-700); }
.page-hero .btn-whatsapp { border-color: rgba(255,255,255,0.5); }

/* Two-column detail layout: main prose + sticky booking aside */
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose { max-width: 68ch; }
.prose > h2:first-child { margin-top: 0; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.2rem; }
.prose p { margin-top: 1rem; color: var(--ink); }
.prose .tick-list { margin-top: 1.1rem; }
.prose .lead { font-size: 1.12rem; color: var(--ink-soft); }

.aside-card { position: sticky; top: 96px; background: var(--teal-700); color: #fff; border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-md); display: grid; gap: 0.8rem; }
.aside-card h2 { color: #fff; font-size: 1.3rem; }
.aside-card p { color: #dceee9; font-size: 0.98rem; }
.aside-card .btn { width: 100%; }
.aside-card .aside-contact { display: grid; gap: 0.5rem; margin-top: 0.2rem; }
.aside-card .aside-contact a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.aside-card .aside-contact a:hover { color: var(--coral-400); }
.aside-card .aside-contact .ic { width: 18px; height: 18px; color: var(--coral-400); }
.aside-card .aside-hours { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 0.8rem; font-size: 0.9rem; color: #cfe6e1; }

/* Cross-link chips reused; small heading blocks */
.related-block { margin-top: 0; }
.related-block .section-lead { margin-bottom: 1.4rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3rem); align-items: start; }
.contact-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.contact-panel h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-methods { display: grid; gap: 0.9rem; margin: 1.2rem 0; }
.contact-method { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-method .ic { width: 22px; height: 22px; color: var(--teal-600); margin-top: 2px; flex: none; }
.contact-method a { color: var(--teal-600); font-weight: 700; }
.form-success { background: var(--teal-050); border: 1px solid var(--teal-100); color: var(--teal-800); border-radius: 12px; padding: 1rem 1.2rem; font-weight: 600; margin-top: 1rem; }

/* Team page */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.team-member { background: var(--white); border: none; border-radius: var(--radius-lg); overflow: hidden; box-shadow: none; }
.team-member .tm-body { padding: 1.2rem 1.3rem 1.5rem; }
.team-member h3 { font-size: 1.15rem; }
.team-member .tm-role { color: var(--coral-600); font-weight: 700; font-size: 0.9rem; margin-top: 0.2rem; }
.team-member p { color: var(--ink-soft); font-size: 0.96rem; margin-top: 0.5rem; }
.tm-ph { aspect-ratio: 3/2; background: var(--teal-050); overflow: hidden; }
.tm-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-feature { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }

/* 404 */
.notfound { text-align: center; max-width: 640px; margin-inline: auto; padding-block: clamp(3rem, 8vw, 6rem); }
.notfound .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); color: var(--teal-600); line-height: 1; }
.notfound .page-hero-cta { justify-content: center; margin-top: 1.6rem; }

/* Simple info list of facts */
.fact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.fact-card { background: var(--white); border: none; border-radius: var(--radius); padding: 1.3rem; }
.fact-card .fc-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--teal-600); line-height: 1; }
.fact-card .fc-label { display: block; color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.35rem; }

@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .fact-cards { grid-template-columns: 1fr 1fr; }
}

.aside-card .aside-contact .social-ic { width: 18px; height: 18px; color: var(--coral-400); }

/* ---- Dummy floating WhatsApp button (visual/demo only — not functional) ---- */
.wa-fab { position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 9990;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px;
  background: #25D366; color: #fff; cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,211,102,.40);
  transition: transform .2s ease, box-shadow .2s ease; }
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.55); }
.wa-fab-pulse { position: absolute; inset: 0; border-radius: 999px; background: #25D366;
  animation: wa-fab-pulse 2.4s ease-out infinite; }
@keyframes wa-fab-pulse { 0%{opacity:.6;transform:scale(1)} 70%{opacity:0;transform:scale(1.55)} 100%{opacity:0;transform:scale(1.55)} }
.wa-fab-icon { position: relative; z-index: 1; flex-shrink: 0; }
.wa-fab-tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; background: #111; color: #fff; font-size: .8125rem; font-weight: 500;
  padding: .35rem .75rem; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.wa-fab-tip::after { content:''; position:absolute; left:100%; top:50%; transform:translateY(-50%);
  border:5px solid transparent; border-left-color:#111; }
.wa-fab:hover .wa-fab-tip { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .wa-fab-pulse { animation: none; } }
@media (max-width: 900px) { .wa-fab { display: none; } } /* mobile action bar already has WhatsApp */
