/* ==========================================================================
   Responsive breakpoints — mobile-first adjustments layered on main.css.
   Breakpoints: Mobile (<640px), Tablet (640–1024px), Laptop (1024–1280px),
   Large Desktop (1280px+).
   ========================================================================== */

/* ---------- Tablet & below ---------- */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero__mockup {
        order: -1;
    }

    .ebook-3d-mockup {
        max-width: 260px;
        margin: 0 auto;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 40px 0;
    }

    .site-header__nav {
        display: none; /* Minimal mobile header: logo + Buy Now only, per spec. */
    }

    .hero {
        padding: 32px 0 24px;
    }

    .hero__headline {
        font-size: 26px;
    }

    .hero__price-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .offer-section__price {
        font-size: 40px;
    }

    .what-you-get-grid,
    .benefits-grid,
    .bonus-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .ebook-archive-grid {
        grid-template-columns: 1fr;
    }

    .chapter-row {
        flex-direction: column;
        gap: 6px;
    }

    /* Reveal the mobile sticky CTA (footer.php only renders it on single eBook pages). */
    .mobile-sticky-cta {
        display: flex;
    }

    /* Prevent content being hidden behind the sticky bar. */
    body.single-ebook .site-main {
        padding-bottom: 76px;
    }

    .hero__cta,
    .offer-section .btn {
        width: 100%;
    }
}

/* ---------- Large desktop refinement ---------- */
@media (min-width: 1280px) {
    :root {
        --container-width: 1200px;
    }
}

/* ---------- No horizontal overflow guard ---------- */
img,
.hero,
.section {
    max-width: 100%;
}

html,
body {
    overflow-x: hidden;
}
