/* ============================================
   MOBILE NAVIGATION - STANDALONE SYSTEM
   Version: 1.0
   
   This is a completely separate mobile navigation
   system that only appears on mobile devices.
   It's independent from the desktop navigation.
   ============================================ */

/* ============================================
   HIDE ON DESKTOP
   ============================================ */
@media (min-width: 1024px) {
    .mobile-nav-wrapper {
        display: none !important;
    }
}

/* ============================================
   MOBILE ONLY STYLES
   ============================================ */
@media (max-width: 1023px) {
    /* Mobile Header */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2000;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .mobile-header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        max-width: 100%;
    }
    
    .mobile-logo img {
        height: 36px;
        width: auto;
    }
    
    /* Mobile Toggle Button */
    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 48px;
        height: 48px;
        padding: 12px;
        background: transparent;
        border: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-nav-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background: #1E3A5F;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Mobile Overlay */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 2050;
    }
    
    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile Menu */
    .mobile-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 30px rgba(0,0,0,0.2);
        overflow-y: auto;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2100;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-nav-menu.active {
        right: 0;
    }
    
    /* Mobile Nav Header */
    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #E9ECEF;
        flex-shrink: 0;
    }
    
    .mobile-nav-title {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.125rem;
        font-weight: 700;
        color: #1E3A5F;
    }
    
    .mobile-nav-close {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        color: #6C757D;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-nav-close:active {
        color: #1E3A5F;
    }
    
    /* Mobile Nav List */
    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
        flex: 1;
        overflow-y: auto;
    }
    
    .mobile-nav-item {
        border-bottom: 1px solid #F8F9FA;
    }
    
    /* Mobile Nav Links */
    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        font-family: 'Montserrat', sans-serif;
        font-size: 1rem;
        font-weight: 600;
        color: #343A40;
        text-decoration: none;
        background: transparent;
        border: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: rgba(247, 181, 0, 0.1);
        min-height: 52px;
    }
    
    .mobile-nav-link svg {
        flex-shrink: 0;
        color: #F7B500;
    }
    
    .mobile-nav-link span {
        flex: 1;
    }
    
    .mobile-nav-link:active {
        background: #F8F9FA;
        color: #1E3A5F;
    }
    
    /* Dropdown Toggle */
    .mobile-nav-dropdown-toggle {
        justify-content: space-between;
    }
    
    .mobile-nav-arrow {
        flex-shrink: 0;
        color: #6C757D;
        transition: transform 0.3s ease;
    }
    
    .mobile-nav-item-dropdown.open .mobile-nav-arrow {
        transform: rotate(180deg);
    }
    
    /* Dropdown Menu */
    .mobile-nav-dropdown {
        list-style: none;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        background: #F8F9FA;
        transition: max-height 0.3s ease;
    }
    
    .mobile-nav-item-dropdown.open .mobile-nav-dropdown {
        max-height: 500px;
    }
    
    .mobile-nav-dropdown li {
        border-bottom: 1px solid #E9ECEF;
    }
    
    .mobile-nav-dropdown li:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-dropdown-link {
        display: block;
        padding: 14px 20px 14px 52px;
        font-family: 'Open Sans', sans-serif;
        font-size: 0.9375rem;
        font-weight: 500;
        color: #495057;
        text-decoration: none;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: rgba(247, 181, 0, 0.1);
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .mobile-nav-dropdown-link:active {
        background: #E9ECEF;
        color: #1E3A5F;
    }
    
    .mobile-nav-view-all {
        font-weight: 600;
        color: #F7B500;
    }
    
    /* Mobile Nav CTA */
    .mobile-nav-cta {
        padding: 20px;
        border-top: 1px solid #E9ECEF;
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex-shrink: 0;
    }
    
    .mobile-nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 20px;
        font-family: 'Montserrat', sans-serif;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        border-radius: 50px;
        transition: all 0.2s ease;
        min-height: 52px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-nav-btn svg {
        flex-shrink: 0;
    }
    
    .mobile-nav-btn-phone {
        background: #2ECC71;
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(46, 204, 113, 0.4);
    }
    
    .mobile-nav-btn-phone:active {
        background: #27ae60;
        transform: translateY(1px);
    }
    
    .mobile-nav-btn-primary {
        background: #F7B500;
        color: #1E3A5F;
        box-shadow: 0 4px 14px rgba(247, 181, 0, 0.4);
    }
    
    .mobile-nav-btn-primary:active {
        background: #d99e00;
        transform: translateY(1px);
    }
    
    /* Prevent body scroll when menu is open */
    body.mobile-nav-open {
        overflow: hidden;
    }
    
    /* Add top padding to body to account for fixed header */
    body {
        padding-top: 60px;
    }
}

/* ============================================
   SMALL MOBILE ADJUSTMENTS
   ============================================ */
@media (max-width: 375px) {
    .mobile-nav-menu {
        width: 100%;
        max-width: 100vw;
    }
    
    .mobile-nav-link {
        font-size: 0.9375rem;
        padding: 14px 16px;
    }
    
    .mobile-nav-dropdown-link {
        padding: 12px 16px 12px 48px;
        font-size: 0.875rem;
    }
}