/* 
 * App-style Mobile Menu
 * A professional, modern mobile menu that functions like a native app
 * This is completely separate from desktop menu styling
 */

/* Only apply these styles on mobile devices */
@media (max-width: 991px) {
    /* Hide the standard Bootstrap navbar on mobile */
    .navbar-expand-lg .navbar-collapse {
        display: none !important;
    }
    
    /* Show the custom mobile menu when toggled */
    .navbar-expand-lg .navbar-collapse.show-mobile-menu {
        display: block !important;
    }
    
    /* Mobile menu container */
    .app-mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Backdrop */
    .app-mobile-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* Active states */
    .app-mobile-menu.active {
        transform: translateX(0);
    }
    
    .app-mobile-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Menu header */
    .app-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .app-mobile-logo {
        height: 40px;
        width: auto;
    }
    
    .app-mobile-close {
        border: none;
        background: none;
        font-size: 20px;
        color: #333;
        cursor: pointer;
        padding: 5px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.2s ease;
    }
    
    .app-mobile-close:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    /* Menu list */
    .app-mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .app-mobile-menu-item {
        position: relative;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .app-mobile-menu-link {
        display: block;
        padding: 15px;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.2s ease;
    }
    
    .app-mobile-menu-link:hover {
        background-color: rgba(0, 0, 0, 0.02);
    }
    
    .app-mobile-menu-link.active {
        color: #FF7A5C;
        background-color: rgba(255, 122, 92, 0.05);
    }
    
    /* Submenu toggle button */
    .app-mobile-submenu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 50px;
        border: none;
        background: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        transition: background-color 0.2s ease;
    }
    
    .app-mobile-submenu-toggle:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    /* Submenu */
    .app-mobile-submenu {
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: #f9f9f9;
        display: none;
    }
    
    /* Submenu first level items */
    .app-mobile-submenu > .app-mobile-menu-item > .app-mobile-menu-link {
        padding-left: 25px;
        font-weight: normal;
        position: relative;
    }
    
    .app-mobile-submenu > .app-mobile-menu-item > .app-mobile-menu-link::before {
        content: "";
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #FF7A5C;
    }
    
    /* Nested submenu */
    .app-mobile-submenu.nested-submenu {
        background-color: #f1f1f1;
    }
    
    /* Nested submenu items */
    .app-mobile-submenu.nested-submenu > .app-mobile-menu-item > .app-mobile-menu-link {
        padding-left: 35px;
        font-weight: normal;
        position: relative;
    }
    
    .app-mobile-submenu.nested-submenu > .app-mobile-menu-item > .app-mobile-menu-link::before {
        content: "";
        position: absolute;
        left: 25px;
        top: 50%;
        transform: translateY(-50%);
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background-color: #FF7A5C;
    }
    
    /* Toggle button for nested submenu */
    .app-mobile-submenu-toggle.level-2 {
        background-color: rgba(0, 0, 0, 0.03);
    }
    
    /* CTA section */
    .app-mobile-cta {
        padding: 20px 15px;
        border-bottom: 1px solid #eee;
    }
    
    .app-mobile-cta-button {
        display: block;
        width: 100%;
        padding: 12px 20px;
        background-color: #FF7A5C;
        color: #fff;
        text-align: center;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.2s ease;
    }
    
    .app-mobile-cta-button:hover {
        background-color: #ff6843;
        color: #fff;
        text-decoration: none;
    }
    
    /* Contact section */
    .app-mobile-contact {
        padding: 20px 15px;
        border-bottom: 1px solid #eee;
    }
    
    .app-mobile-contact-title {
        margin: 0 0 15px;
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }
    
    .app-mobile-contact-item {
        display: block;
        padding: 8px 0;
        color: #666;
        text-decoration: none;
    }
    
    .app-mobile-contact-item i {
        margin-right: 10px;
        color: #FF7A5C;
    }
    
    /* Social links */
    .app-mobile-social {
        padding: 20px 15px;
        display: flex;
        gap: 15px;
    }
    
    .app-mobile-social-link {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #f1f1f1;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    
    .app-mobile-social-link:hover {
        background-color: #FF7A5C;
        color: #fff;
        text-decoration: none;
    }
    
    /* Mobile menu toggle button */
    .app-mobile-toggle {
        display: none;
        border: none;
        background: none;
        font-size: 22px;
        color: #333;
        cursor: pointer;
        padding: 5px;
        margin-left: 15px;
    }
    
    @media (max-width: 991px) {
        .app-mobile-toggle {
            display: block;
        }
        
        /* Hide hamburger icon from bootstrap navbar */
        .navbar-toggler {
            display: none !important;
        }
    }
} 