/* ============================================================
   Mathieu Boudreau, RMT — site styles
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette v5 — cool, blue-led, anchored on ClinicSense #3498DB.
     Variable names kept for backwards-compat with existing rule selectors;
     values swapped to clinical/cool family. No more warm greens. */
  --forest:    #0E1116;   /* primary dark — near-black, nav + headings */
  --forest-2:  #1A1F26;   /* secondary deep — alternative dark surfaces */
  --charcoal:  #2C313A;   /* body text — cool charcoal */
  --slate:     #6B7280;   /* muted text — neutral cool gray */
  --cream:     #F4F5F7;   /* page background — cool off-white */
  --cream-2:   #E4E7EB;   /* card backgrounds, dividers — light cool gray */
  --line:      #D1D5DB;   /* subtle borders — cool neutral */
  --accent:    #3498DB;   /* ClinicSense brand blue — kept */
  --accent-2:  #2980B9;   /* hover state — darker blue companion */
  --sage:      #7F8C9F;   /* supporting blue-gray (eyebrows, accents) — replaced sage green */
  --white:     #FFFFFF;

  /* Type — Raleway (headings, sans-serif) + Lato (body, sans-serif).
     Matches r3health.ca which Mathieu pointed at as inspiration. */
  --font-heading: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 880px;
  --radius: 4px;
  --shadow-sm: 0 2px 8px rgba(26, 42, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 42, 26, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 19.5px;
  line-height: 1.62;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 var(--space-sm) 0;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 var(--space-sm) 0; }
p:last-child { margin-bottom: 0; }

a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  width: 100%;
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section { padding: var(--space-2xl) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--forest);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--cream);
  color: var(--forest);
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  /* Mathieu's actual full logo (MB mark + "Mathieu Boudreau" + tagline),
     sourced from his current Wix site as a clean transparent PNG.
     Inverted from black-on-transparent to white-on-transparent for the
     forest nav. */
  height: 48px;
  width: auto;
  display: block;
  filter: invert(1) brightness(1.1);
  -webkit-filter: invert(1) brightness(1.1);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.7);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
  border-bottom-color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-2);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--cream);
}
.btn-secondary:hover {
  background: var(--cream);
  color: var(--forest);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--cream);
}

.btn-large {
  font-size: 1.05rem;
  padding: 1rem 2rem;
}

/* Nav-specific Book button: clearly wider than the text, lifted off dark nav */
.btn-nav {
  padding: 1rem 2.5rem;
  min-width: 180px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(52, 152, 219, 0.45);
}

/* ---------- Credentials strip (above footer) — label+logo pairs ---------- */
.credentials-strip {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-lg) 0;
}
.credentials-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.credential-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.credential-pair-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.credential-logo {
  height: 70px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.15s ease;
}
.credential-logo:hover { opacity: 1; }

/* Dark chip behind logos whose text/marks are light and need contrast (e.g. RAPID).
   Adds a forest background + padding + rounded corners so the logo reads against
   the cream credentials strip. */
.credential-logo.on-dark-chip {
  background: var(--forest);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  height: 90px;
  box-shadow: 0 2px 6px rgba(14, 17, 22, 0.18);
}

/* Linked credential logos — full clickable area, no underline */
.credential-link {
  display: inline-block;
  text-decoration: none;
  border-bottom: none;
}
.credential-link:hover { opacity: 1; }
.credential-link .credential-logo { transition: transform 0.15s ease, opacity 0.15s ease; }
.credential-link:hover .credential-logo {
  transform: translateY(-2px);
  opacity: 1;
}

/* ---------- Bio credentials (in-page logo strip, e.g. on home + about) ---------- */
.bio-credentials-logos {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}
.bio-credentials-logos img {
  height: 76px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  opacity: 0.95;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.bio-credentials-logos a { display: inline-block; text-decoration: none; border-bottom: none; }
.bio-credentials-logos a:hover img { transform: translateY(-2px); opacity: 1; }
.bio-credentials-logos img.on-dark-chip {
  background: var(--forest);
  padding: 0.7rem 1.1rem;
  border-radius: 5px;
  height: 92px;
  box-shadow: 0 2px 6px rgba(14, 17, 22, 0.18);
}

/* ---------- Detailed credentials (about page, logo + name + description rows) ---------- */
.credentials-detail-list {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
  list-style: none;
  padding: 0;
}
.credentials-detail-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.credentials-detail-list .cred-logo {
  height: 80px;
  width: 100%;
  max-width: 200px;
  object-fit: contain;
  justify-self: center;
}
.credentials-detail-list .cred-logo.on-dark-chip {
  background: var(--forest);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  height: 100px;
  box-shadow: 0 2px 6px rgba(14, 17, 22, 0.18);
}
.credentials-detail-list a { display: inline-block; text-decoration: none; border-bottom: none; justify-self: center; }
.credentials-detail-list a:hover .cred-logo { transform: translateY(-2px); }
.credentials-detail-list .cred-logo { transition: transform 0.15s ease; }
.credentials-detail-list h4 { margin-bottom: 0.25rem; color: var(--forest); font-size: 1.25rem; }
.credentials-detail-list p { color: var(--slate); font-size: 1rem; margin: 0; line-height: 1.55; }

/* ---------- Appointment-types reformat (services page) ---------- */
.appt-list {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.appt-row {
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.appt-row h3 { font-size: 1.5rem; margin-bottom: 0.25rem; color: var(--forest); }
.appt-row .appt-when {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.appt-row p { font-size: 1.05rem; color: var(--charcoal); margin: 0; }
.appt-row .appt-duration {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  text-align: right;
  font-weight: 600;
}
.appt-row .appt-duration strong { color: var(--accent); display: block; font-size: 1.15rem; }

/* ---------- Map embed ---------- */
.map-block {
  background: var(--cream-2);
  padding: var(--space-xl) 0;
}
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-lg);
  align-items: stretch;
}
.map-info p { margin-bottom: 0.5rem; font-size: 1.05rem; }
.map-info .map-line-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: 0.25rem;
}
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 360px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}
.hours-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { font-family: var(--font-heading); font-weight: 600; color: var(--forest); }
.hours-list .time { color: var(--slate); }
.hours-list .closed { color: var(--slate); font-style: italic; }

/* Appointment times (contact) — first/last appointment, not opening hours (S11, 2026-11-07) */
table.appt-times { width: 100%; border-collapse: collapse; margin: 0.5rem 0 0; font-size: 1rem; }
table.appt-times th, table.appt-times td { padding: 0.45rem 0.5rem 0.45rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.appt-times tbody tr:last-child th, table.appt-times tbody tr:last-child td { border-bottom: 0; }
table.appt-times thead th { font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; color: var(--slate); }
table.appt-times tbody th { font-family: var(--font-heading); font-weight: 600; color: var(--forest); }
table.appt-times td { color: var(--slate); }
table.appt-times td.closed { font-style: italic; }

/* ---------- Hero ---------- */
.hero {
  background: var(--cream);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero-sub {
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--slate);
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: var(--space-lg);
}
.hero-meta span::before { content: '✓  '; color: var(--accent); font-weight: 700; }

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--forest);
  box-shadow: var(--shadow-md);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.05);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--forest);
  color: var(--cream);
  padding: var(--space-md) 0;
}
.trust-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.trust-item strong {
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
}

/* ---------- Bio block ---------- */
.bio {
  background: var(--cream-2);
}
.bio-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.bio-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--forest);
  box-shadow: var(--shadow-md);
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio h2 { margin-bottom: var(--space-md); }
.bio-credentials {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}
.bio-credentials span {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

/* ---------- Section header ---------- */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-xl);
}
.section-header p { color: var(--slate); font-size: 1.25rem; line-height: 1.55; }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.service-card-image {
  aspect-ratio: 4 / 3;
  background: var(--forest);
  overflow: hidden;
}
.service-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-image img { transform: scale(1.04); }

.service-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card h3 { margin-bottom: var(--space-xs); }
.service-card p { color: var(--slate); font-size: 0.95rem; flex: 1; }
.service-card-link {
  margin-top: var(--space-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
}
.service-card-link::after { content: ' →'; }

/* ---------- Reviews carousel (3 per page, auto-cycle) ---------- */
.reviews-carousel {
  position: relative;
  margin-top: var(--space-lg);
}
.reviews-carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 0 auto;
  gap: var(--space-md);
  transition: opacity 0.4s ease;
}
.reviews-carousel-track.fading { opacity: 0; }
.reviews-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.carousel-btn {
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--forest);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.carousel-btn:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot:hover { background: var(--slate); }
.carousel-dot.is-active { background: var(--accent); transform: scale(1.3); }
.carousel-counter {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}

/* ---------- Awards section (Community Votes Top Pick badges) ---------- */
.awards-section {
  background: var(--cream-2);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}
.awards-section .section-header { margin-bottom: var(--space-md); }

/* Reusable mini-reviews grid for service-detail + about pages */
.reviews-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0 0;
}
@media (max-width: 760px) {
  .reviews-mini-grid { grid-template-columns: 1fr; }
  /* hero photo runs very tall at 4/5 on a phone — cap it so it's not oversized */
  /* 16/11 cropped ~45% off a 4/5 photo, cutting Mathieu's hands out of frame
     on phones -- the exact thing he flagged. Squarer keeps the work visible. */
  .hero-image { aspect-ratio: 1 / 1; max-height: 420px; }
  .service-hero-image { max-height: 320px; overflow: hidden; border-radius: var(--radius); }
  .service-hero-image.is-portrait { max-height: none; }
  /* Both portraits are cropped to 4/5 in the JPEG itself, so desktop shows them
     whole. The old 4/3 + top-anchor here re-cropped them to landscape and framed
     the posters instead of Mathieu. Keep the approved framing on phones too. */
  .bio-photo { aspect-ratio: 9 / 10; }
  .bio-photo img { object-position: 50% 100%; }
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 760px;
  margin: var(--space-lg) auto 0;
}
.award-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.award-badge {
  /* CV Moncton style — teal frame, gradient sky, star strip, year, text. */
  background: linear-gradient(180deg, #C9DEF1 0%, #E8F1F7 38%, #FFFFFF 100%);
  border: 14px solid #2BA09F;
  border-radius: 8px;
  padding: var(--space-md) var(--space-sm) var(--space-md);
  text-align: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(14, 17, 22, 0.10);
  font-family: var(--font-heading);
}
.award-badge::after {
  /* City skyline bottom strip */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -14px;
  height: 16px;
  background: linear-gradient(180deg, #A8D88A 0%, #74B85A 100%);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.award-badge-cv {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: #2A3D2A;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.award-badge-cv-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2.5px solid #2BA09F;
  border-radius: 50%;
  position: relative;
  vertical-align: middle;
  margin-right: 0.35rem;
}
.award-badge-cv-mark::after {
  content: '✓';
  position: absolute;
  top: -3px;
  left: 3px;
  color: #2BA09F;
  font-size: 1rem;
  font-weight: 800;
}
.award-badge-city {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0.25rem 0 0.4rem;
}
.award-badge-stars {
  background: var(--ink);
  color: #2BA09F;
  padding: 0.3rem 1rem;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}
.award-badge-year {
  font-family: 'Lora', 'Hanken Grotesk', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
  margin-right: 0.6rem;
}
.award-badge-titlebox {
  display: inline-block;
  vertical-align: middle;
  text-align: left;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.award-badge-presented {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin: var(--space-md) 0 0.3rem;
}
.award-badge-recipient {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}
.award-badge-best-in-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.25rem;
}
.award-badge-category {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: var(--space-md);
}
.award-badge-issued {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--slate);
  padding-top: var(--space-sm);
}

@media (max-width: 760px) {
  .reviews-carousel-track { grid-template-columns: 1fr; }
}

/* ---------- "Who is this for" section ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.audience-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.audience-card h4 {
  margin-bottom: 0.5rem;
  color: var(--forest);
  font-size: 1.22rem;
}
.audience-card p {
  color: var(--slate);
  font-size: 1.08rem;
  margin: 0;
  line-height: 1.55;
}

/* ---------- "Why me" comparison ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: var(--space-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-col {
  padding: var(--space-lg) var(--space-md);
}
.compare-col.compare-mathieu {
  background: var(--forest);
  color: var(--cream);
}
.compare-col.compare-other {
  background: var(--cream-2);
  color: var(--charcoal);
}
.compare-col h3 {
  margin-bottom: var(--space-md);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}
.compare-col.compare-mathieu h3 { color: var(--accent); }
.compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compare-col li {
  padding: 0.75rem 0 0.75rem 1.9rem;
  position: relative;
  font-size: 1.18rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.compare-col.compare-other li { border-bottom-color: var(--line); }
.compare-col li:last-child { border-bottom: 0; }
.compare-col.compare-mathieu li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.compare-col.compare-other li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--slate);
  font-weight: 600;
}
.compare-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: var(--space-md);
  font-style: italic;
}

/* ---------- Conditions strip ---------- */
.conditions {
  background: var(--forest);
  color: var(--cream);
}
.conditions h2 { color: var(--cream); }
.conditions-grid {
  display: block;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.conditions-grid > div:first-child {
  margin-bottom: var(--space-lg);
}
.conditions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.condition-tag {
  background: rgba(245, 242, 236, 0.08);
  border: 1px solid rgba(245, 242, 236, 0.25);
  color: var(--cream);
  padding: 0.55rem 1rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.condition-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.35);
}
.conditions p { color: rgba(245, 242, 236, 0.85); }

/* ---------- Reviews ---------- */
.reviews { background: var(--cream-2); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  min-height: 230px; /* stable height so the carousel doesn't shift the page when it cycles */
}
.review-stars {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}
.review-quote {
  font-style: italic;
  color: var(--charcoal);
  flex: 1;
  font-size: 0.98rem;
}
.review-attr {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--slate);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: var(--space-lg) 0;
}
.cta-strip h2 { color: var(--cream); margin-bottom: 0.6rem; }
.cta-strip p { color: rgba(245, 242, 236, 0.92); margin-bottom: 1rem; font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #06080B;
  color: rgba(245, 242, 236, 0.8);
  padding: var(--space-xl) 0 var(--space-md);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.site-footer h4 {
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.site-footer a {
  color: rgba(245, 242, 236, 0.8);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
}
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(245, 242, 236, 0.12);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(245, 242, 236, 0.55);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ---------- SERVICES PAGE specific ---------- */
.page-hero {
  background: var(--forest);
  color: var(--cream);
  padding: var(--space-xl) 0;
  text-align: center;
}
.page-hero h1 { color: var(--cream); margin-bottom: var(--space-sm); font-size: clamp(2.9rem, 5vw, 4.5rem); }
.page-hero p { color: rgba(245, 242, 236, 0.92); max-width: 680px; margin: 0 auto; font-size: 1.35rem; line-height: 1.55; }

.services-detail-grid {
  display: grid;
  gap: var(--space-xl);
}
.services-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.services-detail-card:nth-child(even) .sdc-image { order: 2; }
.sdc-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.sdc-image img { width: 100%; height: 100%; object-fit: cover; }
.sdc-body { padding: var(--space-lg); }
.sdc-body h2 { color: var(--forest); margin-bottom: var(--space-xs); }
.sdc-body .eyebrow { color: var(--accent); }

/* ---------- SERVICE DETAIL PAGE ---------- */
.breadcrumbs {
  background: var(--cream-2);
  padding: var(--space-sm) 0;
  font-size: 0.88rem;
  color: var(--slate);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}
.breadcrumbs a { color: var(--slate); }
.breadcrumbs .sep { margin: 0 0.5rem; opacity: 0.5; }
.breadcrumbs .current { color: var(--forest); font-weight: 600; }

.service-hero {
  background: var(--cream);
  padding: var(--space-xl) 0;
}
.service-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.service-hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--forest);
  box-shadow: var(--shadow-md);
}
.service-hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Portrait-oriented service hero (RAPID, frame 5118). Scoped with a modifier so
   the other four service pages keep the shared 4/3 frame. Added 2026-08-11. */
.service-hero-image.is-portrait { aspect-ratio: 4 / 5; }

.service-section {
  padding: var(--space-xl) 0;
}
.service-section h2 {
  margin-bottom: var(--space-md);
}

.treats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: var(--space-md);
}
.treats-pill {
  background: var(--cream-2);
  border: 1px solid var(--line);
  padding: 0.75rem var(--space-sm);
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--forest);
}

.expect-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.expect-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.expect-steps li::before {
  content: counter(step);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.expect-steps h4 { margin-bottom: 0.25rem; color: var(--forest); }
.expect-steps p { color: var(--slate); font-size: 0.95rem; }

.related-services {
  background: var(--cream-2);
  padding: var(--space-xl) 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.related-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-decoration: none;
  color: var(--forest);
  font-family: var(--font-heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.related-card:hover { background: var(--forest); color: var(--cream); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid,
  .bio-grid,
  .services-detail-card,
  .service-hero-grid,
  .conditions-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .services-grid,
  .reviews-grid,
  .related-grid,
  .map-grid,
  .credentials-detail-list li,
  .appt-row { grid-template-columns: 1fr; }
  .credentials-inner { gap: var(--space-md); }
  .appt-row { gap: var(--space-sm); }
  .appt-row .appt-duration { text-align: left; }
  .services-detail-card:nth-child(even) .sdc-image { order: 0; }
  section { padding: var(--space-xl) 0; }
  .nav-links { display: none; }
  .footer-grid { gap: var(--space-md); }
}

/* ============================================================
   FAQ accordion (semantic <details>/<summary>)
   ============================================================ */
.faq-toc {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--slate);
  margin: 0;
}
.faq-toc a {
  display: inline-block;
  margin: 0 var(--space-sm);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.faq-toc a:hover { text-decoration: underline; }

.faq-list { margin-top: var(--space-md); }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--forest);
  padding: var(--space-md);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  transition: background 0.15s ease;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-question::after { content: "−"; }
.faq-question:hover { background: var(--cream-2); }

.faq-answer {
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid var(--line);
  color: var(--charcoal);
}
.faq-answer p { margin-top: var(--space-sm); line-height: 1.65; }
.faq-answer p:first-child { margin-top: var(--space-md); }
.faq-answer a { color: var(--accent); font-weight: 600; }
.faq-answer code {
  background: var(--cream-2);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--forest);
}

@media (max-width: 680px) {
  .faq-toc a { display: block; margin: 0.4rem 0; }
  .faq-question { font-size: 1rem; padding: var(--space-sm) var(--space-md); }
}

/* ============================================================
   v22 — Rebuild QA pass (Jun 2026)
   ============================================================ */

/* --- S1: four-info bar → single-row scrolling ticker (no stacking) --- */
.trust-strip { overflow: hidden; }
.ticker { display: flex; overflow: hidden; width: 100%; }
.ticker-track {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  will-change: transform;
  animation: ticker-scroll 30s linear infinite;
}
.trust-strip:hover .ticker-track { animation-play-state: paused; }
.ticker-track .trust-item { flex: 0 0 auto; padding: 0 var(--space-lg); }
.ticker-sep { flex: 0 0 auto; color: var(--accent); font-weight: 700; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; white-space: normal; justify-content: center; gap: var(--space-md); }
  .ticker-sep { display: none; }
}

/* --- M1: mobile hamburger nav --- */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
}
@media (max-width: 920px) {
  .nav { flex-wrap: wrap; align-items: center; }
  .brand { flex: 1 1 auto; }
  .nav-toggle { display: inline-flex; align-items: center; flex: 0 0 auto; }
  .nav > nav { flex: 1 1 100%; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    width: 100%;
    margin-top: var(--space-xs);
    padding-bottom: var(--space-xs);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 0.7rem 0; border-bottom: 1px solid rgba(245,242,236,0.12); }
  .nav-links .btn-nav { width: 100%; margin-top: var(--space-xs); }
}

/* --- M3: "What's Different" comparison stacks on phones (kills narrow columns) --- */
@media (max-width: 760px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-col { padding: var(--space-md); }
  .compare-col li { font-size: 1.05rem; padding-left: 1.6rem; }
}

/* --- M2: bio/credential logos stack one-per-row on phones (kills white space) --- */
@media (max-width: 760px) {
  .bio-credentials-logos { flex-direction: column; align-items: center; gap: var(--space-sm); }
  .bio-credentials-logos a { width: 100%; text-align: center; }
  .bio-credentials-logos img,
  .bio-credentials-logos img.on-dark-chip { margin: 0 auto; }
}

/* --- S2 / M6: modality "What it treats" pills read as interactive (hover glow + tap feedback) --- */
.treats-pill {
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.treats-pill:hover,
.treats-pill:active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.35);
}

/* --- S3: the arrow binds to the last word via &nbsp; in markup (no global nowrap — avoids mobile button overflow). --- */
/* --- M4: appointment time/price/button stack consistently on mobile --- */
@media (max-width: 920px) {
  .appt-row .appt-duration { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

/* --- D2: "Who is this for" cards are links --- */
a.audience-card { text-decoration: none; color: inherit; display: block; }
a.audience-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-left-color: var(--accent-2); color: inherit; }

/* ===== v23 - brand refresh: navy/teal palette + gradient run + Montserrat (visuals only) ===== */
:root {
  --forest: #0B1326;          /* Ink navy */
  --forest-2: #141B2E;
  --slate: #5E6770;           /* Slate */
  --cream: #F0F5FA;           /* Paper */
  --cream-2: #E3EAF1;         /* Cloud */
  --line: #D3DCE8;
  --accent: #389BD5;          /* Sense blue - functional */
  --accent-2: #1577B6;        /* Deep blue - hover */
  --sage: #2EBFA0;            /* eyebrows -> teal */
  --teal: #2EBFA0;            /* Bridge teal - signature accent */
  --teal-2: #24A98C;
  --brand-gradient: linear-gradient(90deg, #0B1326 0%, #1577B6 42%, #389BD5 68%, #2EBFA0 100%);
  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}
.site-header::after { content: ''; display: block; height: 4px; background: var(--brand-gradient); }
.site-footer { border-top: 4px solid transparent; border-image: var(--brand-gradient) 1; }
.compare-col.compare-mathieu li::before { color: var(--teal); }
.expect-steps li::before { color: var(--teal); }
.ticker-sep { color: var(--teal); }

/* ===== v23.2 - full teal sweep: signature/decorative accents -> teal; functional (buttons, links, nav) stays blue ===== */
.appt-row { border-left-color: var(--teal); }
.appt-row .appt-when { color: var(--teal); }
.appt-row .appt-duration strong { color: var(--teal); }
.hero-meta span::before { color: var(--teal); }
.audience-card { border-left-color: var(--teal); }
a.audience-card:hover { border-left-color: var(--teal-2); }
.compare-col.compare-mathieu h3 { color: var(--teal); }
.sdc-body .eyebrow { color: var(--teal); }
.condition-tag:hover { background: var(--teal); border-color: var(--teal); box-shadow: 0 4px 12px rgba(46, 191, 160, 0.38); }
.treats-pill:hover, .treats-pill:active { background: var(--teal); border-color: var(--teal); box-shadow: 0 4px 12px rgba(46, 191, 160, 0.35); }
.faq-item[open] { border-color: var(--teal); }
.faq-question::after { color: var(--teal); }


/* ===== Contact form (v24, functional) ===== */
.contact-form-section { background: #fff; }
.contact-form { max-width: 620px; margin: var(--space-md) auto 0; text-align: left; }
.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }
.cf-field { display: block; margin-bottom: var(--space-sm); }
.cf-field > span { display: block; font-family: var(--font-heading, 'Montserrat', sans-serif); font-weight: 600; font-size: 0.9rem; color: var(--charcoal); margin-bottom: 0.35rem; }
.cf-field em { color: var(--teal); font-style: normal; margin-left: 2px; }
.cf-field small { color: var(--slate); font-weight: 400; }
.cf-field input, .cf-field textarea {
  width: 100%; padding: 0.72rem 0.9rem; font: inherit; color: var(--charcoal);
  background: #fff; border: 1px solid #CFDAE6; border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none;
}
.cf-field input:focus, .cf-field textarea:focus {
  outline: none; border-color: #1577B6; box-shadow: 0 0 0 3px rgba(21,119,182,.15);
}
.cf-field textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { margin-top: .3rem; cursor: pointer; }
.contact-form .btn[disabled] { opacity: .6; cursor: default; }
.cf-result { margin-top: var(--space-sm); font-weight: 600; min-height: 1.2em; }
.cf-result.ok { color: var(--teal-2); }
.cf-result.err { color: #C0392B; }
.cf-privacy { margin-top: var(--space-sm); font-size: .82rem; color: var(--slate); }


/* ===== v24: trust strip as static list (rule 10) ===== */
.trust-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem 2.4rem; padding: 0.1rem var(--space-md); }
.trust-list .trust-item { white-space: nowrap; }


/* ===== v25.2: text-only credentials (logos out until written permissions) ===== */
.credential-text { display: block; font-weight: 600; font-size: 0.95rem; color: var(--charcoal); max-width: 300px; line-height: 1.35; }
.registration-list { margin: var(--space-md) 0; padding-left: 1.2rem; }
.registration-list li { margin-bottom: 0.5rem; }
.bio-credentials-text { margin-top: var(--space-md); font-size: 0.9rem; font-weight: 600; color: var(--slate); line-height: 1.6; max-width: 560px; }


/* ===== v25.3: deep-tissue callout (per Mathieu Jul 17, wording pending his pass) ===== */
.dt-callout { background: var(--cream-2); border-left: 4px solid var(--teal); padding: 0.9rem 1.1rem; border-radius: 8px; margin: 0 0 var(--space-md); }


/* v27: privacy-policy vendor cards (§9) */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
  margin: var(--space-md) 0;
}
.vendor-card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.vendor-card strong { color: var(--forest); }
.vendor-card span { font-size: 0.95rem; color: var(--slate); line-height: 1.55; }

/* v32.2: Mathieu's Jul 31 ask — smaller mobile body copy on the three policy pages only */
@media (max-width: 640px) {
  .policy-page main p, .policy-page main li { font-size: 0.95rem; }
}


/* ============================================================
   Jake's Aug 2 audit — desktop + mobile fixes
   ============================================================ */

/* Equal-size boxes: auto-fit collapses unused tracks, so a lone item on the
   last row stretched full width. auto-fill keeps the tracks. */
.treats-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* Stop "Start here." dropping to its own line and kill the orphan word in
   "Returning? Choose your appointment length." */
.appt-when { display: block; text-wrap: balance; }

/* The header is <div class="container nav">. `.nav`'s shorthand
   `padding: var(--space-sm) 0` zeroed the sides that `.container` had set, so the
   logo and menu ran to the viewport edge at every width where the container is
   narrower than its 1200px max (i.e. all tablet sizes) — and sat 24px out of line
   with page content on desktop. Qualifying with .container gets (0,2,0). */
.container.nav { padding-left: var(--space-md); padding-right: var(--space-md); }

/* Book Appointment: room around the label.
   `.nav-links a { padding: 0.4rem 0 }` is (0,1,1) and beats a bare `.btn-nav`
   (0,1,0) on specificity, so it was zeroing the sides no matter the order.
   Qualifying with the element gets us to (0,2,1). min-width dropped so the
   padding actually decides the width. */
.nav-links a.btn-nav {
  padding-left: 2.75rem;
  padding-right: 2.75rem;
  min-width: 0;
}

/* Photos sit inside the card rather than bleeding to its edge */
.services-detail-card .sdc-image { padding: var(--space-sm); }
.services-detail-card .sdc-image img { border-radius: var(--radius); }

/* FAQ jump-to: keep it on one flush line, and make the links read as links */
.faq-toc { text-wrap: balance; }
.faq-toc a { margin: 0 0.65rem; text-decoration: underline; text-underline-offset: 3px; }

/* About: halve the gap between "Assessment first" and "Rooted in Moncton" */
.section-tight-top { padding-top: var(--space-xl); }

@media (max-width: 920px) {
  /* Nothing should touch the screen edge. .nav uses the shorthand
     `padding: var(--space-sm) 0`, which zeroes the sides and beats
     .container's 24px, so the logo and menu sat flush. */
  .container, .container-narrow { padding-left: var(--space-lg); padding-right: var(--space-lg); }
  .container.nav { padding-left: var(--space-lg); padding-right: var(--space-lg); }

  /* menu items get their own breathing room inside that inset */
  .nav-links a { padding-left: 0.25rem; padding-right: 0.25rem; }
  .nav-links li { width: 100%; }

  /* Book Appointment: shrink to its label and centre.
     `width: auto` on a block element still fills the parent, which is why the
     first attempt stayed edge-to-edge. fit-content + auto margins is what
     actually shrinks it. The <li> is the flex item here, not the <a>. */
  .nav-links .btn-nav {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: var(--space-sm) auto 0;
    padding: 0.9rem 2.25rem;
    min-width: 0;
    font-size: 0.95rem;
  }
}

@media (max-width: 560px) {
  /* phones: header inset must match page content, or the logo sits out of line */
  .container, .container-narrow { padding-left: var(--space-md); padding-right: var(--space-md); }
  .container.nav { padding-left: var(--space-md); padding-right: var(--space-md); }
  .nav { padding-left: var(--space-md); padding-right: var(--space-md); }
}

/* ---------- Blog images ---------- */
.post-image-wrap { padding: 0; margin-top: calc(-1 * var(--space-lg)); }
.post-image {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.post-card-thumb {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); margin-bottom: var(--space-sm);
}
@media (max-width: 640px) { .post-image-wrap { margin-top: calc(-1 * var(--space-md)); } }


/* ============================================================
   MOBILE TYPE SCALE  (Jake, Aug 3)
   There was none: body was a flat 19.5px globally and the h1 clamp
   floor was 2.6rem, so phones rendered desktop type. On a 390px screen
   the h1 measured 41.6px and consumed 46% of the viewport before any
   content appeared.
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 17px; line-height: 1.6; }

  /* balance stops short headings stranding a single word on line 2
     ("Visit the / clinic.") on narrow screens */
  h1 { font-size: clamp(1.95rem, 8.4vw, 2.45rem); line-height: 1.16; text-wrap: balance; }
  h2 { font-size: clamp(1.5rem, 6.4vw, 1.85rem); line-height: 1.2; text-wrap: balance; }
  h3 { font-size: 1.18rem; }
  .page-hero h1 { font-size: clamp(2rem, 8.8vw, 2.55rem); }

  /* lead / intro copy sits just above body, not double it */
  .section-header p,
  .hero p,
  .page-hero p,
  .post-lede { font-size: 1.02rem; line-height: 1.55; }

  /* the eyebrow was wrapping onto two lines from letter-spacing alone */
  .eyebrow,
  .hero-eyebrow { font-size: 0.82rem; letter-spacing: 0.1em; text-wrap: balance; }

  .service-card h3, .services-detail-card h3 { font-size: 1.15rem; }
  .compare-col li { font-size: 1rem; }
}

@media (max-width: 400px) {
  .eyebrow,
  .hero-eyebrow { font-size: 0.78rem; letter-spacing: 0.08em; }
}


/* JDWS credit in the footer bottom bar (Jake, Aug 3).
   `.site-footer a` is display:block, which would drop this onto its own line —
   qualified to (0,2,1) so it wins on specificity, not on source order. */
.site-footer .footer-bottom a {
  display: inline;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 242, 236, 0.35);
}
.site-footer .footer-bottom a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

/* Section jumps clear the sticky header (S17, 2026-11-07). Offset = measured
   .site-header height (84px at 375 and 1280 wide) + a 16px gap. Re-measure if the header changes. */
html { scroll-padding-top: 100px; }

/* Cookie banner (S15, 2026-11-07) — markup is built by assets/site.js */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 720px; margin: 0 auto; padding: 1rem 1.25rem;
  background: var(--cream); color: var(--forest);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.cookie-banner[hidden], .cookie-banner .cookie-settings[hidden] { display: none; }
.cookie-banner .cookie-banner-text { margin: 0 0 0.75rem; font-size: 0.95rem; line-height: 1.5; }
.cookie-banner .cookie-banner-actions, .cookie-banner .cookie-settings { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.cookie-banner .cookie-settings { margin: 0 0 0.75rem; }
.cookie-banner .cookie-settings label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.95rem; min-height: 44px; }
.cookie-banner .btn { min-height: 44px; }

/* ---------- Blog ---------- */
.post-meta { color: var(--slate); font-size: 0.9rem; margin-top: var(--space-xs); }
.post-lede { font-size: 1.12rem; color: var(--charcoal); margin-bottom: var(--space-md); }
.post-list { display: grid; gap: var(--space-md); margin-top: var(--space-md); }
.post-card {
  display: block; padding: var(--space-md); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.post-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.post-card-date { display: block; font-size: 0.82rem; color: var(--slate); letter-spacing: .02em; }
.post-card h2 { margin: 0.3rem 0 0.5rem; font-size: 1.25rem; }
.post-card p { margin: 0 0 0.6rem; color: var(--slate); }
.post-card-more { font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; color: var(--accent); }
@media (max-width: 640px) { .post-lede { font-size: 1rem; } .post-card h2 { font-size: 1.1rem; } }

/* ---------- Blog, Aug 21 additions ----------
   .post-image in the base stylesheet is locked to 16/9 with object-fit:cover.
   The IASTM main image is cropped 3:2 on purpose (a 16/9 box would slice the
   top of Mathieu's hand off the frame). This block is appended to the END of
   styles.css by the build, so at equal specificity it wins. Verified by
   measuring computed geometry in a browser at 3 widths, not by assuming. */
.post-image { aspect-ratio: 3 / 2; }

/* Second image, sits inline after "What does IASTM feel like?". Portrait 4:5,
   so it is width-capped and centred rather than stretched across the column. */
.post-inline-figure { margin: var(--space-lg) auto; max-width: 460px; }
.post-inline-figure img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
@media (max-width: 640px) { .post-inline-figure { max-width: 100%; } }

/* Landscape images placed mid-article (first-appointment post, Aug 26). They
   span the prose column and inherit the 3/2 box above, so the source JPEGs are
   cropped 3:2 and CSS never re-crops them. Margin only. */
.post-image-inline { margin: var(--space-lg) 0; }
@media (max-width: 640px) { .post-image-inline { margin: var(--space-md) 0; } }

/* RAPID appointment post (Oct 11). Mathieu's approved framing for hero 4440:
   6:5 on desktop, square on phones, object-position 50% 64%. The shipped JPEG
   is the square crop, so the phone box shows all of it and desktop trims it. */
.post-image.post-image-rapid-4440 { aspect-ratio: 6 / 5; object-position: 50% 64%; }
@media (max-width: 640px) { .post-image.post-image-rapid-4440 { aspect-ratio: 1 / 1; } }
.post-card-thumb.post-card-thumb-rapid-4440 { object-position: 50% 30%; }

/* Nov 2026 posts: Mathieu's approved JPGs ship at their own aspect ratio
   (4:3, 16:9, 4:5). These rules show the whole frame, so CSS never re-crops. */
.post-image.post-image-native { aspect-ratio: auto; height: auto; }
.page-hero.post-hero-centered .container-narrow { text-align: center; }
.post-image.post-image-portrait { aspect-ratio: auto; height: auto; max-width: 460px; margin: 0 auto; display: block; }
.post-card-thumb.post-card-thumb-portrait-4370 { object-position: 50% 25%; }
.post-sources { padding-left: 1.1rem; font-size: 0.95rem; }
.post-sources li { margin-bottom: 0.4rem; }

.post-cta { margin: var(--space-md) 0 var(--space-lg); }
.post-signoff {
  margin-top: var(--space-lg); padding-top: var(--space-md);
  border-top: 1px solid var(--line); color: var(--slate);
}
