/* 
 * Global Lawyers - Responsive Styles & Mobile Hamburger Drawer Navigation
 */

/* Hamburger Button (Hidden on Desktop) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2005;
    padding: 0;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    background-color: var(--primary);
}

/* Mobile Off-Canvas Slide Drawer Navigation */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #0d121d;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.7);
    z-index: 2000;
    padding: 80px 24px 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-title {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: var(--transition);
}

.mobile-nav-list a i {
    color: var(--primary);
    width: 20px;
}

.mobile-nav-list a:hover, .mobile-nav-list a.active {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--primary);
}

.mobile-drawer-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mobile App Bottom Navigation Bar (Private Member Portal) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: rgba(13, 18, 29, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    z-index: 1050;
    padding: 8px 12px;
}

.mobile-bottom-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    text-align: center;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-decoration: none;
    padding: 6px 0;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.mobile-bottom-nav-item.active, .mobile-bottom-nav-item:hover {
    color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hamburger-btn {
        display: flex;
    }
    
    .desktop-nav {
        display: none !important;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .map-stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .mobile-bottom-nav {
        display: block;
    }

    /* Padding for bottom nav space on mobile view */
    body.in-app {
        padding-bottom: 70px;
    }
}
