/**
 * Mobile Background Full-Width Fix
 * Makes background colors span full viewport width on mobile devices
 */

@media (max-width: 1024px) {
    .hero-info::after {
        display: none !important;
    }
    .hero-inner--mobile-bg .hero-logo {
        display: none !important;
    }
}

/* Mobile Full-Width Background Fix (max-width: 700px) */
@media (max-width: 700px) {
    /* Allow overflow on body and html */
    body,
    html {
        overflow-x: visible !important;
        width: 100%;
    }

    /* Remove overflow constraints that clip backgrounds */
    .section {
        overflow-x: visible !important;
        overflow-y: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        position: relative;
    }

    /* Full viewport width for section header */
    .section-header {
        width: 100vw;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: 0 !important;
        position: relative;
    }

    /* Full viewport width for hero info */
    .hero-info {
        width: 100vw;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        max-width: none !important;
    }

    /* Full width hero section */
    .hero-outer {
        width: 100vw;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }

    /* Full width for containers inside sections */
    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 1rem !important;
    }

    /* Full viewport width for hero-inner with background */
    .hero-inner,
    .hero-inner--mobile-bg {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: 0 !important;
        max-width: none !important;
        position: relative;
        padding: 1rem !important;
    }

    /* Make pseudo-element background fill entire width */
    .hero-inner--mobile-bg::before {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        left: 0 !important;
        right: auto !important;
        top: 0 !important;
        bottom: 0 !important;
    }

    /* Ensure child content is properly positioned */
    .hero-inner--mobile-bg > * {
        position: relative !important;
        z-index: 1 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Text elements inside colored background */
    .hero-title,
    .hero-summary,
    .hero-meta,
    .section-header-title,
    .section-header-summary {
        position: relative;
        z-index: 2;
        max-width: 100%;
    }
}
