/* Custom Responsive Fixes for Odonto Peres */

/* Image Hover Effect */
.image-hover-container {
    position: relative;
    cursor: pointer;
}

.image-hover-container .image-hover {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.image-hover-container:hover .image-hover {
    opacity: 1;
}

.image-hover-container:hover .image-default {
    opacity: 0;
}

.image-hover-container .image-default {
    transition: opacity 0.5s ease-in-out;
}

/* Prevent body scroll when mobile menu is open */
body.menu-is-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Mobile Menu - Hide by default on mobile */
@media only screen and (max-width: 991px) {
    /* Show header properly */
    header {
        display: block !important;
        position: relative !important;
        height: auto !important;
        min-height: 80px;
    }
    
    /* Logo visible */
    #logo {
        display: block !important;
        z-index: 1002;
        position: relative;
    }
    
    #logo img {
        max-height: 50px;
    }
    
    /* Header flex container */
    .de-flex {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 15px 0;
    }
    
    /* Hide menu initially */
    .header-col-mid #mainmenu {
        left: -100%;
        transition: left 0.3s ease;
        background: rgba(0, 0, 0, 0.98);
        z-index: 999;
    }
    
    /* Show menu when menu-btn is clicked */
    header.menu-open .header-col-mid #mainmenu {
        left: 0 !important;
    }
    
    /* Make sure menu button is visible */
    #menu-btn {
        display: block !important;
        position: relative;
        cursor: pointer;
        width: 30px;
        height: 25px;
        z-index: 1001;
    }
    
    /* Hide booking button on very small screens */
    .menu_side_area .btn-main {
        display: none;
    }
    
    /* Adjust header when menu is open */
    header.menu-open {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh !important;
        overflow: hidden;
        z-index: 9999;
    }
    
    /* Menu styling with scroll */
    .header-col-mid #mainmenu {
        padding: 20px;
        height: calc(100vh - 80px);
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .header-col-mid #mainmenu li a {
        color: #fff !important;
    }
}

/* Tablet adjustments */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .menu_side_area .btn-main {
        display: inline-block;
        font-size: 13px;
        padding: 8px 15px;
    }
}

/* Desktop - ensure menu is always visible */
@media only screen and (min-width: 992px) {
    .header-col-mid #mainmenu {
        left: 0 !important;
        position: relative !important;
        top: 0 !important;
        width: auto !important;
    }
    
    #menu-btn {
        display: none !important;
    }
}

/* Fix for hero section on mobile */
@media only screen and (max-width: 767px) {
    #section-intro h1 {
        font-size: 28px !important;
        line-height: 1.2;
    }
    
    #section-intro .subtitle {
        font-size: 14px;
    }
    
    /* Hide Google rating on mobile */
    #section-intro .d-lg-flex {
        display: none !important;
    }
    
    /* Adjust hero section padding */
    #section-intro .abs.abs-centered {
        padding: 20px 0;
    }
}

/* Fix stats section on mobile */
@media only screen and (max-width: 575px) {
    .de_count {
        margin-bottom: 30px;
    }
    
    .de_count h3 {
        font-size: 32px !important;
    }
}

/* Footer responsive - stack vertically on mobile */
@media only screen and (max-width: 768px) {
    .subfooter .de-flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px;
    }
    
    .subfooter .de-flex-col {
        margin-bottom: 10px;
    }
    
    .subfooter .menu-simple {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 0 !important;
    }
    
    .subfooter .menu-simple li {
        display: block !important;
        margin: 0 !important;
    }
}
