/* Wren Midwifery
   COLOR THEORY
   Harmony: split-complementary. Plum violet (#4A2A66) as the anchor, with the two colors either side of its complement:
   apricot (#E7893A) and a warm sand (#F3E6DA). Violet reads as calm, intimate and a little ceremonial; apricot brings
   warmth and skin-tone light; sand keeps the page soft. No teal, no cream-and-terracotta.
   60% warm white/sand  #FBF6F1 / #F3E6DA   backgrounds
   30% plum             #4A2A66 panels and headings, #2A1738 text
   10% apricot          #E7893A actions and the slider
   Contrast (WCAG): ink #2A1738 on #FBF6F1 15.30 (AAA), on #F6DCC4 12.48 (AAA); plum #4A2A66 on #FBF6F1 10.78 (AAA);
                    #FBF6F1 on plum 10.78 (AAA); mauve #6E5A80 on #FBF6F1 5.69 (AA); ink on apricot 6.29 (AA);
                    apricot on plum 4.43 (large text only). Photo shoot: warm home light, sand knits, a plum scarf. */
:root {
  --paper: #FBF6F1;
  --sand: #F3E6DA;
  --peach: #F6DCC4;
  --plum: #4A2A66;
  --ink: #2A1738;
  --mauve: #6E5A80;
  --apricot: #E7893A;
  --line: #E4D3C4;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Mulish", system-ui, sans-serif;
  --pad: clamp(1.1rem, 4.5vw, 5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); font-feature-settings: "kern" 1; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.015em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.55rem; }
em { font-style: italic; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--plum); color: #fff; padding: .6rem 1rem; z-index: 60; }
.skip:focus { left: .5rem; }
.hp { position: absolute; left: -9999px; }
section { scroll-margin-top: 70px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .85rem 1.6rem; font: 700 1rem var(--sans); text-decoration: none; border: 0; cursor: pointer; border-radius: 4px; transition: background .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--ink); }
.btn--text { background: transparent; color: var(--plum); padding-left: .4rem; padding-right: .4rem; border-bottom: 2px solid var(--apricot); border-radius: 0; min-height: 0; padding-top: .3rem; padding-bottom: .2rem; align-self: center; }
.btn--wide { width: 100%; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; padding: 0 var(--pad); background: rgba(251, 246, 241, .9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-color: var(--line); }
.brand { font: italic 500 1.55rem/1 var(--serif); text-decoration: none; color: var(--plum); }
.brand span { font-style: normal; font-family: var(--sans); font-weight: 700; font-size: .85rem; letter-spacing: .04em; margin-left: .3rem; vertical-align: middle; }
.menu { display: flex; align-items: center; gap: 1.8rem; font-weight: 700; font-size: .95rem; }
.menu a { text-decoration: none; }
.menu a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--apricot); text-decoration-thickness: 2px; }
.menu__cta { color: var(--plum); border: 2px solid var(--plum); padding: .5rem 1rem; border-radius: 4px; }
.menu__cta:hover { background: var(--plum); color: #fff; text-decoration: none !important; }
.burger { display: none; background: none; border: 2px solid var(--plum); border-radius: 4px; padding: .5rem .9rem; font: 700 .95rem var(--sans); color: var(--plum); cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem) var(--pad) clamp(3rem, 6vw, 5rem); }
.hero__kicker { font-weight: 700; font-size: .95rem; color: var(--mauve); }
.hero h1 { margin-top: 1.2rem; font-size: clamp(3.2rem, 8.5vw, 7.6rem); font-weight: 300; letter-spacing: -.03em; line-height: .98; max-width: 9ch; }
.hero h1 em { color: var(--plum); font-weight: 400; padding-bottom: .06em; display: inline-block; line-height: 1.1; }
.hero__lead { margin-top: 1.6rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 34ch; color: var(--mauve); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 2rem; align-items: center; }
.hero__photos { position: relative; padding-bottom: 14%; padding-left: 12%; }
.hero__main { aspect-ratio: 3 / 4; background: var(--sand); overflow: hidden; }
.hero__main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__small { position: absolute; left: 0; bottom: 0; width: 40%; aspect-ratio: 3 / 4; background: var(--peach); overflow: hidden; outline: 10px solid var(--paper); }
.hero__small img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero__copy > *:nth-child(2) { animation-delay: .08s; }
  .hero__copy > *:nth-child(3) { animation-delay: .16s; }
  .hero__copy > *:nth-child(4) { animation-delay: .24s; }
  .hero__main { animation: reveal 1.1s var(--ease) both; }
  .hero__small { animation: rise 1s .5s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
}

/* Weeks */
.weeks { padding: clamp(3rem, 7vw, 6rem) var(--pad); background: var(--plum); color: var(--paper); }
.weeks__head { max-width: 60ch; }
.weeks__head p { margin-top: 1rem; font-size: 1.1rem; color: var(--peach); }
.weeks__control { margin-top: 2.5rem; display: grid; gap: .6rem; }
.weeks__label { font-weight: 700; font-size: .95rem; color: var(--peach); }
.weeks__readout { display: flex; align-items: baseline; gap: 1rem; }
.weeks__num { font: 300 clamp(4rem, 9vw, 7.5rem)/1 var(--serif); letter-spacing: -.04em; font-variant-numeric: tabular-nums; min-width: 2ch; }
.weeks__num::before { content: "Week "; font-size: .32em; letter-spacing: 0; font-family: var(--sans); font-weight: 700; color: var(--peach); vertical-align: .9em; margin-right: .3em; }
.weeks__stage { font: italic 400 clamp(1.3rem, 2.4vw, 2rem)/1 var(--serif); color: var(--apricot); }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; border: 0; padding: 0; margin: .4rem 0 0; cursor: pointer; }
.slider:focus { outline: none; }
.slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--apricot) var(--fill, 52%), rgba(251, 246, 241, .25) var(--fill, 52%)); }
.slider::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(251, 246, 241, .25); }
.slider::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--apricot); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 4px solid var(--apricot); margin-top: -12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 4px solid var(--apricot); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.slider:focus-visible { outline: 3px solid var(--apricot); outline-offset: 6px; }
.weeks__ticks { display: flex; justify-content: space-between; font-size: .85rem; color: var(--peach); font-variant-numeric: tabular-nums; }
.weeks__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); margin-top: 2.5rem; border-top: 1px solid rgba(251, 246, 241, .3); }
.weeks__panel { padding-top: 1.4rem; }
.weeks__panel h3 { font-size: 1.35rem; color: var(--peach); }
.weeks__panel p { margin-top: .7rem; font-size: 1.05rem; line-height: 1.6; }
.fits { list-style: none; padding: 0; margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.fits li { padding: .45rem .8rem; border: 1.5px solid var(--apricot); border-radius: 999px; font-weight: 700; font-size: .92rem; }
.checklist { list-style: none; padding: 0; margin-top: .6rem; display: grid; }
.checklist li { display: flex; gap: .7rem; align-items: start; padding: .55rem 0; border-bottom: 1px solid rgba(251, 246, 241, .2); }
.checklist input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--apricot); flex: none; }
.checklist label { cursor: pointer; }
.checklist input:checked + label { text-decoration: line-through; color: var(--peach); }
.weeks.is-switching .weeks__panel { animation: soft .5s var(--ease) both; }
@keyframes soft { from { opacity: .35; } to { opacity: 1; } }
.fine { margin-top: 2rem; font-size: .9rem; max-width: 72ch; color: var(--peach); }

/* Care */
.care { padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.care__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-top: 2.5rem; }
.care__col { border-top: 3px solid var(--plum); padding-top: 1.2rem; }
.care__stage { font: italic 400 1.4rem/1 var(--serif); color: var(--apricot); }
.care__col h3 { margin-top: .5rem; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.care__col > p:not(.care__stage) { margin-top: .9rem; color: var(--mauve); }
.care__col ul { list-style: none; padding: 0; margin-top: 1.2rem; display: grid; gap: .5rem; }
.care__col li { padding-left: 1.4rem; position: relative; }
.care__col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--apricot); }

/* Fees */
.fees { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1rem clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 7vw, 6rem) var(--pad); background: var(--sand); align-items: start; }
.fees__intro p { margin-top: 1rem; color: var(--mauve); max-width: 40ch; }
.feelist { display: grid; }
.feelist div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.feelist dt { font-family: var(--serif); font-size: 1.35rem; }
.feelist dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feelist__all { border-bottom: 0 !important; margin-top: .6rem; padding: 1.2rem 1.2rem !important; background: var(--plum); color: var(--paper); }
.feelist__all dd { color: var(--apricot); font-size: 1.4rem; }
.fees__pay { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding: 1.2rem 0 0; border-top: 1px solid var(--line); }
.fees__pay p { color: var(--mauve); max-width: 40ch; }

/* Meet */
.meet { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 6rem); padding: clamp(3rem, 7vw, 6rem) var(--pad); align-items: center; }
.meet__photo { aspect-ratio: 3 / 4; overflow: hidden; background: var(--sand); }
.meet__photo img { width: 100%; height: 100%; object-fit: cover; }
.meet__lead { margin-top: 1.2rem; font: italic 400 clamp(1.3rem, 2vw, 1.7rem)/1.35 var(--serif); color: var(--plum); max-width: 30ch; }
.meet__copy > p:not(.meet__lead) { margin-top: 1.1rem; max-width: 58ch; color: var(--mauve); }
.quote { margin-top: 2rem; padding: 1.4rem 1.6rem; border-left: 4px solid var(--apricot); background: var(--sand); max-width: 58ch; }
.quote p { font: italic 400 1.3rem/1.4 var(--serif); }
.quote footer { margin-top: .7rem; font-size: .92rem; font-weight: 700; color: var(--mauve); }

/* Ask */
.ask { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 7vw, 6rem) var(--pad); background: var(--peach); }
.ask__intro p { margin-top: 1rem; color: var(--ink); max-width: 40ch; }
.ask__photo { margin-top: 2rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.ask__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.form { display: grid; gap: 1.1rem; background: var(--paper); padding: clamp(1.4rem, 3vw, 2.4rem); }
.form__row { display: grid; gap: .4rem; }
.form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form__row--2 > div { display: grid; gap: .4rem; }
label { font-weight: 700; font-size: .92rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 4px; padding: .75rem .9rem; min-height: 48px; }
input::placeholder, textarea::placeholder { color: #8A7A94; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--peach); outline-offset: 0; border-color: var(--plum); }
textarea { resize: vertical; }
.form__privacy { font-size: .9rem; color: var(--mauve); }
.form__done { background: var(--paper); padding: 1.6rem; }
.form__done p { margin-top: .6rem; }

.foot { padding: 2.5rem var(--pad) 3rem; display: grid; gap: .4rem; font-size: .9rem; color: var(--mauve); border-top: 1px solid var(--line); }

@media (max-width: 1024px) {
  .weeks__grid { grid-template-columns: 1fr; gap: 0; }
  .weeks__panel { border-bottom: 1px solid rgba(251, 246, 241, .2); padding-bottom: 1.4rem; }
  .care__cols { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu { position: fixed; inset: 68px 0 auto 0; display: grid; padding: .6rem var(--pad) 1.2rem; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s var(--ease); }
  .menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .menu a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .menu__cta { margin-top: .6rem; text-align: center; border-bottom: 2px solid var(--plum) !important; }
  .burger { display: inline-block; }
  .hero { grid-template-columns: 1fr; }
  .hero__photos { order: -1; padding-left: 0; padding-bottom: 0; }
  .hero__main { aspect-ratio: 4 / 3; }
  .hero__main img { object-position: 50% 25%; }
  .hero__small { display: none; }
  .hero h1 { max-width: none; }
  .fees, .meet, .ask { grid-template-columns: 1fr; }
  .fees__pay { grid-column: auto; }
  .meet__photo { aspect-ratio: 4 / 3; }
  .ask__photo { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .form__row--2 { grid-template-columns: 1fr; }
  .feelist div { flex-direction: column; gap: .2rem; }
  .feelist dt { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
