/* ============================================================
   LGBTQ Outpatient Program — /lgbtq-outpatient-program/ (ID 1442)
   Prefix: op-
   Visual system: matches lgbtq-iop.css (approved, frozen)
   ============================================================ */

/* ── SHARED RHYTHM
   Hero excluded — inherits section padding from layout.css only.
   All other sections override the global section padding to 72px. */
.op-what,
.op-who,
.op-affirming,
.op-treatment,
.op-daily,
.op-housing,
.op-continuum,
.op-faq {
  padding: 72px 0;
}


/* ══════════════════════════════════════════════════════════════
   S1 — HERO  (aqua) — matches IOP hero system exactly
   ══════════════════════════════════════════════════════════════ */

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

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

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

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

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

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

/* White pill for primary CTA; outlined for secondary — matches IOP */
.op-hero .btn             { background: #fff; color: var(--ink); }
.op-hero .btn:hover       { background: #EEF2F1; transform: translateY(-1px); }
.op-hero .btn.ghost       { background: transparent; color: var(--ink); border-color: rgba(22, 32, 31, .44); }
.op-hero .btn.ghost:hover { background: rgba(22, 32, 31, .07); transform: none; }

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

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

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

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

/* Fluent Forms provides no global rule hiding .hiddenfield groups — every page CSS must supply it.
   Without this, tracking/CRM fields render visibly. */
.op-hero-form .ff-el-group.hiddenfield,
.op-hero-form .hiddenfield {
  display: none !important;
  visibility: hidden !important;
}

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

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

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

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


/* ══════════════════════════════════════════════════════════════
   S2 — WHAT IS OUTPATIENT TREATMENT?
   White. Editorial body + IOP vs OP comparison cards.
   ══════════════════════════════════════════════════════════════ */

.op-what {
  background: #fff;
}

.op-what-header {
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

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

.op-what-body {
  margin-bottom: clamp(28px, 4vw, 44px);
}

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

.op-what-body p:last-child { margin-bottom: 0; }

/* IOP vs OP comparison cards — white backgrounds for contrast */
.op-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.op-compare-iop {
  border-top-color: rgba(0, 0, 0, .25);
  opacity: .88;
}

.op-compare-op.op-compare--current {
  border-top-color: var(--brand-aqua);
}

.op-compare-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0;
}

.op-compare--current .op-compare-label {
  color: var(--brand-aqua-hover);
}

.op-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.op-compare-list li {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text-primary);
  padding: 5px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.op-compare-list li:last-child { border-bottom: none; }

.op-compare-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--brand-aqua-hover);
  text-decoration: none;
  margin-top: auto;
}

.op-compare-link:hover { text-decoration: underline; }

.op-compare-current-tag {
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-aqua-hover);
  letter-spacing: .04em;
  margin: 0;
}


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

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

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

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

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

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

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

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

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

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

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


/* ══════════════════════════════════════════════════════════════
   S4 — LGBTQ-AFFIRMING CARE THROUGHOUT RECOVERY
   White. 55/45 grid: editorial text left · 4 affirming cards right.
   ══════════════════════════════════════════════════════════════ */

.op-affirming {
  background: #fff;
}

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

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

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

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

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

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

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

.op-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.
   ══════════════════════════════════════════════════════════════ */

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

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

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

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

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

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

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

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


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

.op-daily {
  background: #fff;
}

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

.op-housing-body a {
  color: var(--brand-aqua-hover);
  font-weight: 600;
  text-decoration: none;
}

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


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

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

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

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

.op-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 */
.op-continuum-stages {
  display: flex;
  align-items: stretch;
  gap: 0;
}

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

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

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

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

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

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

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

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

.op-stage-link {
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
  text-decoration: none;
}

.op-stage-link:hover { text-decoration: underline; }

/* ── Continuum CTA band — matches IOP exactly ── */

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

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

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

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

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

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

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

.op-cta-phone {
  font-size: .8rem;
  margin: 0;
  letter-spacing: .03em;
}

/* .section-brown p { color: rgba(255,255,255,.82) } has specificity (0,1,1)
   — higher than .op-cta-phone (0,1,0). Scope to the white panel to win. */
.op-continuum-cta-action .op-cta-phone {
  color: var(--text-secondary);
}


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

.op-faq {
  background: #fff;
}

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

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

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

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

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

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

.op-faq-item a {
  color: var(--brand-aqua-hover);
  font-weight: 600;
  text-decoration: none;
}

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


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

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

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

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

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

  .op-continuum-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .op-continuum-cta-action {
    align-items: flex-start;
  }
  .op-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
}

/* ── 768px ── */
@media (max-width: 768px) {
  .op-compare      { grid-template-columns: 1fr; }
  .op-who-cards    { grid-template-columns: 1fr; }
  .op-faq-grid     { grid-template-columns: 1fr; }
}

/* ── 640px ── */
@media (max-width: 640px) {
  .op-what,
  .op-who,
  .op-affirming,
  .op-treatment,
  .op-daily,
  .op-housing,
  .op-continuum,
  .op-faq {
    padding: 48px 0;
  }

  .op-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .op-hero-ctas {
    flex-direction: column;
  }

  .op-hero-ctas .btn {
    width: 100%;
    text-align: center;
  }

  .op-treatment-grid { grid-template-columns: 1fr; }
  .op-who-cards      { grid-template-columns: 1fr; }
  .op-faq-grid       { grid-template-columns: 1fr; }
}
