@charset "utf-8";

/*
    Client vehicles - /features/vehicles.

    ? Five facts: a VIN decodes itself, mileage logs in whatever unit the shop uses, a photo and a
    ? tab sit on every vehicle, the fleet is wider than cars, and the book rolls up into analytics.
    ? The hero dramatizes the VIN decode (the most visual of the five); the body gets one section per
    ? remaining fact rather than one invented narrative stretched over all of them.

    ? Same ground as the rest of the site (concrete, the brand's steel, red used the way a shop uses
    ? paint). Scoped under .vehicles-page so the shared components keep their look elsewhere.
*/

.vehicles-page {
    --veh-concrete: #e8ebee;
    --veh-paper: #f4f6f7;
    --veh-line: #cdd4da;
    --veh-ink: #151b21;
    --veh-steel: #1f272f;
    --veh-text: #36424d;
    --veh-muted: #55616c;
    --veh-red: #fb172b;
    --veh-red-dark: #d9101f;

    font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-stretch: 100%;
    color: var(--veh-text);
}

.vehicles-page .veh-hero-title,
.vehicles-page .veh-section-title,
.vehicles-page .fact-name,
.vehicles-page .fleet-title {
    font-stretch: 76%;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.vehicles-page a:focus-visible {
    outline: 3px solid var(--veh-ink);
    outline-offset: 3px;
}

/*-------------------------------------------------------------------------------------------------
    Hero - dark, so the VIN decode is the lightest thing on the first screen
-------------------------------------------------------------------------------------------------*/

.vehicles-page .veh-hero {
    position: relative;
    background-color: var(--veh-ink);
    color: #c3ccd5;
    padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 88px);
}

.vehicles-page .veh-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--veh-red) 0 28px, transparent 28px 48px);
}

.vehicles-page .veh-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.vehicles-page .veh-hero-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--veh-red);
    margin: 0 0 14px;
}

.vehicles-page .veh-hero-title {
    margin: 0 0 24px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.98;
    color: #ffffff;
    max-width: 16ch;
    text-wrap: balance;
}

.vehicles-page .veh-hero-lede {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.6;
    color: #c3ccd5;
    max-width: 54ch;
}

.vehicles-page .veh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vehicles-page .btn-veh-ghost,
.vehicles-page .btn-veh-ghost:focus {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.vehicles-page .btn-veh-ghost:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--veh-ink);
}

/*  The VIN card ---------------------------------------------------------------------------------- */

.vehicles-page .vin-card {
    margin: 0 0 0 auto;
    width: 100%;
    max-width: 440px;
    background-color: var(--veh-paper);
    border-radius: 14px;
    padding: 18px 20px 20px;
    box-shadow: 0 40px 60px -36px rgba(0, 0, 0, 0.7);
}

.vehicles-page .vin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--veh-line);
    font-size: 15px;
    font-weight: 700;
    color: var(--veh-ink);
}

.vehicles-page .vin-card-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--veh-muted);
}

.vehicles-page .vin-card-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1f9d55;
}

.vehicles-page .vin-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*  ? The one thing on the page that moves by itself: the record decodes in order, once. */
.vehicles-page .vin-line {
    margin: 0;
    animation: vin-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(0.5s + var(--i, 0) * 0.85s);
}

.vehicles-page .vin-line-scan {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background-color: #ffffff;
    border: 1px solid var(--veh-line);
    border-radius: 10px;
}

.vehicles-page .vin-line-scan i {
    color: var(--veh-red);
    font-size: 15px;
}

.vehicles-page .vin-number {
    font-family: "Courier New", monospace;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--veh-ink);
}

.vehicles-page .vin-line-note {
    display: flex;
    justify-content: center;
}

.vehicles-page .vin-line-note span {
    padding: 5px 14px;
    background-color: #ffffff;
    border: 1.5px dashed var(--veh-red);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--veh-red-dark);
}

.vehicles-page .vin-line-vehicle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background-color: var(--veh-steel);
    border-radius: 10px;
}

.vehicles-page .vin-line-vehicle i {
    font-size: 17px;
    color: #ffffff;
    flex: none;
}

.vehicles-page .vin-vehicle-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.vehicles-page .vin-vehicle-sub {
    display: block;
    font-size: 12.5px;
    color: #9aa6b1;
}

.vehicles-page .vin-line-tabs {
    display: flex;
    gap: 16px;
    padding: 10px 14px 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--veh-muted);
}

.vehicles-page .vin-line-tabs span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vehicles-page .vin-line-tabs i {
    color: var(--veh-red);
    font-size: 12px;
}

.vehicles-page .vin-card-caption {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--veh-muted);
}

@keyframes vin-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {

    .vehicles-page .vin-line {
        animation: none;
    }
}

/*-------------------------------------------------------------------------------------------------
    Shared section heading
-------------------------------------------------------------------------------------------------*/

.vehicles-page .veh-section-title {
    margin: 0 0 18px;
    font-size: clamp(34px, 4.2vw, 50px);
    color: var(--veh-ink);
    text-wrap: balance;
}

.vehicles-page .veh-section-lede {
    margin: 0 0 clamp(32px, 4vw, 56px);
    font-size: 18px;
    line-height: 1.55;
    color: var(--veh-muted);
    max-width: 58ch;
}

/*-------------------------------------------------------------------------------------------------
    Built for more than cars - the fleet rail
-------------------------------------------------------------------------------------------------*/

.vehicles-page .veh-fleet {
    background-color: #ffffff;
    padding: clamp(56px, 8vw, 104px) 0;
}

.vehicles-page .fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.vehicles-page .fleet-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background-color: var(--veh-concrete);
    border-radius: var(--mp-radius-lg, 12px);
    padding: 22px 20px;
}

.vehicles-page .fleet-icon {
    font-size: 22px;
    color: var(--veh-red);
}

.vehicles-page .fleet-title {
    margin: 0;
    font-size: 17px;
    color: var(--veh-ink);
}

/*-------------------------------------------------------------------------------------------------
    What's on every vehicle - the two remaining facts
-------------------------------------------------------------------------------------------------*/

.vehicles-page .veh-facts {
    background-color: var(--veh-concrete);
    padding: clamp(56px, 8vw, 104px) 0;
}

.vehicles-page .veh-facts-inner {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: start;
}

.vehicles-page .veh-facts-head {
    position: sticky;
    top: 110px;
}

.vehicles-page .fact-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--veh-line);
}

.vehicles-page .fact-rows li {
    margin: 0;
    padding: 28px 0;
    border-top: 1px solid var(--veh-line);
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.vehicles-page .fact-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--veh-red);
    line-height: 1.4;
}

.vehicles-page .fact-name {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.3vw, 28px);
    color: var(--veh-ink);
}

.vehicles-page .fact-text {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--veh-text);
    max-width: 60ch;
}

/*-------------------------------------------------------------------------------------------------
    The whole book - analytics
-------------------------------------------------------------------------------------------------*/

.vehicles-page .veh-analytics {
    background-color: var(--veh-steel);
    color: #c3ccd5;
    padding: clamp(56px, 8vw, 104px) 0;
}

.vehicles-page .veh-analytics .veh-section-title {
    color: #ffffff;
}

.vehicles-page .veh-analytics .veh-section-lede {
    color: #b6c0ca;
}

.vehicles-page .analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.vehicles-page .analytics-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 22px 24px;
    color: var(--veh-text);
}

.vehicles-page .analytics-card-title {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--veh-muted);
}

.vehicles-page .bar-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vehicles-page .bar-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.vehicles-page .bar-row-make {
    font-weight: 700;
    color: var(--veh-ink);
}

.vehicles-page .bar-track {
    height: 10px;
    background-color: var(--veh-concrete);
    border-radius: 100px;
    overflow: hidden;
}

.vehicles-page .bar-fill {
    display: block;
    height: 100%;
    background-color: var(--veh-red);
    border-radius: 100px;
}

.vehicles-page .bar-row-value {
    text-align: right;
    color: var(--veh-muted);
    font-variant-numeric: tabular-nums;
}

.vehicles-page .quiet-card {
    background-color: var(--veh-ink);
    border-radius: 14px;
    padding: 22px 24px;
}

.vehicles-page .quiet-card-title {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9aa6b1;
}

.vehicles-page .quiet-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vehicles-page .quiet-rows li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}

.vehicles-page .quiet-name {
    color: #ffffff;
    font-weight: 600;
}

.vehicles-page .quiet-since {
    color: #9aa6b1;
    white-space: nowrap;
}

.vehicles-page .analytics-caption {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 13px;
    color: #9aa6b1;
}

/*-------------------------------------------------------------------------------------------------
    Responsive
-------------------------------------------------------------------------------------------------*/

@media (max-width: 991px) {

    .vehicles-page .veh-hero-inner,
    .vehicles-page .veh-facts-inner,
    .vehicles-page .analytics-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vehicles-page .veh-hero-title {
        max-width: 20ch;
    }

    .vehicles-page .vin-card {
        margin-left: 0;
    }

    .vehicles-page .veh-facts-head {
        position: static;
    }

    .vehicles-page .veh-facts-inner {
        gap: 28px;
    }
}

@media (max-width: 767px) {

    .vehicles-page .veh-hero-actions .btn {
        width: 100%;
    }

    .vehicles-page .fact-rows li {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .vehicles-page .fact-number {
        display: none;
    }

    .vehicles-page .bar-row {
        grid-template-columns: 76px minmax(0, 1fr) 52px;
    }
}
