﻿/* ===== NAV RESPONSIVE ===== */

.desktop-nav,
.desktop-actions {
    display: flex;
}

.mobile-topbar,
.mobile-overlay,
.mobile-drawer {
    display: none;
}

/* MOBILE TOP */
.mobile-topbar {
    width: 100%;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1002;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

    .menu-toggle span {
        display: block;
        width: 34px;
        height: 4px;
        background: #FFF;
        border-radius: 999px;
        transition: 0.25s ease;
    }

.mobile-current-page {
    color: #FFF;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

/* OVERLAY */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 1000;
}

    .mobile-overlay.open {
        opacity: 1;
        visibility: visible;
    }

/* DRAWER */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    max-width: 85%;
    height: 100vh;
    background: #0B0B0B;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
    padding: 24px 20px;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

    .mobile-drawer.open {
        transform: translateX(0);
    }

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.mobile-drawer-logo {
    max-width: 120px;
    height: auto;
}

.drawer-close {
    border: 0;
    background: transparent;
    color: #FFF;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav a {
    display: block;
    color: #FFF;
    text-decoration: none;
    padding: 12px 0;
    font-size: 18px;
}

    .mobile-nav a.active {
        font-weight: 700;
    }

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
    padding-top: 30px;
}

/* OVERLAY */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 1000;
}

    .mobile-overlay.open {
        opacity: 1;
        visibility: visible;
    }

/* DRAWER */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 290px;
    min-width: 0;
    height: 100dvh;
    background: #0B0B0B;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
    padding: 20px 18px 24px 18px;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

    .mobile-drawer.open {
        transform: translateX(0);
    }

.mobile-topbar {
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

    .mobile-topbar.hide {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 26px;
}

.mobile-drawer-logo {
    max-width: 105px;
    height: auto;
}

.drawer-close {
    border: 0;
    background: transparent;
    color: #FFF;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav a {
    display: block;
    color: #FFF;
    text-decoration: none;
    padding: 10px 0;
    font-size: 16px;
}

    .mobile-nav a.active {
        font-weight: 700;
    }

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 28px;
}

@media (max-width: 1024px) {
    .nav-bar {
        padding: 24px 20px 0 20px;
        align-items: center;
    }

    .logo-menu,
    .desktop-actions {
        display: none;
    }

    .mobile-topbar {
        display: flex;
    }

    .mobile-overlay {
        display: block;
    }

    .mobile-drawer {
        display: flex;
        width: 82%;
        max-width: 290px;
    }
}

@media (max-width: 430px) {
    .nav-bar {
        padding: 20px 16px 0 16px;
    }

    .mobile-current-page {
        font-size: 18px;
    }

    .menu-toggle span {
        width: 32px;
    }

    .mobile-drawer {
        width: 84%;
        max-width: 250px;
        padding: 18px 16px 22px 16px;
    }

    .mobile-drawer-logo {
        max-width: 92px;
    }

    .drawer-close {
        font-size: 24px;
    }

    .mobile-nav a {
        font-size: 15px;
        padding: 9px 0;
    }
}

@media (max-width: 320px) {
    .mobile-drawer {
        width: 86%;
        max-width: 230px;
        padding: 16px 14px 20px 14px;
    }

    .mobile-drawer-logo {
        max-width: 84px;
    }

    .mobile-current-page {
        font-size: 16px;
    }
}
