/* ==========================================================================
   Focus Pediatrics Design System & Grid Architecture
   Aligned with Stitch Design Specs (focus-design.md)
   Ready for Twig / Timber / WordPress Integration
   ========================================================================== */

:root {
  /* Core Brand Tokens */
  --color-primary: #0199FE;            /* Primary Blue */
  --color-primary-hover: #0088e6;
  --color-primary-light: rgba(1, 153, 254, 0.12);
  --color-primary-glow: rgba(1, 153, 254, 0.35);

  --color-mist-blue: #C4DAE5;          /* Mist Blue */
  --color-mist-light: rgba(196, 218, 229, 0.3);
  --color-mist-border: rgba(196, 218, 229, 0.6);

  --color-cloud-white: #FDFDFE;        /* Cloud White */
  --color-deep-navy: #00316A;          /* Deep Navy */
  --color-navy-muted: rgba(0, 49, 106, 0.75);
  --color-navy-subtle: rgba(0, 49, 106, 0.55);

  /* Elevation Shadows */
  --shadow-soft: 0 4px 14px -2px rgba(0, 49, 106, 0.06), 0 2px 6px -1px rgba(0, 49, 106, 0.04);
  --shadow-card: 0 8px 24px -4px rgba(0, 49, 106, 0.08), 0 4px 12px -2px rgba(0, 49, 106, 0.04);
  --shadow-drawer: 8px 0 32px rgba(0, 49, 106, 0.18);
  --shadow-btn: 0 4px 14px rgba(1, 153, 254, 0.35);

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout: the one width for the header, page sections and footer (.max-w-site) */
  --site-max: 1440px;

  /* Buttons (see "BUTTON SYSTEM" below).
     --btn-radius is the one shape switch:
       A = 9999px (pill, current) · B = 0.75rem (rounded square) · C = 1.25rem (soft). Client picked A (Nov 4, 2026). */
  --btn-radius: 9999px;
  --btn-primary-bg: #0199FE;           /* logo blue, same as the utility bar (client, Nov 9, 2026; was #0079D1) */
  --btn-primary-bg-hover: #0088E6;
  /* Blue text (link-arrow, eyebrows, icons on white buttons) stays deeper so it reads at 4.5:1 on white */
  --text-link: #0079D1;
  --text-link-hover: #0068B4;
  --btn-focus-ring: 0 0 0 3px #ffffff, 0 0 0 5px #0199FE;
}

.max-w-site {
  max-width: var(--site-max);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 1024px) {
  html {
    scroll-padding-top: 115px;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--color-deep-navy);
  background-color: var(--color-cloud-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =========================================================================
   DESKTOP NAVIGATION RESPONSIVE INTEGRITY & SCALING
   Prevent navigation items or CTA buttons from wrapping into stacked lines
   at intermediate viewport widths (1024px - 1279px), and scale up slightly
   for enhanced readability on full-width desktop screens (1280px+).
   ========================================================================= */
#main-nav a[aria-label*="Focus Pediatrics"],
#main-nav a[aria-label*="Focus Pediatrics"] img,
#main-nav > div > div:first-child {
  flex-shrink: 0 !important;
}

/* Mobile & Tablet Logo Sizing and Vertical Centering */
@media (max-width: 1023px) {
  #main-nav {
    min-height: 4.25rem !important; /* 68px */
  }
  #main-nav > div {
    min-height: 4.25rem !important; /* 68px */
  }
  #main-nav a[aria-label*="Focus Pediatrics"] {
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 639px) {
  #main-nav a[aria-label*="Focus Pediatrics"] img {
    height: 3rem !important; /* 48px (trimmed logo; same visible size as before) */
    width: auto !important;
  }
  #mobile-drawer img {
    height: 3.25rem !important; /* 52px in drawer */
    width: auto !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  #main-nav a[aria-label*="Focus Pediatrics"] img {
    height: 3.5rem !important; /* 56px on tablet */
    width: auto !important;
  }
}

#main-nav ul > li > a,
#main-nav .hidden.lg\:flex a {
  white-space: nowrap !important;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  #main-nav > div {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    gap: 0.5rem !important;
  }
  #main-nav img {
    height: 3.25rem !important; /* 52px */
    width: auto !important;
  }
  #main-nav ul {
    gap: 0.5rem !important;
    font-size: 0.75rem !important; /* 12px */
  }
  #main-nav ul > li > a {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    gap: 0.2rem !important;
  }
  #main-nav .hidden.lg\:flex {
    gap: 0.375rem !important;
    flex-shrink: 0 !important;
  }
  #main-nav .hidden.lg\:flex a {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.75rem !important; /* 12px */
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }
  #main-nav .hidden.lg\:flex svg {
    width: 0.875rem !important;
    height: 0.875rem !important;
    flex-shrink: 0 !important;
  }
}

/* Full-width desktop (1280px+) - slightly larger navigation text */
@media (min-width: 1280px) {
  #main-nav ul {
    gap: 1.75rem !important; /* 28px */
    font-size: 0.96875rem !important; /* 15.5px */
  }
  #main-nav ul > li > a svg {
    width: 0.9375rem !important;
    height: 0.9375rem !important;
  }
}

/* Extra-large screens (1536px+) */
@media (min-width: 1536px) {
  #main-nav ul {
    gap: 2rem !important; /* 32px */
    font-size: 1rem !important; /* 16px */
  }
}

.font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

/* Hide scrollbar on FAQ category pills while keeping horizontal scroll functional on mobile */
@media (max-width: 767px) {
  #faq-category-pills {
    overflow-x: auto;
    justify-content: flex-start;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
#faq-category-pills {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#faq-category-pills::-webkit-scrollbar {
  display: none;
}

/* FAQ pill hover: inactive pills get blue text, active pill keeps white text */
.faq-pill:hover {
  border-color: #0199fe;
  color: #0199fe;
}
.faq-pill.active:hover {
  color: #ffffff;
}

/* ==========================================================================
   Lightweight Reusable 12-Column Grid (Bootstrap / Foundation Compatible)
   ========================================================================== */
.fp-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .fp-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .fp-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.fp-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.fp-col-12 { flex: 0 0 100%; max-width: 100%; padding: 0.75rem; }
.fp-col-6  { flex: 0 0 50%; max-width: 50%; padding: 0.75rem; }
.fp-col-4  { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0.75rem; }
.fp-col-3  { flex: 0 0 25%; max-width: 25%; padding: 0.75rem; }

@media (min-width: 768px) {
  .fp-col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .fp-col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .fp-col-md-3 { flex: 0 0 25%; max-width: 25%; }
}

@media (min-width: 1024px) {
  .fp-col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .fp-col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .fp-col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

/* ==========================================================================
   Component Refinements
   ========================================================================== */

/* Main content gradient stream */
.main-content-stream {
  background: linear-gradient(180deg, #f0f6f9 0%, #e8f1f6 50%, #f0f6f9 100%);
}

/* Numeric phone shown after the vanity number: "470-99-FOCUS (470-993-6287)".
   Lighter and a touch smaller so the vanity number still leads. */
.phone-alt {
  font-weight: 500;
  font-size: 0.86em;
  opacity: 0.7;
  white-space: nowrap;
}

/* Safe areas for mobile devices */
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }
.pt-safe { padding-top: env(safe-area-inset-top, 0px); }

/* Mobile drawer transitions. The shadow is only applied while the drawer is
   open, so the closed (off-canvas) drawer doesn't cast a shadow onto the
   left edge of the page. */
#mobile-drawer {
  box-shadow: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease;
  will-change: transform;
}

body.drawer-open #mobile-drawer {
  box-shadow: 8px 0 32px rgba(0, 49, 106, 0.18);
}

#drawer-backdrop {
  transition: opacity 0.3s ease;
}

/* Smooth Accordions */
.accordion-content {
  transition: max-height 0.28s ease, opacity 0.2s ease;
}

/* Circled +/− FAQ icon (.faq-icon--circle). The sign is drawn with two CSS bars
   so it sits dead-centre in the circle; font glyphs ride off-centre. The text
   initFaqAccordion() swaps in is hidden, and the open state follows the
   toggle's aria-expanded. */
.faq-item .faq-icon--circle {
  position: relative;
  font-size: 0;
}

.faq-item .faq-icon--circle::before,
.faq-item .faq-icon--circle::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 42%;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 0.2s ease;
}

.faq-item .faq-icon--circle::after {
  transform: rotate(90deg);
}

.faq-toggle[aria-expanded="true"] .faq-icon--circle::after {
  transform: rotate(90deg) scaleX(0);
}

/* Custom interactive card hover effects */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* Mist panel: the site's one emphasis surface (brand-mist #C4DAE5) behind a
   group of cards, as a rounded block inside the page margins with a soft white
   glow in the top-right corner. Text on the mist must be navy at 75% or
   stronger: brand-blue is only 2.1:1 on #C4DAE5, so keep blue to the cards. */
.mist-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-mist-blue);
  border-radius: 2rem;
  padding: 2.5rem 1rem;
}

.mist-panel::before {
  content: "";
  position: absolute;
  top: -6rem;
  right: -5rem;
  z-index: -1;
  width: 20rem;
  height: 20rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(40px);
  pointer-events: none;
}

@media (min-width: 640px) {
  .mist-panel { padding: 3.5rem 2.5rem; }
}

@media (min-width: 1024px) {
  .mist-panel { padding-left: 3.5rem; padding-right: 3.5rem; }
}

/* White cards on a mist panel: a deeper shadow than --shadow-card, so the
   hover state deepens it rather than flattening it. */
.panel-card {
  background: #ffffff;
  box-shadow: 0 10px 30px -18px rgba(0, 49, 106, 0.4);
}

.panel-card.card-hover:hover {
  box-shadow: 0 16px 36px -18px rgba(0, 49, 106, 0.45);
}

/* ==========================================================================
   BUTTON SYSTEM (client revision 2, item 3)
   Three variants, one shape, one size scale, one hover/focus behaviour:
     .btn.btn-primary    main action (blue)
     .btn.btn-secondary  second action on light backgrounds (white, outlined)
     .btn.btn-white      action on blue / photo backgrounds (solid white)
   Sizes: .btn-sm (header, narrow cards) · .btn (default) · .btn-lg (heroes)
   Shape: --btn-radius in :root. Width helper: .btn-block (full width).
   Twig: partials/button.twig renders the same classes.
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;                 /* 52px */
  padding: 0.8125rem 1.625rem;
  border: 2px solid transparent;
  border-radius: var(--btn-radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25rem;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease,
              box-shadow 0.18s ease, transform 0.18s ease;
}
.btn .material-symbols-outlined { font-size: 1.25rem; line-height: 1; }
.btn svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: var(--btn-focus-ring); }

.btn-sm {
  min-height: 2.75rem;                 /* 44px: still a comfortable tap target */
  padding: 0.5625rem 1.125rem;
  gap: 0.4rem;
  font-size: 0.875rem;
}
.btn-sm .material-symbols-outlined { font-size: 1.125rem; }
.btn-sm svg { width: 1rem; height: 1rem; }
.btn-lg {
  min-height: 3.5rem;                  /* 56px */
  padding: 0.9375rem 2rem;
  font-size: 1.0625rem;
}
.btn-block { width: 100%; }

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(1, 153, 254, 0.6);
}
.btn-primary:hover {
  background-color: var(--btn-primary-bg-hover);
  color: #ffffff;
  box-shadow: 0 12px 24px -10px rgba(0, 136, 230, 0.65);
}
.btn-primary:focus-visible { box-shadow: var(--btn-focus-ring), 0 8px 20px -8px rgba(1, 153, 254, 0.6); }

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-deep-navy);
  border-color: rgba(0, 49, 106, 0.24);
}
.btn-secondary .material-symbols-outlined,
.btn-secondary svg { color: var(--text-link); }
.btn-secondary:hover {
  background-color: #F3F8FC;
  border-color: var(--btn-primary-bg);
  color: var(--text-link-hover);
}

.btn-white {
  background-color: #ffffff;
  color: var(--color-deep-navy);
  box-shadow: 0 8px 20px -10px rgba(0, 31, 68, 0.45);
}
.btn-white .material-symbols-outlined,
.btn-white svg { color: var(--text-link); }
.btn-white:hover {
  background-color: #EAF4FB;
  color: var(--text-link-hover);
}
.btn-white:focus-visible { box-shadow: 0 0 0 3px var(--color-deep-navy), 0 0 0 5px #ffffff; }

/* Text links styled "Learn More →" / "See accepted plans →" (one style site-wide) */
.link-arrow {
  display: inline-flex;
  align-self: flex-start;               /* stays tight to its text inside flex columns */
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.18s ease;
}
.link-arrow::after {
  content: '\2192';                    /* → */
  font-weight: 700;
  transition: transform 0.18s ease;
}
.link-arrow:hover { color: var(--text-link-hover); text-decoration: underline; text-underline-offset: 3px; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow:focus-visible { outline: none; box-shadow: var(--btn-focus-ring); border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active, .link-arrow::after { transition: none; transform: none; }
}

/* Prevent body scrolling when mobile navigation drawer is active */
body.drawer-open {
  overflow: hidden;
}

/* ==========================================================================
   Global Header & Utility Styling
   ========================================================================== */

/* Top Utility Header Blue Bar */
.top-utility-blue {
  background-color: var(--color-primary-blue, #0199fe) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.top-utility-blue a {
  color: #ffffff !important;
  transition: opacity 0.2s ease;
}

.top-utility-blue a:hover {
  opacity: 0.88;
}

.top-utility-blue svg {
  color: #ffffff !important;
  stroke: currentColor;
}

/* ==========================================================================
   About Page Specific Component Styles
   ========================================================================== */

/* Mission / Commitment / Promise Split Card with faint blue header band */
.mission-split-container {
  background: #ffffff;
  border: 1px solid var(--color-mist-border);
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 6px 24px -2px rgba(0, 49, 106, 0.06);
}

.mission-split-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mission-header-bar {
  background: var(--color-mist-blue);   /* same mist as the homepage Parent Resources panel (client, Nov 9, 2026) */
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #C4DAE5;
}

.mission-body-content {
  background: #ffffff;
  padding: 1.25rem 1.5rem 1.5rem;
  flex-grow: 1;
}

.mission-icon-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(196, 218, 229, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 49, 106, 0.05);
  flex-shrink: 0;
}

/* Doctor Cards with thick white border frame matching design mockup */
.doctor-card {
  position: relative;
  background: #ffffff;
  padding: 0.2rem;                     /* thinner frame = bigger photo (revision 2) */
  border: 5px solid #ffffff;
  border-radius: 1.75rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 28px rgba(0, 49, 106, 0.1);
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 49, 106, 0.14);
}

.doctor-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1.35rem;
  background-color: var(--color-mist-light);
}

.doctor-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.doctor-card:hover .doctor-image-wrapper img {
  transform: scale(1.03);
}

.doctor-nameplate {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  background: rgba(253, 253, 254, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-mist-border);
  border-radius: var(--radius-xl);
  padding: 0.55rem 0.75rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 49, 106, 0.08);
  transition: all 0.2s ease;
}

.doctor-card:hover .doctor-nameplate {
  border-color: var(--color-primary);
  background: #ffffff;
}

/* Approach soft-gradient panel */
.approach-panel {
  background: linear-gradient(135deg, rgba(196, 218, 229, 0.35) 0%, rgba(240, 246, 249, 0.65) 50%, rgba(196, 218, 229, 0.25) 100%);
  border: 1px solid rgba(196, 218, 229, 0.65);
  border-radius: var(--radius-3xl);
}

/* Community partner logos: no card, larger (client, Nov 9, 2026) */
.community-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  transition: transform 0.2s ease;
}
.community-logo-card:hover { transform: translateY(-2px); }
.community-logo {
  width: 100%;
  height: 4.5rem;                       /* 72px */
  object-fit: contain;
}
@media (min-width: 640px) { .community-logo { height: 5.5rem; } }
@media (min-width: 1024px) { .community-logo { height: 6.5rem; } }

/* Community Partners Carousel Slider */
.community-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0;
}

.community-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.community-slide {
  flex: 0 0 100%;                       /* one logo at a time on phones, so it's big enough to read */
  min-width: 0;
}

@media (min-width: 640px) {
  .community-slide {
    flex: 0 0 calc(33.333% - 0.85rem);
  }
}

@media (min-width: 1024px) {
  .community-slide {
    flex: 0 0 calc(33.333% - 0.85rem);  /* 3 across so the logos can be bigger */
  }
}

.community-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(196, 218, 229, 0.85);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.community-dot.active {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--color-primary-blue, #0199fe);
}

/* ==========================================================================
   Google Reviews Carousel (homepage #reviews)
   A native scroll-snap track, so it swipes on touch and still scrolls
   without JS. initReviewsCarousel() in main.js adds the arrows, dots and
   "Read more" toggles, auto-advances it on phones, and marks the carousel
   .is-ready.
   ========================================================================== */
/* Google's star yellow, filled */
.review-stars {
  display: inline-flex;
  color: #F9AB00;
}

.review-stars .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: 'FILL' 1;
}

/* The padding (offset by the negative margin) leaves room for the card
   shadows, which a scroller would otherwise clip. On phones it spans the
   panel's full 1rem padding, so the peeking card runs off the panel edge. */
.reviews-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin: -0.75rem -1rem -1.5rem;
  padding: 0.75rem 1rem 1.5rem;
}

@media (min-width: 640px) {
  .reviews-track {
    scroll-padding-inline: 0.75rem;
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.reviews-track:focus-visible {
  outline: 2px solid var(--color-deep-navy);
  outline-offset: -2px;
  border-radius: 1.5rem;
}

/* 1 card + a peek of the next on phones, 2 on tablets, 3 on desktop */
.reviews-slide {
  flex: 0 0 86%;
  min-width: 0;
  display: flex;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .reviews-slide { flex-basis: calc((100% - 1.25rem) / 2); }
}

@media (min-width: 1024px) {
  .reviews-slide { flex-basis: calc((100% - 2.5rem) / 3); }
}

/* Long reviews clamp to 7 lines (leading-relaxed) and fade out, but only
   once JS can offer "Read more"; without JS the full text shows. */
.reviews-carousel.is-ready .review-quote:not(.is-expanded) {
  max-height: calc(1.625em * 7);
  overflow: hidden;
}

.reviews-carousel.is-ready .review-quote.is-clamped:not(.is-expanded) {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3em), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 3em), transparent);
}

.review-more {
  align-self: flex-start;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.review-more:hover {
  text-decoration: underline;
}

.review-more[hidden] {
  display: none;
}

.review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(196, 218, 229, 0.6);
  color: var(--color-deep-navy);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
}

.reviews-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--color-deep-navy);
  box-shadow: 0 6px 18px -10px rgba(0, 49, 106, 0.45);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.reviews-arrow:hover {
  background: var(--color-deep-navy);
  color: #ffffff;
}

/* Phones: no arrows (client request). The carousel swipes and auto-advances
   every 8 seconds instead (initReviewsCarousel() in main.js). */
@media (max-width: 639px) {
  .reviews-arrow {
    display: none;
  }
}

/* Dots: a 24px hit area around a small mark; the active one stretches into a
   pill. Navy, not blue, because blue is too faint on the mist panel. */
.reviews-dot {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.reviews-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(0, 49, 106, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.reviews-dot:hover::before {
  background: rgba(0, 49, 106, 0.5);
}

.reviews-dot.is-active::before {
  width: 1.25rem;
  background: var(--color-deep-navy);
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track { scroll-behavior: auto; }
  .reviews-dot::before { transition: none; }
}

/* ==========================================================================
   Services Page Components
   ========================================================================== */
.service-row-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--color-mist-border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem 1.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px -2px rgba(0, 49, 106, 0.04);
  text-decoration: none;
  color: inherit;
  position: relative;
  scroll-margin-top: 105px;
}

@media (min-width: 768px) {
  .service-row-card {
    flex-direction: row;
    align-items: center;
    padding: 1.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .service-row-card {
    scroll-margin-top: 145px;
  }
}

.service-row-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(1, 153, 254, 0.12), 0 4px 12px -2px rgba(0, 49, 106, 0.05);
}

.service-icon-badge {
  width: 3.25rem;
  height: 3.25rem;
  min-width: 3.25rem;
  border-radius: 9999px;
  background-color: #F0F7FB;
  border: 1.5px solid rgba(196, 218, 229, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all 0.25s ease;
}

.service-row-card:hover .service-icon-badge {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.service-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.service-learn-more .arrow-icon {
  transition: transform 0.2s ease;
}

.service-row-card:hover .service-learn-more .arrow-icon {
  transform: translateX(4px);
}

/* Expandable service rows (lighter services that live on the Services page).
   Services with more content use a plain .service-row-card linking to their own page. */
.service-row-card.service-accordion {
  display: block;
  padding: 0;
}

.service-accordion-toggle {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 4.5rem 1.5rem 1.75rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-2xl);
}

.service-accordion-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .service-accordion-toggle {
    flex-direction: row;
    align-items: center;
    padding: 1.5rem 2rem;
  }
}

.service-accordion-icon {
  position: absolute;
  top: 1.75rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1.5px solid var(--color-mist-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all 0.25s ease;
}

@media (min-width: 768px) {
  .service-accordion-icon {
    position: static;
  }
}

.service-accordion-icon .material-symbols-outlined {
  transition: transform 0.25s ease;
}

.service-accordion:hover .service-accordion-icon {
  border-color: var(--color-primary);
}

.service-accordion.is-open {
  border-color: var(--color-primary);
}

.service-accordion.is-open .service-accordion-icon {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.service-accordion.is-open .service-accordion-icon .material-symbols-outlined {
  transform: rotate(45deg);
}

/* Panels only collapse once JS has initialised them, so content is never hidden without JS */
.service-accordion-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-accordion.accordion-ready:not(.is-open) .service-accordion-panel {
  grid-template-rows: 0fr;
}

.service-accordion-panel > div {
  overflow: hidden;
}

.service-accordion-body {
  margin: 0 1.75rem;
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid rgba(196, 218, 229, 0.6);
}

@media (min-width: 768px) {
  .service-accordion-body {
    margin: 0 2rem;
  }
}

/* ==========================================================================
   PAGE HERO (client revision 2, item 2)
   One hero for every interior page: .page-hero + one variant class.
     .page-hero--white   A: white background, rounded photo
     .page-hero--blue    B: soft blue background, rounded photo framed in white
     .page-hero--curved  C: soft blue background, wavy bottom edge, egg-shaped photo
   The site-wide variant is `heroVariant` in _includes/site.config.json
   (scripts/build.mjs stamps it onto each hero); Twig reads
   options.hero_variant in partials/page-hero.twig.
   Layout modifiers: .page-hero--text (no photo), .page-hero--profile
   (provider profiles), .page-hero--custom (blog / illness inner layouts).
   ========================================================================== */
.page-hero {
  --hero-wave-h: 0px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 2.5rem 0 3rem;
}
@media (min-width: 640px)  { .page-hero { padding: 3.5rem 0 4rem; } }
@media (min-width: 1024px) { .page-hero { padding: 4rem 0 4.5rem; } }

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .page-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; }
}
@media (min-width: 1280px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.page-hero-content { text-align: center; }
@media (min-width: 1024px) { .page-hero-content { text-align: left; } }

.page-hero-breadcrumb { margin-bottom: 0.75rem; }
.page-hero-eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-link);
}
.page-hero-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-deep-navy);
}
@media (min-width: 640px)  { .page-hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .page-hero-title { font-size: 3.5rem; } }
@media (min-width: 1280px) { .page-hero-title { font-size: 3.75rem; } }
.page-hero-rule {
  display: block;
  width: 3.5rem;
  height: 0.25rem;
  margin: 1.25rem auto 0;
  border-radius: 9999px;
  background: var(--color-primary);
}
.page-hero-intro {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(0, 49, 106, 0.8);
}
@media (min-width: 640px) { .page-hero-intro { font-size: 1.125rem; margin-top: 1.5rem; } }
.page-hero-badge { margin-top: 1.25rem; }
.page-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
@media (min-width: 640px) {
  .page-hero-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
@media (min-width: 1024px) {
  .page-hero-rule, .page-hero-intro { margin-left: 0; margin-right: 0; }
  .page-hero-actions { justify-content: flex-start; }
}

.page-hero-media {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.page-hero-frame {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background-color: var(--color-mist-light);
}
.page-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Decoration used only by some variants */
.page-hero-waves,
.page-hero-divider,
.page-hero-halo,
.page-hero-dots { display: none; }
.page-hero-waves,
.page-hero-divider {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: -1;
}
.page-hero-waves { top: 0; height: 100%; }
.page-hero-divider { bottom: 0; height: var(--hero-wave-h); }
.page-hero-waves path,
.page-hero-divider path { vector-effect: non-scaling-stroke; }

/* Text-only hero (schedule.html) */
.page-hero--text .page-hero-content { max-width: 42rem; }
@media (max-width: 1023px) { .page-hero--text .page-hero-content { margin: 0 auto; } }

/* --- A: white --------------------------------------------------------- */
.page-hero--white {
  background-color: var(--color-cloud-white);
  border-bottom: 1px solid rgba(196, 218, 229, 0.45);
}
.page-hero--white .page-hero-frame {
  border-radius: 1.5rem;
  border: 1px solid rgba(196, 218, 229, 0.7);
  box-shadow: 0 16px 36px -8px rgba(0, 49, 106, 0.12), 0 4px 12px rgba(0, 49, 106, 0.05);
}

/* --- B: blue ---------------------------------------------------------- */
.page-hero--blue {
  background: linear-gradient(160deg, #E6F1FA 0%, #D6E8F5 60%, #C9E0F0 100%);
}
.page-hero--blue .page-hero-waves { display: block; }
.page-hero--blue .page-hero-frame {
  border-radius: 1.5rem;
  border: 6px solid #ffffff;
  box-shadow: 0 24px 48px -18px rgba(0, 49, 106, 0.32), 0 6px 16px rgba(0, 49, 106, 0.06);
}

/* --- C: curved -------------------------------------------------------- */
.page-hero--curved {
  --hero-wave-h: 56px;
  padding-bottom: calc(3rem + var(--hero-wave-h));
  background: linear-gradient(165deg, #F6FAFD 0%, #EAF4FB 55%, #E0EEF8 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--hero-wave-h) + 1px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V72C1400 80 1340 91 1260 98C1060 116 860 94 640 70C420 46 220 44 0 78Z'/%3E%3C/svg%3E") bottom / 100% var(--hero-wave-h) no-repeat;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--hero-wave-h) + 1px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V72C1400 80 1340 91 1260 98C1060 116 860 94 640 70C420 46 220 44 0 78Z'/%3E%3C/svg%3E") bottom / 100% var(--hero-wave-h) no-repeat;
}
@media (min-width: 640px)  { .page-hero--curved { --hero-wave-h: 80px; padding-bottom: calc(3.5rem + var(--hero-wave-h)); } }
@media (min-width: 1024px) { .page-hero--curved { --hero-wave-h: 104px; padding-bottom: calc(3.5rem + var(--hero-wave-h)); } }
.page-hero--curved .page-hero-waves,
.page-hero--curved .page-hero-divider,
.page-hero--curved .page-hero-halo,
.page-hero--curved .page-hero-dots { display: block; }
.page-hero--curved .page-hero-media { padding: 1.25rem 0.5rem; }
.page-hero--curved .page-hero-halo {
  position: absolute;
  inset: 0 3% 4% -4%;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(196, 218, 229, 0.45) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  animation: npBlobMorph 16s ease-in-out infinite;
}
.page-hero--curved .page-hero-frame {
  border-radius: 58% 42% 47% 53% / 50% 55% 45% 50%;
  border: 6px solid #ffffff;
  box-shadow: 0 24px 48px -18px rgba(0, 49, 106, 0.28), 0 6px 16px rgba(0, 49, 106, 0.06);
}
@media (prefers-reduced-motion: reduce) {
  .page-hero--curved .page-hero-halo { animation: none; }
}

/* ==========================================================================
   New Patient Info Page (new-patient.html / partials/new-patient-*.twig)
   ========================================================================== */

/* Hero: soft blue field with flowing wave lines, a blob-framed photo,
   dot-grid accents and a wavy bottom edge. The edge is a mask (not a painted
   shape), so the page background shows through without colour matching. */
.np-hero {
  --np-wave-h: 56px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(165deg, #F6FAFD 0%, #EAF4FB 55%, #E0EEF8 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--np-wave-h) + 1px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V72C1400 80 1340 91 1260 98C1060 116 860 94 640 70C420 46 220 44 0 78Z'/%3E%3C/svg%3E") bottom / 100% var(--np-wave-h) no-repeat;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--np-wave-h) + 1px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V72C1400 80 1340 91 1260 98C1060 116 860 94 640 70C420 46 220 44 0 78Z'/%3E%3C/svg%3E") bottom / 100% var(--np-wave-h) no-repeat;
}

@media (min-width: 640px) {
  .np-hero { --np-wave-h: 80px; }
}

@media (min-width: 1024px) {
  .np-hero { --np-wave-h: 104px; }
}

.np-hero-waves,
.np-hero-divider {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: -1;
}

.np-hero-waves {
  top: 0;
  height: 100%;
}

.np-hero-waves path,
.np-hero-divider path {
  vector-effect: non-scaling-stroke;
}

.np-hero-divider {
  bottom: 0;
  height: var(--np-wave-h);
}

.np-hero-media {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 0.5rem;
}

/* Pale organic shape sitting behind the photo */
.np-hero-halo {
  position: absolute;
  inset: 0 3% 4% -4%;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(196, 218, 229, 0.45) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  animation: npBlobMorph 16s ease-in-out infinite;
}

.np-hero-blob {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 58% 42% 47% 53% / 50% 55% 45% 50%;
  overflow: hidden;
  border: 6px solid #ffffff;
  background-color: var(--color-mist-light);
  box-shadow: 0 24px 48px -18px rgba(0, 49, 106, 0.28), 0 6px 16px rgba(0, 49, 106, 0.06);
}

.np-hero-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dot-grid accents */
.np-dots {
  position: absolute;
  width: 84px;
  height: 112px;
  background-image: radial-gradient(rgba(1, 153, 254, 0.5) 1.6px, transparent 1.9px);
  background-size: 14px 14px;
  pointer-events: none;
}

.np-dots--right {
  right: -0.75rem;
  bottom: 12%;
}

.np-dots--left {
  left: -0.5rem;
  top: 2%;
  width: 70px;
  height: 56px;
  opacity: 0.55;
}

@keyframes npBlobMorph {
  0%, 100% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
  50%      { border-radius: 54% 46% 55% 45% / 45% 56% 44% 55%; }
}

/* Getting Started guide cards (Expecting Moms, Newborns, New Patient) */
.np-guide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--color-mist-border);
  border-radius: var(--radius-3xl);
  padding: 0.75rem 0.75rem 1.5rem;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(0, 49, 106, 0.1);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.np-guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 18px 36px -12px rgba(1, 153, 254, 0.2), 0 4px 12px -2px rgba(0, 49, 106, 0.05);
}

.np-guide-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.np-guide-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 1.1rem;
  overflow: hidden;
  background-color: var(--color-mist-light);
}

/* --np-zoom / --np-focus let a wide stand-in photo be cropped in on its subject */
.np-guide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--np-zoom, 1));
  transform-origin: var(--np-focus, center);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.np-guide-card:hover .np-guide-media img {
  transform: scale(calc(var(--np-zoom, 1) * 1.04));
}

/* Branded stand-in while a card's photo is pending from the client */
.np-photo-pending {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(1, 153, 254, 0.55);
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #E6F3FD 0%, #CFE5F5 100%);
}

.np-guide-card .arrow-icon {
  transition: transform 0.2s ease;
}

.np-guide-card:hover .arrow-icon {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .np-hero-halo {
    animation: none !important;
  }
}

/* ==========================================================================
   Location & Hours Page (location-hours.html / partials/location-*.twig,
   partials/service-areas-map.twig)
   ========================================================================== */

/* Hero illustration: city skyline, winding road and a floating map pin */
.loc-hero-art {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Soft oval mask so the illustration's ground melts into the hero gradient */
.loc-hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(70% 75% at 52% 40%, #000 55%, transparent 100%);
  mask-image: radial-gradient(70% 75% at 52% 40%, #000 55%, transparent 100%);
}

.loc-hero-pin {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: locPinFloat 4s ease-in-out infinite;
}

.loc-hero-pin-shadow {
  transform-box: fill-box;
  transform-origin: center;
  animation: locPinShadow 4s ease-in-out infinite;
}

.loc-hero-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: locPulse 2.8s ease-out infinite;
}

@keyframes locPinFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes locPinShadow {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50%      { transform: scale(0.78); opacity: 0.35; }
}

@keyframes locPulse {
  0%   { transform: scale(0.4); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Service-area map (Leaflet). Markers and popups are built in main.js
   (initServiceAreaMap) and styled here rather than with Tailwind utilities,
   so they don't depend on the utility build scanning JavaScript. */
.fp-map-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  border: 1px solid var(--color-mist-border);
  background-color: #F3F5EF;
  box-shadow: 0 6px 20px -2px rgba(0, 49, 106, 0.06);
  isolation: isolate;
}

.fp-map {
  width: 100%;
  height: 460px;
  background-color: #F3F5EF;
  font-family: var(--font-sans);
}

@media (min-width: 640px) {
  .fp-map { height: 500px; }
}

@media (min-width: 1024px) {
  .fp-map { height: 540px; }
}

.fp-map-fallback {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  color: rgba(0, 49, 106, 0.7);
  font-size: 0.875rem;
}

/* "Open in Google Maps" overlay (plain HTML, so it also works without JS) */
.fp-map-gmaps {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-mist-border);
  background-color: #ffffff;
  color: var(--color-deep-navy);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 8px 20px -6px rgba(0, 49, 106, 0.22);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fp-map-gmaps:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.fp-map-gmaps .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-primary);
}

/* Leaflet controls, restyled to match the site */
.fp-map .leaflet-control-zoom {
  margin: 0 1rem 4.25rem 0 !important;
  border: 1px solid var(--color-mist-border) !important;
  border-radius: 0.75rem !important;
  overflow: hidden;
  box-shadow: 0 8px 20px -6px rgba(0, 49, 106, 0.22) !important;
}

.fp-map .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 34px;
  color: var(--color-deep-navy);
  font-size: 20px;
  font-weight: 600;
}

.fp-map .leaflet-control-zoom a:hover {
  color: var(--color-primary);
  background-color: #F6FAFD;
}

/* Inset so the rounded frame doesn't clip the attribution */
.fp-map .leaflet-control-attribution {
  margin: 0 0 0.6rem 0.9rem !important;
  padding: 0.15rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 10px;
  background-color: rgba(255, 255, 255, 0.85);
}

/* Map markers (L.divIcon). The Leaflet root positions the marker with a
   transform, so every animation runs on the inner .fp-pin instead. */
.fp-marker {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Leaflet puts keyboard focus on the icon wrapper (.fp-marker-icon) */
.fp-marker-icon:focus {
  outline: none;
}

.fp-marker-icon:focus-visible .fp-pin svg {
  filter: drop-shadow(0 0 0 #ffffff) drop-shadow(0 0 4px rgba(1, 153, 254, 0.9));
}

.fp-pin {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-origin: center bottom;
}

.fp-pin svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 8px rgba(0, 49, 106, 0.28));
  transition: transform 0.2s ease;
}

.fp-marker:hover .fp-pin svg {
  transform: scale(1.06);
}

.fp-pin-shadow {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 60%;
  height: 8px;
  margin-left: -30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 49, 106, 0.32), rgba(0, 49, 106, 0));
}

/* Area name pill beside each area pin (hidden on phones; see the chips below the map) */
.fp-pin-label {
  position: absolute;
  top: 6px;
  left: calc(100% + 6px);
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1px solid var(--color-mist-border);
  color: var(--color-deep-navy);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 6px 16px -6px rgba(0, 49, 106, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fp-marker--label-left .fp-pin-label {
  left: auto;
  right: calc(100% + 6px);
}

.fp-marker:hover .fp-pin-label,
.fp-marker.is-active .fp-pin-label {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 639px) {
  .fp-marker--area .fp-pin-label {
    display: none;
  }
}

/* Clinic pin: larger, with a soft pulse and an address card underneath */
.fp-pin-pulse {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 64px;
  height: 28px;
  margin-left: -32px;
  border-radius: 50%;
  background-color: rgba(1, 153, 254, 0.35);
  animation: fpPulse 2.4s ease-out infinite;
}

.fp-clinic-card {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background-color: #ffffff;
  border: 1px solid var(--color-mist-border);
  color: rgba(0, 49, 106, 0.75);
  font-size: 0.6875rem;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 20px -6px rgba(0, 49, 106, 0.25);
}

.fp-clinic-card span {
  display: block;
}

.fp-clinic-card strong {
  display: block;
  color: var(--color-deep-navy);
  font-size: 0.8125rem;
  font-weight: 800;
}

/* Pins wait (hidden) until the map is on screen, then drop in one after
   another; labels fade in as each pin lands. Clicked pins bounce. */
.fp-marker.is-waiting {
  visibility: hidden;
}

.fp-marker.is-dropping .fp-pin {
  animation: fpPinDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: var(--fp-delay, 0ms);
}

.fp-marker.is-dropping .fp-pin-shadow {
  animation: fpShadowIn 0.6s ease-out both;
  animation-delay: var(--fp-delay, 0ms);
}

.fp-marker.is-dropping .fp-pin-label {
  animation: fpLabelIn 0.3s ease-out both;
  animation-delay: calc(var(--fp-delay, 0ms) + 250ms);
}

.fp-marker.is-dropping .fp-clinic-card {
  animation: fpCardIn 0.3s ease-out both;
  animation-delay: calc(var(--fp-delay, 0ms) + 250ms);
}

.fp-marker.is-bouncing .fp-pin {
  animation: fpPinBounce 0.9s cubic-bezier(0.28, 0.84, 0.42, 1);
}

.fp-marker.is-bouncing .fp-pin-shadow {
  animation: fpShadowBounce 0.9s cubic-bezier(0.28, 0.84, 0.42, 1);
}

@keyframes fpPinDrop {
  0%   { transform: translateY(-40px); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fpShadowIn {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fpLabelIn {
  0%   { transform: translateY(4px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* The clinic card is centred with translateX(-50%), so keep it in the keyframes */
@keyframes fpCardIn {
  0%   { transform: translate(-50%, 6px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes fpPinBounce {
  0%   { transform: translateY(0) scale(1, 1); }
  12%  { transform: translateY(0) scale(1.08, 0.9); }
  35%  { transform: translateY(-22px) scale(0.96, 1.05); }
  55%  { transform: translateY(0) scale(1.06, 0.94); }
  70%  { transform: translateY(-8px) scale(1, 1); }
  85%  { transform: translateY(0) scale(1.02, 0.98); }
  100% { transform: translateY(0) scale(1, 1); }
}

@keyframes fpShadowBounce {
  0%, 55%, 85%, 100% { transform: scale(1); opacity: 1; }
  35% { transform: scale(0.55); opacity: 0.5; }
  70% { transform: scale(0.8); opacity: 0.8; }
}

@keyframes fpPulse {
  0%   { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Branded popups */
.fp-map .leaflet-popup-content-wrapper {
  border-radius: 1rem;
  border: 1px solid var(--color-mist-border);
  box-shadow: 0 18px 40px -12px rgba(0, 49, 106, 0.3);
  padding: 0;
}

.fp-map .leaflet-popup-content {
  margin: 1rem 1.1rem 1.1rem;
  min-width: 210px;
  font-family: var(--font-sans);
  color: var(--color-deep-navy);
}

.fp-map .leaflet-popup-tip {
  box-shadow: none;
  border: 1px solid var(--color-mist-border);
}

.fp-map a.leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  color: rgba(0, 49, 106, 0.5);
  font: 600 18px/24px var(--font-sans);
}

.fp-map a.leaflet-popup-close-button:hover {
  color: var(--color-deep-navy);
  background-color: #F6FAFD;
}

.fp-popup-eyebrow {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--color-primary);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fp-map .fp-popup-title {
  margin: 0;
  padding-right: 1.25rem;
  color: var(--color-deep-navy);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.fp-popup-text {
  margin: 0.35rem 0 0 !important;
  color: rgba(0, 49, 106, 0.72);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.fp-popup-text a {
  color: var(--color-primary);
  font-weight: 600;
}

.fp-popup-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fp-map a.fp-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: var(--shadow-btn);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fp-map a.fp-popup-btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.fp-map a.fp-popup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 700;
}

.fp-popup-btn .material-symbols-outlined,
.fp-popup-link .material-symbols-outlined {
  font-size: 17px;
}

/* Area chips under the map (focus the matching pin) */
.fp-area-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--color-mist-border);
  background-color: #ffffff;
  color: var(--color-deep-navy);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.fp-area-chip:hover,
.fp-area-chip[aria-pressed="true"] {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: #F6FAFD;
}

.fp-area-chip .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .loc-hero-pin,
  .loc-hero-pin-shadow,
  .loc-hero-pulse,
  .fp-pin-pulse,
  .fp-marker .fp-pin,
  .fp-marker .fp-pin-shadow,
  .fp-marker .fp-pin-label,
  .fp-marker .fp-clinic-card {
    animation: none !important;
  }
}

/* ==========================================================================
   Insurance & Billing Page (insurance-billing.html / partials/insurance-billing-*.twig)
   ========================================================================== */

/* Hero illustration: insurance card with a floating shield and coin */
.ib-hero-art {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.ib-hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ib-hero-float {
  transform-box: fill-box;
  transform-origin: center;
  animation: locPinFloat 4s ease-in-out infinite;
}

.ib-hero-float--delay {
  animation-delay: -2s;
}

@media (prefers-reduced-motion: reduce) {
  .ib-hero-float {
    animation: none !important;
  }
}

/* ==========================================================================
   Blog Article Page (blog-rsv-beyfortus.html / single.twig + partials/blog-article-*.twig)
   The article body is plain editor HTML (h2, h3, p, ul, ol, blockquote, figure)
   styled through .blog-prose, so posts written in WordPress need no utility classes.
   ========================================================================== */

/* Featured image, framed like the hero blob photo */
.blog-featured {
  border: 6px solid #ffffff;
  border-radius: 1.75rem;
  overflow: hidden;
  background-color: var(--color-mist-light);
  box-shadow: 0 24px 48px -18px rgba(0, 49, 106, 0.28), 0 6px 16px rgba(0, 49, 106, 0.06);
}

.blog-featured img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (min-width: 640px) {
  .blog-featured img { aspect-ratio: 2 / 1; }
}

/* Layout B (blog-rsv-beyfortus-alt.html): image beside the title */
@media (min-width: 1024px) {
  .blog-featured--split img { aspect-ratio: 3 / 2; }
}

.blog-prose {
  color: rgba(0, 49, 106, 0.82);
  font-size: 1rem;
  line-height: 1.8;
}

@media (min-width: 640px) {
  .blog-prose { font-size: 1.0625rem; }
}

.blog-prose > * + * { margin-top: 1.15em; }

/* Opening paragraph reads as the lede */
.blog-prose > p:first-child {
  font-size: 1.125em;
  line-height: 1.7;
  color: var(--color-deep-navy);
}

/* initArticleToc() positions contents-link jumps itself (sticky nav height + 24px).
   This small margin, added to the html scroll-padding-top, makes the browser's own
   hash jumps (shared #section links, no-JS) land in the same spot. */
.blog-prose h2,
.blog-prose h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  color: var(--color-deep-navy);
  letter-spacing: -0.01em;
  scroll-margin-top: 8px;
}

.blog-prose h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-top: 2.1em;
}

.blog-prose h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin-top: 1.8em;
}

@media (min-width: 640px) {
  .blog-prose h2 { font-size: 1.75rem; }
}

.blog-prose h2 + *,
.blog-prose h3 + * { margin-top: 0.6em; }

/* Headings take focus after a contents-link jump; keep the ring for keyboard users only */
.blog-prose h2:focus:not(:focus-visible) { outline: none; }

.blog-prose a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(1, 153, 254, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.blog-prose a:hover { text-decoration-color: currentColor; }

.blog-prose strong {
  color: var(--color-deep-navy);
  font-weight: 600;
}

.blog-prose ul,
.blog-prose ol {
  list-style: none;
  padding-left: 0;
}

.blog-prose li + li { margin-top: 0.6em; }

.blog-prose ul > li {
  position: relative;
  padding-left: 1.6rem;
}

.blog-prose ul > li::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.72em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--color-primary);
}

.blog-prose ol { counter-reset: blog-ol; }

.blog-prose ol > li {
  position: relative;
  padding-left: 2.1rem;
  counter-increment: blog-ol;
}

.blog-prose ol > li::before {
  content: counter(blog-ol);
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background-color: #EAF5FE;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5rem;
  text-align: center;
}

.blog-prose blockquote {
  border-left: 4px solid var(--color-primary);
  border-radius: 0 1rem 1rem 0;
  background-color: #F6FAFD;
  padding: 1rem 1.25rem;
  color: var(--color-deep-navy);
  font-weight: 500;
}

.blog-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1.25rem;
}

.blog-prose figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-navy-subtle);
}

.blog-prose hr {
  border: 0;
  border-top: 1px solid var(--color-mist-border);
  margin: 2.5em 0;
}

/* Callouts. In WordPress, add "is-callout" (info) or "is-callout is-callout--alert"
   (urgent, matches the illness guide's emergency card) to a Paragraph or Group block. */
.blog-prose .is-callout {
  position: relative;
  border: 1px solid var(--color-mist-border);
  border-radius: 1rem;
  background-color: #F6FAFD;
  padding: 1rem 1.25rem 1rem 3.25rem;
  color: var(--color-deep-navy);
}

.blog-prose .is-callout > * + * { margin-top: 0.6em; }

.blog-prose .is-callout::before {
  content: 'info';
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-family: 'Material Symbols Outlined';
  font-size: 1.375rem;
  line-height: 1.3;
  font-feature-settings: 'liga';
  color: var(--color-primary);
}

.blog-prose .is-callout--alert {
  border-color: #FECACA;
  background-color: #FFF5F5;
  color: #991B1B;
}

.blog-prose .is-callout--alert::before {
  content: 'warning';
  color: #DC2626;
}

/* "In This Article" list built by initArticleToc() in main.js */
.blog-toc-link {
  position: relative;
  display: block;
  padding: 0.4rem 0 0.4rem 0.9rem;
  border-left: 2px solid var(--color-mist-border);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-navy-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.blog-toc-link:hover { color: var(--color-primary); }

.blog-toc-link.is-active {
  border-left-color: var(--color-primary);
  color: var(--color-deep-navy);
  font-weight: 600;
}

/* ==========================================================================
   Blog Index (blog.html / home.twig + partials/blog-index-*.twig, partials/blog-card.twig)
   Topic chips, search and the card grid follow the forms.html directory.
   Filtering is done by initBlogFilter() in main.js.
   ========================================================================== */

/* Chip row scrolls sideways on phones; hide its scrollbar */
.blog-filter-row { scrollbar-width: none; }
.blog-filter-row::-webkit-scrollbar { display: none; }

/* Topic chips: same look as the forms.html category tabs; aria-pressed marks the active one */
.blog-filter-chip {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-mist-border);
  border-radius: var(--radius-lg);
  background-color: #ffffff;
  color: var(--color-deep-navy);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-filter-chip:hover { background-color: rgba(196, 218, 229, 0.2); }

.blog-filter-chip[aria-pressed="true"] {
  border-color: var(--color-deep-navy);
  background-color: var(--color-deep-navy);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 49, 106, 0.08);
}

.blog-filter-chip:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Article card. Only cards with a published page get .is-linked (hover lift + stretched link). */
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-mist-border);
  border-radius: var(--radius-xl);
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 49, 106, 0.05);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card.is-linked:hover {
  border-color: rgba(1, 153, 254, 0.5);
  box-shadow: 0 20px 25px -5px rgba(0, 49, 106, 0.1), 0 8px 10px -6px rgba(0, 49, 106, 0.08);
}

.blog-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-mist-light);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card.is-linked:hover .blog-card-media img { transform: scale(1.04); }

.blog-card-soon {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  border-radius: var(--radius-full);
  background-color: rgba(253, 253, 254, 0.95);
  padding: 0.25rem 0.625rem;
  color: var(--color-deep-navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0, 49, 106, 0.08);
}

.blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.blog-card-topic {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  padding: 0.25rem 0.625rem;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--color-deep-navy);
  transition: color 0.2s ease;
}

.blog-card.is-linked:hover .blog-card-title { color: var(--color-primary); }

.blog-card-excerpt {
  display: -webkit-box;
  margin: 0.5rem 0 1.25rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: rgba(0, 49, 106, 0.7);
  font-size: 0.875rem;
  line-height: 1.65;
}

.blog-card-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(196, 218, 229, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(0, 49, 106, 0.6);
  font-size: 11px;
  font-weight: 500;
}

.blog-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.blog-card-more .material-symbols-outlined { transition: transform 0.2s ease; }
.blog-card.is-linked:hover .blog-card-more .material-symbols-outlined { transform: translateX(3px); }

/* The title link stretches over the whole card (also used by the featured card) */
.blog-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.blog-card-link:focus { outline: none; }
.blog-card-link:focus-visible::after { box-shadow: inset 0 0 0 3px var(--color-primary); }

/* Cards fade up when a filter brings them back */
@keyframes blog-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.blog-card.is-entering { animation: blog-card-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .blog-card.is-entering { animation: none; }
}

/* ==========================================================================
   Smooth Scroll Reveal & Interactive Component Animations
   ========================================================================== */

/* Only hide elements when JS is active and ready */
html.js-reveal-ready .reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition-property: transform, opacity;
  transition-duration: 0.75s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base transforms before reveal */
html.js-reveal-ready .reveal-fade-up {
  transform: translate3d(0, 32px, 0);
}

html.js-reveal-ready .reveal-fade-down {
  transform: translate3d(0, -24px, 0);
}

html.js-reveal-ready .reveal-fade-left {
  transform: translate3d(-36px, 0, 0);
}

html.js-reveal-ready .reveal-fade-right {
  transform: translate3d(36px, 0, 0);
}

html.js-reveal-ready .reveal-scale {
  transform: scale(0.94);
}

/* Active revealed state */
html.js-reveal-ready .reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Stagger delay utility classes */
.reveal-delay-75  { transition-delay: 75ms !important; }
.reveal-delay-100 { transition-delay: 100ms !important; }
.reveal-delay-150 { transition-delay: 150ms !important; }
.reveal-delay-200 { transition-delay: 200ms !important; }
.reveal-delay-250 { transition-delay: 250ms !important; }
.reveal-delay-300 { transition-delay: 300ms !important; }
.reveal-delay-350 { transition-delay: 350ms !important; }
.reveal-delay-400 { transition-delay: 400ms !important; }
.reveal-delay-500 { transition-delay: 500ms !important; }
.reveal-delay-600 { transition-delay: 600ms !important; }

/* Micro-interaction polish: subtle float animation for hero cards/badges */
@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-soft-float {
  animation: softFloat 4.5s ease-in-out infinite;
}

/* Subtle pulse for appointment badges */
@keyframes subtlePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

.animate-subtle-pulse {
  animation: subtlePulse 3s ease-in-out infinite;
}

/* Accessibility: respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html.js-reveal-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .animate-soft-float,
  .animate-subtle-pulse {
    animation: none !important;
  }
}


/* ==========================================================================
   Homepage Hero Parallax Background
   Image is sized by viewport width (137%) with a 1980px max-width cap
   (constraining scaling past ~1450px viewports), so the magnifying glass
   stays at the ideal size and fully in view on fullscreen displays. It is
   anchored -63% above the hero so the magnifying glass sits centered, and
   min-height 165% guarantees vertical coverage plus drift room when the
   width-driven height falls short.
   The JS translate3d drift (max ~95px) never exposes edges.
   On phones (< 640px) the magnifying glass is centered instead.
   On tablet & mobile (<= 1024px), a soft top-down gradient veil ensures centered
   headlines remain crisp and legible against the magnifying glass.
   On ultra-wide screens past the image cap, side fades blend the edges into the page.
   ========================================================================== */

.hero-parallax-img {
  position: absolute;
  top: -63%;
  /* Anchor the magnifying glass (centered at ~65.5% of image width) to
     68% of the viewport width, so the composition holds at any resolution. */
  left: 68%;
  translate: -65.5% 0; /* independent of the JS-driven transform */
  width: 137%;
  max-width: 1980px;
  height: auto;
  min-height: 165%;
  object-fit: cover;
  object-position: center 100%;
  will-change: transform;
}

/* Phones (< 640px): the hero is taller than it is wide, so object-fit: cover
   crops the image and pushes the lens past the right edge. Size the image by
   height instead (its natural width, no cropping) and put the lens centre
   (~64.75% of the image width) in the middle of the screen. */
@media (max-width: 639px) {
  .hero-parallax-img {
    left: 50%;
    translate: -64.75% 0;
    width: auto;
    max-width: none;
    height: 165%;
    min-height: 0;
  }
}

.hero-parallax-overlay {
  background:
    linear-gradient(to top, #f0f6f9 0%, rgba(240, 246, 249, 0) 32%),
    linear-gradient(to bottom, rgba(253, 253, 254, 0.65) 0%, rgba(253, 253, 254, 0) 30%);
}

/* Tablet and mobile (<= 1024px): soften the background image and magnifying
   glass with a top-down veil so centered typography remains crisp and legible. */
@media (max-width: 1024px) {
  .hero-parallax-overlay {
    background:
      linear-gradient(to bottom,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(240, 246, 249, 0.85) 45%,
        rgba(240, 246, 249, 0.40) 75%,
        #f0f6f9 100%
      );
  }
}

/* Ultra-wide screens: the image hits its max-width cap and no longer spans
   the viewport, so dissolve the side edges into the page background. */
@media (min-width: 2000px) {
  .hero-parallax-overlay {
    background:
      linear-gradient(to right, #f0f6f9 0%, rgba(240, 246, 249, 0) 15%, rgba(240, 246, 249, 0) 85%, #f0f6f9 100%),
      linear-gradient(to top, #f0f6f9 0%, rgba(240, 246, 249, 0) 32%),
      linear-gradient(to bottom, rgba(253, 253, 254, 0.65) 0%, rgba(253, 253, 254, 0) 30%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-parallax-img {
    transform: none !important;
  }
}

/* ==========================================================================
   Booking video (Schedule an Appointment #booking-video; schedule.html and
   views/partials/schedule-video.twig). The client's portal walkthrough comes framed in an iPhone
   on white, so it sits on the white card with no frame of its own. Phones: heading, video, steps.
   Desktop: heading and steps on the left, the video on the right. initPortalVideo() in main.js
   shows the play button and hands over to the browser controls once playing.
   ========================================================================== */
.booking-video-card {
  display: grid;
  gap: 1.75rem;
  grid-template-areas: "intro" "media" "steps";
}
.booking-video-intro { grid-area: intro; }
.booking-video-media { grid-area: media; display: flex; justify-content: center; }
.booking-video-steps { grid-area: steps; }
@media (min-width: 1024px) {
  .booking-video-card {
    grid-template-columns: minmax(0, 36rem) auto;
    grid-template-areas: "intro media" "steps media";
    justify-content: center;
    column-gap: 4rem;
    row-gap: 2rem;
  }
  .booking-video-intro { align-self: end; }
  .booking-video-steps { align-self: start; }
}
@media (min-width: 1280px) {
  .booking-video-card { column-gap: 8rem; }
}

.portal-video {
  position: relative;
  width: min(100%, 270px);
}
@media (min-width: 640px) { .portal-video { width: 290px; } }
@media (min-width: 1024px) { .portal-video { width: 300px; } }
.portal-video-el {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1392;
  background: #fff;
  border-radius: 1.5rem;
}
.portal-video-el:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 4px; }

.portal-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  border-radius: 9999px;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px rgba(1, 153, 254, 0.18), 0 10px 30px rgba(0, 49, 106, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.portal-video-play[hidden] { display: none; }
.portal-video-play .material-symbols-outlined { font-size: 44px; margin-left: 3px; }
.portal-video-play:hover { background: var(--color-primary-hover); transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 14px rgba(1, 153, 254, 0.2), 0 12px 34px rgba(0, 49, 106, 0.28); }
.portal-video-play:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 7px var(--color-primary), 0 10px 30px rgba(0, 49, 106, 0.25); }
@media (prefers-reduced-motion: reduce) {
  .portal-video-play, .portal-video-play:hover { transition: none; transform: translate(-50%, -50%); }
}

/* "Watch how it works (1 min)" under the Schedule Online card's text */
.watch-video-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-link);
}
.watch-video-link .material-symbols-outlined { font-size: 18px; }
.watch-video-link:hover { color: var(--text-link-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Dosage chart plugin (fp-dosage-chart, /dosage-chart/, views/page-dosage-chart.twig)
   The plugin ships its own look for the old site. The theme puts the plugin's heading in the
   shared text-only page hero and swaps its phone link for the site's Call Our Office button
   (dosage_chart() in inc/layouts.php); these rules match the rest to the new design without
   editing the plugin: full site width, the calculator beside the call card on desktop, brand
   navy and blue, the site fonts, mist for the call card (no navy panels, AGENTS.md §2) and the
   pill button shape. Dosing content is untouched.
   ========================================================================== */
body .fpdc-wrap {
  --fp-navy: var(--color-deep-navy);
  --fp-blue: var(--text-link);          /* text-weight blue (AA on white) */
  --fp-blue-pale: #F6FAFD;
  max-width: none;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-deep-navy);
}
body .fpdc-wrap h1,
body .fpdc-wrap h2,
body .fpdc-wrap h3 { font-family: var(--font-heading); font-weight: 700; }
body .fpdc-card,
body .fpdc-ref-section {
  background: #fff;
  border: 1px solid var(--color-mist-border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}
/* Medicine picker (plugin 0.1.8): white cards with a radio dot; the selected one is pale blue. */
body .fpdc-med-tabs { background: transparent; }
body .fpdc-med-label { color: var(--color-deep-navy); font-size: 0.8125rem; }
body .fpdc-med-tab { border-color: var(--color-mist-blue); color: var(--color-deep-navy); }
body .fpdc-med-tab:hover { border-color: var(--color-primary); }
body .fpdc-med-tab.active { background: #EAF5FE; border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
body .fpdc-med-tab.active .fpdc-med-dot { border-color: var(--color-primary); }
body .fpdc-med-tab.active .fpdc-med-dot::after { background: var(--color-primary); }
body .fpdc-med-tab .fpdc-small { color: var(--color-navy-muted); }

/* Desktop: calculator on the left, the call card beside it, the reference table full width. */
@media (min-width: 1024px) {
  body .fpdc-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 28px;
    align-items: start;
  }
  body .fpdc-wrap > .fpdc-card { grid-column: 1; grid-row: 1; }
  body .fpdc-wrap > .fpdc-call-us { grid-column: 2; grid-row: 1; position: sticky; top: 130px; }
  body .fpdc-wrap > :not(.fpdc-card):not(.fpdc-call-us) { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  body .fpdc-wrap { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 32px; }
}

/* Call card: the blog's "Questions about your child's health?" card (mist, button, number). */
body .fpdc-call-us {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding: 28px;
  margin-bottom: 24px;
  background: var(--color-mist-blue);
  border: 0;
  border-radius: var(--radius-3xl);
  box-shadow: none;
  overflow: visible;
}
body .fpdc-call-text h2 { font-size: 1.125rem; line-height: 1.35; color: var(--color-deep-navy); margin-bottom: 8px; }
body .fpdc-call-text p { font-size: 0.875rem; line-height: 1.6; color: rgba(0, 49, 106, 0.8); }
body .fpdc-call-action { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
body .fpdc-call-action .btn { width: 100%; }
body .fpdc-call-number { margin: 0; text-align: center; font-size: 0.75rem; font-weight: 500; color: rgba(0, 49, 106, 0.7); }
@media (min-width: 640px) and (max-width: 1023px) {
  body .fpdc-call-us { flex-direction: row; align-items: center; justify-content: space-between; }
  body .fpdc-call-action { flex: 0 0 auto; min-width: 220px; }
}

/* Hero: the plugin's intro is long, so its paragraph runs wider than on other pages (fewer,
   longer lines); the headline keeps the usual width. */
[data-purpose="dosage-hero"].page-hero--text .page-hero-content { max-width: 60rem; }
[data-purpose="dosage-hero"] .page-hero-title { max-width: 42rem; }
[data-purpose="dosage-hero"] .page-hero-intro { max-width: 60rem; }
@media (max-width: 1023px) { [data-purpose="dosage-hero"] .page-hero-title { margin-left: auto; margin-right: auto; } }

/* Hero "Read more" (the plugin's second intro paragraph, moved into the page hero). */
.fpdc-hero-more { margin-top: 1rem; max-width: 60rem; }
.fpdc-hero-more summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: 0.875rem; font-weight: 600; color: var(--text-link);
}
.fpdc-hero-more summary::-webkit-details-marker { display: none; }
.fpdc-hero-more summary::after { content: "expand_more"; font-family: "Material Symbols Outlined"; font-size: 18px; transition: transform 0.15s; }
.fpdc-hero-more[open] summary::after { transform: rotate(180deg); }
.fpdc-hero-more .fpdc-less-label,
.fpdc-hero-more[open] .fpdc-more-label { display: none; }
.fpdc-hero-more[open] .fpdc-less-label { display: inline; }
.fpdc-hero-more p { margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.65; color: rgba(0, 49, 106, 0.8); }
@media (max-width: 1023px) { .fpdc-hero-more { margin-left: auto; margin-right: auto; } }

/* The plugin's own header, only shown if the theme couldn't move it into the hero. */
body .fpdc-header { background: var(--color-mist-blue); color: var(--color-deep-navy); }
body .fpdc-header h1 { color: var(--color-deep-navy); font-weight: 800; letter-spacing: -0.02em; }
body .fpdc-header p { opacity: 1; color: var(--color-navy-muted); }
body .fpdc-intro-more summary { color: var(--color-deep-navy); font-weight: 600; }
body .fpdc-eyebrow {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 49, 106, 0.15);
  color: var(--color-deep-navy);
}

/* Buttons: the site's primary pill (.btn-primary) and secondary outline. */
body .fpdc-phone,
body .fpdc-consent-agree {
  background: var(--color-primary);
  border-radius: var(--btn-radius);
}
body .fpdc-phone:hover,
body .fpdc-consent-agree:hover { background: var(--color-primary-hover); }
body .fpdc-btn {
  border-radius: var(--btn-radius);
  border-color: var(--color-mist-border);
}
body .fpdc-toggle button.active {
  background: var(--color-primary);
  box-shadow: var(--shadow-btn);
}
body .fpdc-closing { padding: 0; max-width: 56rem; }
body .fpdc-legal { max-width: 56rem; margin: 0 auto; }

/* ==========================================================================
   FAQ answers written in the editor (FAQ posts, inc/faqs.php): links and paragraphs match the
   hand-written answers (text-brand-blue font-semibold hover:underline).
   ========================================================================== */
.faq-answer a { color: var(--text-link); font-weight: 600; }
.faq-answer a:hover { text-decoration: underline; }
.faq-answer p { margin: 0; }
.faq-answer p + p,
.faq-answer p + ul,
.faq-answer ul + p { margin-top: 0.6em; }
.faq-answer ul { list-style: disc; padding-left: 1.25em; }
