/**
 * xanax-addiction-treatment.css — Xanax (Alprazolam) Addiction Treatment
 * /xanax-addiction-treatment/
 *
 * Foundation: main.css (tokens · base · layout · typography · components · forms)
 * Spoke beneath: /benzodiazepine-addiction-treatment/
 *
 * Section background rhythm:
 *   S1 AQUA → S2 WHITE → S3 BROWN → S4 SOFT-BLUE
 *   → S5 WHITE → S6 SOFT-BLUE → S7 WHITE → S8 AQUA
 *
 * Inner containers: .wrap (1160px) for S2, S6.
 * Sticky-rail sections (S4, S5) use min(var(--wide), calc(100% - 44px)).
 * Brown section (S3) uses the same narrow-capped container.
 *
 * Image: attachment 61239 in S5 body via wp_get_attachment_image().
 *
 * CSS prefix: xat-
 */


/* ══════════════════════════════════════════════════════════════
   S1 — HERO
   Aqua. 58/42 grid. Form 6 card right.
   ══════════════════════════════════════════════════════════════ */

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

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

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

.xat-h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

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

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

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

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

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

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


/* ══════════════════════════════════════════════════════════════
   FORM 6 — HERO CARD OVERRIDES (scoped to .xat-hero-form)
   ══════════════════════════════════════════════════════════════ */

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

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

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

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

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


/* ══════════════════════════════════════════════════════════════
   S2 — WHEN XANAX USE HAS BECOME HARD TO MANAGE
   White. 3-column card grid.
   ══════════════════════════════════════════════════════════════ */

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

.xat-shifted-header {
  max-width: 760px;
  margin: 0 auto var(--space-md);
  text-align: center;
}

.xat-shifted-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0;
}

.xat-shifted-intro {
  font-size: clamp(1rem, 1.4vw, 1.05rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-top: 12px;
}

.xat-shifted-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.xat-shifted-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 28px;
}

.xat-shifted-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

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


/* ══════════════════════════════════════════════════════════════
   S3 — DEPENDENCE VS ADDICTION + WITHDRAWAL SAFETY
   Brown (.section-brown). Two-column editorial prose.
   ══════════════════════════════════════════════════════════════ */

.xat-distinction-inner {
  max-width: min(var(--wide), calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 5vw, 64px);
  row-gap: clamp(16px, 2vw, 20px);
}

.xat-distinction-inner h2 {
  grid-column: 1 / -1;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  margin-bottom: 0;
  text-align: center;
  text-wrap: balance;
}

.xat-distinction-lead {
  grid-column: 1 / -1;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, .85);
  line-height: 1.7;
  font-weight: 500;
  text-align: center;
  max-width: 68ch;
  margin: 0 auto clamp(16px, 2vw, 24px);
}

.xat-distinction-inner p:not(.xat-distinction-lead) {
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 0;
}

.xat-distinction-inner a {
  color: rgba(255, 255, 255, .9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.xat-distinction-inner a:hover { color: #fff; }


/* ══════════════════════════════════════════════════════════════
   S4 — ANXIETY, PANIC, AND WHAT THE MEDICATION WAS DOING
   Soft-blue. Sticky rail (36%) left + body (64%) right.
   ══════════════════════════════════════════════════════════════ */

.xat-anxiety {
  background: var(--surface-soft-blue);
}

.xat-anxiety-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;
}

.xat-anxiety-rail {
  position: sticky;
  top: 100px;
  align-self: start;
}

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

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

.xat-anxiety-rail > p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.xat-anxiety-body {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 26px);
}

.xat-anxiety-body p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.xat-anxiety-body a {
  color: var(--brand-aqua-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ══════════════════════════════════════════════════════════════
   S5 — WHAT WAS HAPPENING AROUND THE USE
   White. Sticky rail (36%) left + body with attachment 61239 (64%) right.
   ══════════════════════════════════════════════════════════════ */

.xat-context {
  background: #fff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.xat-context-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;
}

.xat-context-rail {
  position: sticky;
  top: 100px;
  align-self: start;
}

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

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

.xat-context-rail > p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.xat-context-body {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 26px);
}

.xat-context-body p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.xat-context-body a {
  color: var(--brand-aqua-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Attachment 61239 */
.xat-context-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .10);
}


/* ══════════════════════════════════════════════════════════════
   S6 — WHAT TREATMENT CAN LOOK LIKE
   Soft-blue. Two-column: sticky editorial left · white feature cards right.
   ══════════════════════════════════════════════════════════════ */

.xat-programs {
  background: var(--surface-soft-blue);
}

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

.xat-programs-content {
  position: sticky;
  top: 100px;
}

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

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

.xat-programs-content p:last-of-type { margin-bottom: 0; }

.xat-programs-btn {
  margin-top: 20px;
  display: inline-flex;
}

.xat-programs-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.xat-programs-feature {
  background: #fff;
  border-radius: var(--r-sm);
  padding: 20px 24px;
}

.xat-programs-feature h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.xat-programs-feature p {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   S7 — BENZO CLUSTER + LATE CTA
   White, centered. Cluster note above eyebrow.
   ══════════════════════════════════════════════════════════════ */

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

.xat-late-cta-inner {
  max-width: 640px;
  width: min(640px, calc(100% - 44px));
  margin: 0 auto;
}

.xat-cluster-note {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.xat-cluster-note a {
  color: var(--brand-aqua-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

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

.xat-late-cta-inner > p:not(.xat-cluster-note):not(.xat-late-eyebrow) {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.xat-late-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}


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

@media (max-width: 960px) {
  .xat-hero-grid          { grid-template-columns: 1fr; gap: 32px; }
  .xat-hero-form-card     { max-width: 520px; }
  .xat-programs-grid      { grid-template-columns: 1fr; gap: 32px; }
  .xat-programs-content   { position: static; }
  .xat-anxiety-inner      { grid-template-columns: 1fr; }
  .xat-anxiety-rail       { position: static; }
  .xat-context-inner      { grid-template-columns: 1fr; }
  .xat-context-rail       { position: static; }
}

@media (max-width: 900px) {
  .xat-shifted-grid       { grid-template-columns: 1fr 1fr; }
  .xat-programs-features  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .xat-distinction-inner  { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .xat-shifted-grid       { grid-template-columns: 1fr; }
  .xat-hero-ctas          { flex-direction: column; }
  .xat-late-cta-actions   { flex-direction: column; align-items: center; }
}
