/* Hallmark · component: inner-page couples-counseling · pre-emit critique: P4 H4 E4 S4 R4 V4 */

/* ============================================================
   Couples counseling page — per-page section styles.
   Loaded AFTER eyecue.css. Reuses the locked --ec-* token system
   and the shared .ec-* classes; only NEW section types live here
   (intro lead, numbered how-it-works steps, feature/reason cards,
   the map overlay, and the inline CTA). No raw hex / oklch — every
   colour resolves to a var(--ec-*) token.
   ============================================================ */

/* ---- Trust-bar stat band: word-form values (Cerritos, Medi-Cal) are wider
   than the homepage's short tokens, so shrink + allow wrap on this page only
   to keep the 2-col mobile grid from overflowing 320/375px. ---- */
.ec-statband .ec-stat-word { font-size: clamp(22px, 6vw, 40px) !important; overflow-wrap: anywhere; }
.ec-statband .ec-stat-label { overflow-wrap: anywhere; }

/* ---- Plain intro / lead-in section (what is + insurance intro) ---- */
.ep-intro { background: #fff; }
.ep-intro-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.ep-intro-inner h2 { margin-bottom: 18px; }
.ep-intro-inner p { color: var(--ec-body); margin-bottom: 16px; font-size: 17px; line-height: 1.6; }
.ep-intro-inner p:last-child { margin-bottom: 0; }
.ep-intro .ep-intro-cta { margin-top: 26px; }

/* ---- How it works: numbered steps ---- */
.ep-steps { background: var(--ec-paper); }
.ep-steps-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px;
}
.ep-step {
  position: relative; background: #fff; border: 1px solid var(--ec-line);
  border-radius: 16px; padding: 28px 30px 30px; box-shadow: 0 2px 14px rgba(60, 33, 14, .05);
  display: flex; flex-direction: column; gap: 10px;
}
.ep-step-num {
  width: 46px; height: 46px; flex: 0 0 46px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 50%;
  background: var(--ec-clay); color: #fff; font-weight: 800; font-size: 19px;
}
.ep-step-title { color: var(--ec-ink); font-weight: 700; font-size: 19px; line-height: 1.3; margin: 4px 0 0; }
.ep-step-body { color: var(--ec-body); font-size: 17px; line-height: 1.6; margin: 0; }

/* ---- Feature / reason cards (why us, reasons to come) ---- */
.ep-cardgrid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.ep-card {
  background: #fff; border: 1px solid var(--ec-line); border-radius: 16px;
  padding: 28px 28px 30px; box-shadow: 0 2px 14px rgba(60, 33, 14, .05);
  transition: transform .35s var(--ec-ease), box-shadow .35s var(--ec-ease), border-color .35s var(--ec-ease);
  display: flex; flex-direction: column; gap: 10px;
}
.ep-card:hover { transform: translateY(-5px); box-shadow: var(--ec-shadow); border-color: rgba(199, 41, 41, .35); }
.ep-card-icon {
  width: 48px; height: 48px; flex: 0 0 48px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 12px;
  background: var(--ec-paper); color: var(--ec-clay); margin-bottom: 4px;
}
.ep-card-icon i { font-size: 20px; }
.ep-card-title { color: var(--ec-ink); font-weight: 700; font-size: 19px; line-height: 1.3; margin: 0; }
.ep-card-body { color: var(--ec-body); font-size: 17px; line-height: 1.6; margin: 0; }
.ep-card-body a { color: var(--ec-clay); font-weight: 700; }

/* Why-us reads as a featured row: clay top edge on the lead card */
.ep-whyus .ep-card:first-child { border-top: 4px solid var(--ec-clay); }

/* ---- Map / service-area: image banner + overlay location cards ---- */
.ep-map { background: var(--ec-paper); }
.ep-map-banner {
  position: relative; border-radius: var(--ec-radius); overflow: hidden;
  box-shadow: var(--ec-shadow); margin-bottom: 30px;
}
.ep-map-banner img { width: 100%; height: 320px; object-fit: cover; display: block; }
.ep-map-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28, 14, 5, .82) 0%, rgba(28, 14, 5, .5) 55%, rgba(28, 14, 5, .15) 100%);
}
.ep-map-banner-text {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  justify-content: center; max-width: 620px; padding: 0 clamp(24px, 5vw, 56px);
}
.ep-map-banner-text h2 { color: #fff; margin-bottom: 12px; }
.ep-map-banner-text p { color: rgba(255, 255, 255, .92); margin: 0; font-size: 17px; line-height: 1.6; }
.ep-place-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 26px; }
.ep-place-card {
  background: #fff; border: 1px solid var(--ec-line); border-radius: 16px;
  padding: 26px 28px 28px; box-shadow: 0 2px 14px rgba(60, 33, 14, .05);
}
.ep-place-card h3 { color: var(--ec-ink); font-weight: 700; font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
.ep-place-card p { color: var(--ec-body); font-size: 17px; line-height: 1.6; margin: 0; }
.ep-place-links { text-align: center; }
.ep-place-links p { color: var(--ec-body); font-size: 17px; line-height: 1.9; margin: 0; overflow-wrap: anywhere; }
.ep-place-links a { color: var(--ec-clay); font-weight: 700; }

/* ---- Inline CTA inside the insurance intro ---- */
.ep-inline-cta { display: inline-flex; max-width: 100%; margin-top: 6px; }
.ep-inline-cta span { white-space: normal; overflow-wrap: anywhere; }

/* ============================================================
   RESPONSIVE — collapse every multi-col grid to one column.
   ============================================================ */
@media (max-width: 991px) {
  .ep-cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-map-banner-text { max-width: 100%; }
}
@media (max-width: 767px) {
  .ep-steps-grid,
  .ep-cardgrid,
  .ep-place-grid { grid-template-columns: 1fr; }
  .ep-map-banner img { height: 260px; }
  .ep-map-banner::after { background: linear-gradient(180deg, rgba(28, 14, 5, .4) 0%, rgba(28, 14, 5, .78) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .ep-card:hover { transform: none; }
}

/* ============================================================
   CLINICIAN PROFILE HERO — solid radiant-brown band (no bg photo),
   white text left, framed portrait in the right column.
   ============================================================ */
.ec-clinician-hero { background: radial-gradient(115% 140% at 80% 18%, #5e3617 0%, var(--ec-ink) 56%); }
.ec-clinician-hero .ec-hero-inner { max-width: none; padding: 142px 0; }
.ec-clinician-hero .ec-media img { height: 430px; }
@media (max-width: 991px) {
  .ec-clinician-hero .ec-hero-inner { padding: 64px 0 8px; }
  .ec-clinician-hero .ec-media { margin-top: 24px; }
}

/* ============================================================
   Contact form (interim PHP handler — migrate to CF Worker later)
   Scoped .ec-form-* classes, built on the --ec-* token system.
   ============================================================ */
.ec-form-card {
  background: #fff;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  padding: 30px;
  box-shadow: var(--ec-shadow);
}
.ec-form-title { color: var(--ec-ink); font-size: 24px; font-weight: 700; line-height: 1.25; margin: 0 0 6px; }
.ec-form-sub { color: var(--ec-body); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.ec-form-sub a { color: var(--ec-clay); font-weight: 700; }

.ec-field { display: flex; flex-direction: column; margin-bottom: 15px; }
.ec-field-row { display: flex; gap: 14px; }
.ec-field-row .ec-field { flex: 1; }
.ec-field label { color: var(--ec-ink); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.ec-field label span { color: var(--ec-clay); }
.ec-field input,
.ec-field select,
.ec-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ec-ink);
  background: var(--ec-paper);
  border: 1px solid var(--ec-line);
  border-radius: 10px;
  transition: border-color .2s var(--ec-ease), box-shadow .2s var(--ec-ease), background .2s var(--ec-ease);
}
.ec-field input:focus,
.ec-field select:focus,
.ec-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--ec-clay);
  box-shadow: 0 0 0 3px rgba(199, 41, 41, .12);
}
.ec-field textarea { resize: vertical; min-height: 110px; }

.ec-form-note { color: var(--ec-body); font-size: 13px; line-height: 1.5; margin: 2px 0 18px; opacity: .85; }

.ec-form .tf-btn { width: 100%; justify-content: center; border: 0; cursor: pointer; }

/* Visually-hidden honeypot — kept out of the layout and off the tab order. */
.ec-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ec-form-alert { padding: 12px 16px; border-radius: 10px; font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
.ec-form-alert.is-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.ec-form-alert.is-error   { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; }

@media (max-width: 575px) {
  .ec-field-row { flex-direction: column; gap: 0; }
  .ec-form-card { padding: 22px; }
}
