/* ==========================================================================
   Doula Billing — doulacollaborative.com
   Sibling of physicaltherapyrcm.com and therapybillinggroup.com: same structure
   (1200px container, Montserrat headings, Lexend Deca sub-headings, DM Sans body),
   re-skinned in the Doula Billing logo colors: navy, pink and taupe.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy:         #061C2B;   /* logo navy */
  --navy-soft:    #163247;

  /* The logo pink (#FBA0BB) is too light to carry white text or sit as text on
     white, so it plays the "bright" role (legible on navy, used for fills), and
     --rose is a deeper pink from the same hue for buttons, links and eyebrows.
     --rose-dark deepens it for button hovers, --rose-lift lightens it for link
     hovers. */
  --rose:         #B83E68;
  --rose-dark:    #962C52;
  --rose-lift:    #D0567F;
  --rose-bright:  #FBA0BB;

  /* Tints of the logo taupe (#AD9A8E) — the light fills the blue played on
     Therapy Billing Group. */
  --taupe:        #AD9A8E;
  --blush:        #E9E1DB;
  --blush-soft:   #F7F3F0;

  --text:         #2B3440;
  --text-muted:   #56636F;
  --line:         #E6E1DD;
  --white:        #FFFFFF;
  --off-white:    #F9F7F6;

  --container:   1200px;
  --narrow:      780px;

  --font-head:  'Montserrat', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-sub:   'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-body:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm: 0 2px 10px rgba(6, 28, 43, .06);
  --shadow-md: 0 10px 30px rgba(6, 28, 43, .10);
  --shadow-lg: 0 24px 60px rgba(6, 28, 43, .16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-lift); }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; color: var(--navy); }
h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(40px, 6.2vw, 82px); line-height: 1.08; letter-spacing: -1px; }
h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; letter-spacing: -.4px; }
h3 { font-family: var(--font-sub);  font-weight: 700; font-size: 24px; line-height: 1.3; }
h4 { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.25; }
h5 { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.2; }
h6 { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.25; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--rose); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.section   { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--cream { background: var(--blush-soft); }
.section--navy  { background: var(--navy); color: rgba(255,255,255,.82); }
.section--navy h1, .section--navy h2, .section--navy h3,
.section--navy h4, .section--navy h5 { color: #fff; }
.section--offwhite { background: var(--off-white); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 14px;
}
.section--navy .eyebrow { color: var(--rose-bright); }
.lead { font-size: 18px; color: var(--text-muted); }
.section--navy .lead { color: rgba(255,255,255,.8); }
.center { text-align: center; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 17px 34px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--rose); color: #fff; border-color: var(--rose); }
.btn--primary:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--blush); border-color: var(--blush); color: var(--navy); }

.textlink {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .4px;
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.textlink:hover { color: var(--rose-lift); gap: 12px; }
.textlink { transition: gap .2s ease, color .2s ease; }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 24px; max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 62px; flex: none; }
.brand__name {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(19px, 2.5vw, 29px); line-height: 1.1; color: var(--navy);
  margin: 0; letter-spacing: -.5px;
}
.brand__name .accent { color: var(--rose); }
.topbar__contact { font-size: 15px; color: var(--navy); white-space: nowrap; }
.topbar__contact a { color: var(--navy); font-weight: 500; }
.topbar__contact a:hover { color: var(--rose); }

/* Nav — sits over the hero on the home page, solid navy elsewhere */
.nav { background: var(--navy); position: relative; z-index: 40; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 0 24px; max-width: var(--container); margin: 0 auto;
}
.nav__list { list-style: none; display: flex; align-items: center; gap: 38px; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list a {
  display: block; padding: 22px 0;
  font-family: var(--font-sub); font-weight: 400; font-size: 17px;
  color: #fff;
}
.nav__list a:hover, .nav__list .is-active > a { color: var(--rose-bright); }
.nav__list .has-sub > a::after {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 9px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav__sub {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: -18px; min-width: 190px;
  background: #fff; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__list .has-sub:hover > .nav__sub,
.nav__list .has-sub:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a { padding: 10px 22px; color: var(--navy); font-size: 16px; }
.nav__sub a:hover { color: var(--rose); background: var(--blush-soft); }
.nav__cta { flex: none; }
.nav__cta .btn { padding: 14px 26px; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 18px 0; color: #fff;
}
.nav__toggle span {
  display: block; width: 26px; height: 2px; background: currentColor; margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Home page: nav overlays the hero image */
.nav--overlay { background: transparent; margin-bottom: -68px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; display: flex; align-items: center; min-height: 88vh; padding: 150px 0 90px; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,28,43,.93) 0%, rgba(6,28,43,.80) 38%, rgba(6,28,43,.30) 68%, rgba(6,28,43,.12) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__copy { max-width: 620px; }
.hero__eyebrow {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.2;
  color: var(--rose-bright); margin: 0 0 6px;
}
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero__text { color: rgba(255,255,255,.9); font-size: 18px; max-width: 500px; margin-bottom: 34px; }

/* Inner page banner */
.page-hero { position: relative; padding: 118px 0 96px; display: flex; align-items: center; }
.page-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ''; position: absolute; inset: 0; background: rgba(6,28,43,.74); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 640px; margin: 0; }

/* ==========================================================================
   Get Started band
   ========================================================================== */
.getstarted { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.getstarted__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; }
.getstarted__copy { padding: 84px 60px 84px 0; }
.getstarted__copy h2 { color: #fff; }
.getstarted__copy p { color: rgba(255,255,255,.8); font-size: 17px; max-width: 460px; }
.getstarted__card {
  background: var(--blush); color: var(--navy);
  padding: 54px 46px; align-self: center; box-shadow: var(--shadow-lg);
}
.getstarted__card h3 { margin-bottom: 14px; }
.getstarted__card p { color: #4A4540; margin-bottom: 26px; }
.getstarted__media { position: relative; }
.getstarted__media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; padding: 38px 34px;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card p { color: var(--text-muted); }
.card__num {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: 2px; color: var(--rose); margin-bottom: 16px;
}
.card__icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  background: var(--blush); color: var(--navy); margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card > .textlink { margin-top: 20px; }

/* Staff */
.staff { text-align: left; }
.staff__photo {
  aspect-ratio: 1 / 1; background: var(--blush) url("../img/logo-mark.svg") center/58% no-repeat;
  margin-bottom: 22px; overflow: hidden;
}
.staff__photo img { width: 100%; height: 100%; object-fit: cover; }
.staff h3 { margin-bottom: 2px; }
.staff__role {
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--rose); margin-bottom: 14px;
}
.staff p { color: var(--text-muted); font-size: 15px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat__value {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(38px, 5vw, 60px);
  line-height: 1; color: var(--rose-bright); margin: 0 0 8px;
}
.stat__label {
  font-family: var(--font-sub); font-size: 15px; color: var(--text-muted);
}
.section--navy .stat__label { color: rgba(255,255,255,.75); }

/* ==========================================================================
   Everything Included (RCM services)
   ========================================================================== */
.included__group {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--rose);
  padding: 36px 32px 34px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.included__group:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.included__group h3 { font-size: 21px; margin-bottom: 20px; }
.included__list { list-style: none; margin: 0; padding: 0; }
.included__list li {
  position: relative; padding: 0 0 0 30px; margin-bottom: 13px;
  font-size: 15.5px; color: var(--text-muted); line-height: 1.5;
}
.included__list li:last-child { margin-bottom: 0; }
.included__list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 16px; height: 9px; border-left: 2.5px solid var(--rose); border-bottom: 2.5px solid var(--rose);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Split content (image + text)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split--reverse .split__media { order: 2; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--navy);
}
.field .req { color: var(--rose); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 16px; color: var(--text);
  padding: 14px 16px; border: 1px solid var(--line); background: #fff; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(184,62,104,.16);
}
.field textarea { min-height: 150px; resize: vertical; }
.form__note { font-size: 13px; color: var(--text-muted); }

/* Honeypot — moved off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-status {
  margin: 0; padding: 14px 16px; font-size: 15px; border-left: 4px solid transparent;
}
.form-status.is-ok    { background: #E8F6EE; color: #1B6E3D; border-left-color: #1E7E45; }
.form-status.is-error { background: #FDECEA; color: #A6301F; border-left-color: #C0392B; }
.form button[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

.contact-card { background: var(--blush-soft); padding: 44px 40px; }
.contact-card h3 { margin-bottom: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid rgba(6,28,43,.09); font-size: 16px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 11px;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font-family: var(--font-sub); font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--navy);
}
.faq__q:hover { color: var(--rose); }
.faq__icon { flex: none; position: relative; width: 18px; height: 18px; margin-top: 5px; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; background: var(--rose); transition: transform .25s ease;
}
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 2.5px; }
.faq__icon::after  { left: 8px; top: 0; width: 2.5px; height: 18px; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__a { display: none; padding: 0 56px 28px 0; color: var(--text-muted); }
.faq__item.is-open .faq__a { display: block; }

/* ==========================================================================
   Pricing tables
   ========================================================================== */
.price-block { margin-bottom: 54px; }
.price-block h3 {
  background: var(--navy); color: #fff; margin: 0;
  padding: 18px 26px; font-size: 20px;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-top: 0; }
table.price { width: 100%; border-collapse: collapse; min-width: 640px; }
table.price th, table.price td { text-align: left; padding: 16px 26px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.price thead th {
  font-family: var(--font-head); font-weight: 700; font-size: 11.5px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-muted);
  background: var(--off-white);
}
table.price tbody tr:last-child td { border-bottom: 0; }
table.price tbody tr:hover { background: var(--blush-soft); }
table.price .item { font-weight: 500; color: var(--navy); width: 34%; }
table.price .amount { font-family: var(--font-head); font-weight: 700; color: var(--rose); white-space: nowrap; width: 16%; }
table.price .freq { color: var(--text-muted); font-size: 15px; }

/* ==========================================================================
   Volume-tiered rate cards
   ========================================================================== */
/* One connected band rather than five loose cards — the point is that these are
   steps on a single scale, not five separate offers. */
.tiers-panel {
  background: #fff; border: 1px solid var(--line); border-top: 0;
  padding: 30px 30px 34px;
}
.tiers-caption {
  font-size: 15px; color: var(--text-muted); margin: 0 0 26px; max-width: 640px;
}
.tiers-caption strong { color: var(--navy); font-weight: 500; }

/* The 1px gap over a line-coloured background draws the dividers, so they stay
   correct however many columns the grid wraps to. */
.tiers {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0;
}
.tier {
  background: #fff;
  padding: 22px 16px 24px; text-align: center;
  transition: background-color .25s ease;
}
.tier:hover { background: var(--blush-soft); }

.tier__tag {
  font-family: var(--font-head); font-weight: 700; font-size: 10px;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--rose); margin: 0 0 12px; min-height: 14px;
}
.tier__rate {
  font-family: var(--font-head); font-weight: 700; font-size: 46px; line-height: 1;
  color: var(--navy); margin: 0 0 12px; letter-spacing: -1px;
}
.tier__rate span { font-size: 24px; color: var(--rose); margin-left: 1px; }
.tier__vol { font-size: 14px; color: var(--navy); margin: 0; line-height: 1.35; font-weight: 500; }
.tier__per { font-size: 13px; color: var(--text-muted); margin: 2px 0 0; }

/* The volume tier is the one worth steering people toward. */
.tier--best { background: var(--blush); }
.tier--best:hover { background: var(--blush); }
.tier--best .tier__tag { color: var(--navy); }

.rate-note {
  background: var(--blush-soft); border-left: 4px solid var(--rose);
  padding: 22px 26px; margin-bottom: 54px;
}
.rate-note ul { margin: 0; padding-left: 20px; }
.rate-note li { font-size: 15px; color: var(--text-muted); margin-bottom: 9px; line-height: 1.55; }
.rate-note li:last-child { margin-bottom: 0; }

.fees-intro {
  font-size: 16px; color: var(--text-muted); max-width: 780px; margin: 0 0 36px;
  padding-left: 18px; border-left: 3px solid var(--line);
}

.terms-note {
  border-top: 1px solid var(--line); margin-top: 12px; padding-top: 26px;
  font-size: 14px; color: var(--text-muted);
}

/* Five tiers never divide evenly into three or two columns, which would leave a
   hole in the last row. Letting the best rate span the remainder fills it and
   gives the tier we want people to notice a wider footprint. */
@media (max-width: 1024px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .tier--best { grid-column: span 2; }
  .tier__rate { font-size: 40px; }
}
@media (max-width: 640px) {
  .tiers-panel { padding: 22px 16px 24px; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tier { padding: 16px 10px 18px; }
  .tier__rate { font-size: 34px; margin-bottom: 8px; }
  .tier__rate span { font-size: 19px; }
  .tier__vol { font-size: 13px; }
  .tier__per { font-size: 12px; }
  /* Reserving a blank label row only makes sense when tiers sit in one line.
     Stacked, it just leaves holes — so unlabelled tiers drop the row entirely. */
  .tier__tag { min-height: 0; margin-bottom: 8px; }
  .tier__tag:empty { display: none; }
}
@media (max-width: 330px) {
  .tiers { grid-template-columns: 1fr; }
  .tier--best { grid-column: span 1; }
}

/* ==========================================================================
   Steps
   ========================================================================== */
.steps { counter-reset: step; display: grid; gap: 26px; }
.step { display: grid; grid-template-columns: 62px 1fr; gap: 24px; align-items: start; }
.step__num {
  counter-increment: step;
  width: 62px; height: 62px; display: grid; place-items: center;
  background: var(--blush); color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
}
.step__num::before { content: counter(step); }
.step h4 { margin-bottom: 6px; }
.step p { color: var(--text-muted); margin: 0; }

/* ==========================================================================
   Appointment scheduler embed
   ========================================================================== */
.scheduler {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
/* Google's embed defaults to 600px, which leaves the date grid scrolling inside
   the frame. A little extra height shows the whole picker without an inner
   scrollbar — more so on narrow screens, where the widget stacks vertically. */
.scheduler iframe { display: block; width: 100%; min-height: 660px; border: 0; }
.scheduler__fallback { margin-top: 22px; font-size: 15px; color: var(--text-muted); }

/* Anchor targets sit under no fixed header, but a little breathing room above
   the scheduler makes the jump land more naturally. */
#schedule { scroll-margin-top: 24px; }

@media (max-width: 860px) {
  .scheduler iframe { min-height: 820px; }
}

/* ==========================================================================
   CTA strip
   ========================================================================== */
.cta-strip { background: var(--rose); color: #fff; padding: 68px 0; }
.cta-strip h2 { color: #fff; margin-bottom: 10px; }
.cta-strip p { color: rgba(255,255,255,.92); font-size: 17px; margin-bottom: 0; }
.cta-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 72px 0 0; }
.footer h5 { color: #fff; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 56px; }
.footer__brand .brand__name { color: #fff; font-size: 24px; }
/* The base rose is too dark against navy, so the footer wordmark takes the
   lighter tint instead. */
.footer__brand .brand__name .accent { color: var(--rose-bright); }
.footer__brand p { margin-top: 18px; font-size: 15px; max-width: 320px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 11px; font-size: 15px; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: var(--rose-bright); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 24px 0 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 14px;
}
.footer__bottom ul { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__bottom li { margin: 0; }

/* ==========================================================================
   Doula Community (community.html + assets/js/community.js)
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.field__hint { font-size: 13px; color: var(--text-muted); }

/* Home page promo band */
.community-promo .split__media img { aspect-ratio: 5 / 4; }
.community-promo__list { list-style: none; margin: 4px 0 32px; padding: 0; }
.community-promo__list li {
  position: relative; padding-left: 30px; margin-bottom: 12px; color: rgba(255,255,255,.85);
}
.community-promo__list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 15px; height: 8px; border-left: 2.5px solid var(--rose-bright); border-bottom: 2.5px solid var(--rose-bright);
  transform: rotate(-45deg);
}

/* Which block shows is driven by data-state on the section; the JS just flips it. */
.community [data-show] { display: none; }
.community[data-state="loading"] [data-show="loading"],
.community[data-state="guest"]   [data-show="guest"],
.community[data-state="pending"] [data-show="pending"],
.community[data-state="blocked"] [data-show="blocked"] { display: block; }
.community[data-state="guest"]   .cm-guest { display: grid; }
.community[data-state="app"]     [data-show="app"] { display: grid; }
/* Everything inside the community honours [hidden], even elements whose class
   sets a display value (e.g. .form is a grid). */
.community [hidden] { display: none !important; }
.cm-loading, .cm-note { text-align: center; color: var(--text-muted); padding: 60px 0; }

/* ---------- Logged out ---------- */
.cm-guest { align-items: start; }
.cm-subhead { font-size: 18px; margin: 34px 0 14px; }
.cm-channel-preview { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cm-channel-preview li {
  font-family: var(--font-sub); font-size: 14px; color: var(--navy);
  background: var(--blush-soft); border: 1px solid var(--line); padding: 6px 12px;
}
.cm-channel-preview span { color: var(--rose); margin-right: 2px; }
.cm-guidelines {
  margin-top: 34px; padding: 24px 26px; border-left: 4px solid var(--rose); background: var(--blush-soft);
}
.cm-guidelines h3 { font-size: 18px; margin-bottom: 12px; }
.cm-guidelines ol { margin: 0; padding-left: 20px; }
.cm-guidelines li { font-size: 15px; color: var(--text-muted); margin-bottom: 9px; }
.cm-guidelines li:last-child { margin-bottom: 0; }
.cm-guidelines strong { color: var(--navy); font-weight: 500; }
#guidelines { scroll-margin-top: 24px; }

.cm-auth { padding-top: 0; }
.cm-tabs { display: flex; margin: 0 -40px 28px; border-bottom: 1px solid rgba(6,28,43,.1); }
.cm-tab {
  flex: 1; background: none; border: 0; cursor: pointer; padding: 20px 10px 17px;
  font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--text-muted); border-bottom: 3px solid transparent;
}
.cm-tab:hover { color: var(--navy); }
.cm-tab.is-active { color: var(--navy); border-bottom-color: var(--rose); }
.cm-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.cm-check input { margin-top: 4px; accent-color: var(--rose); width: 16px; height: 16px; flex: none; }
.cm-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cm-linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; color: var(--rose); text-decoration: underline;
  text-underline-offset: 3px;
}
.cm-linkbtn:hover { color: var(--rose-lift); }

.cm-panel { max-width: 640px; margin: 0 auto; text-align: center; padding: 20px 0 30px; }

/* ---------- The room ---------- */
.cm-app {
  grid-template-columns: 270px 1fr;
  height: min(78vh, 820px); min-height: 520px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); background: #fff;
}
.cm-side { background: var(--navy); color: rgba(255,255,255,.8); display: flex; flex-direction: column; min-height: 0; }
.cm-side__toggle { display: none; }
.cm-side__body { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; padding: 22px 0 0; }
.cm-side__label {
  font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: 1.8px;
  text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 22px 8px;
  display: flex; align-items: center; gap: 8px;
}
.cm-count { background: rgba(255,255,255,.12); color: #fff; font-size: 11px; padding: 0 7px; border-radius: 9px; letter-spacing: 0; }
.cm-channels, .cm-online { list-style: none; margin: 0 0 26px; padding: 0; }
.cm-channels button {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
  background: none; border: 0; cursor: pointer; padding: 8px 22px;
  font-family: var(--font-sub); font-size: 15px; color: rgba(255,255,255,.78);
  border-left: 3px solid transparent;
}
.cm-channels button:hover { background: rgba(255,255,255,.06); color: #fff; }
.cm-channels button.is-active { background: rgba(251,160,187,.12); color: #fff; border-left-color: var(--rose-bright); }
.cm-channels .hash { color: var(--rose-bright); }
.cm-channels .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-channels button.has-unread .name { color: #fff; font-weight: 700; }
.cm-channels .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose-bright); display: none; }
.cm-channels button.has-unread .dot { display: block; }
.cm-online li { display: flex; align-items: center; gap: 10px; padding: 5px 22px; font-size: 14px; }
.cm-online li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #5FD39A; flex: none; }
.cm-online .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-online .where { color: rgba(255,255,255,.45); font-size: 12px; }
.cm-online .empty { color: rgba(255,255,255,.45); font-style: italic; }
.cm-online .empty::before { display: none; }
.cm-me {
  margin-top: auto; padding: 16px 22px 18px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 14px; background: rgba(0,0,0,.14);
}
.cm-me strong { display: block; color: #fff; font-weight: 500; }
.cm-me [data-me="detail"] { color: rgba(255,255,255,.5); font-size: 13px; }
.cm-me__actions { display: flex; gap: 16px; margin-top: 8px; }
.cm-me .cm-linkbtn { color: var(--rose-bright); font-size: 13px; }

.cm-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 26px; border-bottom: 1px solid var(--line);
}
.cm-head__title { font-size: 20px; margin: 0; letter-spacing: 0; }
.cm-head__desc { margin: 2px 0 0; font-size: 14px; color: var(--text-muted); }
.cm-head__members { margin: 0; font-size: 13px; color: var(--text-muted); white-space: nowrap; }

.cm-privacy {
  display: flex; align-items: flex-start; gap: 16px;
  margin: 0; padding: 10px 26px; background: var(--blush-soft); border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--text-muted);
}
.cm-privacy p { margin: 0; flex: 1; }
.cm-privacy strong { color: var(--navy); font-weight: 500; }
.cm-privacy__close { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-muted); padding: 0 2px; }

.cm-stream { flex: 1; overflow-y: auto; padding: 14px 0 10px; min-height: 0; overscroll-behavior: contain; }
.cm-stream:focus { outline: 0; }
.cm-older { text-align: center; padding: 6px 0 14px; }
.cm-empty { text-align: center; color: var(--text-muted); padding: 60px 20px; }
.cm-messages { list-style: none; margin: 0; padding: 0; }

.cm-day {
  display: flex; align-items: center; gap: 14px; margin: 16px 26px 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--text-muted);
}
.cm-day::before, .cm-day::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.cm-msg {
  position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px;
  padding: 8px 26px 4px;
}
.cm-msg:hover { background: #FBF9F8; }
.cm-msg.is-cont { padding-top: 1px; }
.cm-msg.is-cont .cm-avatar, .cm-msg.is-cont .cm-msg__head { display: none; }
.cm-msg.is-cont .cm-msg__body { grid-column: 2; }
.cm-avatar {
  grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--navy);
  background: var(--blush); border-radius: 50%;
}
.cm-avatar.is-staff { background: var(--navy); color: var(--rose-bright); }
.cm-msg__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; line-height: 1.3; }
.cm-msg__name { font-weight: 500; color: var(--navy); }
.cm-msg__meta { font-size: 12.5px; color: var(--text-muted); }
.cm-badge {
  font-family: var(--font-head); font-weight: 700; font-size: 9.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: #fff; background: var(--rose); padding: 2px 7px;
}
.cm-msg__body { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.55; }
.cm-msg__body a { text-decoration: underline; text-underline-offset: 2px; }
.cm-msg.is-pending .cm-msg__body { opacity: .55; }
.cm-msg.is-failed .cm-msg__body { color: #A6301F; }

.cm-msg__tools {
  position: absolute; top: -12px; right: 22px; display: none; gap: 2px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 2px;
}
.cm-msg:hover .cm-msg__tools, .cm-msg:focus-within .cm-msg__tools { display: flex; }
.cm-msg__tools button {
  background: none; border: 0; cursor: pointer; padding: 4px 9px;
  font-size: 12.5px; color: var(--text-muted); font-family: var(--font-body);
}
.cm-msg__tools button:hover { color: var(--rose); background: var(--blush-soft); }

.cm-jump {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 3;
  background: var(--navy); color: #fff; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; letter-spacing: .6px; padding: 8px 16px;
  box-shadow: var(--shadow-md);
}

.cm-composer {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: end;
  padding: 12px 22px 12px; border-top: 1px solid var(--line); background: #fff;
}
.cm-composer textarea {
  font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--text);
  resize: none; max-height: 180px; padding: 11px 14px; border: 1px solid var(--line); width: 100%;
}
.cm-composer textarea:focus { outline: 0; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(184,62,104,.16); }
.cm-send { padding: 13px 22px; }
.cm-send:hover { transform: none; }
.cm-composer__hint {
  grid-column: 1 / -1; margin: 0; display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--text-muted);
}
.cm-composer__error { color: #A6301F; }

.cm-dialog {
  border: 0; padding: 34px 32px; width: min(460px, calc(100vw - 32px));
  box-shadow: var(--shadow-lg);
}
.cm-dialog::backdrop { background: rgba(6,28,43,.55); }

@media (max-width: 860px) {
  .cm-tabs { margin: 0 -24px 24px; }
  .cm-app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 82vh; min-height: 480px; }
  .cm-side__toggle {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
    background: none; border: 0; cursor: pointer; padding: 14px 18px; color: #fff;
    font-family: var(--font-sub); font-size: 16px; text-align: left;
  }
  .cm-side__caret {
    width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .2s ease;
  }
  .cm-side.is-open .cm-side__caret { transform: rotate(-135deg); }
  .cm-side__body { display: none; padding-top: 6px; max-height: 60vh; }
  .cm-side.is-open .cm-side__body { display: flex; }
  .cm-side { position: relative; z-index: 4; }
  .cm-side.is-open { box-shadow: var(--shadow-lg); }
  .cm-head { display: none; }
  .cm-privacy { padding: 10px 18px; }
  .cm-msg { padding-left: 18px; padding-right: 18px; grid-template-columns: 34px 1fr; column-gap: 12px; }
  .cm-avatar { width: 34px; height: 34px; font-size: 13px; }
  .cm-day { margin-left: 18px; margin-right: 18px; }
  .cm-composer { padding: 10px 14px; }
  .cm-composer__hint span:first-child { display: none; }
  /* Touch devices have no hover, so show the message tools on tap (focus). */
  .cm-msg__tools { right: 14px; }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .included__group:hover { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .getstarted__grid { grid-template-columns: 1fr; }
  .getstarted__copy { padding: 72px 0 40px; }
  .getstarted__card { margin-bottom: 72px; }
  .getstarted__media { display: none; }
  .split { gap: 42px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .section { padding: 68px 0; }
  .nav { background: var(--navy); }
  .nav--overlay { background: var(--navy); margin-bottom: 0; }
  .nav__toggle { display: block; }
  .nav__inner { flex-wrap: wrap; }
  .nav__menu {
    order: 3; width: 100%; display: none;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .nav.is-open .nav__menu { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { padding: 15px 0; }
  .nav__list .has-sub > a::after { float: right; margin-top: 8px; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none; padding: 0 0 8px 18px;
  }
  .nav__sub a { color: rgba(255,255,255,.75); padding: 9px 0; }
  .nav__sub a:hover { background: transparent; color: var(--rose-bright); }
  .nav__cta { display: none; }
  .hero { min-height: 0; padding: 84px 0 74px; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(6,28,43,.88) 0%, rgba(6,28,43,.80) 60%, rgba(6,28,43,.86) 100%); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .topbar__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .form__row { grid-template-columns: 1fr; }
  .page-hero { padding: 84px 0 72px; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .getstarted__card { padding: 38px 26px; }
  .contact-card { padding: 34px 24px; }
  .card { padding: 30px 24px; }
  .faq__a { padding-right: 0; }
}
