/* =============================================
   GLOBAL NAVBAR — Athleats-style
   Floating pill, dark glassmorphism
   ============================================= */

/* ---- Desktop Navbar ---- */
.athleats-nav {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1320px;
    height: 60px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem 0 1.5rem;
    background: linear-gradient(135deg,
            rgba(40, 40, 40, 0.55) 0%,
            rgba(60, 60, 60, 0.45) 40%,
            rgba(80, 80, 80, 0.35) 70%,
            rgba(50, 50, 50, 0.50) 100%);
    backdrop-filter: blur(28px) saturate(200%) brightness(1.1);
    -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.athleats-nav.nav-scrolled {
    background: linear-gradient(135deg,
            rgba(25, 25, 25, 0.78) 0%,
            rgba(45, 45, 45, 0.68) 50%,
            rgba(30, 30, 30, 0.75) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ---- LEFT: Nav Links ---- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active-link {
    color: #ffffff;
    font-weight: 600;
}

/* ---- CENTER: Logo ---- */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    text-decoration: none;
    padding: 0 1.5rem;
}

.nav-logo img {
    height: 36px;
    width: auto;
    border-radius: 6px;
}

/* ---- RIGHT: CTA Button ---- */
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 0.5rem;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #0a0a0a;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.55rem 1.4rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.nav-cta:hover {
    background: #f0f0f0;
    transform: scale(1.03);
}

/* ---- Mobile Hamburger ---- */
.mobile-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    margin-left: 0.25rem;
    padding: 0;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.mobile-hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hamburger-line::before,
.hamburger-line::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 0;
}

.hamburger-line::before {
    top: -6px;
}

.hamburger-line::after {
    top: 6px;
}

/* Hamburger X state */
.mobile-hamburger.is-active .hamburger-line {
    background: transparent;
}

.mobile-hamburger.is-active .hamburger-line::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-hamburger.is-active .hamburger-line::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---- Mobile Drawer ---- */
.mobile-drawer {
    position: fixed;
    top: 80px;
    left: 1rem;
    right: 1rem;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    padding: 1rem 1rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.mobile-drawer.is-open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-drawer a {
    display: block;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.mobile-drawer a:hover,
.mobile-drawer a.active-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-hamburger {
        display: flex;
    }

    .athleats-nav {
        padding: 0 0.5rem 0 1rem;
        height: 56px;
        top: 10px;
        width: calc(100% - 1.25rem);
    }

    .nav-logo {
        flex: 1;
        justify-content: flex-start;
        padding: 0 0.5rem;
    }

    .nav-logo img {
        height: 32px;
    }

    .nav-right {
        flex: 0 0 auto;
    }

    .nav-cta {
        font-size: 0.78rem;
        padding: 0.5rem 1.1rem;
    }
}

/* ---- Spacer for fixed nav ---- */
.nav-spacer {
    height: 84px;
}

/* ---- Hide old logo wrapper ---- */
.fixed-logo-wrapper {
    display: none !important;
}