/* ==========================================================================
   Care+ Pediatrics — Global styles & components
   ========================================================================== */

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

* { margin: 0; }

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;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--color-primary-dark); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: oklch(30% 0.02 235);
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-140%);
  top: 8px; z-index: 200; background: var(--color-primary-dark); color: #fff;
  padding: 0.6rem 1.2rem; border-radius: var(--radius-pill); transition: transform var(--duration-normal);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); color: #fff; }

/* --- Layout ---------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, var(--container-narrow)); }
.section { padding-block: var(--space-section); }
.section--tint { background: var(--color-teal-50); }
.section--cream { background: linear-gradient(180deg, var(--color-sun-100), var(--color-bg)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary);
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: var(--radius-pill);
  background: var(--color-accent);
}
.section-head { max-width: 44rem; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--text-2xl); margin-top: 0.7rem; }
.section-head p { margin-top: 0.9rem; color: var(--color-text-soft); font-size: var(--text-lg); }

/* --- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
  padding: 0.85rem 1.6rem; border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; transition: transform var(--duration-fast) var(--ease-out-back),
    box-shadow var(--duration-normal), background var(--duration-normal), color var(--duration-normal);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-teal); }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn--accent { background: var(--color-accent); color: #fff; box-shadow: 0 12px 24px oklch(70% 0.14 34 / 0.32); }
.btn--accent:hover { background: var(--color-coral-600); color: #fff; }
.btn--ghost { background: var(--color-surface); color: var(--color-primary-dark); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.btn--sm { padding: 0.6rem 1.15rem; font-size: var(--text-sm); }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--text-lg); }
.btn__icon { width: 1.15em; height: 1.15em; }

/* ====================================================================== */
/* Cloud dividers (the reference's signature scalloped edges)             */
/* ====================================================================== */
/* Clouds keep their NATURAL aspect ratio (auto width at a fixed height) and
   tile horizontally — never stretched to fit. */
/* Layered clouds for depth: a colored front layer with two blue-grey layers
   peeking higher behind it (front is shortest + on top; back layers taller +
   greyer + horizontally staggered). Aspect ratio always preserved. */
.cloud {
  position: absolute; left: 0; width: 100%; height: clamp(92px, 8vw, 148px); z-index: 1;
  line-height: 0; pointer-events: none;
  background-image: var(--cloud-front, url("../img/cloud-cream.svg")), url("../img/cloud-back1.svg"), url("../img/cloud-back2.svg");
  background-repeat: repeat-x, repeat-x, repeat-x;
  background-position: center bottom, 64px bottom, -92px bottom;
  background-size: auto 72%, auto 88%, auto 100%;
}
.cloud--top { top: -1px; transform: scaleY(-1); }
.cloud--bottom { bottom: -1px; }
/* keep section content painting above the (bigger) decorative clouds */
.section > .container, .section > .container--narrow, .page-hero > .container { position: relative; z-index: 2; }
.cloud--cream { --cloud-front: url("../img/cloud-cream.svg"); }
.cloud--lav { --cloud-front: url("../img/cloud-lav.svg"); }
.cloud--teal { --cloud-front: url("../img/cloud-teal.svg"); }
.cloud--white { --cloud-front: url("../img/cloud-white.svg"); }
.section, .playful, .hero, .page-hero, .site-footer { position: relative; }

/* ====================================================================== */
/* Header — icon mega-nav                                                  */
/* ====================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-bg);
  transition: box-shadow var(--duration-normal);
}
/* thin multi-color brand stripe across the very top (from the reference) */
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; z-index: 6;
  background-image: linear-gradient(90deg,
    var(--color-sun-400) 0 25%, var(--color-sky-500) 25% 50%,
    var(--color-teal-500) 50% 75%, var(--color-coral-500) 75% 100%);
  background-size: 300px 5px;
}
.site-header.is-compact { box-shadow: var(--shadow-sm); }
/* 3-column grid keeps the logo dead-centered with the two nav groups
   distributed symmetrically on each side. */
.icon-nav {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 1.5rem;
  min-height: 112px; transition: min-height var(--duration-normal);
}
.site-header.is-compact .icon-nav { min-height: 74px; }
.icon-nav__group { list-style: none; display: flex; align-items: center; justify-content: space-evenly; padding: 0; margin: 0; }

.icon-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0.5rem 1.15rem; color: var(--color-text); text-align: center; }
.icon-link::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; border-left: 1.5px dashed var(--border-dash); }
.icon-link:first-child::before { display: none; }
.icon-link__ic { width: 42px; height: 42px; color: var(--color-teal-600); transition: width var(--duration-normal), height var(--duration-normal), transform var(--duration-fast), color var(--duration-fast); }
.icon-link__ic svg { width: 100%; height: 100%; }
.icon-link__label { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--color-text); white-space: nowrap; transition: color var(--duration-fast); }
.icon-link:hover .icon-link__ic { color: var(--color-accent); transform: translateY(-3px); }
.icon-link:hover .icon-link__label { color: var(--color-primary-dark); }
.icon-link--cta .icon-link__ic { color: var(--color-primary); }
.icon-link--cta .icon-link__label { color: var(--color-primary-dark); }
.site-header.is-compact .icon-link__ic { width: 28px; height: 28px; }
.site-header.is-compact .icon-link__label { font-size: 0.75rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; text-decoration: none; }
/* center brand is absolutely centered so it never drifts with side groups */
.brand--center { justify-self: center; display: flex; align-items: center; justify-content: center; padding: 0 0.5rem; }
.brand__logo { display: block; height: 74px; width: auto; transition: height var(--duration-normal); }
.site-header.is-compact .brand__logo { height: 56px; }
.brand__mark { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-700)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; box-shadow: var(--shadow-teal); }

/* Two-state header cloud (exact reference shapes): the tall cloud shows at the
   top of the page and fades out on scroll; a shorter cloud fades in when the
   header compacts — mirroring header-bg.svg / header-bg-fixed.svg behavior. */
.header-cloud { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; pointer-events: none; background-repeat: repeat-x; background-position: center top; background-size: auto 100%; transition: opacity var(--duration-normal) ease-out; }
.header-cloud--top { height: clamp(64px, 6vw, 96px); transform: translateY(99%); background-image: url("../img/hcloud-top-cream.svg"); opacity: 1; }
.header-cloud--sticky { height: clamp(44px, 4vw, 60px); transform: translateY(99%); background-image: url("../img/hcloud-sticky-cream.svg"); opacity: 0; }
.site-header.is-compact .header-cloud--top { opacity: 0; }
.site-header.is-compact .header-cloud--sticky { opacity: 1; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 48px; height: 48px; border: 1.5px solid var(--color-border); border-radius: 14px; background: var(--color-surface); cursor: pointer; align-items: center; justify-content: center; align-self: center; }
.nav-toggle span { width: 22px; height: 2.5px; background: var(--color-primary-dark); border-radius: 2px; transition: transform var(--duration-normal), opacity var(--duration-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile drawer (hidden on desktop) */
.primary-nav { display: none; }
.nav-link { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--color-text); padding: 0.8rem 1rem; border-radius: var(--radius-pill); display: block; }
.nav-link:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }

/* ====================================================================== */
/* Hero                                                                   */
/* ====================================================================== */
.hero { position: relative; overflow: hidden; background: var(--color-teal-50) url("../img/hero.jpg") center/cover no-repeat; }
/* soft scrim keeps the left-hand copy readable over the photo */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, oklch(98% 0.01 85 / 0.96) 0%, oklch(98% 0.01 85 / 0.9) 34%, oklch(96% 0.02 200 / 0.55) 58%, oklch(60% 0.08 235 / 0.15) 100%); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-6); align-items: center; padding-block: clamp(2.5rem, 1rem + 6vw, 5.5rem); }
.hero__badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--color-surface); border: 1px solid var(--color-teal-100); color: var(--color-primary-dark); font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); padding: 0.5rem 1rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }
.hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-teal-500); box-shadow: 0 0 0 4px var(--color-teal-100); animation: pulse-dot 2s var(--ease-out-expo) infinite; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 4px var(--color-teal-100); } 50% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 { font-size: var(--text-hero); margin-top: 1.1rem; color: oklch(30% 0.03 230); }
.hero h1 .hl { color: var(--color-primary); position: relative; }
.hero__lead { margin-top: 1.3rem; font-size: var(--text-lg); color: var(--color-text-soft); max-width: 32rem; }
.hero__actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__note { margin-top: 1.1rem; font-size: var(--text-sm); color: var(--color-text-mute); display: inline-flex; align-items: center; gap: 0.5rem; }

.hero__card { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.5rem; border: 1px solid var(--color-border); }
.hero__card h2 { font-size: var(--text-lg); display: flex; align-items: center; gap: 0.5rem; }
.loc-picker { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.loc-picker a { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-md); background: var(--color-teal-50); border: 1px solid var(--color-teal-100); color: var(--color-text); font-family: var(--font-body); }
.loc-picker a:hover { background: var(--color-teal-100); transform: translateX(3px); transition: transform var(--duration-fast); }
.loc-picker strong { font-family: var(--font-display); color: oklch(32% 0.02 235); display: block; }
.loc-picker small { color: var(--color-text-mute); }
.loc-picker .chev { color: var(--color-primary); font-weight: 700; }
.hero__hours { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--color-border); font-size: var(--text-sm); color: var(--color-text-soft); display: flex; justify-content: space-between; gap: 1rem; }

/* ====================================================================== */
/* Feature strip (differentiators)                                        */
/* ====================================================================== */
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
.feature { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.4rem 1.1rem; text-align: center; transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature__ic { width: 54px; height: 54px; margin: 0 auto 0.85rem; border-radius: 16px; display: grid; place-items: center; background: var(--color-teal-100); color: var(--color-primary-dark); }
.feature:nth-child(2) .feature__ic { background: var(--color-coral-100); color: var(--color-coral-600); }
.feature:nth-child(3) .feature__ic { background: var(--color-sky-100); color: var(--color-sky-500); }
.feature:nth-child(4) .feature__ic { background: var(--color-sun-100); color: oklch(58% 0.12 80); }
.feature:nth-child(5) .feature__ic { background: var(--color-teal-100); color: var(--color-primary-dark); }
.feature h3 { font-size: var(--text-base); }
.feature__ic svg { width: 26px; height: 26px; }

/* ====================================================================== */
/* Cards grid (services)                                                  */
/* ====================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.svc-card { position: relative; display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.6rem; overflow: hidden; transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal), border-color var(--duration-normal); }
.svc-card::after { content: ""; position: absolute; inset: auto -30% -40% auto; width: 160px; height: 160px; border-radius: 50%; background: var(--color-teal-50); opacity: 0; transition: opacity var(--duration-normal); z-index: 0; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--color-teal-100); }
.svc-card:hover::after { opacity: 1; }
.svc-card > * { position: relative; z-index: 1; }
.svc-card__ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary-dark); margin-bottom: 1rem; }
.svc-card__ic svg { width: 30px; height: 30px; }
.svc-card h3 { font-size: var(--text-lg); }
.svc-card p { margin-top: 0.6rem; color: var(--color-text-soft); font-size: var(--text-sm); flex-grow: 1; }
.svc-card__link { margin-top: 1rem; font-family: var(--font-display); font-weight: 700; color: var(--color-primary-dark); display: inline-flex; align-items: center; gap: 0.4rem; }
.svc-card__link .arr { transition: transform var(--duration-fast); }
.svc-card:hover .svc-card__link .arr { transform: translateX(4px); }

/* Symptom chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-5); justify-content: center; }
.chip { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 0.55rem 1.1rem; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-text-soft); }
.chip:hover { border-color: var(--color-teal-100); background: var(--color-teal-50); color: var(--color-primary-dark); }

/* ====================================================================== */
/* Split / About                                                          */
/* ====================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
.split__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--color-teal-100); aspect-ratio: 4/3.4; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--placeholder { display: grid; place-items: center; color: var(--color-primary-dark); }
.mission-quote { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: oklch(38% 0.03 220); line-height: 1.45; }
.mission-quote .lead-mark { color: var(--color-accent); }

/* ====================================================================== */
/* ER vs Urgent Care (tabs + compare)                                     */
/* ====================================================================== */
.tabs { max-width: 900px; margin-inline: auto; }
.tablist { display: flex; gap: 0.5rem; background: var(--color-surface); padding: 0.4rem; border-radius: var(--radius-pill); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); width: fit-content; margin: 0 auto var(--space-5); }
.tab { border: none; background: transparent; font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); padding: 0.7rem 1.5rem; border-radius: var(--radius-pill); cursor: pointer; color: var(--color-text-soft); transition: background var(--duration-normal), color var(--duration-normal); }
.tab[aria-selected="true"] { background: var(--color-primary); color: #fff; }
.tab--danger[aria-selected="true"] { background: var(--color-accent); }
.tabpanel { display: none; }
.tabpanel[data-active] { display: block; animation: fade-up var(--duration-slow) var(--ease-out-expo); }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.symptom-list { columns: 2; column-gap: var(--space-5); list-style: none; padding: 0; }
.symptom-list li { break-inside: avoid; padding: 0.6rem 0 0.6rem 2rem; position: relative; color: var(--color-text-soft); }
.symptom-list li::before { content: ""; position: absolute; left: 0; top: 0.75rem; width: 20px; height: 20px; border-radius: 50%; background: var(--color-teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23227a70' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }
.symptom-list--danger li::before { background: var(--color-coral-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c0492e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") center/12px no-repeat; }
.callout { margin-top: var(--space-4); background: var(--color-coral-100); border: 1px solid var(--color-coral-500); border-radius: var(--radius-md); padding: 1rem 1.3rem; color: var(--color-coral-600); font-weight: 700; font-family: var(--font-display); display: flex; gap: 0.7rem; align-items: flex-start; }

/* Compare bars */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); max-width: 760px; margin: var(--space-6) auto 0; }
.compare__card { border-radius: var(--radius-lg); padding: 1.6rem; text-align: center; }
.compare__card--us { background: var(--color-teal-100); border: 2px solid var(--color-teal-500); }
.compare__card--er { background: var(--color-surface); border: 1px solid var(--color-border); }
.compare__card h3 { font-size: var(--text-lg); }
.compare__metric { margin-top: 1rem; }
.compare__metric .k { font-size: 0.8rem; color: var(--color-text-mute); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; font-family: var(--font-display); }
.compare__metric .v { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); color: var(--color-primary-dark); }
.compare__card--er .v { color: var(--color-text-soft); }

/* ====================================================================== */
/* Providers                                                              */
/* ====================================================================== */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }
.provider { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal); }
.provider:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.provider__photo { aspect-ratio: 1; background: linear-gradient(160deg, var(--color-teal-100), var(--color-sky-100)); display: grid; place-items: center; color: var(--color-primary-dark); font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; }
.provider__body { padding: 1.2rem 1.3rem 1.5rem; }
.provider__body h3 { font-size: var(--text-lg); }
.provider__role { color: var(--color-accent); font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); margin-top: 0.15rem; }
.provider__bio { margin-top: 0.7rem; font-size: var(--text-sm); color: var(--color-text-soft); }

/* ====================================================================== */
/* Insurance                                                              */
/* ====================================================================== */
.insurance-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.insurance-grid li { list-style: none; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 0.6rem 1.15rem; font-weight: 600; font-size: var(--text-sm); color: var(--color-text-soft); }

/* ====================================================================== */
/* Awards / trust                                                         */
/* ====================================================================== */
.awards { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; align-items: center; }
.award { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; background: var(--color-surface); border: 1px solid var(--color-sun-400); border-radius: var(--radius-lg); padding: 1.3rem 1.8rem; box-shadow: var(--shadow-sm); }
.award__medal { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--color-sun-400), oklch(70% 0.13 70)); display: grid; place-items: center; color: #fff; }
.award strong { font-family: var(--font-display); color: oklch(50% 0.11 75); }
.award small { color: var(--color-text-mute); }

/* ====================================================================== */
/* Gallery                                                                */
/* ====================================================================== */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.gallery__item { scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(150deg, var(--color-teal-100), var(--color-sky-100)); display: grid; place-items: center; color: var(--color-primary-dark); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* ====================================================================== */
/* CTA band                                                               */
/* ====================================================================== */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--color-teal-600), var(--color-teal-700)); border-radius: var(--radius-xl); padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: oklch(100% 0 0 / 0.08); }
.cta-band::before { width: 240px; height: 240px; top: -80px; left: -60px; }
.cta-band::after { width: 300px; height: 300px; bottom: -120px; right: -80px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: var(--text-2xl); }
.cta-band p { color: oklch(96% 0.02 190); margin-top: 0.8rem; font-size: var(--text-lg); max-width: 40rem; margin-inline: auto; }
.cta-band .btn--primary { background: #fff; color: var(--color-primary-dark); box-shadow: 0 12px 24px oklch(30% 0.05 210 / 0.3); }
.cta-band .btn--primary:hover { background: var(--color-sun-100); color: var(--color-primary-dark); }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: oklch(100% 0 0 / 0.5); }
.cta-band .btn--ghost:hover { background: oklch(100% 0 0 / 0.12); color: #fff; }
.cta-band__actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ====================================================================== */
/* Footer                                                                 */
/* ====================================================================== */
.site-footer { background: oklch(30% 0.03 225); color: oklch(88% 0.02 220); padding-block: var(--space-8) var(--space-5); margin-top: var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-5); }
.site-footer h4 { color: #fff; font-size: var(--text-base); margin-bottom: 1rem; }
.site-footer a { color: oklch(85% 0.02 220); }
.site-footer a:hover { color: var(--color-teal-500); }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name span { color: var(--color-teal-500); }
.footer-brand p { margin-top: 1rem; font-size: var(--text-sm); color: oklch(78% 0.02 220); max-width: 28ch; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: oklch(100% 0 0 / 0.08); display: grid; place-items: center; color: #fff; }
.footer-social a:hover { background: var(--color-primary); }
.footer-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; font-size: var(--text-sm); }
.footer-loc { font-size: var(--text-sm); line-height: 1.6; }
.footer-loc strong { color: #fff; display: block; font-family: var(--font-display); }
.footer-loc + .footer-loc { margin-top: 1rem; }
.footer-bottom { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid oklch(100% 0 0 / 0.12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: var(--text-sm); color: oklch(75% 0.02 220); }
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ====================================================================== */
/* Page hero (internal pages)                                             */
/* ====================================================================== */
/* Extra top padding clears the sticky header's overhanging cloud (up to 96px)
   so the breadcrumb + heading never sit under it. */
.page-hero { background: linear-gradient(165deg, var(--color-teal-50), var(--color-sky-100)); padding: clamp(5rem, 3.5rem + 6vw, 8rem) 0 clamp(2.75rem, 1.8rem + 4vw, 4.75rem); position: relative; overflow: hidden; }
.page-hero__kid { position: absolute; right: clamp(1rem, 4vw, 5rem); bottom: 0; z-index: 3; height: clamp(120px, 12vw, 186px); width: auto; pointer-events: none; filter: drop-shadow(0 10px 14px oklch(40% 0.04 250 / 0.14)); }
@media (max-width: 767px) { .page-hero__kid { display: none; } }
.breadcrumb { display: flex; gap: 0.5rem; font-size: var(--text-sm); color: var(--color-text-mute); margin-bottom: 0.8rem; list-style: none; padding: 0; flex-wrap: wrap; }
.breadcrumb li::after { content: "›"; margin-left: 0.5rem; color: var(--color-text-mute); }
.breadcrumb li:last-child::after { content: none; }
.page-hero h1 { font-size: var(--text-3xl); max-width: 20ch; }
.page-hero p { margin-top: 1rem; font-size: var(--text-lg); color: var(--color-text-soft); max-width: 46rem; }

/* Prose */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-6); }
.prose h3 { font-size: var(--text-xl); margin-top: var(--space-5); color: var(--color-primary-dark); }
.prose p { margin-top: 1rem; color: var(--color-text-soft); }
.prose ul { margin-top: 1rem; padding-left: 1.2rem; color: var(--color-text-soft); }
.prose li { margin-top: 0.5rem; }
.prose ul.ticks { list-style: none; padding: 0; }
.prose ul.ticks li { padding-left: 2rem; position: relative; }
.prose ul.ticks li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 20px; height: 20px; border-radius: 50%; background: var(--color-teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23227a70' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }

.info-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: var(--text-lg); display: flex; align-items: center; gap: 0.5rem; }
.aside-hours { list-style: none; padding: 0; margin-top: 0.5rem; }
.aside-hours li { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed var(--color-border); font-size: var(--text-sm); }
.aside-hours li:last-child { border-bottom: none; }
.aside-hours .day { color: var(--color-text-soft); }
.aside-hours .time { font-family: var(--font-display); font-weight: 700; color: var(--color-primary-dark); }

.layout-2col { display: grid; grid-template-columns: 1fr 340px; gap: var(--space-6); align-items: start; }

/* Location cards */
.loc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-4); }
.loc-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal); }
.loc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.loc-card__map { aspect-ratio: 16/9; background: linear-gradient(150deg, var(--color-teal-100), var(--color-sky-100)); display: grid; place-items: center; color: var(--color-primary-dark); }
.loc-card__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc-card__body { padding: 1.4rem; }
.loc-card__body h3 { font-size: var(--text-lg); }
.loc-card__addr { color: var(--color-text-soft); font-size: var(--text-sm); margin-top: 0.5rem; }
.loc-card__row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.7rem; font-size: var(--text-sm); }
.loc-card__row a { font-family: var(--font-display); font-weight: 700; }
.loc-card__actions { margin-top: 1.1rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
/* Reveal only hides when JS is active (progressive enhancement):
   without JS, or with reduced motion, content is fully visible by default. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ====================================================================== */
/* Icon sizing helpers (healthicons)                                      */
/* ====================================================================== */
.hero__note-ic { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }
.hero__card-ic { width: 24px; height: 24px; color: var(--color-primary); }
.info-ic { width: 24px; height: 24px; color: var(--color-primary); flex-shrink: 0; }
.row-ic { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }
.callout__ic { width: 30px; height: 30px; flex-shrink: 0; }
.feature__ic svg, .svc-card__ic svg, .ncell__ic svg { width: 100%; height: 100%; }
.award__medal svg { width: 26px; height: 26px; }

/* Feature tones */
.feature__ic { width: 60px; height: 60px; padding: 12px; }
.feature--teal .feature__ic { background: var(--color-teal-100); color: var(--color-primary-dark); }
.feature--coral .feature__ic { background: var(--color-coral-100); color: var(--color-coral-600); }
.feature--sky .feature__ic { background: var(--color-sky-100); color: var(--color-sky-500); }
.feature--sun .feature__ic { background: var(--color-sun-100); color: oklch(58% 0.12 80); }
.section--pb-sm { padding-bottom: var(--space-5); }

/* ====================================================================== */
/* Playful lavender section (scattered decorations)                       */
/* ====================================================================== */
/* background matches the front cloud line color so there's no visible seam */
.playful { background: #e7e9f7; overflow: hidden; }
.playful__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-6); align-items: center; }

/* --- Child cutouts placed like the reference ------------------------- */
/* 1) standing on a section cloud line */
.section-kids { position: absolute; left: 3%; top: 0; transform: translateY(-62%); height: clamp(150px, 15vw, 225px); z-index: 4; pointer-events: none; filter: drop-shadow(0 10px 14px oklch(40% 0.04 250 / 0.12)); }
@media (max-width: 980px) { .section-kids { display: none; } }
/* 2) peeking out from behind the photo card */
.playful__peek { position: absolute; z-index: 1; bottom: 0; left: 46%; height: clamp(130px, 15vw, 210px); pointer-events: none; }
.playful__media { position: relative; z-index: 2; }
/* 3) beside a text block (careers CTA) */
.cta-wrap { position: relative; }
.cta-kids { position: absolute; z-index: 3; bottom: 0; left: -1.5rem; height: clamp(140px, 14vw, 200px); pointer-events: none; filter: drop-shadow(0 10px 14px oklch(40% 0.04 250 / 0.12)); }
/* baby peeking from behind the hero location card */
.hero__card-wrap { position: relative; }
.hero__card { position: relative; z-index: 1; }
.hero__baby { position: absolute; z-index: 0; left: 22px; top: 0; transform: translateY(-78%); height: clamp(120px, 13vw, 176px); pointer-events: none; }
@media (max-width: 900px) { .hero__baby { height: 104px; left: 14px; transform: translateY(-74%); } }
@media (max-width: 980px) {
  .hero__kids { height: 130px; left: 1%; }
  .playful__peek { display: none; }
  .cta-kids { display: none; }
}
.playful__text { text-align: left; }
.playful__media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.3; background: var(--color-lav-200); }
.playful__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .playful__grid { grid-template-columns: 1fr; } .playful__media { aspect-ratio: 16 / 10; } }
.footer-logo { background: #fff; padding: 0.55rem 0.9rem; border-radius: 16px; box-shadow: var(--shadow-sm); display: inline-flex; }
.footer-logo .brand__logo { height: 126px; }
.badge-round { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 1.2rem; }
.badge-round svg { width: 34px; height: 34px; color: var(--color-teal-600); }
.badge-round small { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-teal-700); }
.playful .mission-quote { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: oklch(38% 0.05 285); line-height: 1.5; max-width: 34ch; }
.playful__sub { margin-top: 1.2rem; color: var(--color-text-soft); max-width: 52ch; }
.playful .hero__actions { margin-top: 1.8rem; }

/* ====================================================================== */
/* Numbered service card grid (dashed dividers + confetti)                */
/* ====================================================================== */
.numbered-card { position: relative; background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: clamp(0.5rem, 1.5vw, 1.5rem); overflow: hidden; }
.numbered-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ncell { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.2rem 1.6rem 2rem; color: var(--color-text); border-top: 1.5px dashed var(--border-dash); border-left: 1.5px dashed var(--border-dash); transition: background var(--duration-normal); }
.ncell:nth-child(-n + 3) { border-top: none; }
.ncell:nth-child(3n + 1) { border-left: none; }
.ncell:hover { background: var(--color-teal-50); }
.ncell__num { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--color-accent); }
.ncell__ic { width: 76px; height: 76px; margin: 0.6rem 0 0.9rem; color: var(--color-teal-600); transition: transform var(--duration-normal) var(--ease-out-back); }
.ncell:hover .ncell__ic { transform: translateY(-4px) scale(1.05); }
.ncell h3 { font-size: var(--text-lg); }
.ncell p { margin-top: 0.5rem; font-size: var(--text-sm); color: var(--color-text-soft); }
.confetti { position: absolute; width: 0; height: 0; z-index: 2; }
.confetti--a { top: 20px; right: 26px; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 18px solid var(--color-sun-400); transform: rotate(18deg); }
.confetti--b { top: 46px; right: 60px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--color-teal-500); transform: rotate(-24deg); opacity: 0.8; }
.confetti--c { top: 16px; right: 92px; width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--color-coral-500); opacity: 0.7; }

/* ====================================================================== */
/* Responsive                                                             */
/* ====================================================================== */
@media (max-width: 1180px) {
  .icon-link { padding: 0.5rem 0.75rem; }
  .icon-link__ic { width: 36px; height: 36px; }
  .icon-link__label { font-size: 0.76rem; }
  .brand--center { padding: 0 1rem; }
}
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .icon-nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding-block: 0.6rem; }
  .icon-nav__group { display: none; }
  .brand--center { justify-self: auto; margin-right: auto; padding: 0; }
  .brand__logo { height: 46px; }
  .nav-toggle { display: flex; }
  .primary-nav { display: block; position: fixed; inset: 72px 0 0 auto; width: min(360px, 88vw); background: var(--color-surface); box-shadow: var(--shadow-lg); padding: 1.5rem; overflow-y: auto; transform: translateX(105%); transition: transform var(--duration-normal) var(--ease-out-expo); z-index: 95; }
  .primary-nav[data-open] { transform: none; }
  .primary-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
  .nav-backdrop { position: fixed; inset: 0; background: oklch(30% 0.03 225 / 0.4); opacity: 0; visibility: hidden; transition: opacity var(--duration-normal); z-index: 90; }
  .nav-backdrop[data-open] { opacity: 1; visibility: visible; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .layout-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .numbered-grid { grid-template-columns: repeat(2, 1fr); }
  .ncell:nth-child(3n + 1) { border-left: 1.5px dashed var(--border-dash); }
  .ncell:nth-child(-n + 2) { border-top: none; }
  .ncell:nth-child(odd) { border-left: none; }
}
@media (max-width: 620px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .symptom-list { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .numbered-grid { grid-template-columns: 1fr; }
  .ncell { border-left: none !important; border-top: 1.5px dashed var(--border-dash); }
  .ncell:first-child { border-top: none; }
  .tablist { width: 100%; }
  .tab { flex: 1; padding: 0.7rem 0.5rem; }
  .brand--center { padding: 0; }
  .playful .decor { transform: scale(0.7); }
}

/* ==========================================================================
   Flying airplane — scroll-driven decorative banner (reference "airplane")
   The craft crosses the band as the section scrolls through the viewport.
   Motion is driven from JS via --plane-x (a vw offset); transform only, so
   it stays on the compositor. Falls back to a static, centered plane with
   no JS and is hidden for reduced-motion users.
   ========================================================================== */
.plane-fly {
  position: relative;
  width: 100%;
  height: clamp(52px, 8vw, 104px);
  margin: clamp(0.5rem, 2vw, 2rem) 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.plane-fly__craft {
  position: absolute;
  top: 50%;
  left: 0;
  height: clamp(40px, 5.6vw, 76px);
  width: auto;
  /* Static fallback (no JS): sit centered. */
  transform: translate3d(calc(50vw - 50%), -50%, 0);
  filter: drop-shadow(0 10px 16px oklch(60% 0.08 235 / 0.28));
}
/* JS-enhanced: position comes from the scroll-mapped --plane-x offset. The
   art noses right with a readable trailing banner, so it always flies
   left→right (never mirrored — that would reverse the banner text). */
.js .plane-fly__craft {
  will-change: transform;
  transform: translate3d(var(--plane-x, -30vw), -50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .plane-fly { display: none; }
}
