/**
 * File Path: assets/css/front/mbs-front-landing.css
 * S14-8: Book Landing Page
 * Component of mbs-front.css — extracted Session 94.
 * Enqueued by MBS_Front_Assets with dep: mbs-front.
 */
/* ==========================================================================
   S14-8 — Book Landing Page
   ==========================================================================
   Conversion-optimized single-book layout used when `mbs_landing_page_mode`
   is enabled for a PRO book. All rules scoped to `.mbs-landing-wrapper`.
   Tested on GeneratePress and Divi at 320 / 768 / 1440 px.
   Dark mode uses :is(.mbs-dark-mode, [data-mbs-theme="dark"]) & pattern
   (ancestor-selector nesting) — equivalent to the prior flat dual-selector.
   ========================================================================== */
.mbs-landing-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 64px;
    color: var(--mbs-text, var(--mbs-navy));
    font-family: inherit;
    box-sizing: border-box;

    /* ── Hero: two-column cover + copy grid ──────────────────────────────── */

    .mbs-landing-hero {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 48px;
        align-items: flex-start;
        padding: 48px 0 40px;

        @media (max-width: 768px) {
            grid-template-columns: 1fr;
            gap: 24px;
            padding: 32px 0 24px;
        }
    }

    /* ── Cover image ─────────────────────────────────────────────────────── */

    .mbs-landing-cover {
        position: sticky;
        top: 32px;

        img {
            display: block;
            width: 100%;
            height: auto;
            border-radius: 4px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
        }

        @media (max-width: 768px) {
            position: static;
            max-width: 220px;
            margin: 0 auto;
        }
    }

    /* ── Hero copy column ────────────────────────────────────────────────── */

    .mbs-landing-hero-copy {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mbs-landing-author {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: var(--mbs-accent, var(--mbs-teal));
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .mbs-landing-title {
        margin: 0;
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        line-height: 1.15;
        font-weight: 700;
        color: var(--mbs-text, var(--mbs-navy));
    }

    .mbs-landing-excerpt {
        font-size: 1.0625rem;
        line-height: 1.7;
        color: var(--mbs-text, var(--mbs-navy));
        opacity: 0.85;

        p {
            margin: 0 0 0.75em;

            &:last-child {
                margin-bottom: 0;
            }
        }
    }

    /* ── Primary CTA block (in hero) ─────────────────────────────────────── */

    .mbs-landing-cta-primary {
        margin-top: 8px;
    }

    /* ── Section titles ──────────────────────────────────────────────────── */

    .mbs-landing-section-title {
        font-size: 1.375rem;
        font-weight: 700;
        color: var(--mbs-text, var(--mbs-navy));
        margin: 0 0 16px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--mbs-border, #ECF0F1);
    }

    /* ── Book description section ────────────────────────────────────────── */

    .mbs-landing-description {
        padding: 40px 0;
        border-top: 1px solid var(--mbs-border, #ECF0F1);
    }

    .mbs-landing-content {
        font-size: 1rem;
        line-height: 1.75;
        color: var(--mbs-text, var(--mbs-navy));

        p {
            margin: 0 0 1em;

            &:last-child {
                margin-bottom: 0;
            }
        }
    }

    /* ── Secondary CTA block ─────────────────────────────────────────────── */

    .mbs-landing-cta-secondary {
        padding: 40px 0;
        border-top: 1px solid var(--mbs-border, #ECF0F1);
        text-align: center;
    }

    .mbs-landing-cta-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        margin-top: 8px;
    }

    /* ── Endorsements partial ────────────────────────────────────────────── */

    .mbs-section--endorsements {
        border-top: 1px solid var(--mbs-border, #ECF0F1);
        padding-top: 40px;
    }

    /* ── Dark-mode overrides — see mbs-front-dark.css for global tokens ──── */
    /* Landing-specific structural overrides using flat selectors (CSS-002). */
}

/* Flat dark mode overrides for .mbs-landing-wrapper (CSS-002 — no nesting). */
[data-mbs-theme="dark"] .mbs-landing-wrapper,
.mbs-dark-mode .mbs-landing-wrapper {
    color: var(--mbs-text-dark, #ECF0F1);
}

[data-mbs-theme="dark"] .mbs-landing-wrapper .mbs-landing-title,
[data-mbs-theme="dark"] .mbs-landing-wrapper .mbs-landing-section-title,
.mbs-dark-mode .mbs-landing-wrapper .mbs-landing-title,
.mbs-dark-mode .mbs-landing-wrapper .mbs-landing-section-title {
    color: var(--mbs-text-dark, #ECF0F1);
}

[data-mbs-theme="dark"] .mbs-landing-wrapper .mbs-landing-description,
[data-mbs-theme="dark"] .mbs-landing-wrapper .mbs-landing-cta-secondary,
[data-mbs-theme="dark"] .mbs-landing-wrapper .mbs-section--endorsements,
.mbs-dark-mode .mbs-landing-wrapper .mbs-landing-description,
.mbs-dark-mode .mbs-landing-wrapper .mbs-landing-cta-secondary,
.mbs-dark-mode .mbs-landing-wrapper .mbs-section--endorsements {
    border-color: rgba(255, 255, 255, 0.12);
}

[data-mbs-theme="dark"] .mbs-landing-wrapper .mbs-landing-section-title,
.mbs-dark-mode .mbs-landing-wrapper .mbs-landing-section-title {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}
