/**
 * lgbtq-detox.css — LGBTQ Substance Use Detox
 * /about/lgbtq-substance-use-detox/ · ID 29507
 *
 * Foundation: main.css (tokens · base · layout · typography · components · forms)
 *
 * Section background rhythm:
 *   S1  AQUA → S2  WHITE → S3  SOFT-BLUE → S4  WHITE
 *   → S5 SOFT-BLUE → S6 BROWN → S7 WHITE → S8 AQUA (final-cta)
 *
 * CSS prefix: detox-
 * No new colors or design tokens introduced.
 * All component patterns match the frozen PHP/IOP/OP service pages exactly.
 */


/* ══════════════════════════════════════════════════════════════
   S1 — HERO
   Aqua background. Two-column: content (58%) left · Form 6 card (42%) right.
   Reference: lgbtq-php.css S1
   ══════════════════════════════════════════════════════════════ */

.detox-hero {
  background: var(--brand-aqua);
}

.detox-hero-grid {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.detox-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: .75;
}

.detox-h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.detox-hero-lead {
  max-width: 54ch;
  margin-bottom: 28px;
  color: var(--text-primary);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.65;
}

.detox-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.detox-hero-form-card {
  background: #fff;
  border-radius: var(--r-sm);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 4px 28px rgba(0, 0, 0, .11);
}

.detox-form-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-aqua-hover);
  margin-bottom: 8px;
  text-align: center;
}

.detox-form-lead {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 16px;
}


/* ── Form 6 overrides — scoped to .detox-hero-form ───────────── */

.detox-hero-form .ff-el-group.hiddenfield,
.detox-hero-form .hiddenfield {
  display: none !important;
  visibility: hidden !important;
}

.detox-hero-form .ff-el-group:not(.hiddenfield) {
  display: block !important;
}

.detox-hero-form .ff-btn-submit {
  background: var(--brand-aqua) !important;
  color: var(--text-primary) !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  padding: 11px 24px !important;
  font-family: inherit !important;
  font-size: .875rem !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  width: 100% !important;
  margin-top: 4px !important;
  transition: background .2s, transform .2s !important;
  line-height: 1.4 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
}

.detox-hero-form .ff-btn-submit:hover {
  background: #5BBFD6 !important;
  transform: translateY(-1px) !important;
}

.detox-hero-form .ff-el-group { margin-bottom: 10px; }
.detox-hero-form .ff-el-group:last-of-type { margin-bottom: 0; }


/* ══════════════════════════════════════════════════════════════
   S2 — WHAT IS MEDICAL DETOX?
   White. Centered header, two-column body text.
   Reference: lgbtq-php.css S2 what-body pattern
   ══════════════════════════════════════════════════════════════ */

.detox-what {
  background: #fff;
}

.detox-what-header {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.detox-what-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-wrap: balance;
  margin: 0 0 16px;
}

.detox-what-intro {
  font-size: clamp(.9rem, 1.2vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 auto;
}

.detox-what-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}

.detox-what-col p {
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 1em;
}

.detox-what-col p:last-child { margin-bottom: 0; }

.detox-what-col a {
  color: var(--brand-aqua-hover);
  font-weight: 600;
}

.detox-what-col a:hover { text-decoration: underline; }


/* ══════════════════════════════════════════════════════════════
   S3 — WITHDRAWAL BY SUBSTANCE
   Soft-blue. Centered header + 2×3 substance card grid.
   Reference: lgbtq-php.css S5 treatment-grid pattern
   ══════════════════════════════════════════════════════════════ */

.detox-substances {
  background: var(--surface-soft-blue);
}

.detox-substances-header {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detox-substances-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-wrap: balance;
  margin: 0;
}

.detox-substances-intro {
  font-size: clamp(.9rem, 1.2vw, .975rem);
  color: var(--text-secondary);
  max-width: 62ch;
  margin: 0 auto;
  line-height: 1.65;
}

.detox-substances-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.detox-substance-card {
  background: #fff;
  border-radius: var(--r-sm);
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detox-substance-card h3 {
  font-size: .975rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
}

.detox-substance-card p {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   S4 — LGBTQ-AFFIRMING DETOX CONSIDERATIONS
   White. Two-column: editorial text left · affirming point list right.
   Reference: lgbtq-php.css S4 affirming-grid pattern
   ══════════════════════════════════════════════════════════════ */

.detox-affirming {
  background: #fff;
}

.detox-affirming-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.detox-affirming-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 24px;
}

.detox-affirming-content p {
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 1.1em;
}

.detox-affirming-content p:last-child { margin-bottom: 0; }

.detox-affirming-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.detox-affirming-point {
  background: var(--surface-soft-blue);
  border-radius: var(--r-sm);
  padding: clamp(18px, 2vw, 22px);
  border-left: 3px solid var(--brand-aqua);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detox-affirming-point h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.detox-affirming-point p {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   S5 — AFTER DETOX
   Soft-blue. Sticky 36/64 rail left · stacked text items right.
   Reference: lgbtq-php.css S6 structure-inner / S7 housing-inner pattern
   ══════════════════════════════════════════════════════════════ */

.detox-after {
  background: var(--surface-soft-blue);
}

/* Inner carries max-width and grid only — section provides the padding. */
.detox-after-inner {
  max-width: min(var(--wide), calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 36fr 64fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

.detox-after-rail {
  position: sticky;
  top: 100px;
  align-self: start;
}

.detox-after-rail::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--brand-aqua);
  margin-bottom: 20px;
  border-radius: 2px;
}

.detox-after-rail h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.detox-after-rail p {
  font-size: clamp(.9rem, 1.2vw, .975rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

.detox-after-body {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 32px);
}

.detox-after-item {
  padding-bottom: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.detox-after-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.detox-after-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.detox-after-item p {
  font-size: clamp(.9rem, 1.2vw, 1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.detox-after-item a {
  color: var(--brand-aqua-hover);
  font-weight: 600;
}

.detox-after-item a:hover { text-decoration: underline; }


/* ══════════════════════════════════════════════════════════════
   S6 — CONTINUUM OF CARE
   Brown (.section-brown from components.css).
   Header + stage row + CTA band (white card).
   Reference: lgbtq-php.css S8 / lgbtq-op.css S8 — matched exactly.
   ══════════════════════════════════════════════════════════════ */

/* Inner carries max-width, flex column, and gap only — section provides padding. */
.detox-continuum-inner {
  max-width: min(var(--wide), calc(100% - 44px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 44px);
}

.detox-continuum-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detox-continuum-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  text-wrap: balance;
  margin: 0;
}

.detox-continuum-lead {
  font-size: clamp(1rem, 1.4vw, 1.05rem);
  color: rgba(255, 255, 255, .82);
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto;
}

/* Stage row — matches PHP/OP: flex, stretch, gap 0 */
.detox-continuum-stages {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.detox-stage {
  flex: 1;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-sm);
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Pre-stage (detox coordination) — dashed to signal it's a facilitated step */
.detox-stage--pre {
  border-style: dashed;
  opacity: .88;
}

.detox-stage-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin: 0;
}

.detox-stage h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.detox-stage h3 a {
  color: rgba(255, 255, 255, .85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detox-stage h3 a:hover { color: #fff; }

.detox-stage p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .8);
  line-height: 1.6;
  margin: 0;
}

/* Arrow — chevron style matching PHP/OP exactly */
.detox-stage-arrow {
  flex: 0 0 auto;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detox-stage-arrow::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, .45);
  border-top: 2px solid rgba(255, 255, 255, .45);
  transform: rotate(45deg) translateX(-2px);
}

/* CTA band — white card, matches PHP/OP exactly */
.detox-continuum-cta {
  background: #fff;
  border-radius: var(--r-sm);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
}

.detox-continuum-cta-copy {
  flex: 1;
  min-width: 0;
}

.detox-continuum-cta-copy h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.3;
}

.detox-continuum-cta-copy p {
  font-size: clamp(.9rem, 1.15vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.detox-continuum-cta-action {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* CTA button — aqua on white card, matches PHP/OP exactly */
.detox-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-aqua);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, transform .2s;
  min-width: 180px;
}

.detox-cta-btn:hover {
  background: #5BBFD6;
  transform: translateY(-1px);
}


/* ══════════════════════════════════════════════════════════════
   S7 — FREQUENTLY ASKED QUESTIONS
   White. Centered header + 2-column Q&A grid.
   Reference: lgbtq-php.css S9 faq-grid — gap and item padding matched.
   ══════════════════════════════════════════════════════════════ */

.detox-faq {
  background: #fff;
}

.detox-faq-header {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.detox-faq-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-wrap: balance;
  margin: 0;
}

.detox-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.detox-faq-item {
  padding: clamp(22px, 2.5vw, 28px);
  background: var(--surface-soft-blue);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--brand-aqua);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detox-faq-item h3 {
  font-size: .975rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--ink);
}

.detox-faq-item p {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.detox-faq-item a {
  color: var(--brand-aqua-hover);
  font-weight: 600;
}

.detox-faq-item a:hover { text-decoration: underline; }


/* ══════════════════════════════════════════════════════════════
   S8 — FINAL CTA (shared component)
   Aqua. Handled by components.css .final — no overrides needed.
   ══════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — matches PHP/IOP/OP breakpoints
   ══════════════════════════════════════════════════════════════ */

/* ── 1024px ── */
@media (max-width: 1024px) {
  .detox-hero-grid      { grid-template-columns: 1fr 1fr; }
  .detox-affirming-grid { grid-template-columns: 1fr 1fr; }
  .detox-substances-grid { grid-template-columns: 1fr 1fr; }
  .detox-continuum-stages { gap: 0; }
}

/* ── 960px ── */
@media (max-width: 960px) {
  .detox-after-inner { grid-template-columns: 1fr; }
  .detox-after-rail { position: static; }
  .detox-continuum-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .detox-continuum-cta-action { align-items: flex-start; }
}

/* ── 900px ── */
@media (max-width: 900px) {
  .detox-hero-grid      { grid-template-columns: 1fr; }
  .detox-affirming-grid { grid-template-columns: 1fr; }
  .detox-what-body      { grid-template-columns: 1fr; }

  .detox-continuum-stages {
    flex-direction: column;
    gap: 12px;
  }
  .detox-stage-arrow {
    width: auto;
    height: 16px;
    transform: rotate(90deg);
  }
}

/* ── 640px ── */
@media (max-width: 640px) {
  .detox-hero-form-card   { max-width: 100%; }
  .detox-substances-grid  { grid-template-columns: 1fr; }
  .detox-faq-grid         { grid-template-columns: 1fr; }
  .detox-continuum-cta    { padding: clamp(24px, 4vw, 32px); }
  .detox-cta-btn          { width: 100%; justify-content: center; padding: 16px 24px; }
}
