/* ══════════════════════════════════════════════
   CrewLoyal — Navigation
   ══════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
    transition: background 0.3s ease;
}
.nav.menu-open {
    background: rgba(15, 23, 42, 0.97);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #F8FAFC;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}
.nav-brand .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.nav-brand .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Desktop nav links ────────────────────── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
    color: #E2E8F0;
    background: rgba(30, 41, 59, 0.7);
}

/* ── Hamburger toggle ─────────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
    gap: 4px;
    transition: background 0.2s;
}
.nav-toggle:hover {
    background: rgba(30, 41, 59, 0.9);
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #94A3B8;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 640px) {
    .nav-inner { padding: 12px 16px; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        padding: 8px 16px 16px;
        background: rgba(15, 23, 42, 0.97);
        border-bottom: 1px solid rgba(30, 41, 59, 0.6);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        width: 100%;
        font-size: 15px;
        padding: 10px 14px;
    }
}
