/* Hallmark · component: inner-page therapy-services-hub · pre-emit critique: P3 H2 E2 S2 R2 V2 */

/* ============================================================
   therapy-services hub — per-page styles.
   Reuses the locked .ec-* contract from eyecue.css; only adds
   component types the homepage does not already ship:
     - service-card grids in 4-col + 3-col density (modalities,
       child services, choose-by-concern, formats, why-us)
     - a card-grid subtitle/eyebrow on individual cards
     - inline crisis + EMDR callouts on the warm paper wash
     - the language trust bar (full-bleed band)
   All colors reference var(--ec-*); no raw hex, no rem for sizing.
   html root is 10px (healingy), so type is pinned in px >= 16.
   ============================================================ */

/* ---- service-card grid: 4-col density (child service lines) ---- */
.section-service .grid-layout-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* ---- card eyebrow inside a service / concept card ---- */
.ts-card-eyebrow {
  color: var(--ec-clay);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px !important;
  margin-bottom: 10px;
}

/* ---- text-only concept cards (modalities, concern routing, formats,
   why-us). Same chrome as .service-item.style-2 but no image. ---- */
.ts-cardgrid {
  display: grid;
  gap: 24px;
}
.ts-cardgrid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ts-cardgrid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ts-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, .06);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ec-ease), box-shadow .4s var(--ec-ease), border-color .4s var(--ec-ease);
}
.ts-card .ts-card-title {
  color: var(--ec-ink);
  font-size: 20px !important;
  line-height: 1.3;
  margin-bottom: 10px;
}
.ts-card .ts-card-title a { color: var(--ec-ink); }
.ts-card .ts-card-title a:hover { color: var(--ec-clay); }
.ts-card p {
  color: var(--ec-body);
  font-size: 17px !important;
  line-height: 1.6;
  margin: 0;
}
.ts-card p + p { margin-top: 12px; }
/* lift only on cards that carry their own link */
a.ts-card:hover,
.ts-card.is-linked:hover {
  transform: translateY(-5px);
  box-shadow: var(--ec-shadow);
  border-color: rgba(199, 41, 41, .4);
}
.ts-card-routelink {
  margin-top: 16px;
  color: var(--ec-clay);
  font-weight: 700;
  font-size: 16px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ts-card-routelink i { font-size: 13px; }

/* the top concern routing cards top-accent like insurance featured card */
.ts-card.is-accent { border-top: 4px solid var(--ec-clay); }

/* ---- inline callout (crisis + EMDR) on the paper wash ---- */
.ts-callout-band { background: var(--ec-paper); }
.ts-callout {
  background: #fff;
  border: 1px solid var(--ec-line);
  border-left: 4px solid var(--ec-clay);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 2px 14px rgba(60, 33, 14, .05);
  max-width: 820px;
  margin: 0 auto;
}
.ts-callout h2 {
  color: var(--ec-ink);
  font-size: clamp(24px, 2.6vw, 30px) !important;
  line-height: 1.2;
  margin-bottom: 12px;
}
.ts-callout p {
  color: var(--ec-body);
  font-size: 17px !important;
  line-height: 1.6;
  margin: 0;
}
.ts-callout p + p { margin-top: 12px; }
.ts-callout a { color: var(--ec-clay); font-weight: 700; }

/* ---- language / trust bar (full-bleed band) ---- */
.ts-trustbar { background: var(--ec-ink); }
.ts-trustbar .ts-trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  padding: 30px 0;
}
.ts-trust-chip {
  color: var(--ec-sand);
  font-weight: 600;
  font-size: 16px !important;
  line-height: 1.4;
}
.ts-trust-chip.is-link a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ts-trust-chip.is-link a:hover { color: var(--ec-sand); }
.ts-trust-sep { color: rgba(254, 218, 194, .45); font-size: 16px; }

/* ---- NAP block under the locations banner ---- */
.ts-nap {
  margin-top: 26px;
  color: var(--ec-body);
  font-size: 17px !important;
  line-height: 1.7;
}
.ts-nap strong { color: var(--ec-ink); display: block; margin-bottom: 4px; font-size: 18px; }
.ts-nap a { color: var(--ec-clay); font-weight: 700; }
.ts-nearby { margin-top: 16px; color: var(--ec-body); font-size: 16px !important; line-height: 1.6; }

/* ---- intro lead paragraphs (text-only intro sections) ---- */
.ts-intro p {
  color: var(--ec-body);
  font-size: 18px !important;
  line-height: 1.65;
  max-width: 70ch;
  margin: 0 auto 16px;
}
.ts-intro p:last-child { margin-bottom: 0; }
.ts-intro p a { color: var(--ec-clay); font-weight: 700; }

/* ============================================================
   RESPONSIVE — match the homepage breakpoints (320/375/414/768)
   ============================================================ */
@media (max-width: 991px) {
  .section-service .grid-layout-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-cardgrid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .section-service .grid-layout-4 { grid-template-columns: 1fr; }
  .ts-cardgrid.cols-3,
  .ts-cardgrid.cols-2 { grid-template-columns: 1fr; }
  .ts-callout { padding: 24px 22px; }
  .ts-trustbar .ts-trust-inner { padding: 26px 16px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  a.ts-card:hover,
  .ts-card.is-linked:hover { transform: none; }
}
