/**
 * transgender-rehab.css — Inspire Recovery Design System
 * /transgender-rehab/ (Post ID 1416)
 *
 * Foundation: main.css (tokens · base · layout · typography · components · forms)
 * Visual references — all patterns drawn from the approved trauma/meth cornerstone system:
 *   S1 Hero            → trauma-cornerstone.css (.tit-hero)
 *   S2 Affirming Care  → trauma-cornerstone.css (.tit-recognition / .tit-card pattern)
 *   S3 Why It Matters  → trauma-cornerstone.css (.tit-context / .section-brown)
 *   S4 Understanding   → trauma-cornerstone.css (.tit-what-tic pattern)
 *   S5 Trauma Bridge   → trauma-cornerstone.css (.tit-recognition pattern)
 *   S6 Programs        → trauma-cornerstone.css (.tit-programs pattern)
 *   S7 Late CTA        → meth-cornerstone.css (aqua CTA band)
 *   Final CTA          → shared component
 *
 * No new colors, button styles, or design tokens are introduced here.
 * All values reference CSS custom properties from tokens.css.
 * CSS prefix: tr- (Transgender Rehab)
 */


/* ══════════════════════════════════════════════════════════════
   S1 — HERO
   Aqua, centered single-column. No form.
   Pattern: .tit-hero (trauma-cornerstone.css)
   ══════════════════════════════════════════════════════════════ */

.tr-hero {
  background: var(--brand-aqua);
  text-align: center;
}

.tr-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.tr-hero h1 {
  font-size: clamp(1.95rem, 3.8vw, 3rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.tr-hero .lead {
  max-width: 58ch;
  margin: 0 auto 28px;
  color: var(--text-primary);
}

.tr-hero .eyebrow { justify-content: center; }
.tr-hero .actions { justify-content: center; }

.tr-hero .btn             { background: #fff; color: var(--ink); }
.tr-hero .btn:hover       { background: #EEF2F1; transform: translateY(-1px); }
.tr-hero .btn.ghost       { background: transparent; color: var(--ink); border-color: rgba(22, 32, 31, .44); }
.tr-hero .btn.ghost:hover { background: rgba(22, 32, 31, .07); transform: none; }


/* ══════════════════════════════════════════════════════════════
   S2 — WHAT GENDER-AFFIRMING TREATMENT MEANS
   Soft-blue, structured card grid (2-column, 6 cards).
   Pattern: .tit-recognition + .tit-card (trauma-cornerstone.css)
   ══════════════════════════════════════════════════════════════ */

.tr-affirming { background: var(--surface-soft-blue); }

.tr-affirming-intro {
  max-width: 760px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.tr-affirming-intro .eyebrow { justify-content: center; }

.tr-affirming-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.tr-affirming-intro .lead {
  max-width: 62ch;
  margin: 0 auto;
}

.tr-affirming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tr-card {
  background: #fff;
  border: 1px solid rgba(14, 95, 122, .14);
  border-top: 3px solid var(--brand-aqua);
  border-radius: var(--r-sm);
  padding: clamp(24px, 3vw, 36px);
}

.tr-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.25;
  color: var(--brand-aqua-hover);
}

.tr-card p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.tr-card p:last-child { margin-bottom: 0; }


/* ══════════════════════════════════════════════════════════════
   S3 — WHY AFFIRMING CARE MATTERS
   Brown background, centered prose.
   Pattern: .tit-context / .section-brown (trauma-cornerstone.css)
   ══════════════════════════════════════════════════════════════ */

.tr-context { text-align: center; }

.tr-context-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.tr-context h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  margin-bottom: 20px;
  text-wrap: balance;
}

.tr-context .eyebrow {
  color: rgba(255, 255, 255, .75);
  justify-content: center;
}

.tr-context .eyebrow::before { background: var(--accent-trans-pink); }

.tr-context .lead {
  color: rgba(255, 255, 255, .85);
  max-width: 62ch;
  margin: 0 auto 20px;
}

.tr-context p {
  font-size: .95rem;
  color: rgba(255, 255, 255, .8);
  line-height: 1.65;
  margin-bottom: 20px;
  text-align: center;
}


/* ══════════════════════════════════════════════════════════════
   S4 — UNDERSTANDING YOURSELF
   White, two-column text grid (sticky heading left, prose right).
   Pattern: .tit-what-tic (trauma-cornerstone.css)
   ══════════════════════════════════════════════════════════════ */

.tr-self { background: #fff; }

.tr-self-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.tr-self-grid > .reveal:first-child {
  position: sticky;
  top: 100px;
}

.tr-self-grid h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.18;
  margin-bottom: 0;
}

.tr-self-content .lead {
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.tr-self-content p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}

.tr-self-list {
  margin: 0 0 18px 0;
  padding-left: 20px;
}

.tr-self-list li {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}


/* ══════════════════════════════════════════════════════════════
   S5 — TRAUMA, MENTAL HEALTH & SUBSTANCE USE
   Soft-blue, 3-column narrative grid.
   Pattern: .tit-recognition (trauma-cornerstone.css)
   ══════════════════════════════════════════════════════════════ */

.tr-trauma { background: var(--surface-soft-blue); }

.tr-trauma-intro {
  max-width: 760px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.tr-trauma-intro .eyebrow { justify-content: center; }

.tr-trauma-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.tr-trauma-intro .lead {
  max-width: 62ch;
  margin: 0 auto;
}

.tr-trauma-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.tr-trauma-col h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--brand-aqua-hover);
}

.tr-trauma-col p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.tr-trauma-col p:last-child { margin-bottom: 0; }


/* ══════════════════════════════════════════════════════════════
   S6 — TREATMENT AT INSPIRE RECOVERY
   White, two-column prose grid + trust badges + inline CTA.
   Pattern: .tit-programs (trauma-cornerstone.css)
   ══════════════════════════════════════════════════════════════ */

.tr-programs { background: #fff; border-top: 1px solid var(--border-light); }

.tr-programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.tr-programs-grid > .reveal:first-child {
  position: sticky;
  top: 100px;
}

.tr-programs-grid h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.18;
  margin-bottom: 16px;
}

.tr-programs-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
}

.tr-programs-item:first-child { padding-top: 0; }

.tr-programs-item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.tr-programs-item p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.tr-programs-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.tr-trust-badge {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-aqua-hover);
}

.tr-trust-sep {
  color: var(--border-light);
  font-weight: 400;
}

.tr-programs-cta { padding-top: 32px; }

.tr-programs-cta p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tr-programs-cta .actions { flex-wrap: wrap; }


/* ══════════════════════════════════════════════════════════════
   S7 — LATE CTA
   Aqua background, centered heading + two buttons.
   Pattern: approved mid-page CTA treatment
   ══════════════════════════════════════════════════════════════ */

.tr-late-cta {
  background: #fff;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.tr-late-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.tr-late-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.tr-late-cta p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.tr-late-cta .actions { justify-content: center; }


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .tr-affirming-grid         { grid-template-columns: 1fr 1fr; }
  .tr-self-grid              { grid-template-columns: 1fr; gap: 32px; }
  .tr-self-grid > .reveal:first-child { position: static; }
  .tr-programs-grid          { grid-template-columns: 1fr; gap: 32px; }
  .tr-programs-grid > .reveal:first-child { position: static; }
}

@media (max-width: 900px) {
  .tr-trauma-grid            { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .tr-affirming-grid         { grid-template-columns: 1fr; }
  .tr-trauma-grid            { grid-template-columns: 1fr; }
}
