/* =========================================================
   @font-face — Fraunces & Karla (local, no CDN)
   ========================================================= */

/* Fraunces 600 */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-600-latin.woff2') format('woff2');
}

/* Fraunces 700 */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/fraunces-700-latin.woff2') format('woff2');
}

/* Karla 400 */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/karla-400-latin.woff2') format('woff2');
}

/* Karla 500 */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/karla-500-latin.woff2') format('woff2');
}

/* Karla 600 */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/karla-600-latin.woff2') format('woff2');
}

:root {
  /* Colors from Planificacion.md */
  --c-purple-deep: #3D2B47;
  --c-purple-brand: #4A2C5A;
  --c-purple-soft: #6B4F7C;
  --c-lavender: #E8DDF0;
  --c-lavender-pale: #F0E6F5;
  --c-peach: #E8B584;
  --c-pink-wash: #F5DCE8;
  --c-pink-soft: #F0CCD9;
  --c-cream: #FAF6F0;
  --c-sand: #FAF0E2;
  --c-sage: #A8B89C;
  --c-text: #3D2B47;
  --c-text-muted: #6B6171;
  --c-border: #EFEAF2;
  --c-bg: #FFFFFF;

  /* Typography */
  --ff: 'Karla', sans-serif;
  
  /* Spacing */
  --s-v: 80px;
}

@media (max-width: 768px) {
  :root { --s-v: 48px; }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--c-purple-deep);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1, h2 {
  font-family: 'Fraunces', serif;
}

h1 { font-size: 56px; font-weight: 700; margin-bottom: 24px; }
h2 { font-size: 36px; font-weight: 700; margin-bottom: 40px; }
h3 { font-size: 18px; font-weight: 500; }

a { color: var(--c-purple-soft); text-decoration: none; transition: 0.2s; }
a:hover { opacity: 0.8; }

p { margin: 0 0 1.5em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 999px;
  font-family: var(--ff);
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  text-align: center;
}

.btn:active { transform: scale(0.98); }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-purple { background: var(--c-purple-brand); color: white; }
.btn-peach { background: var(--c-peach); color: var(--c-purple-deep); }
.btn-outline { border: 1px solid var(--c-purple-brand); color: var(--c-purple-brand); background: transparent; }
.btn-sage { background: var(--c-sage); color: white; }
.btn-block { width: 100%; display: flex; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  padding: 0 48px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
  border-bottom: 1px solid var(--c-border);
}

.logo-block {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: var(--c-purple-deep);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 18px;
  /* Remove any browser-default link chrome */
  border: none;
  outline: none;
  background: transparent;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
/* Show focus outline only for keyboard navigation (accessibility) */
.logo-block:focus-visible {
  outline: 2px solid var(--c-peach);
  outline-offset: 6px;
  border-radius: 6px;
}

.logo-mark { color: var(--c-purple-brand); font-size: 24px; }

.logo-img {
  height: 85px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.primary-nav a {
  color: var(--c-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.primary-nav a:hover { color: var(--c-purple-brand); }

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 24px;
}

.login-link {
  font-size: 14px;
  color: var(--c-text-muted);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-right: 20px;
}
.lang-switcher a {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--c-purple);
}
.lang-switcher .sep {
  color: #DDD;
}

html {
  scroll-behavior: auto;
}

/* Sections */
section {
  padding: var(--s-v) 40px;
  max-width: 1400px;
  margin: 0 auto;
  scroll-margin-top: 100px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
}

@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text h1 { font-size: 32px; margin-bottom: 24px; }
  .hero-text p { margin: 0 auto 32px; }
  .hero-visual { order: -1; }
  .hero-actions { justify-content: center; }
}

.hero-text h1 { 
  font-size: 42px;
  margin-bottom: 32px; 
  line-height: 1.1; 
  letter-spacing: -0.02em; 
  font-weight: 700;
}
.hero-text p { 
  font-size: 19px; 
  line-height: 1.6; 
  color: var(--c-text-muted); 
  margin-bottom: 48px; 
  max-width: 520px; 
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-wash {
  position: absolute;
  width: 120%;
  height: 120%;
  background: var(--c-pink-wash);
  z-index: -1;
  top: -10%;
  left: -10%;
}

.hero-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--c-pink-soft);
  border-radius: 50%;
  top: -40px;
  right: -40px;
  z-index: 0;
}

.hero-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
}

.hero-frame img,
.hero-video {
  width: 100%;
  border-radius: 24px;
  display: block;
  box-shadow: 0 30px 60px rgba(61, 43, 71, 0.15);
  object-fit: cover;
}

/* Programs */
.programs { background: var(--c-lavender-pale); max-width: 100%; }
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(61,43,71,0.08);
  transition: transform 0.3s ease;
}

.program-card:hover { transform: translateY(-8px); }

.program-img {
  height: 200px;
  background-color: var(--c-lavender);
}

.program-img[data-tone="pink"] { background-color: var(--c-pink-soft); }
.program-img[data-tone="sand"] { background-color: var(--c-sand); }

.program-body { padding: 32px; }
.program-body hr { border: none; border-top: 1px solid var(--c-border); margin: 16px 0; }
.program-body .meta { margin: 4px 0; color: var(--c-text-muted); font-size: 13px; }

/* Trust Band */
.trust-band {
  background: var(--c-cream);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 22px 40px;
  text-align: center;
  /* Break out of the global section max-width: 1400px constraint */
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.trust-band__label {
  font-family: var(--ff);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin: 0 0 14px 0;
}
.trust-band__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.trust-band__list li {
  font-family: var(--ff);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0 20px;
  position: relative;
}
.trust-band__list li + li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-border);
  font-size: 16px;
  line-height: 1;
}
.trust-band__stars {
  color: #f59e0b;
  letter-spacing: 1px;
}
@media (max-width: 768px) {
  .trust-band { padding: 20px 24px; }
  .trust-band__list li { padding: 4px 14px; }
}

/* Historia */
.story { background: white; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 992px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .story-image { justify-content: center; order: -1; }
  .story-text { padding-right: 0; }
}

.story-image {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.story-image-wash {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--c-lavender-pale);
  border-radius: 8px;
  top: 20px;
  left: -20px;
  z-index: 0;
}

.story-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 40px rgba(61,43,71,0.05);
}

.story-text { padding-right: 40px; }
.story-text h2 { margin-bottom: 24px; }
.story-text p { font-size: 16px; color: var(--c-text-muted); }

/* Locations */
.locations { position: relative; padding: 0; }
.locations-bg { background: var(--c-cream); height: 400px; }
.locations-card {
  background: white;
  padding: 60px;
  max-width: 600px;
  margin: -200px auto 0;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  border-radius: 6px;
  text-align: center;
}

.location-item { margin: 32px 0; }
.location-item h4 { margin-bottom: 8px; font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--c-purple-deep);
  color: white;
  padding: 60px 40px;
  text-align: center;
}

.footer-logo { font-weight: 700; letter-spacing: 0.1em; margin-bottom: 24px; }
.footer-nav { margin-bottom: 32px; display: flex; justify-content: center; gap: 32px; }
.footer-nav a { color: var(--c-lavender); font-size: 14px; }
.copyright { font-size: 12px; color: rgba(255,255,255,0.5); margin: 0; }

/* ====================================
   PREMIUM FORM DESIGN SYSTEM
   ==================================== */

/* Form page wrapper â€” centered editorial layout */
.form-page {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Generic page hero for form pages */
.form-hero {
  background: linear-gradient(135deg, var(--c-purple-deep) 0%, #5A3870 100%);
  padding: 72px 40px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.form-hero::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -180px; right: -120px;
  pointer-events: none;
}
.form-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-peach);
  margin: 0 0 12px;
}
.form-hero h1 {
  color: white;
  font-size: 36px;
  margin-bottom: 10px;
}
.form-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  margin: 0;
}

/* Form card container */
.form-card {
  background: white;
  border-radius: 20px;
  padding: 44px;
  border: 1px solid var(--c-border);
  box-shadow: 0 8px 40px rgba(61,43,71,0.06);
  text-align: left;
  max-width: 680px;
  margin: -28px auto 0;
  position: relative;
  z-index: 2;
}

/* Legacy .form-stack support â€” upgraded */
.form-stack {
  display: flex;
  flex-flow: column;
  gap: 20px;
  text-align: left;
  background: white;
  padding: 44px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(61,43,71,0.06);
}

/* Labels */
.form-stack label,
.form-card label {
  display: flex;
  flex-flow: column;
  gap: 7px;
  font-weight: 600;
  font-size: 13px;
  color: var(--c-purple-deep);
  letter-spacing: 0.02em;
}

/* Inputs, selects, textareas */
.form-stack input:not([type='checkbox']):not([type='radio']),
.form-stack select,
.form-stack textarea,
.form-card input:not([type='checkbox']):not([type='radio']),
.form-card select,
.form-card textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-text);
  background: var(--c-cream);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  width: 100%;
}
.form-stack input:focus:not([type='checkbox']):not([type='radio']),
.form-stack select:focus,
.form-stack textarea:focus,
.form-card input:focus:not([type='checkbox']):not([type='radio']),
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--c-peach);
  background: white;
  box-shadow: 0 0 0 4px rgba(232,181,132,0.18);
}
.form-stack input::placeholder,
.form-card input::placeholder,
.form-stack textarea::placeholder,
.form-card textarea::placeholder {
  color: #B5AAC0;
  font-weight: 400;
}
.form-stack textarea,
.form-card textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.form-stack select,
.form-card select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B6171' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Fieldset */
.form-stack fieldset,
.form-card fieldset,
.checkbox-group {
  margin: 0;
  border: 1.5px solid var(--c-border);
  padding: 20px 24px 24px;
  border-radius: 14px;
  background: var(--c-cream);
}
.form-stack legend,
.form-card legend,
.checkbox-group-title {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--c-purple-deep);
  letter-spacing: 0.04em;
}

/* Checkbox / Radio (pill style) */
.check {
  flex-flow: row !important;
  align-items: center;
  gap: 10px !important;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--c-border);
  background: white;
  transition: border-color 0.2s, background 0.2s;
  font-weight: 500 !important;
  font-size: 14px !important;
}
.check:hover {
  border-color: var(--c-peach);
  background: #FEFAF5;
}
.check input[type='checkbox'],
.check input[type='radio'] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-purple-brand);
  flex-shrink: 0;
  cursor: pointer;
}

/* Subtitle */
.subtitle {
  font-size: 17px;
  color: var(--c-text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Alerts â€” enhanced */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
  border-left: 4px solid transparent;
}
.alert::before {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.alert-error {
  background: #FEF2F2;
  color: #991b1b;
  border-color: #FCA5A5;
}
.alert-error::before { content: '✕'; color: #EF4444; }
.alert-success {
  background: #F0FDF4;
  color: #166534;
  border-color: #86EFAC;
}
.alert-success::before { content: '✓'; color: #22C55E; }
.alert p { margin: 0; }

/* Form section divider */
.form-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 4px;
}

/* Helper text below inputs */
.input-hint {
  font-size: 12px;
  color: var(--c-text-muted);
  font-weight: 400;
  margin-top: -4px;
}

/* Matching (legacy fallback) */
.match-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 40px; }
.match-card { background: white; border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; display: flex; flex-flow: column; }
.match-photo { height: 250px; background-size: cover; background-position: center; background-color: var(--c-lavender); }
.match-body { padding: 24px; flex: 1; display: flex; flex-flow: column; }
.match-meta { color: var(--c-text-muted); font-size: 13px; margin-bottom: 12px; }
.match-bio { font-size: 14px; margin-bottom: 16px; flex: 1; }
.match-reasons { list-style: none; padding: 0; margin: 0 0 24px; font-size: 13px; color: var(--c-sage); }
.match-actions { display: flex; gap: 12px; }
.match-actions .btn { flex: 1; padding: 10px; }

/* ====================================
   DOULAS DIRECTORY â€” Premium Redesign
   ==================================== */

/* Hero Banner */
.doulas-hero {
  background: linear-gradient(135deg, var(--c-purple-deep) 0%, #5A3870 100%);
  padding: 100px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 100px;
}

/* Matching page hero â€” slightly more compact */
.matching-hero {
  padding: 70px 40px 60px;
}
.matching-hero h1 {
  font-size: 42px;
}

/* Match rank badge */
.match-rank-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.match-rank-badge.top-pick {
  background: rgba(255, 240, 180, 0.95);
  color: #7A4E00;
}
.match-rank-badge.runner-up {
  background: rgba(230, 220, 245, 0.95);
  color: #4A2C5A;
}

/* Why this match block */
.match-reasons-block {
  background: var(--c-lavender-pale);
  border-radius: 12px;
  padding: 14px 16px;
}
.match-reasons-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-purple-soft);
  margin: 0 0 8px;
}
.match-reasons-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.match-reasons-list li {
  font-size: 12.5px;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-check {
  color: var(--c-sage);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* Empty state */
.matching-empty {
  text-align: center;
  padding: 80px 40px;
  max-width: 560px;
  margin: 0 auto;
}
.matching-empty-icon {
  font-size: 40px;
  color: var(--c-lavender);
  margin-bottom: 16px;
}
.matching-empty h2 { font-size: 24px; margin-bottom: 12px; }
.matching-empty p  { color: var(--c-text-muted); font-size: 15px; }

/* Secondary CTA */
.matching-secondary-cta {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--c-border);
}
.matching-secondary-cta p {
  color: var(--c-text-muted);
  font-size: 15px;
  margin-bottom: 16px;
}
.doulas-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  top: -200px; right: -150px;
  pointer-events: none;
}
.doulas-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  bottom: -150px; left: -100px;
  pointer-events: none;
}
.doulas-hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.doulas-hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-peach); margin: 0 0 16px;
}
.doulas-hero h1 { color: white; font-size: 52px; margin-bottom: 20px; }
.doulas-hero-subtitle {
  color: rgba(255,255,255,0.75); font-size: 18px; line-height: 1.7;
  max-width: 600px; margin: 0 auto 48px;
}

/* Stats bar */
.doulas-hero-stats {
  display: flex; justify-content: center; align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 24px 40px;
  backdrop-filter: blur(10px);
  width: fit-content; margin: 0 auto;
}
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 0 40px; }
.stat-num { font-size: 32px; font-weight: 800; color: white; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); flex-shrink: 0; }

/* Directory Grid */
.doulas-directory { padding: var(--s-v) 40px; max-width: 1400px; margin: 0 auto; }
.doulas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 36px; }

/* Doula Card */
.doula-card {
  background: white; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--c-border);
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.doula-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(61, 43, 71, 0.14); }

/* Photo */
.doula-card-photo-wrap { position: relative; overflow: hidden; height: 320px; flex-shrink: 0; }
.doula-card-photo { width: 100%; height: 100%; background-size: cover; background-position: center top; transition: transform 0.5s ease; }
.doula-card:hover .doula-card-photo { transform: scale(1.04); }
.doula-card-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(30,15,40,0.55) 100%);
  pointer-events: none;
}

/* Availability badge */
.doula-availability-badge {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; backdrop-filter: blur(8px);
}
.doula-availability-badge.available { background: rgba(220,255,235,0.92); color: #1A5C35; }
.doula-availability-badge.busy { background: rgba(255,240,220,0.92); color: #7A4800; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.available .badge-dot { background: #22c55e; }
.busy .badge-dot { background: #f59e0b; }

/* Language pills on photo */
.doula-langs-overlay { position: absolute; bottom: 16px; right: 16px; display: flex; gap: 6px; }
.lang-pill {
  background: rgba(255,255,255,0.88); color: var(--c-purple-deep);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}

/* Card Body */
.doula-card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.doula-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.doula-name { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; color: var(--c-purple-deep); margin-bottom: 4px; line-height: 1.2; }
.doula-location { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--c-text-muted); margin: 0; }
.doula-location svg { stroke: var(--c-peach); flex-shrink: 0; }
.doula-rate { text-align: right; flex-shrink: 0; margin-left: 12px; }
.doula-rate span { font-size: 20px; font-weight: 800; color: var(--c-purple-deep); }
.doula-rate small { display: block; font-size: 10px; color: var(--c-text-muted); letter-spacing: 0.05em; }

/* Specialty Tags */
.doula-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.doula-tag { padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }

/* Bio */
.doula-bio { font-size: 13.5px; line-height: 1.65; color: var(--c-text-muted); margin: 0; flex: 1; }

/* Actions */
.doula-card-actions { display: flex; gap: 10px; margin-top: 4px; }
.doula-btn-profile { flex: 1; font-size: 13px; padding: 10px 16px; }
.doula-btn-book { flex: 1.2; font-size: 13px; padding: 10px 16px; }

/* Empty state */
.doulas-empty { text-align: center; padding: 60px 20px; color: var(--c-text-muted); }

/* Responsive */
@media (max-width: 768px) {
  .doulas-hero { padding: 70px 24px 60px; }
  .doulas-hero h1 { font-size: 36px; }
  .doulas-hero-stats { flex-direction: column; gap: 16px; padding: 24px; }
  .stat-item { padding: 0 20px; }
  .stat-divider { width: 60px; height: 1px; }
  .doulas-directory { padding: 48px 20px; }
  .doulas-grid { grid-template-columns: 1fr; }
  .doula-card-photo-wrap { height: 280px; }
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  /* removed - see media queries below */
  .story-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .story-image { justify-content: center; }
  padding: 0 20px;
}

/* Progress bar */


/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-purple-deep);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 98;
}
.nav-overlay.is-visible { display: block; }

/* Mobile nav drawer */
@media (max-width: 900px) {
  .site-header { padding: 0 20px; min-height: 120px; }
  .logo-img {
  height: 85px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  object-fit: contain;
}
  .hamburger { display: flex; }
  .primary-nav {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 85vw);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    background: white;
    z-index: 99;
    padding: 88px 32px 40px;
    box-shadow: -4px 0 24px rgba(61,43,71,0.12);
    overflow-y: auto;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    font-size: 17px;
    font-weight: 600;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-purple-deep);
    justify-content: flex-start;
  }
}
@media (max-width: 480px) {
  .logo-img {
  height: 85px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  object-fit: contain;
}
  .btn-peach { display: none; }
}
/* Programs responsive grid */
@media (max-width: 1100px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .program-grid { grid-template-columns: 1fr; }
}

/* Story credentials subtitle badges */
.story-credentials-container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.story-credential-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--c-lavender-pale);
  color: var(--c-purple-brand);
  font-family: var(--ff);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .story-credentials-container {
    justify-content: center;
  }
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.blog-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e9d5ff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(109, 40, 217, 0.1), 0 10px 10px -5px rgba(109, 40, 217, 0.04);
  border-color: #c084fc;
}
.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 585 / 457;
  overflow: hidden;
  background: #f5f3ff;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .card-img {
  transform: scale(1.05);
}
.category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--ff);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9ca3af;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 12px;
}
.card-date svg {
  width: 14px;
  height: 14px;
}
.card-title {
  margin: 0 0 12px 0;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 56px;
  transition: color 0.2s;
}
.blog-card:hover .card-title {
  color: #6d28d9;
}
.card-excerpt {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.card-more {
  font-weight: 600;
  font-size: 14.5px;
  color: #6d28d9;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: gap 0.2s;
}
.blog-card:hover .card-more {
  gap: 8px;
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Service Pages Styles */
.service-page {
  padding: 80px 20px;
}
.service-container {
  max-width: 800px;
  margin: 0 auto;
}
.service-header {
  text-align: center;
  margin-bottom: 60px;
}
.service-header h1 {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--c-purple-deep);
  margin-bottom: 20px;
  line-height: 1.2;
}
.service-header .subtitle {
  font-size: 17px;
  color: var(--c-text-muted);
  max-width: 650px;
  margin: 0 auto;
}
.service-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  margin-bottom: 60px;
}
.service-body h2 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--c-purple-deep);
  margin: 40px 0 20px;
}
.service-body ul {
  margin: 20px 0;
  padding-left: 24px;
}
.service-body li {
  margin-bottom: 10px;
}
.service-faq {
  margin-top: 60px;
  border-top: 1px solid var(--c-border);
  padding-top: 40px;
}
.service-faq h2 {
  text-align: center;
  margin-bottom: 40px;
}
.faq-item {
  border-bottom: 1px solid var(--c-border);
  padding: 20px 0;
}
.faq-question {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--c-purple-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--c-purple-soft);
  transition: transform 0.2s;
}
details[open] .faq-question::after {
  content: '−';
}
.faq-answer {
  margin-top: 12px;
  color: var(--c-text-muted);
  line-height: 1.6;
}
.service-cta {
  background: var(--c-lavender-pale);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 10px 20px rgba(74,44,90,0.02);
}
.service-cta h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--c-purple-deep);
  margin-bottom: 12px;
}
.service-cta p {
  color: var(--c-text-muted);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .service-header h1 {
    font-size: 32px;
  }
  .service-body h2 {
    font-size: 24px;
  }
}

/* ====================================================================
   MOBILE RESPONSIVE ADDITIONS
   Additive only — no existing rule, class, or HTML markup was changed.
   ==================================================================== */

@media (max-width: 768px) {
  /* Rich-text blog content can contain admin-pasted images wider than
     their column; keep them from forcing horizontal overflow. */
  .blog-content-body img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  /* Two-column field rows (contact form, doula registration) are set via
     inline styles in the PHP templates; stack them on narrow phones
     without touching the markup. */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* 404 / 500 pages set their numeral size inline; only a higher-priority
     stylesheet rule can shrink it on phones without editing that markup. */
  .not-found h1 {
    font-size: 72px !important;
  }
  .error-page h1 {
    font-size: 56px !important;
  }

  /* Thank-you page falls back to the default 56px h1 and has inline
     padding; give it phone-appropriate sizing. */
  .thanks {
    padding: 60px 20px !important;
  }
  .thanks h1 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  /* Global safety net: nothing on the page — section, wrapper div, or
     otherwise — is allowed to force horizontal scroll on phones/tablets,
     regardless of any fixed-width remnant inherited from desktop. */
  html {
    overflow-x: hidden;
  }
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* "Our Story" (Meet Karlene): force the image/text pair to stack
     instead of staying side by side, and make sure neither side keeps a
     fixed width or rigid spacing that could push content past the
     viewport edge. #story + !important guarantee this wins regardless
     of any more-specific desktop rule. */
  #story .story-grid,
  .story-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center !important;
  }
  #story .story-image,
  #story .story-text,
  .story-image,
  .story-text {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
  }
  #story .story-image {
    justify-content: center !important;
    order: -1 !important;
  }
  #story .story-image-wash {
    left: 0 !important;
    width: 100% !important;
  }

  /* Root cause of the overflow: the purple credential pills keep
     white-space: nowrap from the desktop layout, so a long credential
     like "CERTIFIED POSTPARTUM & INFANT CARE DOULA" refuses to wrap and
     pushes the whole card past the viewport edge no matter how correctly
     the outer grid/text containers are sized. */
  body main section#story .story-credentials-container,
  #story .story-credentials-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: center !important;
  }
  body main section#story .story-credential-badge,
  #story .story-credential-badge {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  /* Heading and paragraph inside the text block: guarantee text always
     wraps to the available width instead of forcing it wider. */
  body main section#story .story-text h2,
  body main section#story .story-text p,
  #story .story-text h2,
  #story .story-text p {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
}

