/* ============================================================================
   CABSTATES — Navbar Styles
   Version: 2.0 | May 2026
   
   Logo text spec (locked by Dave):
     CABSTATES name  = 1rem    (DM Sans Bold)
     BUILD EVERYTHING = 0.6rem (DM Sans Regular) — readable minimum
     CAB  = white (#F5F5F5)
     STATES = yellow (#FFD700)
============================================================================ */

/* ============================================================================
   NAVIGATION BAR
============================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-5) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--yellow-border);
    padding: var(--space-4) 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* ============================================================================
   NAV INNER
============================================================================ */
.nav-inner {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    gap: var(--space-8);
}

/* ============================================================================
   LOGO
============================================================================ */
.nav-logo {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.nav-logo:hover {
    opacity: 0.9;
}

/* Square logo icon — SVG or PNG */
.nav-logo-icon {
    width: 40px;
    height: 40px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    display: block;
}

/* Text block beside logo */
.nav-logo-text {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}

/* CABSTATES wordmark — DM Sans Bold at 1rem (= X) */
.nav-logo-name {
    font-family: var(--font-body); /* DM Sans */
    font-size: 1rem;               /* X */
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);           /* CAB = white */
    line-height: 1;
}

/* STATES portion — yellow (locked by Dave) */
.nav-logo-accent {
    color: var(--yellow);          /* #FFD700 */
}

/* BUILD EVERYTHING tagline — DM Sans Regular at 0.6rem (= 0.6X) */
.nav-logo-tagline {
    font-family: var(--font-body); /* DM Sans */
    font-size: 0.6rem;             /* 0.6X — readable minimum */
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey-400);
    line-height: 1;
}

/* ============================================================================
   NAV LINKS
============================================================================ */
.nav-links {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--grey-400);
    text-decoration: none;
    transition: color var(--transition-base);
    position: relative;
    padding-bottom: 2px;
}

/* Animated underline on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--yellow);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--yellow);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Active page link */
.nav-links a.active {
    color: var(--yellow);
}

.nav-links a.active::after {
    width: 100%;
}

/* ============================================================================
   NAV CTA — Free ACCA Pack button
============================================================================ */
.nav-cta {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    background: var(--yellow);
    color: var(--black) !important; /* override link colour */
    padding: var(--space-3) var(--space-5);
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: var(--space-2);
}

.nav-cta::after {
    display: none; /* no underline on CTA button */
}

.nav-cta:hover {
    background: var(--yellow-light);
    color: var(--black) !important;
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    box-shadow: var(--shadow-yellow);
}

.nav-cta i {
    font-size: 0.75rem;
}

/* ============================================================================
   HAMBURGER — MOBILE TOGGLE
============================================================================ */
.nav-hamburger {
    display: none;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-2);
    background: none;
    border: none;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
    -webkit-transform-origin: center;
    transform-origin: center;
}

/* Hamburger open — X shape */
.nav-hamburger.open span:nth-child(1) {
    -webkit-transform: translateY(7px) rotate(45deg);
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
    -webkit-transform: translateY(-7px) rotate(-45deg);
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================================
   MOBILE NAV
============================================================================ */
@media (max-width: 768px) {
    .nav-hamburger {
        display: -webkit-flex;
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 10, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: center;
        align-items: center;
        -webkit-justify-content: center;
        justify-content: center;
        gap: var(--space-10);
        z-index: var(--z-overlay);
        border-top: 1px solid var(--yellow-border);
    }

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

    .nav-links a {
        font-size: var(--text-lg);
        color: var(--white);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        font-size: var(--text-base);
        padding: var(--space-4) var(--space-8);
    }
}

/* ============================================================================
   TABLET ADJUSTMENTS
============================================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-links {
        gap: var(--space-5);
    }

    .nav-logo-tagline {
        display: none;
    }
}