/**
 * lgbtq-iop.css — LGBTQ Intensive Outpatient Program
 * /lgbtq-intensive-outpatient-program/ · ID 1430
 *
 * 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 WHITE → S7 BROWN → S8 SOFT-BLUE
 *   → S9 WHITE → S10 AQUA (final-cta shared component)
 *
 * CSS prefix: iop-
 * No new colors or design tokens introduced.
 */


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

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

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

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

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

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

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

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

.iop-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);
}

.iop-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;
}

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


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

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

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

.iop-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;
}

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

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


/* ══════════════════════════════════════════════════════════════
   S2 — WHAT IS IOP?
   White. Centered header, three stat blocks, two-column body text.
   ══════════════════════════════════════════════════════════════ */

.iop-what {
  background: #fff;
}

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

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

.iop-what-stats {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 64px);
  margin-bottom: clamp(32px, 4vw, 52px);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 48px);
  background: var(--surface-soft-blue);
  border-radius: var(--r-sm);
}

.iop-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.iop-stat-number {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--brand-aqua-hover);
  line-height: 1;
}

.iop-stat-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
}

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

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

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


/* ══════════════════════════════════════════════════════════════
   S3 — WHO MAY BENEFIT
   Soft-blue. Sticky 36/64 rail left · 2×2 card grid right.
   ══════════════════════════════════════════════════════════════ */

.iop-who {
  background: var(--surface-soft-blue);
}

.iop-who-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;
}

.iop-who-rail {
  position: sticky;
  top: 100px;
  align-self: start;
}

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

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

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

.iop-who-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.iop-who-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;
}

.iop-who-card h3 {
  font-size: .975rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

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


/* ══════════════════════════════════════════════════════════════
   S4 — IOP BUILT FOR LGBTQ PEOPLE
   White. Two-column: editorial text left · 4 affirming cards right.
   ══════════════════════════════════════════════════════════════ */

.iop-affirming {
  background: #fff;
}

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

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

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

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

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

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

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

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


/* ══════════════════════════════════════════════════════════════
   S5 — WHAT TREATMENT CAN INCLUDE
   Soft-blue. Centered header + 3-column card grid.
   ══════════════════════════════════════════════════════════════ */

.iop-treatment {
  background: var(--surface-soft-blue);
}

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

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

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

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

.iop-treatment-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: 12px;
}

.iop-treatment-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

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


/* ══════════════════════════════════════════════════════════════
   S6 — TREATMENT ALONGSIDE DAILY LIFE
   White. Sticky 36/64 rail.
   ══════════════════════════════════════════════════════════════ */

.iop-daily {
  background: #fff;
}

.iop-daily-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;
}

.iop-daily-rail {
  position: sticky;
  top: 100px;
  align-self: start;
}

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

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

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

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

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

.iop-daily-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

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

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


/* ══════════════════════════════════════════════════════════════
   S7 — CONTINUUM OF CARE
   Brown (.section-brown from components.css).
   Header + 4-stage horizontal progression + note.
   ══════════════════════════════════════════════════════════════ */

.iop-continuum-inner {
  max-width: min(var(--wide), calc(100% - 44px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 44px);
}

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

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

.iop-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;
}

.iop-continuum-stages {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.iop-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;
}

.iop-stage--current {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .4);
  box-shadow: 0 0 0 2px rgba(255,255,255,.3);
}

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

.iop-stage--current .iop-stage-label {
  color: rgba(255, 255, 255, .9);
}

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

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

.iop-stage-arrow {
  flex: 0 0 auto;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iop-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);
}

/* ── Continuum CTA band ───────────────────────────────────── */

.iop-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);
}

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

.iop-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;
}

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

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

.iop-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;
}

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

.iop-cta-phone {
  font-size: .8rem;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: .03em;
}

@media (max-width: 640px) {
  .iop-continuum-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .iop-continuum-cta-action {
    align-items: flex-start;
  }
  .iop-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
}


/* ══════════════════════════════════════════════════════════════
   S8 — HOUSING
   Soft-blue. Sticky 36/64 rail.
   ══════════════════════════════════════════════════════════════ */

.iop-housing {
  background: var(--surface-soft-blue);
}

.iop-housing-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;
}

.iop-housing-rail {
  position: sticky;
  top: 100px;
  align-self: start;
}

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

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

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

.iop-housing-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.iop-housing-body p:last-child { margin-bottom: 0; }

.iop-housing-body a {
  color: var(--brand-aqua-hover);
  font-weight: 600;
}

.iop-housing-body a:hover {
  text-decoration: underline;
}


/* ══════════════════════════════════════════════════════════════
   S9 — FAQ
   White. Centered header + 2-column Q&A grid.
   ══════════════════════════════════════════════════════════════ */

.iop-faq {
  background: #fff;
}

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

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

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

.iop-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;
}

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

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

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

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


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

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

/* ── 960px ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .iop-who-inner     { grid-template-columns: 1fr; }
  .iop-who-rail      { position: static; }
  .iop-daily-inner   { grid-template-columns: 1fr; }
  .iop-daily-rail    { position: static; }
  .iop-housing-inner { grid-template-columns: 1fr; }
  .iop-housing-rail  { position: static; }
}

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

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

/* ── 640px ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .iop-who-cards      { grid-template-columns: 1fr; }
  .iop-treatment-grid { grid-template-columns: 1fr; }
  .iop-faq-grid       { grid-template-columns: 1fr; }
  .iop-what-stats     { flex-direction: column; gap: 20px; }
}
