/* Global Responsive Fixes */

/* Fix text overflowing into next section on ALL devices where it might wrap */
#slogan, #slogan .columns, #slogan .col, #contact, #contact .columns, #contact .col {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
}

/* Fix orange banner overlapping footer logo */
#parallax {
    position: relative !important;
    height: auto !important;
    margin-bottom: 20px !important;
    top: 0 !important;
}

@media (max-width: 1024px) {
    /* Force specific columns to stack on tablets and below */
    #contact .columns, #slogan .columns {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap;
    }
    
    #contact .col, #slogan .col {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Adjust padding/margins for mobile */
    section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    /* Global text adjustment */
    body, html {
        font-size: 14px !important;
    }
    
    h1 { font-size: 26px !important; }
    h2 { font-size: 22px !important; }
    h3 { font-size: 18px !important; }
    h4 { font-size: 16px !important; }
    
    footer {
        padding-top: 20px !important;
        margin-top: 0 !important;
    }

    /* Ensure backgrounds adapt to new content heights */
    section {
        background-size: cover !important;
    }
}
