/* Bloom With Bec Midwifery: site styles. Brand tokens from the Brand Identity board. */
:root {
  --rose: #C78FA3; --rosewood: #865868; --blush: #F3E3E7; --ivory: #FCF8F5;
  --sage: #A8B0A0; --eucalyptus: #DCE1D8; --taupe: #A5968E; --charcoal: #393536; --white: #FFFFFF;
  /* Readable version of the taupe, for small supporting text (the pale taupe fails AA on ivory and blush) */
  --taupe-ink: #6F625B;
  --hairline: rgb(134 88 104 / 0.16);

  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1440px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(44px, 2.2vw + 32px, 72px);
  --radius-sm: 12px; --radius: 20px; --radius-lg: 32px;
  --shadow-soft: 0 1px 2px rgb(57 53 54 / 0.04), 0 8px 28px rgb(134 88 104 / 0.08);
  --header-h: 120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ivory); color: var(--charcoal);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; letter-spacing: 0;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--rosewood); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rosewood); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: var(--rosewood); margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.625rem, 1.9rem + 3vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
h2 { font-size: clamp(2.125rem, 1.7rem + 1.6vw, 3.125rem); line-height: 1.1; letter-spacing: -0.015em; font-weight: 500; }
h3 { font-size: clamp(1.5rem, 1.35rem + 0.5vw, 1.75rem); line-height: 1.2; letter-spacing: -0.005em; }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); line-height: 1.6; }
.eyebrow {
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--rosewood);
  display: inline-flex; align-items: center; gap: 0.6em; margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
/* The eyebrow is inline-flex, so text-align centred it. Inside a grid it is
   blockified and fills the column, so it has to centre its own contents. */
.section-head--center .eyebrow, .cta-inner .eyebrow { justify-content: center; }
.eyebrow--on-dark { color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--rosewood); color: var(--white); padding: 12px 18px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 16px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 1025px) { .container { width: min(1392px, 100% - 48px); padding-inline: 0; } }
.section { padding-block: var(--section-y); }
.section--blush { background: var(--blush); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section-head { margin-bottom: clamp(32px, 3vw, 48px); }
/* Measure is set by the grid, not a pixel cap, so it scales with the viewport
   instead of leaving the 1392 track half empty. */
@media (min-width: 900px) {
  .section-head--center { display: grid; grid-template-columns: 1fr minmax(0, 5fr) 1fr; }
  .section-head--center > * { grid-column: 2; }
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-intro { font-size: 1.125rem; }
.split { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 0.9fr; } }
.prose { max-width: 68ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.75rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--rosewood); color: var(--white); }
.btn-secondary { background: transparent; color: var(--rosewood); border-color: var(--rosewood); }
.btn-light { background: var(--ivory); color: var(--rosewood); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #6F4655; }
  .btn-secondary:hover { background: var(--rosewood); color: var(--white); }
  .btn-light:hover { background: var(--white); }
  .btn-outline-light:hover { background: var(--white); color: var(--rosewood); }
  .btn .icon:last-child { transition: transform 200ms var(--ease-out); }
  .btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row--center { justify-content: center; }
@media (max-width: 480px) { .btn-row .btn { width: 100%; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(252 248 245 / 0.94); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgb(252 248 245 / 0.82); backdrop-filter: saturate(1.2) blur(14px); } }
.site-header::after {
  content: ""; position: absolute; inset: 100% 0 auto; height: 18px; pointer-events: none;
  background: linear-gradient(rgb(134 88 104 / 0.10), transparent); opacity: 0; transition: opacity 200ms var(--ease-out);
}
.site-header.is-scrolled::after { opacity: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); padding-block: 8px; }
.brand { display: inline-grid; place-items: center; padding: 6px; background: var(--white); border-radius: 50%; box-shadow: 0 2px 10px rgb(134 88 104 / 0.16); }
.brand img, .footer-logo img { height: auto; }
.brand img { width: 104px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: block; padding: 10px 14px; color: var(--charcoal); text-decoration: none; font-weight: 500; border-radius: 999px; transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out); }
.nav-link[aria-current] { color: var(--rosewood); background: var(--blush); }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { color: var(--rosewood); } }
/* Six top-level items plus the call button: tighten before the tablet breakpoint */
@media (min-width: 1025px) and (max-width: 1320px) {
  .site-nav { gap: 16px; }
  .nav-link { padding: 10px 10px; font-size: 0.9375rem; }
  .nav-call { padding-inline: 1rem; }
}
.sub-toggle { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -8px; border: 0; background: none; color: var(--charcoal); border-radius: 50%; cursor: pointer; }
.sub-toggle .icon { transition: transform 200ms var(--ease-out); }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-menu {
  list-style: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px;
  background: var(--white); border-radius: var(--radius); box-shadow: 0 12px 40px rgb(57 53 54 / 0.12);
  opacity: 0; visibility: hidden; transform: scale(0.96) translateY(-4px); transform-origin: top left;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
}
.has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.sub-menu a { display: block; padding: 12px 16px; border-radius: var(--radius-sm); color: var(--charcoal); text-decoration: none; font-weight: 500; }
.sub-menu a:hover, .sub-menu a[aria-current] { background: var(--blush); color: var(--rosewood); }
.nav-toggle { display: none; }
.nav-toggle-close { display: none; }

@media (max-width: 1024px) {
  :root { --header-h: 92px; }
  .brand img { width: 72px; }
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; gap: 8px;
    border: 1.5px solid var(--rosewood); border-radius: 999px; background: transparent; color: var(--rosewood); font: 600 1rem var(--font-body); cursor: pointer;
  }
  .nav-toggle > span { display: inline-flex; align-items: center; gap: 8px; }
  .nav-toggle > .nav-toggle-close { display: none; }
  .nav-toggle[aria-expanded="true"] > .nav-toggle-open { display: none; }
  .nav-toggle[aria-expanded="true"] > .nav-toggle-close { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px; background: var(--ivory); box-shadow: 0 16px 32px rgb(57 53 54 / 0.10);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-item { flex-wrap: wrap; }
  .nav-link { flex: 1; padding: 14px 16px; font-size: 1.0625rem; }
  .sub-toggle { width: 48px; height: 48px; margin: 0; }
  .sub-menu { position: static; flex-basis: 100%; min-width: 0; box-shadow: none; background: transparent; padding: 0 0 0 16px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub.is-open .sub-menu { display: block; }
  .nav-call { width: 100%; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--blush); border-top: 1px solid rgb(134 88 104 / 0.12); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; padding-block: 14px; font-size: 0.9375rem; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--rosewood); font-weight: 500; text-decoration: none; padding: 4px 2px; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--charcoal); font-weight: 600; }
.crumb-sep { width: 16px; height: 16px; margin-inline: 8px; color: var(--rosewood); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 5vw, 88px) clamp(44px, 4.5vw, 76px); overflow: hidden;
  background: radial-gradient(900px 520px at 88% 10%, var(--blush) 0%, transparent 70%), radial-gradient(640px 360px at 0% 70%, rgb(220 225 216 / 0.7) 0%, transparent 72%), var(--ivory); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero-media { order: -1; }

/* ---------- Home hero: full-bleed feature ---------- */
/* The photo IS the section. Rebecca sits left of centre in the frame, so the
   copy goes right, over the bright curtain side. Mirror of the usual split. */
/* Phones STACK: photo, then copy on solid ivory. Overlaid text on a portrait
   crop always lands on her face at this width, whatever the gradient does. */
.hero--feature { position: relative; background: var(--ivory); padding-block: 0; }
.hero--feature .hero-bg { display: block; height: clamp(330px, 86vw, 450px); }
.hero--feature .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero-feature-inner { display: grid; padding-block: clamp(28px, 7vw, 48px); }

/* Desktop OVERLAYS: the photo becomes the section and the copy sits beside her,
   on the bright curtain side. Height tracks viewport WIDTH, not a fixed pixel
   box - a fixed height means the wider the window, the harder a 16:9 photo
   crops, which was cutting the top of her head off at 1900px. */
@media (min-width: 900px) {
  /* Height is a share of viewport WIDTH, so the crop fraction is identical at
     every window size: the visible band is always 6% (top of her head) to 89%
     (her hands) and only blank ceiling is trimmed.
     Do NOT use aspect-ratio + max-height here. When the height is capped that
     way, Chrome re-derives the WIDTH from it and the section stops being
     full-bleed - at 1830px it rendered 1528px wide with a white gap. */
  .hero--feature { display: grid; isolation: isolate; align-items: center;
    min-height: max(440px, 47vw); }
  .hero--feature .hero-bg { position: absolute; inset: 0; z-index: -2; height: auto; }
  .hero--feature .hero-bg img { object-position: 50% 36%; }
  .hero--feature::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgb(252 248 245 / 0) 34%, rgb(252 248 245 / 0.70) 50%, rgb(252 248 245 / 0.95) 64%); }
  /* Uneven split, not 1fr 1fr: an even split starts the copy level with her
     shoulder. The wider left column pushes it clear of her. */
  .hero-feature-inner { grid-template-columns: 1.12fr 0.88fr; gap: clamp(40px, 5vw, 96px); padding-block: clamp(32px, 6vw, 88px); }
  .hero-feature-inner .hero-copy { grid-column: 2; }
}

@media (min-width: 900px) { .hero-media { order: 0; } }

.media-panel { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--blush), #F8EEF1 55%, var(--ivory)); }
.media-panel--hero { aspect-ratio: 4 / 3; max-height: 260px; width: 100%; }
@media (max-width: 899px) { .media-panel--hero.media-panel--photo { max-height: 300px; } .media-panel--hero .media-photo { object-position: 55% 30%; }
  .media-panel--services-hero .media-photo { object-position: 50% 58%; }
  .media-panel--postnatal-hero .media-photo { object-position: 50% 48%; }
  .media-panel--antenatal-hero .media-photo { object-position: 30% 45%; }
  .media-panel--contact-hero .media-photo { object-position: 55% 65%; }
  .media-panel--about-hero .media-photo { object-position: 50% 22%; }
  .media-panel--faqs-hero .media-photo { object-position: 50% 42%; }
  .media-panel--services-journey .media-photo { object-position: 40% 45%; }
  .media-panel--antenatal-learning .media-photo { object-position: 45% 58%; } }
@media (min-width: 900px) { .media-panel--hero { aspect-ratio: 1 / 1; max-height: 540px; border-radius: 240px 240px var(--radius-lg) var(--radius-lg); } }
.media-panel--section { aspect-ratio: 5 / 4; }
/* Real photos of Rebecca are portrait. Match the panel to the source so object-fit
   has nothing to crop, and hand the picture the NARROW column so the story still leads. */
.media-panel--portrait { aspect-ratio: 3 / 4; }
/* Supporting detail shot. Square, and it sits in the narrow column so it renders
   at about 495px: the source is only 1024px square, so anything wider upscales. */
.media-panel--detail { aspect-ratio: 1 / 1; }
/* The supplied portraits are 4:5. Match them so nothing is cropped. */
.media-panel--tall { aspect-ratio: 4 / 5; }
/* Supplied landscape frames are 3:2. */
.media-panel--wide { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .split:has(> .media-panel--portrait:first-child),
  .split:has(> .media-panel--detail:first-child),
  .split:has(> .media-panel--tall:first-child) { grid-template-columns: 0.75fr 1.25fr; }
  .split:has(> .media-panel--portrait:last-child),
  .split:has(> .media-panel--detail:last-child),
  .split:has(> .media-panel--tall:last-child) { grid-template-columns: 1.25fr 0.75fr; }
}
.media-logo { width: min(62%, 420px); height: auto; position: relative; z-index: 1; }
.media-panel--hero .media-logo { width: auto; height: 82%; }
@media (min-width: 900px) { .media-panel--hero .media-logo { width: min(74%, 420px); height: auto; } }
.media-panel--photo { background: var(--blush); }
.media-panel--photo picture { position: absolute; inset: 0; }
.media-photo { width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; }
.media-sprig { position: absolute; left: 6%; bottom: -4%; width: 22%; height: auto; fill: none; stroke: var(--sage); stroke-width: 1.5; stroke-linecap: round; opacity: 0.9; }
.media-sprig .sprig-bud { fill: var(--rose); stroke: none; }

/* Hero signature moment: one orchestrated load sequence, first view only */
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: rise 560ms var(--ease-out) both; }
  .hero .reveal:nth-child(2) { animation-delay: 60ms; }
  .hero .reveal:nth-child(3) { animation-delay: 120ms; }
  .hero .reveal:nth-child(4) { animation-delay: 180ms; }
  .hero .media-panel { animation: materialise 640ms var(--ease-out) 100ms both; }
  .hero .sprig-stem, .hero .sprig-leaf { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1200ms var(--ease-out) 280ms forwards; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .reveal, .hero .media-panel { animation: fade 400ms var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes materialise { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Cards and grids ---------- */
.card-grid { display: grid; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 700px) { .card-grid--2, .card-grid--center { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 1024px) { .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-grid--center { margin-inline: auto; }
.card-grid--center:has(> :only-child) { grid-template-columns: minmax(0, 560px); justify-content: center; }
.card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 2.5vw, 36px); box-shadow: var(--shadow-soft); }
.card h3 { margin-bottom: 0.4em; }
.card--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.card--service { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.card--service .btn { margin-top: auto; }

/* Factual bullets inside a service card. Real list markers, not bare lines. */
.card-facts { list-style: disc; margin: 0 0 20px; padding-left: 1.2em; text-align: left; display: grid; gap: 6px; font-size: 0.9375rem; line-height: 1.5; }
.card-facts li::marker { color: var(--rose); }

/* Credential strip: icons as markers, no third-party logos. One item per row,
   so every icon lines up in a single column. */
.trust-strip { list-style: none; display: grid; gap: 10px; margin-top: 24px; }
.trust-strip li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 500; color: var(--charcoal); }
.trust-strip .icon { width: 18px; height: 18px; color: var(--rosewood); flex: none; }

.card .btn { white-space: normal; text-align: center; max-width: 100%; }
.contact-methods { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-methods .btn { white-space: normal; overflow-wrap: anywhere; }
.footer-email span { overflow-wrap: anywhere; }
.card--service p { margin-bottom: 20px; }
.icon-badge { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: var(--blush); color: var(--rosewood); }
.icon-badge .icon { width: 28px; height: 28px; }
.section--blush .card .icon-badge { background: var(--ivory); }
.key-benefit { display: inline-flex; margin-inline: auto; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px; background: var(--eucalyptus); color: var(--charcoal); font-size: 0.9375rem; font-weight: 500; }
.key-benefit .icon { color: var(--rosewood); width: 16px; height: 16px; }

/* Even-cornered tiles with a hairline edge and a soft square icon chip */
.pill-list { list-style: none; display: grid; gap: 14px; }
@media (min-width: 700px) { .pill-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .pill-list--3 { display: flex; flex-wrap: wrap; justify-content: center; } .pill-list--3 > li { flex: 0 1 calc((100% - 28px) / 3); } }
@media (min-width: 700px) and (max-width: 1024px) { .pill-list--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pill-list li {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgb(57 53 54 / 0.03); font-weight: 500; line-height: 1.45;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pill-list li:hover { border-color: rgb(134 88 104 / 0.34); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
}
.pill-row { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px 22px; }
.pill-list li .icon-dot { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--blush); color: var(--rosewood); }
.pill-list .icon-dot .icon { width: 19px; height: 19px; }
.section--blush .pill-list li .icon-dot { background: var(--ivory); }
.section--blush .pill-list li { border-color: rgb(134 88 104 / 0.10); }

/* Two-line credential pills: institution on its own line */
.pill-list--stack .pill-text { display: block; }
.pill-list--stack .pill-sub { display: block; margin-top: 2px; font-weight: 400; font-size: 0.9375rem; color: var(--taupe-ink); }

/* Stats tiles (no count-up: the number is the point) */
.stat-band { display: grid; gap: clamp(24px, 3vw, 44px); align-items: center; }
@media (min-width: 900px) { .stat-band { grid-template-columns: 0.85fr 1.4fr; } }
.stat-intro { margin: 0; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.5; color: var(--charcoal); }
.stat-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
@media (min-width: 900px) { .stat-items { border-left: 1px solid rgb(134 88 104 / 0.22); padding-left: clamp(24px, 3vw, 48px); } }
.stat { text-align: center; }
.stat-value { display: block; font-family: var(--font-heading); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; font-size: clamp(2.25rem, 1.7rem + 2vw, 3.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--rosewood); margin-bottom: 6px; }
.stat-label { display: block; font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem); font-weight: 600; line-height: 1.35; color: var(--taupe-ink); }
@media (max-width: 560px) { .stat-items { grid-template-columns: 1fr; gap: 20px; } .stat { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 12px; text-align: left; } .stat-value { margin-bottom: 0; } }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { counter-increment: step; position: relative; text-align: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.step-body { padding: 0 28px 32px; }
.step::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; margin: 36px auto 16px; border-radius: 50%; background: var(--rosewood); color: var(--white); font: 600 1.25rem var(--font-heading); }
.step h3 { font-size: 1.5rem; }

/* Statement panel (sage: charcoal text only, white fails contrast) */
.statement { background: var(--eucalyptus); color: var(--charcoal); }
.statement-inner { position: relative; text-align: center; padding-block: clamp(56px, 5vw, 88px); }
.statement-words { font-family: var(--font-body); font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1.0625rem); font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; margin: 0 0 0.4em; }
.statement-script { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); line-height: 1; margin: 0; }

/* Fees */
.fee-grid { display: grid; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 800px) { .fee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fee-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.625rem; }
.fee-card h3 .icon { color: var(--rosewood); width: 26px; height: 26px; }
/* Supplied Medicare mark. Sized small and kept on a white or ivory surface: the
   green and yellow are loud against the blush palette. */
.medicare-mark { width: 132px; height: auto; margin: 0 0 14px; }
.section-head--center .medicare-mark { margin-inline: auto; }
.fee-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.fee-table th, .fee-table td { padding: 14px 0; text-align: left; border-bottom: 1px solid var(--blush); vertical-align: top; }
.fee-table tr:last-child th, .fee-table tr:last-child td { border-bottom: 0; }
.fee-table th { font-weight: 500; }
.fee-table td { text-align: right; font-weight: 600; color: var(--rosewood); white-space: nowrap; padding-left: 16px; }
.source-note { margin-top: 24px; text-align: center; font-size: 0.875rem; }
.card-grid--inclusions { display: flex; flex-wrap: wrap; justify-content: center; }
.card-grid--inclusions > .card { flex: 1 1 100%; }
@media (min-width: 700px) { .card-grid--inclusions > .card { flex: 0 1 calc((100% - clamp(16px, 2vw, 28px)) / 2); } }
@media (min-width: 1025px) { .card-grid--inclusions > .card { flex: 0 1 calc((100% - 2 * clamp(16px, 2vw, 28px)) / 3); } }
.card-grid--inclusions .card h3 { margin-top: 0; }
.card-grid--inclusions .icon-badge { margin-bottom: 14px; }
/* Callout: needs its own surface. On ivory sections an ivory panel is invisible. */
.note {
  display: block; margin-top: 20px; font-size: 0.9375rem; padding: 16px 20px;
  border-radius: var(--radius-sm); background: var(--blush); color: var(--charcoal);
  border: 1px solid var(--hairline); border-left: 4px solid var(--rosewood);
}
.section--blush .note, .info-card .note, .card .note { background: var(--white); }

/* Hub and spoke: postnatal visit inclusions */
.hub { position: relative; list-style: none; }
.hub-centre { display: none; }
@media (min-width: 900px) {
  .hub-wrap { position: relative; width: min(100%, 720px); aspect-ratio: 1; margin-inline: auto; }
  .hub-wrap::before { content: ""; position: absolute; inset: 17%; border: 1.5px dashed var(--rose); border-radius: 50%; }
  .hub-centre { display: grid; place-items: center; position: absolute; inset: 34%; border-radius: 50%; background: var(--rosewood); color: var(--white); text-align: center; padding: 20px; font: 500 clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem)/1.15 var(--font-heading); box-shadow: 0 0 0 14px var(--blush); }
  .hub { position: absolute; inset: 0; }
  .hub li { position: absolute; left: 50%; top: 50%; width: 190px; margin: -38px 0 0 -95px; }
  .hub li:nth-child(1) { transform: translate(0, -250px); }
  .hub li:nth-child(2) { transform: translate(238px, -77px); }
  .hub li:nth-child(3) { transform: translate(147px, 202px); }
  .hub li:nth-child(4) { transform: translate(-147px, 202px); }
  .hub li:nth-child(5) { transform: translate(-238px, -77px); }
  .hub-node { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 600; line-height: 1.3; }
  .hub-node .icon-badge { margin: 0; background: var(--white); box-shadow: var(--shadow-soft); }
}
@media (max-width: 899px) {
  .hub { display: grid; gap: 12px; }
  @media (min-width: 560px) { .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .hub-node { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-sm); box-shadow: 0 1px 2px rgb(57 53 54 / 0.03); font-weight: 600; }
  .hub-node .icon-badge { width: 44px; height: 44px; margin: 0; }
  .hub-node .icon-badge .icon { width: 20px; height: 20px; }
}

/* FAQ accordion */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; color: var(--charcoal); border-radius: var(--radius); transition: color 200ms var(--ease-out); }
.faq-item summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover { color: var(--rosewood); }
  .faq-item summary:hover .faq-icon { background: var(--rose); color: var(--white); }
}
.faq-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blush); color: var(--rosewood); transition: transform 240ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.faq-icon .icon { width: 18px; height: 18px; }
.faq-item[open] .faq-icon { transform: rotate(180deg); background: var(--rosewood); color: var(--white); }
.faq-a { padding: 0 24px 24px; }
/* Height is animated in site.js; overflow keeps the padding clipped while it runs */
.faq-item .faq-a.is-animating { overflow: hidden; }
.faq-a ul { padding-left: 1.2em; }
.faq-group + .faq-group { margin-top: clamp(48px, 5vw, 72px); }

/* Two column copy with media */
.story p { font-size: 1.0625rem; }
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 560px) { .check-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-list .icon { color: var(--rose); width: 20px; height: 20px; margin-top: 3px; fill: var(--rose); }

/* CTA band: botanicals framing the band itself, not floating beside the copy */
.cta-band { position: relative; isolation: isolate; background: var(--rosewood); color: var(--white); overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(760px 460px at 50% -30%, rgb(255 255 255 / 0.10), transparent 70%);
}
.cta-band h2 { color: var(--white); }
.cta-inner { position: relative; text-align: center; }
@media (min-width: 900px) {
  .cta-inner { display: grid; grid-template-columns: 1fr minmax(0, 4fr) 1fr; }
  .cta-inner > * { grid-column: 2; }
}
.cta-botanical { position: absolute; z-index: -1; display: block; pointer-events: none; }
.cta-botanical--left { left: clamp(-40px, -2vw, -16px); bottom: -78px; width: 178px; transform: rotate(-14deg); }
.cta-botanical--right { right: clamp(-36px, -1.5vw, -12px); top: -70px; width: 224px; transform: rotate(166deg); }
.cta-sprig { width: 100%; height: auto; fill: none; stroke: rgb(255 255 255 / 0.22); stroke-width: 1.5; stroke-linecap: round; }
.cta-sprig .sprig-bud { fill: rgb(255 255 255 / 0.30); stroke: none; }
@media (max-width: 900px) { .cta-botanical--right { display: none; } .cta-botanical--left { width: 148px; bottom: -44px; } }

/* Forms */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; } }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 48px); box-shadow: var(--shadow-soft); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.field .req { color: var(--rosewood); }
.field .hint { display: block; font-weight: 400; font-size: 0.875rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid #CDBFC4; border-radius: var(--radius-sm);
  background: var(--ivory); color: var(--charcoal); font: 400 1rem/1.5 var(--font-body);
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rosewood); background: var(--white); box-shadow: 0 0 0 3px rgb(134 88 104 / 0.2); }
.field [aria-invalid="true"] { border-color: #A3304A; }
.field-error { display: block; margin-top: 6px; color: #A3304A; font-size: 0.9375rem; font-weight: 500; }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9375rem; margin-top: 4px; }
.form-status { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 500; }
.form-status--ok { background: var(--eucalyptus); color: var(--charcoal); }
.form-status--error { background: #F6E1E5; color: #7D2238; }
.info-card { display: grid; gap: 20px; }
.info-card .note { background: var(--white); }

/* Legal */
.legal { display: grid; gap: clamp(24px, 4vw, 72px); align-items: start; }
@media (min-width: 960px) { .legal { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .legal-intro { position: sticky; top: calc(var(--header-h) + 32px); } }
.legal-body > h2:first-child { margin-top: 0; }
.legal h2 { font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem); margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal li + li { margin-top: 6px; }
.updated { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--eucalyptus); font-size: 0.9375rem; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blush); color: var(--charcoal); }
.footer-grid { display: grid; gap: 32px; padding-block: clamp(44px, 4vw, 64px); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .footer-grid { grid-template-columns: auto minmax(340px, 2.1fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(290px, 1.5fr); gap: 44px; align-items: start; } }
.footer-logo { display: inline-grid; place-items: center; padding: 12px; background: var(--white); border-radius: 50%; box-shadow: 0 4px 18px rgb(134 88 104 / 0.14); }
.footer-logo img { width: clamp(124px, 11vw, 164px); }
.footer-tagline { font-family: var(--font-heading); font-style: italic; font-size: 1.375rem; line-height: 1.3; color: var(--rosewood); }
.footer-blurb { margin-top: 12px; font-size: 0.9375rem; line-height: 1.65; }
.footer-heading { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rosewood); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col ul a, .footer-static { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; color: var(--charcoal); text-decoration: none; font-size: 0.9375rem; line-height: 1.5; }
.footer-col ul a:hover { color: var(--rosewood); text-decoration: underline; }
.footer-contact ul a, .footer-static { font-weight: 500; }
.footer-contact .icon, .footer-static .icon { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--rosewood); }
.footer-email span { overflow-wrap: anywhere; }
.footer-bar { background: var(--blush); color: var(--charcoal); font-size: 0.9375rem; border-top: 1px solid rgb(134 88 104 / 0.18); }
.footer-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 18px; }
.footer-bar-inner p { margin-bottom: 0; }
.footer-bar a { color: var(--charcoal); font-weight: 600; }
.footer-bar .dot { margin-inline: 6px; }
@media (max-width: 700px) { .footer-bar-inner { flex-direction: column; text-align: center; } }

/* ---------- Mobile dockbar ---------- */
.dockbar { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .dockbar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    background: rgb(252 248 245 / 0.96); border-radius: 999px; box-shadow: 0 10px 30px rgb(57 53 54 / 0.18); padding: 6px;
  }
  @supports (backdrop-filter: blur(1px)) { .dockbar { background: rgb(252 248 245 / 0.86); backdrop-filter: saturate(1.2) blur(16px); } }
  .dockbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 999px; color: var(--rosewood); text-decoration: none; font-size: 0.8125rem; font-weight: 600; transition: transform 160ms var(--ease-out); }
  .dockbar a:first-child { background: var(--rosewood); color: var(--white); }
  .dockbar a:active { transform: scale(0.97); }
  .dockbar .icon { width: 20px; height: 20px; }
}

/* ---------- Preferences ---------- */
@media (prefers-reduced-transparency: reduce) { .site-header, .dockbar { background: var(--ivory); backdrop-filter: none; } }
@media (prefers-contrast: more) {
  .card, .step, .faq-item, .pill-list li, .form-card { box-shadow: none; border: 1.5px solid var(--charcoal); }
  .site-header, .dockbar { background: var(--ivory); backdrop-filter: none; }
}
@media print { .site-header, .dockbar, .cta-band, .breadcrumbs { display: none; } }
