/* ========================================
   NAV SIDEBAR — Uniquely-style
   ======================================== */

/* — Menu trigger button (left side of header) — */
.nav-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: opacity 0.2s;
}
.nav-menu-btn > span {
    display: none !important;
}

@media (hover: hover) {
    .nav-menu-btn:hover {
        opacity: 0.6;
    }
}

.nav-menu-btn .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-menu-btn .hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s, opacity 0.3s;
}

/* — Overlay — */
#navOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#navOverlay.active {
    opacity: 1;
    pointer-events: all;
}

/* — Sidebar panel — */
#navSidebar {
    position: fixed;
    top: 0;
    left: -360px;
    width: 320px;
    height: 100%;
    background: var(--bg-base);
    z-index: 1001;
    overflow-y: auto;
    padding: 0;
    transition: left 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

#navSidebar.active {
    left: 0;
}

/* Hide scrollbar on sidebar */
#navSidebar::-webkit-scrollbar {
    width: 0;
}

/* — Sidebar header — */
.nav-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.nav-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #1a1a1a;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

@media (hover: hover) {
    .nav-close-btn:hover {
        background: #1a1a1a;
        color: #fff;
    }
}

.nav-close-btn svg {
    width: 12px;
    height: 12px;
    display: block;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .nav-close-btn:hover svg {
        transform: rotate(90deg);
    }
}

/* — Sidebar section — */
.nav-section {
    padding: 12px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-section:last-child {
    border-bottom: none;
}

.nav-section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #aaaaaa;
    margin-bottom: 8px;
}

.nav-section-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    padding: 4px 0;
    display: block;
    transition: color 0.2s, padding-left 0.2s;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

@media (hover: hover) {
    .nav-link:hover {
        color: var(--gold);
        padding-left: 6px;
        border-bottom-color: var(--gold);
    }
}

/* — Contacts section — */
.nav-contacts {
    margin-top: auto;
    padding: 12px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-contacts .nav-section-label {
    margin-bottom: 6px;
}

.nav-contact-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #444;
    text-decoration: none;
    display: block;
    padding: 3px 0;
    transition: color 0.2s;
}

@media (hover: hover) {
    .nav-contact-item:hover {
        color: #1a1a1a;
    }
}

/* — Override: remove old nav-container — */
.nav-container {
    display: none !important;
}

@media (max-width: 768px) {
    .nav-menu-btn {
        left: 20px !important;
    }
}