/* 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) ---- */
.cc-intro { background: #fff; }
.cc-intro-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.cc-intro-inner h2 { margin-bottom: 18px; }
.cc-intro-inner p { color: var(--ec-body); margin-bottom: 16px; font-size: 17px; line-height: 1.6; }
.cc-intro-inner p:last-child { margin-bottom: 0; }
.cc-intro .cc-intro-cta { margin-top: 26px; }

/* ---- How it works: numbered steps ---- */
.cc-steps { background: var(--ec-paper); }
.cc-steps-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px;
}
.cc-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;
}
.cc-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;
}
.cc-step-title { color: var(--ec-ink); font-weight: 700; font-size: 19px; line-height: 1.3; margin: 4px 0 0; }
.cc-step-body { color: var(--ec-body); font-size: 17px; line-height: 1.6; margin: 0; }

/* ---- Feature / reason cards (why us, reasons to come) ---- */
.cc-cardgrid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.cc-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;
}
.cc-card:hover { transform: translateY(-5px); box-shadow: var(--ec-shadow); border-color: rgba(199, 41, 41, .35); }
.cc-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;
}
.cc-card-icon i { font-size: 20px; }
.cc-card-title { color: var(--ec-ink); font-weight: 700; font-size: 19px; line-height: 1.3; margin: 0; }
.cc-card-body { color: var(--ec-body); font-size: 17px; line-height: 1.6; margin: 0; }
.cc-card-body a { color: var(--ec-clay); font-weight: 700; }

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

/* ---- Map / service-area: image banner + overlay location cards ---- */
.cc-map { background: var(--ec-paper); }
.cc-map-banner {
  position: relative; border-radius: var(--ec-radius); overflow: hidden;
  box-shadow: var(--ec-shadow); margin-bottom: 30px;
}
.cc-map-banner img { width: 100%; height: 320px; object-fit: cover; display: block; }
.cc-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%);
}
.cc-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);
}
.cc-map-banner-text h2 { color: #fff; margin-bottom: 12px; }
.cc-map-banner-text p { color: rgba(255, 255, 255, .92); margin: 0; font-size: 17px; line-height: 1.6; }
.cc-place-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 26px; }
.cc-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);
}
.cc-place-card h3 { color: var(--ec-ink); font-weight: 700; font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
.cc-place-card p { color: var(--ec-body); font-size: 17px; line-height: 1.6; margin: 0; }
.cc-place-links { text-align: center; }
.cc-place-links p { color: var(--ec-body); font-size: 17px; line-height: 1.9; margin: 0; overflow-wrap: anywhere; }
.cc-place-links a { color: var(--ec-clay); font-weight: 700; }

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

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

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