/*
Theme Name: Baby Beats Care
Theme URI: https://babybeatscare.com/
Author: Baby Beats Care
Description: Specialist consumer healthcare theme for Baby Beats Care — fertility, pregnancy, maternity, gynecology, sonography and NICU. Structured content model, no page-builder dependency, no ACF dependency.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: babybeats
*/

/* ==========================================================================
   1. DESIGN TOKENS
   The three master brand colours are locked. Secondary tones are tuned for
   WCAG AA. See README.md "Colour and contrast" before changing any of these.
   ========================================================================== */

:root {
  /* Master brand — do not change */
  --bb-pink: #ED158A;
  --bb-blue: #52B0E7;
  --bb-charcoal: #231F20;

  /* Extended palette */
  --bb-pink-dark: #A90E60;   /* 7.1:1 on white — safe for text and buttons */
  --bb-pink-soft: #FCE8F2;
  --bb-blue-dark: #237CAD;   /* 4.6:1 on white — safe for text */
  --bb-blue-soft: #EAF6FC;

  --bb-background: #FFFBF9;
  --bb-surface: #FFFFFF;
  --bb-blush: #FFF1F5;

  /* Channels of --bb-background, for veils that need a variable alpha.
     Keep the two in step if the background colour ever changes. */
  --bb-background-rgb: 255, 251, 249;

  --bb-text: #231F20;
  --bb-text-muted: #655F61;  /* 6.2:1 on --bb-background */
  --bb-border: #EDE5E7;

  --bb-focus: #237CAD;

  /* Typography. Display face is loaded only if woff2 files are present in
     assets/fonts/ (see README). Fallbacks are deliberate, not accidental. */
  --bb-font-display: "BB Display", "Iowan Old Style", "Palatino Linotype",
                     Palatino, Georgia, "Times New Roman", serif;
  --bb-font-body: "BB Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;

  --bb-step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
  --bb-step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --bb-step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --bb-step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.85rem);
  --bb-step-3:  clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  --bb-step-4:  clamp(2.1rem, 1.65rem + 2.25vw, 3.4rem);

  --bb-space-xs: 0.5rem;
  --bb-space-s: 1rem;
  --bb-space-m: 1.75rem;
  --bb-space-l: 3rem;
  --bb-space-xl: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  --bb-radius: 18px;
  --bb-radius-s: 10px;
  --bb-shadow: 0 1px 2px rgba(35, 31, 32, 0.04),
               0 8px 28px rgba(35, 31, 32, 0.06);

  --bb-measure: 68ch;
  --bb-wrap: 1180px;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bb-background);
  color: var(--bb-text);
  font-family: var(--bb-font-body);
  font-size: var(--bb-step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--bb-font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--bb-charcoal);
  margin: 0 0 var(--bb-space-s);
  text-wrap: balance;
}

h1 { font-size: var(--bb-step-4); }
h2 { font-size: var(--bb-step-3); }
h3 { font-size: var(--bb-step-1); }

p { margin: 0 0 var(--bb-space-s); max-width: var(--bb-measure); }

a { color: var(--bb-pink-dark); text-underline-offset: 3px; }
a:hover { color: var(--bb-charcoal); }

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

.bb-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--bb-charcoal); color: #fff; padding: 0.75rem 1.25rem;
}
.bb-skip-link:focus { left: 0; }

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

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */

.bb-wrap {
  width: min(100% - 2.5rem, var(--bb-wrap));
  margin-inline: auto;
}

.bb-section { padding-block: var(--bb-space-xl); }
.bb-section--tint { background: var(--bb-blush); }

/* Blue is the clinical secondary, never a full-bleed field. It appears as a
   hairline rule and small accents against the warm-white page. */
.bb-section--blue-accent {
  background: var(--bb-background);
  border-top: 1px solid var(--bb-border);
  border-bottom: 1px solid var(--bb-border);
}
.bb-section--blue-accent .bb-section__head h2 { position: relative; padding-top: 1.1rem; }
.bb-section--blue-accent .bb-section__head h2::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 56px; height: 3px; background: var(--bb-blue);
}

.bb-section__head { max-width: 46rem; margin-bottom: var(--bb-space-l); }
.bb-section__head p { color: var(--bb-text-muted); font-size: var(--bb-step-1); }

.bb-eyebrow {
  font-family: var(--bb-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bb-pink-dark);
  margin: 0 0 var(--bb-space-s);
}

.bb-grid { display: grid; gap: var(--bb-space-m); }
@media (min-width: 640px) { .bb-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .bb-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .bb-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   4. BUTTONS
   Primary uses --bb-pink-dark: white on #ED158A is 4.1:1 and fails AA for
   button-sized text. The brand pink stays as fill, border and accent.
   ========================================================================== */

.bb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--bb-font-body);
  font-size: var(--bb-step-0);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  min-height: 48px;
}

.bb-btn--primary { background: var(--bb-pink-dark); color: #fff; }
.bb-btn--primary:hover { background: var(--bb-charcoal); color: #fff; }

.bb-btn--secondary {
  background: transparent; color: var(--bb-charcoal); border-color: var(--bb-charcoal);
}
.bb-btn--secondary:hover { background: var(--bb-charcoal); color: #fff; }

.bb-btn--ghost { background: var(--bb-surface); color: var(--bb-pink-dark); border-color: var(--bb-border); }
.bb-btn--ghost:hover { border-color: var(--bb-pink-dark); color: var(--bb-pink-dark); }

/* ==========================================================================
   5. HEADER
   ========================================================================== */

.bb-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 251, 249, 0.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--bb-border);
}

.bb-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--bb-space-m); min-height: 74px;
}

.bb-logo { display: inline-flex; align-items: center; }
.bb-logo img { max-height: 62px; width: auto; }
.bb-logo__fallback {
  font-family: var(--bb-font-display);
  font-size: 1.35rem; color: var(--bb-charcoal); text-decoration: none;
}
.bb-logo__fallback b { color: var(--bb-pink-dark); font-weight: 500; }

.bb-nav { display: none; }
@media (min-width: 1024px) { .bb-nav { display: block; } }

.bb-nav > ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.bb-nav a {
  color: var(--bb-charcoal); text-decoration: none;
  font-size: 0.98rem; font-weight: 500; padding: 0.5rem 0;
  display: inline-block; border-bottom: 2px solid transparent;
}
.bb-nav a:hover, .bb-nav .current-menu-item > a { border-bottom-color: var(--bb-pink); }

/* Dropdown — click/focus driven, never hover-only (§22) */
.bb-nav li.menu-item-has-children { position: relative; }
.bb-nav__toggle {
  background: none; border: 0; padding: 0.5rem 0; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--bb-charcoal);
  display: inline-flex; align-items: center; gap: 0.35rem;
  border-bottom: 2px solid transparent;
}
.bb-nav__toggle[aria-expanded="true"] { border-bottom-color: var(--bb-pink); }
.bb-nav__toggle svg { transition: transform .18s ease; }
.bb-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.bb-submenu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: var(--bb-surface); border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-s); box-shadow: var(--bb-shadow);
  padding: 0.6rem; list-style: none; margin: 0; display: none;
}
.bb-submenu[data-open="true"] { display: block; }
.bb-nav .bb-submenu:not([data-open="true"]) { display: none; }
.bb-submenu li { display: block; }
.bb-submenu a {
  display: block; padding: 0.6rem 0.8rem; border-radius: 8px;
  border-bottom: 0; font-weight: 500;
}
.bb-submenu a:hover { background: var(--bb-pink-soft); color: var(--bb-pink-dark); }

.bb-header__cta { display: none; }
@media (min-width: 1024px) { .bb-header__cta { display: inline-flex; } }

.bb-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--bb-border);
  border-radius: 12px; background: var(--bb-surface); cursor: pointer;
}
@media (min-width: 1024px) { .bb-burger { display: none; } }

.bb-drawer {
  position: fixed; inset: 0; z-index: 80; background: var(--bb-background);
  padding: var(--bb-space-m); overflow-y: auto; display: none;
}
.bb-drawer[data-open="true"] { display: block; }
.bb-drawer ul { list-style: none; margin: 0 0 var(--bb-space-m); padding: 0; }
.bb-drawer li { border-bottom: 1px solid var(--bb-border); }
.bb-drawer a { display: block; padding: 1rem 0; text-decoration: none; color: var(--bb-charcoal); font-size: 1.1rem; }
.bb-drawer__close { float: right; }

/* ==========================================================================
   6. HERO
   ========================================================================== */

/* ---------- Credibility figures ---------- */

.bb-stats { padding-block: var(--bb-space-l); }
.bb-stats__row {
  display: flex; flex-wrap: wrap; gap: var(--bb-space-m);
  /* Flex, not a fixed grid: the band reads correctly with three figures or
     five, and an unevidenced one gets cleared rather than left blank. */
}
.bb-stat { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bb-stat__figure {
  font-family: var(--bb-font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  font-weight: 700; line-height: 1.05; color: var(--bb-pink-dark);
}
.bb-stat__label { font-size: 0.95rem; color: var(--bb-text-muted); }
.bb-stats__note { margin: var(--bb-space-m) 0 0; font-size: 0.86rem; color: var(--bb-text-muted); }

/* Full-bleed banner. No bb-wrap: this one is meant to touch both edges. */
.bb-banner { display: block; }
.bb-banner img { display: block; width: 100%; height: auto; }
.bb-banner a { display: block; }
/* Only when a height is imposed does the image get cropped to fill it. */
.bb-banner--capped img { height: var(--bb-banner-h); object-fit: cover; object-position: center; }

/* A banner directly above the hero already provides the top spacing. */
.bb-banner + .bb-hero { padding-block-start: var(--bb-space-m); }

.bb-hero { padding-block: clamp(2.5rem, 1rem + 6vw, 5rem) var(--bb-space-xl); }
.bb-hero__inner { display: grid; gap: var(--bb-space-l); align-items: center; }
@media (min-width: 900px) {
  .bb-hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--bb-space-xl); }
  /* A hero with no image must not leave half the row empty. */
  .bb-hero__inner--solo { grid-template-columns: minmax(0, 46rem); }
}

.bb-hero h1 { margin-bottom: var(--bb-space-s); }
.bb-hero__lede { font-size: var(--bb-step-1); color: var(--bb-text-muted); }

.bb-hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--bb-space-s);
  margin-block: var(--bb-space-m);
}

.bb-hero__media {
  position: relative;
  border-radius: 200px 200px var(--bb-radius) var(--bb-radius);
  overflow: hidden;
  background: var(--bb-pink-soft);
  aspect-ratio: 1 / 1;
}
.bb-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Warm wash behind the hero image, bleeding off the right edge. */
.bb-hero__media::before {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 -90px 90px -60px rgba(35, 31, 32, 0.22);
  z-index: 1; pointer-events: none;
}
.bb-hero { position: relative; overflow: hidden; }
.bb-hero::before {
  content: ""; position: absolute;
  top: -14%; right: -22%; width: 62%; aspect-ratio: 1;
  background: var(--bb-blush); border-radius: 50%;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   Full-width hero background image (Customize → Baby Beats homepage).

   The photo is a real <img> inside .bb-hero__bg rather than a CSS background,
   so it carries srcset and can be given fetchpriority as the largest paint.
   A veil sits between the photo and the text: body copy here is dark on light,
   and an unveiled photograph will not hold that contrast.
   -------------------------------------------------------------------------- */

.bb-hero--bg {
  /* Contain the negative z-index layers instead of letting them slip behind
     the page background. */
  isolation: isolate;
  --bb-scrim-near: 0.88;
  --bb-scrim-far: 0.34;
}
.bb-hero--scrim-soft   { --bb-scrim-near: 0.74; --bb-scrim-far: 0.14; }
.bb-hero--scrim-strong { --bb-scrim-near: 0.96; --bb-scrim-far: 0.64; }

/* The decorative circle is redundant once there is a photograph. */
.bb-hero--bg::before { display: none; }

/* Tall enough that a wide photograph is not cropped to a letterbox strip.
   The artwork is roughly 2.2:1, so ~42vw sits close to its natural height. */
.bb-hero--bg { min-height: clamp(420px, 42vw, 760px); display: flex; align-items: center; }
.bb-hero--bg > .bb-wrap { width: min(100% - 2.5rem, var(--bb-wrap)); }

.bb-hero__bg { position: absolute; inset: 0; z-index: -2; }
.bb-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Stacked layouts crop the sides instead of the top, so bias towards the
   right of the frame where the subjects are. */
@media (max-width: 899px) {
  .bb-hero__bg img { object-position: 72% center; }
}

/* Strongest under the headline on the left, clearing towards the right. */
.bb-hero--bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(var(--bb-background-rgb), var(--bb-scrim-near)) 0%,
    rgba(var(--bb-background-rgb), var(--bb-scrim-near)) 34%,
    rgba(var(--bb-background-rgb), var(--bb-scrim-far)) 80%
  );
}

/* Below the two-column breakpoint the text sits over the whole width, so the
   veil has to be even rather than directional. */
@media (max-width: 899px) {
  .bb-hero--bg::after {
    background: rgba(var(--bb-background-rgb), var(--bb-scrim-near));
  }
}

@media (prefers-contrast: more) {
  .bb-hero--bg { --bb-scrim-near: 0.97; --bb-scrim-far: 0.8; }
}

/* Credential chip floating over the hero image. */
.bb-hero__badge {
  position: absolute; left: -14px; bottom: 28px; z-index: 2;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: 999px;
  box-shadow: var(--bb-shadow);
  padding: 0.7rem 1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem; font-weight: 600;
}
.bb-hero__badge svg { color: var(--bb-pink); flex: none; }
@media (max-width: 899px) {
  .bb-hero__media { aspect-ratio: 4 / 3; border-radius: 140px 140px var(--bb-radius) var(--bb-radius); }
  .bb-hero__badge { left: 12px; }
}

.bb-shortcuts { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0 0 var(--bb-space-m); padding: 0; }
.bb-shortcuts a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.1rem 0.55rem 0.7rem; border-radius: 999px;
  background: var(--bb-surface); border: 1px solid var(--bb-border);
  color: var(--bb-charcoal); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: border-color .18s ease, color .18s ease;
}
.bb-shortcuts a:hover { border-color: var(--bb-pink); color: var(--bb-pink-dark); }
.bb-shortcuts svg { flex: none; }
.bb-shortcuts .is-pink svg { color: var(--bb-pink); }
.bb-shortcuts .is-blue svg { color: var(--bb-blue-dark); }

.bb-locationline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--bb-text-muted); font-size: 0.95rem;
}
.bb-locationline svg { color: var(--bb-blue-dark); flex: none; }

/* ==========================================================================
   7. CARDS
   ========================================================================== */

.bb-card {
  display: flex; flex-direction: column;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: var(--bb-space-m);
  height: 100%;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.bb-card:hover { border-color: var(--bb-pink); box-shadow: var(--bb-shadow); }
.bb-card h3 { margin-bottom: 0.5rem; }
.bb-card p { color: var(--bb-text-muted); font-size: 0.98rem; margin-bottom: var(--bb-space-s); }
/* A card whose whole content is one statement — full-strength text, no trailing gap. */
.bb-card__lead { margin: 0; color: var(--bb-text); }
.bb-card__link { margin-top: auto; font-weight: 600; text-decoration: none; }
.bb-card__link::after { content: " →"; }

/* Whole-card link target without wrapping a DIV in an anchor (§24) */
.bb-card { position: relative; }
.bb-card__link::before { content: ""; position: absolute; inset: 0; }

.bb-card--media { padding: 0; overflow: hidden; }
.bb-card--media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.bb-card--media .bb-card__body { padding: var(--bb-space-m); display: flex; flex-direction: column; flex: 1; }

.bb-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: var(--bb-space-s);
  background: var(--bb-pink-soft); color: var(--bb-pink-dark);
}
.bb-card__icon--blue { background: var(--bb-blue-soft); color: var(--bb-blue-dark); }

/* ==========================================================================
   8. CARE PATHWAY — a real sequence, so the numbering carries meaning
   ========================================================================== */

.bb-pathway { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.bb-pathway li {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--bb-space-s);
  padding-block: var(--bb-space-m);
  border-top: 1px solid var(--bb-border);
}
.bb-pathway li:last-child { border-bottom: 1px solid var(--bb-border); }
.bb-pathway__num {
  font-family: var(--bb-font-display);
  font-size: var(--bb-step-2); color: var(--bb-pink); line-height: 1;
}
.bb-pathway h3 { font-size: var(--bb-step-1); margin-bottom: 0.35rem; }
.bb-pathway p { color: var(--bb-text-muted); margin: 0; }

/* ==========================================================================
   9. DOCTORS / STORIES / LOCATION
   ========================================================================== */

.bb-doctor__photo { aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--bb-radius); width: 100%; }
.bb-doctor__quals { font-size: 0.9rem; color: var(--bb-text-muted); margin-bottom: 0.35rem; }
.bb-doctor__specialty {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--bb-blue-dark); background: var(--bb-blue-soft);
  padding: 0.25rem 0.65rem; border-radius: 999px; margin-bottom: 0.6rem;
}
.bb-doctor__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; }

.bb-story { background: var(--bb-surface); border-radius: var(--bb-radius); padding: var(--bb-space-m); border: 1px solid var(--bb-border); }
.bb-story blockquote { margin: 0 0 var(--bb-space-s); font-family: var(--bb-font-display); font-size: var(--bb-step-1); line-height: 1.4; }
.bb-story cite { font-style: normal; font-size: 0.9rem; color: var(--bb-text-muted); }
.bb-story__tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bb-pink-dark); }

.bb-location { display: grid; gap: var(--bb-space-l); }
@media (min-width: 900px) { .bb-location { grid-template-columns: 1fr 1fr; } }
.bb-location__map { border-radius: var(--bb-radius); overflow: hidden; min-height: 320px; background: var(--bb-blue-soft); }
.bb-location__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.bb-location dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; margin: 0 0 var(--bb-space-m); }
.bb-location dt { font-weight: 600; color: var(--bb-charcoal); }
.bb-location dd { margin: 0; color: var(--bb-text-muted); }

/* ==========================================================================
   10. FORM
   ========================================================================== */

.bb-form { display: grid; gap: var(--bb-space-s); max-width: 34rem; }
.bb-field { display: grid; gap: 0.35rem; }
.bb-field label { font-weight: 600; font-size: 0.95rem; }
.bb-field input, .bb-field select, .bb-field textarea {
  font: inherit; padding: 0.85rem 1rem; min-height: 50px;
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius-s);
  background: var(--bb-surface); color: var(--bb-text); width: 100%;
}
.bb-field input:focus, .bb-field select:focus { border-color: var(--bb-blue-dark); }
.bb-field__error { color: #B3261E; font-size: 0.88rem; }
.bb-field--invalid input, .bb-field--invalid select { border-color: #B3261E; }
.bb-hp { position: absolute; left: -9999px; }

.bb-form__status[data-state="error"] { color: #B3261E; }
.bb-form__status[data-state="success"] { color: var(--bb-blue-dark); font-weight: 600; }

.bb-consent { font-size: 0.85rem; color: var(--bb-text-muted); max-width: 34rem; }

/* ==========================================================================
   11. MOBILE ACTION BAR — exactly three actions (§8)
   ========================================================================== */

.bb-actionbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--bb-surface); border-top: 1px solid var(--bb-border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bb-actionbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; padding: 0.6rem 0.25rem; min-height: 58px;
  font-size: 0.78rem; font-weight: 600; text-decoration: none; color: var(--bb-charcoal);
}
.bb-actionbar a:nth-child(3) { background: var(--bb-pink-dark); color: #fff; }
@media (min-width: 1024px) { .bb-actionbar { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 64px; } }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.bb-footer {
  background: var(--bb-blush);
  color: var(--bb-text);
  padding-block: var(--bb-space-xl) var(--bb-space-m);
  border-top: 3px solid var(--bb-pink);
}
.bb-footer__logo img { max-height: 68px; width: auto; margin-bottom: var(--bb-space-s); }
.bb-footer h2 { font-size: var(--bb-step-1); }
.bb-footer h3 {
  font-family: var(--bb-font-body);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bb-pink-dark);
  margin-bottom: var(--bb-space-s);
}
.bb-footer a { color: var(--bb-text); text-decoration: none; }
.bb-footer a:hover { color: var(--bb-pink-dark); text-decoration: underline; }
.bb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.bb-footer__cols { display: grid; gap: var(--bb-space-l); }
@media (min-width: 760px) { .bb-footer__cols { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; } }

.bb-footer__contact li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  color: var(--bb-text-muted);
}
.bb-footer__contact svg { color: var(--bb-blue-dark); flex: none; margin-top: 3px; }

.bb-footer__legal {
  margin-top: var(--bb-space-l); padding-top: var(--bb-space-m);
  border-top: 1px solid var(--bb-border);
  font-size: 0.85rem; color: var(--bb-text-muted);
  display: grid; gap: var(--bb-space-s);
}
.bb-footer__legal p { max-width: 72ch; }
.bb-footer__legal ul {
  display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0;
}
.bb-footer__legal a { color: var(--bb-text-muted); text-decoration: underline; }

/* ==========================================================================
   13. ARTICLE / SINGLE
   ========================================================================== */

.bb-prose { max-width: var(--bb-measure); }
.bb-prose h2 { margin-top: var(--bb-space-l); font-size: var(--bb-step-2); }
.bb-prose h3 { margin-top: var(--bb-space-m); }
.bb-prose ul, .bb-prose ol { max-width: var(--bb-measure); padding-left: 1.25rem; }
.bb-prose li { margin-bottom: 0.5rem; }

.bb-reviewed {
  border-left: 3px solid var(--bb-blue); background: var(--bb-blue-soft);
  padding: var(--bb-space-s) var(--bb-space-m); border-radius: 0 var(--bb-radius-s) var(--bb-radius-s) 0;
  font-size: 0.92rem; margin-bottom: var(--bb-space-m);
}
.bb-reviewed p { margin: 0; }

.bb-faq { border-top: 1px solid var(--bb-border); }
.bb-faq details { border-bottom: 1px solid var(--bb-border); padding-block: var(--bb-space-s); }
.bb-faq summary { font-weight: 600; cursor: pointer; font-size: var(--bb-step-1); font-family: var(--bb-font-display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.bb-faq summary::-webkit-details-marker { display: none; }
.bb-faq summary::after { content: "+"; color: var(--bb-pink-dark); font-size: 1.5rem; line-height: 1; }
.bb-faq details[open] summary::after { content: "–"; }

.bb-notice {
  background: var(--bb-pink-soft); border-radius: var(--bb-radius-s);
  padding: var(--bb-space-s) var(--bb-space-m); font-size: 0.9rem; color: var(--bb-text);
}
.bb-notice p { margin: 0; max-width: none; }


/* ==========================================================================
   14. STATIC PREVIEW ONLY — image placeholders.
   Delete this block when real photography is in place.
   ========================================================================== */

[data-bb-placeholder] {
  display: grid;
  place-items: center;
  background: var(--bb-pink-soft);
  color: var(--bb-pink-dark);
  font-size: 0.82rem;
  font-family: var(--bb-font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
[data-bb-placeholder]::after { content: attr(data-bb-placeholder); }
.bb-location__map[data-bb-placeholder] { background: var(--bb-blue-soft); color: var(--bb-blue-dark); }

/* ==========================================================================
   15. PATIENT STORIES — production component with a real empty state.
   ========================================================================== */

.bb-stories { display: grid; gap: var(--bb-space-m); }
@media (min-width: 900px) { .bb-stories { grid-template-columns: repeat(3, 1fr); } }

.bb-story { position: relative; }
.bb-story::before {
  content: "\201C";
  position: absolute; top: 0.4rem; right: 1.25rem;
  font-family: var(--bb-font-display);
  font-size: 4rem; line-height: 1;
  color: var(--bb-pink-soft);
}
.bb-story__meta {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: var(--bb-space-s); padding-top: var(--bb-space-s);
  border-top: 1px solid var(--bb-border);
}
.bb-story__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bb-pink-soft); color: var(--bb-pink-dark);
  display: grid; place-items: center;
  font-weight: 600; font-size: 0.85rem; flex: none;
}

/* Empty state — shown until consented, approved stories exist. */
.bb-empty {
  border: 1px dashed var(--bb-border);
  border-radius: var(--bb-radius);
  background: var(--bb-surface);
  padding: var(--bb-space-l);
  text-align: center;
}
.bb-empty svg { color: var(--bb-blue-dark); margin-bottom: var(--bb-space-s); }
.bb-empty h3 { margin-bottom: 0.5rem; }
.bb-empty p { color: var(--bb-text-muted); margin-inline: auto; max-width: 46ch; }

/* ==========================================================================
   16. LOCATION — imagery strip
   ========================================================================== */

.bb-location__gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem; margin-bottom: var(--bb-space-m);
}
.bb-location__gallery > * {
  aspect-ratio: 1; border-radius: var(--bb-radius-s); overflow: hidden;
}
.bb-location__gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   17. SECTION HEAD RULE — pink hairline, ties sections to the mark
   ========================================================================== */

.bb-section__head--ruled h2 { position: relative; padding-top: 1.1rem; }
.bb-section__head--ruled h2::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 56px; height: 3px; background: var(--bb-pink);
}
