/* MOBILE NAVIGATION FIX - Apply to all site pages */

/* Force hide mobile actions by default, but allow mobile menu override */
.mobile-nav-actions {
    display: none;
}

/* Show mobile actions ONLY when mobile menu is active */
.qlower-nav-menu.mobile-active .mobile-nav-actions {
    display: flex !important;
    visibility: visible !important;
}

/* Ensure proper mobile menu styling */
@media (max-width: 991px) {
    /* Hide desktop menu, show hamburger */
    .qlower-nav-menu {
        display: none;
    }
    
    .qlower-nav-actions {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Mobile menu overlay */
    .qlower-nav-menu.mobile-active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 10000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        animation: slideIn 0.3s ease-out;
        padding: 2rem 1rem;
        box-sizing: border-box;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile button styles */
    .mobile-nav-actions .qlower-btn-demo,
    .mobile-nav-actions .qlower-btn-espace {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-actions .qlower-btn-demo {
        background: var(--qlower-primary, #137C8B);
        color: white;
        border: 2px solid var(--qlower-primary, #137C8B);
    }
    
    .mobile-nav-actions .qlower-btn-espace {
        background: transparent;
        color: var(--qlower-primary, #137C8B);
        border: 2px solid var(--qlower-primary, #137C8B);
    }
    
    /* Mobile actions container */
    .mobile-nav-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin-top: 2rem;
    }
}

/* iPhone specific fixes */
@media (max-width: 479px) {
    .qlower-nav-menu.mobile-active {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
        height: 100vh;
        height: -webkit-fill-available;
    }
    
    .mobile-nav-actions {
        margin-top: 1rem;
        gap: 0.75rem;
    }
    
    .mobile-nav-actions .qlower-btn-demo,
    .mobile-nav-actions .qlower-btn-espace {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}