/* -----------------------------------------------------------------
   "Drivers Wanted" recruitment banner.

   Sits in the empty space to the right of the welcome text, and
   drops underneath it on tablets and phones.

   To hide the banner, add "banner-off" to the home-banner-slot div
   in index.html. No JavaScript involved.
   ----------------------------------------------------------------- */

/* Row holding the welcome text and the banner beside it. min-height
   lets it shrink so the welcome area and its scroll arrow behave
   exactly as they did before the banner existed. */
.home-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(30px, 4vw, 70px);
    width: 100%;
    min-height: 0;
}

#section-home .home-text-wrapper {
    width: auto;
    flex: 1 1 48%;
    min-width: 0;
}

.home-banner-slot {
    flex: 1 1 52%;
    min-width: 0;
    max-width: 640px;
}

.home-banner-slot.banner-off {
    display: none;
}

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

.drivers-banner {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    padding: clamp(26px, 2.6vw, 42px);
    border-radius: 40px;
    text-align: center;
    background: linear-gradient(150deg, #ffffff 0%, #eeeef0 45%, #d4d5d8 100%);
    box-shadow:
        0 1px 1px hsl(0deg 0% 0% / 0.075),
        0 2px 2px hsl(0deg 0% 0% / 0.075),
        0 4px 4px hsl(0deg 0% 0% / 0.075),
        0 8px 8px hsl(0deg 0% 0% / 0.075),
        0 16px 16px hsl(0deg 0% 0% / 0.075);
}

/* Soft highlight, mirrors the brushed-silver look of the printed advert */
.drivers-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.drivers-banner > * {
    position: relative;
}

/* --- Heading ---------------------------------------------------- */

.drivers-banner-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.6vw, 24px);
}

.drivers-banner-heading img {
    height: clamp(40px, 4.2vw, 68px);
    flex-shrink: 0;
}

.drivers-banner-heading h2 {
    min-width: 0;
    margin: 0;
    font-size: clamp(28px, 3.1vw, 50px);
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a97f42;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .drivers-banner-heading h2 {
        background-image: linear-gradient(180deg, #e3c286 0%, #b98f4e 45%, #8a6631 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* --- Body copy -------------------------------------------------- */

.drivers-banner-body {
    margin-top: clamp(16px, 1.6vw, 24px);
}

.drivers-banner-body p {
    max-width: 800px;
    margin: 0 auto 14px auto;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.65;
    color: #14181b;
}

.drivers-banner-body p.drivers-signoff {
    margin: 25px auto 0 auto;
    font-weight: 700;
}

/* --- Contact buttons -------------------------------------------- */

.drivers-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 0 0;
    padding: 0;
}

.drivers-contact li {
    margin: 0;
}

.drivers-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--button-radius);
    background-color: #14181b;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.drivers-contact a i {
    font-size: 15px;
}

@media (hover: hover) and (pointer: fine) {
    .drivers-contact a:hover {
        background-color: var(--accent-color);
        transform: scale(1.05);
    }
}

/* --- App footnote ----------------------------------------------- */

.drivers-app {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: clamp(25px, 4vw, 40px);
    padding-top: clamp(20px, 3vw, 30px);
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.drivers-app img {
    height: 46px;
    flex-shrink: 0;
}

.drivers-app p {
    max-width: 560px;
    margin: 0;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    color: #4a4a4a;
}

.drivers-app a {
    color: #14181b;
    font-weight: 600;
    text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
    .drivers-app a:hover {
        color: var(--accent-color);
    }
}

/* -----------------------------------------------------------------
   Collapse to a single column before the two columns get cramped
   ----------------------------------------------------------------- */

@media (max-width: 1100px) {
    .home-main {
        flex-direction: column;
        gap: 40px;
    }

    #section-home .home-wrapper {
        height: auto;
        gap: 40px;
    }

    /* Without the full height welcome block the fixed header would
       overlap the heading, so hold the content clear of it. */
    #section-home .home-text-wrapper {
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        padding-top: 100px;
    }

    .home-banner-slot {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
    }

    .drivers-banner-heading h2 {
        font-size: clamp(32px, 5.5vw, 62px);
    }

    .drivers-banner-heading img {
        height: clamp(46px, 7vw, 90px);
    }

    .drivers-banner-body p {
        font-size: clamp(15px, 1.7vw, 17px);
    }
}

/* --- Small screens ---------------------------------------------- */

@media (max-width: 767px) {
    .drivers-banner {
        padding: 30px 20px;
        border-radius: 30px;
    }

    #section-home .home-text-wrapper {
        padding-top: 80px;
    }

    .drivers-contact {
        flex-direction: column;
        align-items: stretch;
    }

    .drivers-contact a {
        justify-content: center;
    }

    .drivers-app {
        flex-direction: column;
        gap: 12px;
    }

    .drivers-app p {
        text-align: center;
    }
}

/* Smallest phones - keep the tigers from crowding the heading */
@media (max-width: 420px) {
    .drivers-banner-heading {
        gap: 8px;
    }

    .drivers-banner-heading img {
        height: 38px;
    }
}
