/* ===================================
   MOBILE MENU STYLES
   =================================== */

/* Hide mobile menu elements on desktop */
.mobile-menu-btn {
    display: none;
}

.mobile-menu,
.mobile-menu-overlay {
    display: none;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {

    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
    }

    .mobile-menu-btn .hamburger-line {
        width: 24px;
        height: 2px;
        background: var(--color-text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Menu Panel */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85%;
        height: 100vh;
        background: white;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .mobile-menu.active {
        right: 0;
    }

    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mobile-menu-logo img {
        height: 40px;
        width: auto;
    }

    .mobile-menu-close {
        background: transparent;
        border: none;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
        color: var(--color-text-primary);
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
    }

    .mobile-menu-close:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    /* Mobile Menu Navigation */
    .mobile-menu-nav {
        padding: 1rem 0;
    }

    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav-list li {
        margin: 0;
    }

    .mobile-nav-link {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--color-text-primary);
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: rgba(34, 197, 94, 0.08);
        border-left-color: var(--color-primary);
        color: var(--color-primary);
    }

    /* Mobile Menu CTA */
    .mobile-menu-cta {
        padding: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .mobile-cta-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        text-align: center;
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}