.hero {
    background-color: var(--navy);
    color: #ffffff;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 72px 32px 80px;

    &:not(:has(.hero-feature)) {
        grid-template-columns: 1fr;
    }
}

.hero h1 {
    font-weight: 800;
    font-size: calc(52rem / 16);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;

    em {
        font-style: normal;
        color: var(--gold);
    }
}

.hero-copy p {
    margin-top: 20px;
    max-width: 32em;
    font-size: calc(20rem / 16);
    line-height: 1.5;
    color: var(--navy-text);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.hero-feature {
    position: relative;
    display: block;

    img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        background-size: cover;
        background-position: center;
        border-radius: var(--radius);
        box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
    }
}

.hero-feature-tag {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(13, 27, 47, 0.92);
    border-radius: 8px;
    font-size: calc(15rem / 16);
    line-height: 1.3;
    color: var(--navy-text);

    b {
        display: block;
        font-family: var(--font-display);
        font-size: calc(20rem / 16);
        color: #ffffff;
    }
}

.hero-feature-price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: calc(32rem / 16);
    color: var(--gold);
    white-space: nowrap;
}

.info-strip {
    background-color: var(--red);
    color: #ffffff;
}

.info-strip-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 16px 32px;
    font-weight: 500;
    font-size: calc(17rem / 16);

    > div {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .icon {
        color: var(--gold);
    }
}

.info-strip-status::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.info-strip-status.is-open::before {
    background: #7dff9b;
    box-shadow: 0 0 0 4px rgba(125, 255, 155, 0.25);
}

.info-strip-status.is-closed::before {
    background: var(--navy-text);
}

.inventory {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 88px 32px 72px;
    width: 100%;
}

#lot {
    display: block;
}

.inventory-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;

    h2 {
        font-weight: 800;
        font-size: calc(40rem / 16);
        line-height: 1.1;
        letter-spacing: -0.02em;
        color: var(--navy);
    }

    p {
        margin-top: 8px;
        font-size: calc(17rem / 16);
        color: var(--ink-soft);
    }
}

.inventory-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

/* Staff only, sized to the sort chips beside it */
.inventory-add {
    min-height: 44px;
    padding: 0 20px;
    font-size: calc(17rem / 16);
}

.inventory-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 16px;
        border: 2px solid var(--steel);
        border-radius: 999px;
        background-color: #ffffff;
        font-weight: 700;
        font-size: calc(17rem / 16);
        transition: border-color 160ms ease-out;

        &:hover {
            border-color: var(--navy);
        }

        &[aria-current] {
            border-color: var(--navy);
            background-color: var(--navy);
            color: #ffffff;
        }
    }
}

.repair {
    background-color: #ffffff;
}

.repair-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 80px 32px;

    h2 {
        font-weight: 800;
        font-size: calc(40rem / 16);
        line-height: 1.1;
        letter-spacing: -0.02em;
        color: var(--navy);
        text-wrap: balance;
    }

    p {
        max-width: 36em;
        font-size: calc(17rem / 16);
        line-height: 1.5;
        color: #3d4148;
    }

    .button {
        margin-top: 24px;
    }
}

@media (width < 56.25rem) {
    .hero-inner,
    .repair-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 16px 48px;
    }

    .hero h1 {
        font-size: calc(40rem / 16);
    }

    .hero-copy p {
        font-size: calc(17rem / 16);
    }

    /* Phones: the tag sits under the photo, so it never covers the car */
    .hero-feature img {
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .hero-feature-tag {
        position: static;
        padding: 12px 16px;
        border-radius: 0 0 var(--radius) var(--radius);

        b {
            font-size: calc(17rem / 16);
        }
    }

    .hero-feature-price {
        font-size: calc(24rem / 16);
    }

    .info-strip-inner {
        flex-direction: column;
        padding: 16px;
        font-size: calc(17rem / 16);
    }

    .inventory {
        padding: 48px 16px;
    }

    .inventory-head h2,
    .repair-inner h2 {
        font-size: calc(32rem / 16);
    }
}
