@charset "utf-8";

/*
    Vehicle inspections - /features/inspections.

    ? Five facts: a form builder lets a shop drag fields into the order a technician works in; a
    ? shop can build as many forms as it needs (a safety inspection, a pre-purchase, a seasonal
    ? changeover); a completed inspection stays on the vehicle's own record; it prints or sends with
    ? a quote; and whoever is notified and allowed to see it is controlled by the shop. The hero
    ? dramatizes the form builder (the most visual of the five); the "as many forms" fact gets its own
    ? section because the catalog explicitly enumerates three form types; the rest are restated as a
    ? short fact list, the way the Client vehicles page closes its own remaining facts.

    ? This feature starts at Growth, so the hero carries the tier pill the generic template would
    ? also show - see $feature_badge, already computed by php/feature/page-setup.php.

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

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

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

.inspections-page .insp-hero-title,
.inspections-page .insp-section-title,
.inspections-page .fact-name,
.inspections-page .form-type-title {
    font-stretch: 76%;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

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

/*-------------------------------------------------------------------------------------------------
    Hero - dark, so the form builder is the lightest thing on the first screen
-------------------------------------------------------------------------------------------------*/

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

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

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

.inspections-page .insp-hero-eyebrow-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

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

.inspections-page .insp-hero-badge {
    background-color: rgba(251, 23, 43, 0.14);
    color: #ff8e97;
    border-color: rgba(251, 23, 43, 0.4);
}

.inspections-page .insp-hero-title {
    margin: 0 0 24px;
    font-size: clamp(40px, 4.8vw, 64px);
    line-height: 1;
    color: #ffffff;
    max-width: 17ch;
    text-wrap: balance;
}

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

.inspections-page .insp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

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

/*  The form builder -------------------------------------------------------------------------------- */

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

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

.inspections-page .builder-card-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--insp-muted);
}

.inspections-page .builder-rows {
    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 form builds in order, once. */
.inspections-page .builder-row {
    margin: 0;
    animation: builder-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(0.5s + var(--i, 0) * 0.85s);
}

.inspections-page .builder-row-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background-color: #ffffff;
    border: 1px dashed var(--insp-line);
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--insp-ink);
}

.inspections-page .builder-row-field i {
    color: var(--insp-red);
    font-size: 13px;
}

.inspections-page .builder-row-note {
    display: flex;
    justify-content: center;
}

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

.inspections-page .builder-row-vehicle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background-color: var(--insp-steel);
    border-radius: 10px;
}

.inspections-page .builder-row-vehicle i {
    font-size: 17px;
    color: #ffffff;
    flex: none;
}

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

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

.inspections-page .builder-row-report {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background-color: #ffffff;
    border: 1px solid var(--insp-line);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--insp-ink);
}

.inspections-page .builder-row-report i {
    color: var(--insp-red);
}

.inspections-page .builder-card-caption {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--insp-muted);
}

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

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

    .inspections-page .builder-row {
        animation: none;
    }
}

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

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

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

/*-------------------------------------------------------------------------------------------------
    As many forms as you need
-------------------------------------------------------------------------------------------------*/

.inspections-page .insp-forms {
    background-color: #ffffff;
    padding: clamp(56px, 8vw, 104px) 0;
}

.inspections-page .form-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.inspections-page .form-type-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background-color: var(--insp-concrete);
    border-radius: var(--mp-radius-lg, 12px);
    padding: 24px 22px;
}

.inspections-page .form-type-icon {
    font-size: 22px;
    color: var(--insp-red);
}

.inspections-page .form-type-title {
    margin: 0;
    font-size: 19px;
    color: var(--insp-ink);
}

.inspections-page .form-type-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--insp-text);
}

/*-------------------------------------------------------------------------------------------------
    What happens once it's submitted
-------------------------------------------------------------------------------------------------*/

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

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

.inspections-page .insp-facts-head {
    position: sticky;
    top: 110px;
}

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

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

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

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

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

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

@media (max-width: 991px) {

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

    .inspections-page .insp-hero-title {
        max-width: 20ch;
    }

    .inspections-page .builder-card {
        margin-left: 0;
    }

    .inspections-page .insp-facts-head {
        position: static;
    }

    .inspections-page .insp-facts-inner {
        gap: 28px;
    }
}

@media (max-width: 767px) {

    .inspections-page .insp-hero-actions .btn {
        width: 100%;
    }

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

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