/* =============================================================================
   NAV.CSS
   Fixed navigation with light shell and restrained active state.
   ============================================================================= */

.nav-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(8, 27, 54, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-inner {
    width: min(1400px, calc(100% - 96px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo img {
    width: auto;
    height: 56px;
}

.nav-links {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 100%;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-active {
    color: var(--text-primary);
}

.nav-slider {
    position: absolute;
    left: 0;
    bottom: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
    pointer-events: none;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: var(--navy);
}

@media (max-width: 1024px) {
    :root {
        --nav-height: 72px;
    }

    .nav-inner {
        width: calc(100% - 32px);
    }

    .nav-logo img {
        content: url("../assets/LOGO/Logo Only Black Transparent.png");
        height: 46px;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: auto;
        display: none;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 18px 24px;
        border-top: 1px solid rgba(8, 27, 54, 0.06);
    }

    .nav-active {
        border-left: 3px solid var(--accent);
        padding-left: 21px;
    }

    .nav-slider {
        display: none !important;
    }

    .nav-toggle {
        display: block;
    }
}
