/* Mobile Header Fix - Esconder em Desktop */

/* Header mobile só aparece em telas menores que 1024px */
.clinicadiv-mobile-header,
.clinicadiv-mobile-menu-overlay,
.clinicadiv-mobile-drawer {
    display: none !important;
}

@media screen and (max-width: 1024px) {
    /* ESCONDER COMPLETAMENTE o header padrão do Bridge no mobile */
    .page_header,
    header.page_header,
    .header_inner,
    .mobile_menu_button,
    .mobile-header-custom,
    .header_bottom,
    .mobile_menu,
    .q_logo_section_inner_text,
    .side_menu_button_wrapper,
    .popup_menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    .clinicadiv-mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #fff;
        z-index: 99999;
        padding: 10px 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        align-items: center;
        justify-content: space-between;
    }
    
    .clinicadiv-mobile-logo img {
        height: 40px;
        width: auto;
    }
    
    .clinicadiv-mobile-hamburger {
        width: 30px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }
    
    .clinicadiv-mobile-hamburger span {
        width: 100%;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .clinicadiv-mobile-hamburger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .clinicadiv-mobile-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .clinicadiv-mobile-hamburger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    .clinicadiv-mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 99998;
    }
    
    .clinicadiv-mobile-menu-overlay.active {
        display: block !important;
    }
    
    .clinicadiv-mobile-drawer {
        display: block !important;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 100000;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .clinicadiv-mobile-drawer.active {
        right: 0;
    }
    
    .clinicadiv-mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .clinicadiv-mobile-nav a {
        color: #333;
        text-decoration: none;
        font-size: 16px;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .clinicadiv-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .clinicadiv-mobile-btn {
        display: block;
        text-align: center;
        padding: 12px 20px;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
    }
    
    .clinicadiv-mobile-btn-primary {
        background: #3cb371;
        color: #fff !important;
    }
    
    .clinicadiv-mobile-btn-secondary {
        background: transparent;
        border: 2px solid #3cb371;
        color: #3cb371 !important;
    }
    
    .clinicadiv-mobile-btn-tertiary {
        background: #f5f5f5;
        color: #333 !important;
    }
    
    /* Adicionar padding ao body para compensar header fixo */
    body {
        padding-top: 60px !important;
    }
}

/* Em desktop, garantir que nada do mobile apareça */
@media screen and (min-width: 1025px) {
    .clinicadiv-mobile-header,
    .clinicadiv-mobile-menu-overlay,
    .clinicadiv-mobile-drawer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}
