/* ============================================
   Roost Perinatal — Shared Stylesheet
   ============================================ */

:root {
  --navy: #1F3A5F;
  --navy-deep: #14283F;
  --gold: #B08D57;
  --gold-light: #D4B98C;
  --cream: #EFEDE7;
  --cream-warm: #F7F5F0;
  --ink: #22303F;
  --ink-soft: #5B6B7A;
  --white: #FFFFFF;
  --line: rgba(31, 58, 95, 0.12);
  --shadow: 0 20px 60px -20px rgba(20, 40, 63, 0.25);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 480; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(31, 58, 95, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(31, 58, 95, 0.55); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(176, 141, 87, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light:hover { border-color: var(--white); }
.btn-nav { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  color: var(--white);
  font-weight: 600;
}
.nav .brand img { transform: translateY(-3px); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
}
.nav-links a { opacity: 0.75; transition: opacity 0.15s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--white) 100%);
  padding: 72px 0 44px;
  overflow: hidden;
  position: relative;
}
header.hero + section {
  padding-top: 40px;
}
.hero .container { display: block; }
.hero h1 { margin-bottom: 22px; }
.hero-lead { font-size: 1.2rem; max-width: 46ch; margin-left: auto; margin-right: auto; }
.hero .section-head { margin-bottom: 24px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-top: 64px; flex-wrap: wrap; }
/* ---------- Hero stat circles ---------- */
.hero-stats {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 240px;
}
.stat-circle {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
}
.stat p {
  margin: 0;
  max-width: 160px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.stat-connector {
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}
@media (max-width: 500px) {
  .stat-connector { display: none; }
}

.hero-art {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(212,185,140,0.35), transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(212,185,140,0.2), transparent 50%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; margin: 0 auto; }
}

/* ---------- Horizontal animated timeline (inside Program section) ---------- */
.rt-panel {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 24px;
  padding: 40px 40px 30px;
  margin: 4px 0 44px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rt-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 15%, rgba(212,185,140,0.25), transparent 45%);
  pointer-events: none;
}
.rt-sessions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 34px auto 0;
}
.rt-session {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.rt-session .num-inline {
  background: rgba(255,255,255,0.12);
  color: var(--gold-light);
}
.rt-session h3 { color: var(--white); margin: 0 0 6px; font-size: 1.05rem; }
.rt-session p { color: rgba(255,255,255,0.72); font-size: 0.92rem; margin: 0; }
@media (max-width: 700px) {
  .rt-sessions { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
}

.rt-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}
.rt-edge {
  flex-shrink: 0;
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  max-width: 90px;
}
.rt-start { text-align: right; }
.rt-end { text-align: left; }

.rt-track {
  position: relative;
  flex: 1;
  height: 78px;
}
.rt-line {
  position: absolute;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.22);
}
.rt-line-left { left: 0; width: calc(40% - 30px); }
.rt-line-right { left: calc(40% + 30px); right: 0; }
.rt-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-light);
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.rt-dot.revealed { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rt-dot[data-pos="50"], .rt-dot[data-pos="58"], .rt-dot[data-pos="66"],
.rt-dot[data-pos="74"], .rt-dot[data-pos="82"], .rt-dot[data-pos="90"] {
  background: rgba(255,255,255,0.9);
}
.rt-dot[data-pos="8"]  { left: 8%; }
.rt-dot[data-pos="16"] { left: 16%; }
.rt-dot[data-pos="24"] { left: 24%; }
.rt-dot[data-pos="32"] { left: 32%; }
.rt-dot[data-pos="50"] { left: 50%; }
.rt-dot[data-pos="58"] { left: 58%; }
.rt-dot[data-pos="66"] { left: 66%; }
.rt-dot[data-pos="74"] { left: 74%; }
.rt-dot[data-pos="82"] { left: 82%; }
.rt-dot[data-pos="90"] { left: 90%; }

.rt-birth {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  white-space: nowrap;
}
.rt-birth .rt-edge { max-width: none; }
.rt-icon {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  z-index: 3;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
  transition: opacity 0.25s ease;
}
.rt-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.25s linear;
}
@media (max-width: 700px) {
  .rt-panel { padding: 40px 20px 28px; }
  .rt-wrap { gap: 10px; }
  .rt-edge { font-size: 0.62rem; max-width: 52px; }
  .rt-birth .rt-edge { font-size: 0.62rem; }
  .rt-icon { width: 26px; height: 26px; }
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-cream { background: var(--cream-warm); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.75); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.cite {
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.8;
  margin-top: 14px;
}
.cite a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

sup a { color: var(--gold); font-weight: 600; text-decoration: none; }
sup a:hover { text-decoration: underline; }

/* ---------- Footnotes (bottom of page) ---------- */
.footnotes {
  background: var(--navy-deep);
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footnotes p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin: 0 0 8px;
  line-height: 1.6;
}
.footnotes p:last-child { margin-bottom: 0; }
.footnotes sup { color: rgba(255,255,255,0.7); margin-right: 4px; }
.footnotes a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.card-head h3 { margin: 0; }
.num-inline {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
}
.card .num {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  margin-bottom: 18px;
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Timeline (program page) ---------- */
.timeline { position: relative; padding-left: 32px; border-left: 2px solid var(--line); }
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -39px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.tl-item .phase { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; }

/* ---------- Quote ---------- */
.quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--navy);
  font-style: italic;
  line-height: 1.4;
  max-width: 760px;
}
.quote-attr { font-family: 'Inter', sans-serif; font-style: normal; font-size: 0.9rem; color: var(--ink-soft); margin-top: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 28px;
  padding: 64px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212,185,140,0.25), transparent 50%);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .btn-group { position: relative; display: flex; gap: 16px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
  font-size: 0.9rem;
}
footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; align-items: center; }
.footer-brand { display: flex; justify-content: center; }
footer h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
footer a { display: block; margin-bottom: 10px; color: rgba(255,255,255,0.65); }
footer a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
@media (max-width: 700px) {
  footer .container { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  background: var(--cream-warm);
  padding: 64px 0 32px;
  text-align: center;
}
.page-header .eyebrow { display: block; }
.page-header h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.page-header p { max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

.founder-section { padding-top: 24px; }

/* ---------- Program / curriculum ---------- */
.phase-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 32px; }
.phase-head h2 { margin: 0; }
.phase-count { color: var(--gold); font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600; }
.session-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 72px; }
.session-list:last-of-type { margin-bottom: 0; }
.session-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.session-row .num-inline { margin-top: 2px; }
.session-row h3 { margin-bottom: 6px; }
.session-timing { display: block; color: var(--gold); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.session-row p { margin-bottom: 0; }
@media (max-width: 600px) {
  .session-row { flex-direction: column; gap: 12px; }
}

/* ---------- Pricing ---------- */
.pricing-section { padding-top: 24px; }
.pricing-card {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}
.pricing-amount { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 28px; }
.pricing-number { font-family: 'Fraunces', serif; font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 600; color: var(--navy); }
.pricing-unit { color: var(--ink-soft); font-size: 1rem; }
.pricing-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
  display: inline-block;
}
.pricing-includes li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink);
}
.pricing-includes li:last-child { margin-bottom: 0; }
.pricing-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.insurance-note {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--cream-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
}
.insurance-note p:last-child { margin-bottom: 0; }

.handout-note {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
}
.handout-note p { margin-bottom: 0; }

/* ---------- Founder's note ---------- */
.founder-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  max-width: 780px;
  margin: 0 auto;
}
.founder-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.founder-byline img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.founder-byline .eyebrow { margin: 0; }
.founder-note p { color: var(--ink); font-size: 1.05rem; line-height: 1.75; }
.founder-note p:last-child { margin-bottom: 0; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) {
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
.team-card { text-align: center; }
.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--cream);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card h3 { margin-bottom: 2px; }
.team-role { color: var(--gold); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 12px; display: block; }
.team-card p { font-size: 0.95rem; text-align: left; }

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
.field-hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: -12px; margin-bottom: 20px; }
.signup-wrap { max-width: 560px; margin: 0 auto; }
.checkbox-group { display: flex; gap: 20px; flex-wrap: wrap; }
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}
