@charset "utf-8";

/*
    Home page.
    ? Only what is unique to it - the shared sections it is built from are in css/shared/site.css.
*/

/*-------------------------------------------------------------------------------------------------
    Hero
-------------------------------------------------------------------------------------------------*/

/*  Rebuild of the live site's Slider Revolution hero. Its real heights are
    650 / 650 / 768 / 960 / 720 across SR7's breakpoints (1240 / 1024 / 778 / 480), growing
    shorter-then-taller as the layers stack - which is what the min-heights below reproduce.

    ? The background is a 1920x900 gradient that is nearly black with a red glow in its top left.
    ? It is painted over the steel ground rather than instead of it, so the section still reads as
    ? dark if the image 404s. */
.home-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background-color: #0b0e12;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    padding: 70px 0;
    overflow: hidden;
}

.home-hero-inner {
    display: flex;
    align-items: center;
    gap: 56px;
    width: 100%;
}

.home-hero-copy {
    flex: 1 1 54%;
    min-width: 0;
}

.home-hero-title {
    margin: 0 0 22px;
    font-size: 60px;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.home-hero-title-line,
.home-hero-title-accent {
    display: block;
}

.home-hero-title-accent {
    color: var(--mp-red);
}

.home-hero-lede {
    margin: 0 0 30px;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.76);
    max-width: 60ch;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

/*  The quiet button on the hero. Not .btn-ghost, whose border and hover fill are drawn for the
    light sections further down the page and vanish on this ground. */
.btn-hero-ghost,
.btn-hero-ghost:focus {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.38);
    color: #ffffff;
}

.btn-hero-ghost:hover {
    background-color: rgba(255, 255, 255, 0.10);
    border-color: #ffffff;
    color: #ffffff;
}

.home-hero-stamp {
    display: block;
    width: 168px;
    height: auto;
    /*  The stamp is printed on white with no transparency behind the ink, so on this ground it
        would sit in a white box. screen drops the white and keeps the red. */
    mix-blend-mode: screen;
    opacity: 0.92;
}

.home-hero-art {
    flex: 0 1 46%;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.home-hero-board {
    display: block;
    width: 100%;
    max-width: 572px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}

/*  SR7 breakpoint 1024: same height, narrower grid */
@media (max-width: 1199px) {

    .home-hero-title {
        font-size: 50px;
    }

    .home-hero-inner {
        gap: 36px;
    }
}

/*  SR7 breakpoint 778: the layers stack and the module gets taller, not shorter */
@media (max-width: 991px) {

    .home-hero {
        min-height: 0;
        padding: 60px 0;
    }

    .home-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .home-hero-copy,
    .home-hero-art {
        flex: 1 1 auto;
        width: 100%;
    }

    .home-hero-art {
        justify-content: flex-start;
    }

    .home-hero-title {
        font-size: 42px;
    }
}

@media (max-width: 767px) {

    .home-hero {
        padding: 44px 0;
    }

    .home-hero-title {
        font-size: 32px;
    }

    .home-hero-lede {
        font-size: 16px;
    }

    .home-hero-actions .btn {
        width: 100%;
    }

    .home-hero-stamp {
        width: 140px;
    }
}

/*  ? The two halves of the "not just cars" band are centred against each other, and the copy needs
    ? breathing room from the list beside it at desktop width. */
@media (min-width: 992px) {

    .breadth-band .breadth-row > .col-md-5 {
        padding-right: 40px;
    }
}

@media (max-width: 991px) {

    .breadth-band .breadth-row > .col-md-5 {
        margin-bottom: 28px;
    }
}

/*  The dark AEO band's two columns need the same treatment */
@media (min-width: 992px) {

    .aeo-band .col-md-7 {
        padding-right: 40px;
    }
}

@media (max-width: 991px) {

    .aeo-band .col-md-7 {
        margin-bottom: 26px;
    }
}
