/* GLOBAL RESET for Broken Static Elementor Site */

/* 1. Tame Giant SVGs */
svg {
    max-width: 100% !important;
    height: auto !important;
}

.elementor-icon svg {
    width: 1em !important;
    height: 1em !important;
    fill: currentColor;
}

.elementor-icon {
    font-size: 50px;
    /* Default reasonable size */
}

/* Specific fix for floating WhatsApp/Social Icons */
.elementor-element-8b606c8,
.elementor-widget-icon.elementor-view-stacked .elementor-icon {
    width: 60px !important;
    height: 60px !important;
    line-height: 60px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.elementor-element-8b606c8 svg,
.elementor-widget-icon.elementor-view-stacked .elementor-icon svg {
    width: 30px !important;
    height: 30px !important;
}

/* 2. Fix Section Layouts */
.elementor-section {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
}

.elementor-container {
    max-width: 1140px !important;
    /* Standard Container Width */
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

/* 3. Fix Column/Container Flex Issues */
.elementor-column,
.e-con {
    min-height: 1px !important;
    /* Prevent collapse */
}

/* 4. Fix Images */
img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* 5. Fix Text Visibility */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 6. Hide known broken elements (The Black Shapes) if they are separators */
.elementor-shape svg {
    width: 100% !important;
    height: auto !important;
    transform: none !important;
}

/* 7. Ensure Body doesn't overflow */
body {
    overflow-x: hidden !important;
    width: 100vw !important;
}

/* --- MOBILE RESPONSIVENESS FIXES (Added via Agent) --- */
@media (max-width: 767px) {

    /* Force Elementor columns to stack vertically */
    .elementor-column,
    .elementor-col-50,
    .elementor-col-33,
    .elementor-col-25,
    .elementor-widget-wrap,
    .e-con {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        display: block !important;
    }

    /* Reset container flex direction */
    .elementor-container {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    /* Fix specific section paddings for mobile */
    .elementor-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* COMPACT HEADER FOR MOBILE */
    /* Reduce top logo bar height */
    header .elementor-section.elementor-top-section,
    .elementor-location-header .elementor-section {
        min-height: auto !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    /* Reduce logo size on mobile */
    header img,
    .elementor-location-header img {
        max-height: 40px !important;
        width: auto !important;
    }

    /* Reduce Slider Content Margins/Padding to pull text up */
    .swiper-slide .elementor-widget-heading,
    .swiper-slide .elementor-widget-text-editor {
        margin-bottom: 5px !important;
        padding-bottom: 0 !important;
    }

    /* Force text to be visible and higher z-index */
    .slide-content,
    .swiper-slide h1,
    .swiper-slide h2,
    .swiper-slide p {
        position: relative !important;
        z-index: 10 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* --- HERO SLIDER GAP FIX --- */
/* Remove potential gaps visible at the top of the slider */
.swiper-container,
.swiper-wrapper,
.swiper-slide {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure image touches the top */
.swiper-slide img {
    top: 0 !important;
    margin-top: 0 !important;
    object-position: center top !important;
}

/* Header/Slider adjacency fix */
header,
.elementor-location-header {
    margin-bottom: 0 !important;
}