/* ==========================================================================
   Responsive Overrides & Mobile Fixes
   ========================================================================== */

/* Prevent horizontal scroll globally on all viewports */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Ensure all elements fit their box model */
*, *::before, *::after {
    box-sizing: border-box !important;
}

/* 
   Fix Elementor Homepage (ID 5255) Hero Container fixed-width bug on mobile.
   Forces the root hero container to 100% width on viewports <= 767px.
*/
@media (max-width: 767px) {
    .elementor-5255 .elementor-element.elementor-element-5d9a3b2 {
        --width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Generic defensive overrides to ensure containers shrink nicely on narrow viewports */
@media (max-width: 767px) {
    .e-con, .e-container, .elementor-column, .elementor-widget-container {
        max-width: 100% !important;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}
