/* ============================================================
   Location Spoke — Sub Navigation
   File: assets/css/spoke/spoke-subnav.css
   Scope: .spoke-subnav__* classes only
   Figma: node 2117:647 — cream bar, state label + city links
   (active city bold/underlined) + phone on the right.
   Uses --spoke-* tokens from spoke-base.css. Desktop width 1440px.
   ============================================================ */

.spoke-subnav {
    background: var(--spoke-cream);
    border-top: 1px solid var(--spoke-border);
    border-bottom: 1px solid var(--spoke-border);
    padding: 16px 0;
}

.spoke-subnav__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.spoke-subnav__cities {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.spoke-subnav__phone {
    grid-column: 3;
    justify-self: end;
}

.spoke-subnav__state {
    font-family: var(--spoke-font-sans);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--spoke-navy);
    text-decoration: none;
    transition: color 0.15s;
}

a.spoke-subnav__state:hover {
    color: var(--spoke-blue);
    text-decoration: none;
}

.spoke-subnav__city {
    font-family: var(--spoke-font-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--spoke-grey);
    text-decoration: none;
    transition: color 0.15s;
}

.spoke-subnav__city:hover {
    color: var(--spoke-navy);
    text-decoration: none;
}

.spoke-subnav__city.is-active {
    color: var(--spoke-navy);
    font-weight: 700;
    text-decoration: none;
    /* box-shadow underline avoids adding to the element's layout height,
       which would shift the text upward in a center-aligned flex row —
       matches the hub sub-nav active-item treatment (blue 2px underline). */
    box-shadow: 0 2px 0 0 var(--spoke-blue);
}

.spoke-subnav__city.is-active:hover {
    color: var(--spoke-navy);
}

.spoke-subnav__phone a {
    font-family: var(--spoke-font-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--spoke-navy);
    text-decoration: none;
    white-space: nowrap;
}

.spoke-subnav__phone a:hover {
    color: var(--spoke-blue);
    text-decoration: none;
}


/* ============================
   RESPONSIVE — SUB NAV
   ============================ */

@media (max-width: 1024px) {
    .spoke-subnav__row { gap: 16px; }
    .spoke-subnav__cities { gap: 20px; }
}

@media (max-width: 768px) {
    .spoke-subnav__cities {
        display: none;
    }

    .spoke-subnav__row {
        /* only the phone remains — fall back to flex to centre it since the
           grid's middle column has nothing left to size itself on (hub parity) */
        display: flex;
        justify-content: center;
    }

    .spoke-subnav__phone {
        justify-self: auto;
    }

    .spoke-subnav__phone a {
        font-size: 15px;
    }
}
