/* ═══════════════════════════════════════════════════════════════════════════
   TERRA FORM§ — FOR PAGES (the work, therapists, clinics)
   Supports: /for/index.html, /for/therapists.html, /for/clinics.html
   ═══════════════════════════════════════════════════════════════════════════ */

.paywall-card--featured .paywall-card__title::after {
    content: none;
}

/* ─── PAGE HERO DARK BANNER ───────────────────────────────────────────────── */
/* .page-hero defaults to cream background; compound selector overrides it.   */

.page-hero.banner--dark {
    background: var(--banner-dark);
}

.page-hero.banner--dark .page-hero__label {
    color: var(--gold-pale);
}

.page-hero.banner--dark .page-hero__title {
    color: var(--gold);
}

.page-hero.banner--dark .page-hero__subtitle {
    color: var(--linen-90);
}

.page-hero.banner--dark .page-hero__subtitle strong {
    color: var(--cream);
}

/* ─── CREAM SECTION ───────────────────────────────────────────────────────── */

.section--cream {
    background: var(--cream);
    /* Reset text colour roles for light surface — matches :where([class*="--cream"])
       but stated explicitly here so the rule is self-contained. */
    --text-body:   var(--earth);
    --text-h1:     var(--black);
    --text-h2:     var(--black);
    --text-h3:     var(--black);
    --text-h4:     var(--gold-deep);
    --text-strong: var(--burgundy);
    --text-em:     var(--gold-deep);
    --text-link:   var(--gold-deep);
    --text-link-border: rgba(122, 101, 32, 0.3);
}

/* ─── SECTION HERO ────────────────────────────────────────────────────────── */

.section-hero {
    margin-bottom: var(--spacing-lg);
}

.section-hero__label {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-em);
    margin-bottom: var(--spacing-sm);
}

.section-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 4vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 var(--spacing-sm);
}

.section-hero__tagline {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.85;
    max-width: 680px;
    margin: 0;
    color: var(--stone);
}

.section--cream .section-hero__tagline {
    color: var(--earth);
}

/* ─── FOR MODULES ─────────────────────────────────────────────────────────── */

.for-modules {
    display: flex;
    flex-direction: column;
}

.for-module {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--gold-15);
}

.for-module:first-child {
    border-top: none;
    padding-top: 0;
}

.for-module__number {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    letter-spacing: 0.2em;
    color: var(--gold);
    padding-top: 0.3rem;
}

.for-module__body {
    min-width: 0;
}

.for-module__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 calc(var(--spacing-sm) * 0.75);
}

.for-module__text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.85;
    margin: 0;
}

/* ─── GATEWAY FINAL ───────────────────────────────────────────────────────── */

.gateway-final {
    padding: var(--spacing-xl) 0;
    background: var(--bg-deep);
    position: relative;
    /* Pull stone text for all p inside, then override for etymology */
    --text-body: var(--stone);
}

/* Etymology: large Cinzel lead-in, reads gold.
   Setting --text-body here makes the body-theme rule resolve to gold. */
.gateway-final__etymology {
    --text-body: var(--gold);
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0 0 var(--spacing-sm);
    max-width: 680px;
}

.gateway-final__text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.85;
    margin: 0 0 var(--spacing-lg);
    max-width: 600px;
}

.gateway-final__actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
}

/* ─── PAYWALL CARDS IN CREAM SECTIONS ────────────────────────────────────── */
/* Cards have hardcoded dark colours but sit inside .section--cream which     */
/* resets --text-h3 → black. Restore dark-surface text vars inside the card. */

.section--cream .paywall-card--slick {
    --text-h1:     var(--ivory);
    --text-h2:     var(--ivory);
    --text-h3:     var(--ivory);
    --text-h4:     var(--gold);
    --text-body:   var(--ivory-80);
    --text-strong: var(--ivory);
    --text-em:     var(--gold);
    --text-link:   var(--gold);
    --text-link-border: var(--gold-40);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .for-module {
        grid-template-columns: 2.5rem 1fr;
        gap: var(--spacing-sm);
        padding: var(--spacing-md) 0;
    }

    .for-module:first-child {
        padding-top: 0;
    }

    .section-hero {
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .for-module {
        grid-template-columns: 1fr;
    }

    .for-module__number {
        padding-top: 0;
    }
}
