/* ── Banner ─────────────────────────────────────────────────
   Figma: Banners (3295:40985). The photo fills the section;
   a dark gradient keeps the white text readable.
   ─────────────────────────────────────────────────────────── */

.hero-banner {
    position: relative;
    display: flex;
    overflow: hidden;
    padding: 60px var(--pad-x);
    background: var(--color-secondary);
    color: var(--color-white);
}

.hero-banner--medium {
    min-height: 340px;
}

.hero-banner__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 600ms ease;
}

/* Fades in over the image once it's actually playing. */
.hero-banner__video.is-playing {
    opacity: 1;
}

/* The overlay covers the whole section, above the photo and video, below
   the text. */
.hero-banner::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
}

.hero-banner__inner {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: var(--site-max-w);
    margin: 0 auto;
}

.hero-banner__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    filter: drop-shadow(0 0 6px rgb(0 0 0 / 0.12));
}

.hero-banner__headings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-banner__eyebrow {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.hero-banner__title {
    max-width: 990px;
    font-size: 60px;
    font-weight: 600;
    line-height: 60px;
    text-transform: capitalize;
}

.hero-banner__text {
    max-width: 733px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.hero-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.hero-banner__buttons .button--primary {
    min-width: 251px;
}

.hero-banner__buttons .button--secondary {
    min-width: 177px;
}

/* Home — tall, headings and buttons centred down the left */
.hero-banner--home {
    min-height: 578px;
    padding-block: 80px;
}

.hero-banner--home::before {
    background: linear-gradient(90deg, rgb(0 0 0 / 0.63) 0, rgb(0 0 0 / 0) 100%);
}

.hero-banner--home .hero-banner__inner {
    align-items: center;
}

/* The text sits 40px under the headings, the buttons 40px under that. */
.hero-banner--home .hero-banner__content {
    gap: 0;
}

.hero-banner--home .hero-banner__title {
    max-width: 600px;
}

.hero-banner--home .hero-banner__text {
    max-width: 540px;
    margin-top: 40px;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
}

.hero-banner--home .hero-banner__buttons {
    margin-top: 40px;
}

/* Strip — a short band, heading and text at the bottom */
.hero-banner--strip {
    min-height: 242px;
}

.hero-banner--strip::before,
.hero-banner--large::before {
    background: linear-gradient(90deg, rgb(0 25 10 / 0.8) 0%, rgb(41 36 5 / 0) 100%);
}

.hero-banner--strip .hero-banner__inner,
.hero-banner--large .hero-banner__inner {
    align-items: flex-end;
}

/* Large — tall, heading and text at the bottom left */
.hero-banner--large {
    min-height: 543px;
}

.hero-banner--large::before {
    background: linear-gradient(90deg, rgb(0 25 10 / 0.8) 30%, rgb(41 36 5 / 0) 100%);
}

.hero-banner--large .hero-banner__content,
.hero-banner--medium .hero-banner__content {
    gap: 28px;
}

/* Medium — the large banner's look, as tall as its words (About Us,
   1840:10136) */
.hero-banner--medium::before {
    background: linear-gradient(90deg, rgb(0 25 10 / 0.8) 30%, rgb(41 36 5 / 0) 100%);
}

.hero-banner--medium .hero-banner__inner {
    align-items: flex-end;
}

/* ── Tablet (Figma 3295:40956) ─────────────────────────────── */
@media (max-width: 1024px) {
    .hero-banner--home {
        min-height: 425px;
    }

    .hero-banner__eyebrow {
        font-size: 24px;
        line-height: 25px;
    }

    .hero-banner__title {
        font-size: 44px;
        line-height: 46px;
    }

    .hero-banner--home .hero-banner__text {
        margin-top: 32px;
    }

    .hero-banner {
        padding-block: 48px;
    }

    .hero-banner--home {
        padding-block: 80px;
    }

    .hero-banner--large {
        min-height: 425px;
    }

    .hero-banner--strip {
        min-height: 200px;
    }
}

/* ── Mobile (Figma 3295:40970): centred, full-width buttons ── */
@media (max-width: 767px) {
    .hero-banner--home {
        min-height: 555px;
    }

    .hero-banner--home::before {
        background: rgb(0 0 0 / 0.35);
    }

    .hero-banner--home {
        padding-block: 20px 40px;
    }

    .hero-banner--home .hero-banner__inner {
        justify-content: center;
    }

    .hero-banner--home .hero-banner__content {
        align-items: stretch;
        width: 100%;
        text-align: center;
        filter: drop-shadow(0 0 6px rgb(0 0 0 / 0.57));
    }

    .hero-banner--home .hero-banner__headings {
        gap: 8px;
    }

    .hero-banner__eyebrow {
        font-size: 20px;
        line-height: 25px;
    }

    .hero-banner__title {
        font-size: 36px;
        line-height: 38px;
    }

    .hero-banner--home .hero-banner__title {
        font-weight: 700;
    }

    .hero-banner--home .hero-banner__text {
        margin-top: 20px;
        text-shadow: 0 0 12px rgb(0 0 0 / 0.46);
    }

    .hero-banner--home .hero-banner__buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    .hero-banner__buttons .button {
        width: 100%;
        min-width: 0;
    }

    .hero-banner__text {
        font-size: 16px;
        line-height: 20px;
    }

    .hero-banner--strip,
    .hero-banner--large,
    .hero-banner--medium {
        padding-block: 40px;
    }

    .hero-banner--large {
        min-height: 400px;
    }

    .hero-banner--strip {
        min-height: 180px;
    }
}
