/**
 * Banner Section Block
 *
 * Full-width hero image with a semi-transparent navy title box, a full-width
 * pale (sky) lower band, and a white mission card with a teal accent bar that
 * straddles the two.
 * Matches child-theme-sections-screenshots/banner-section.png
 */

:root {
    --color-navy: #385d8c;
    --color-pale: #eef3f8;
    --color-teal: #93cddc;
    --color-sky:  #d2eaf0;
    --color-text: #787878;
    --color-white: #ffffff;
}

.banner-section {
    font-family: 'Roboto', sans-serif;
}

.banner-section__container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Upper: full-width background image */
.banner-section__media {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 620px;
    display: flex;
    align-items: flex-start;
}

/* Semi-transparent navy title box overlaid on the image */
.banner-section__title-box {
    background-color: rgba(56, 93, 140, 0.72);
    padding: 40px 45px;
    margin-top: 90px;
    max-width: 640px;
}

.banner-section__title {
    color: var(--color-white);
    font-weight: 700;
    font-size: 44px;
    line-height: 1.2;
    margin: 0;
}

/* Lower: full-width sky background.
   flow-root establishes a block formatting context so the card's negative
   margin-top pulls the card up onto the image instead of collapsing through
   and shifting the whole sky band. */
.banner-section__lower {
    background-color: var(--color-sky);
    padding-bottom: 60px;
    display: flow-root;
}

/* White mission card straddling the image / sky boundary */
.banner-section__card {
    position: relative;
    z-index: 2;
    background-color: var(--color-white);
    border-left: 20px solid var(--color-teal);
    border-radius: 12px;
    padding: 40px 55px;
    margin-top: -60px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.banner-section__card-title {
    color: var(--color-teal);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.banner-section__card-text {
    color: var(--color-navy);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.4;
}

.banner-section__card-text p {
    margin: 0;
    color: inherit;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .banner-section__media {
        min-height: 480px;
    }

    .banner-section__title {
        font-size: 36px;
    }

    .banner-section__card {
        margin-top: -100px;
        padding: 34px 44px;
    }

    .banner-section__card-text {
        font-size: 22px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .banner-section__media {
        min-height: 340px;
    }

    .banner-section__title-box {
        margin-top: 50px;
        padding: 26px 28px;
        max-width: 100%;
    }

    .banner-section__title {
        font-size: 26px;
    }

    .banner-section__lower {
        padding-bottom: 40px;
    }

    .banner-section__card {
        margin-top: -70px;
        padding: 26px 26px 26px 28px;
        border-left-width: 10px;
    }

    .banner-section__card-text {
        font-size: 19px;
    }
}
