/* Mobile Navigation Menu */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(20, 27, 45, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    padding: 0.5rem 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 999;
}

/* Adjust for pages with announcement banner */
.has-banner .mobile-nav {
    top: 104px;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-light, rgba(255, 255, 255, 0.7));
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--white, #fff);
    background: var(--navy-light, #1E2A45);
    border-left-color: var(--blue, #3B82F6);
}

/* Mobile CTA button in dropdown */
.mobile-nav-cta {
    display: block;
    margin: 0.75rem 1.5rem 1rem;
    padding: 0.875rem 1.5rem;
    background: var(--teal, #10B981);
    color: var(--white, #fff);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.mobile-nav-cta:hover,
.mobile-nav-cta:active {
    background: #0D9668;
}

/* Responsive text helpers for nav buttons */
.nav-right .short-text {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        order: 3;
        margin-left: 0.5rem;
    }

    .mobile-nav {
        display: block;
    }

    .nav-inner {
        position: relative;
    }

    .nav-center {
        display: none;
    }

    .logo {
        flex: 1;
    }

    .logo img {
        height: 22px;
        width: auto;
    }

    .nav-right {
        display: flex !important;
        align-items: center;
        order: 2;
    }

    .nav-right .btn-ghost {
        display: none;
    }

    .nav-right .btn-primary {
        padding: 0.4375rem 0.875rem;
        font-size: 0.8125rem;
    }

    .nav-right .full-text {
        display: none;
    }

    .nav-right .short-text {
        display: inline;
    }
}
