/**
 * Banner Section Block Styles
 *
 * Full-width hero banner with a background image (and optional mobile-only
 * background image via CSS custom properties), a title, optional text and
 * primary/secondary buttons. Includes generous top spacing to clear the
 * floating header.
 *
 * Reference design: child-theme-sections-screenshots/header-with-banner-section.png
 *
 * @package ACF Child Theme
 */

 :root {
    --color-grey: #f3f3f3;
    --color-navy: #0d1e3b;
    --color-teal: #17abc1;
    --color-text: #252525;
    --color-blue: #004e95;
    --color-white: #ffffff;
    --font-primary: 'Montserrat', sans-serif;
}

/* Section wrapper - full-width background image
   ========================================================================== */
.banner-section {
    position: relative;
    width: 100%;
    margin: 0;
    /* Top padding leaves room for the floating header that sits over the banner. */
    padding: 180px 0 90px;
    background-color: var(--color-navy, #0d1e3b);
    background-image: var(--banner-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    font-family: var(--font-primary), 'Montserrat', 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;
}

/* Content (left-aligned, sits over the left half of the banner)
   ========================================================================== */
.banner-section__content {
    max-width: 600px;
    color: var(--color-white, #ffffff);
    padding: 0 30px;
}

.banner-section__title {
    margin: 0 0 20px 0;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-white, #ffffff);
}

.banner-section__title p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.banner-section__title p:not(:last-child) {
    margin-bottom: 8px;
}

.banner-section__text {
    max-width: 440px;
    margin: 0 0 32px 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-white, #ffffff);
}

.banner-section__text p {
    margin: 0 0 12px 0;
    color: inherit;
}

.banner-section__text p:last-child {
    margin-bottom: 0;
}

/* Buttons
   ========================================================================== */
.banner-section__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.banner-section__button {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.banner-section__button--primary {
    color: var(--color-white, #ffffff);
    background-color: var(--color-navy, #0d1e3b);
    border: 2px solid var(--color-navy, #0d1e3b);
}

.banner-section__button--primary:hover,
.banner-section__button--primary:focus-visible {
    background-color: transparent;
    border-color: transparent;
    color: var(--color-white, #ffffff);
    outline: none;
    border: 2px solid var(--color-white, #ffffff);
}

.banner-section__button--secondary {
    color: var(--color-white, #ffffff);
    background-color: transparent;
    border: 2px solid var(--color-white, #ffffff);
}

.banner-section__button--secondary:hover,
.banner-section__button--secondary:focus-visible {
    background-color: var(--color-white, #ffffff);
    color: var(--color-navy, #0d1e3b);
    outline: none;
}

/* Responsive - Tablet
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
    .banner-section {
        padding: 130px 0 70px;
    }

    .banner-section__content {
        max-width: 60%;
        padding: 0 18px;

    }

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

/* Responsive - Mobile (mobile background image when provided)
   ========================================================================== */
@media (max-width: 768px) {
    .banner-section {
        /* Falls back to the main background image when no mobile image is set. */
        background-image: var(--banner-bg-mobile, var(--banner-bg));
        /* Still leave room for the floating header on mobile. */
        padding: 110px 0 60px;
    }

    .banner-section__content {
        max-width: 100%;
        padding: 0 18px;
    }

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

    .banner-section__text {
        max-width: 100%;
    }

    .banner-section__buttons {
        gap: 14px;
    }

    .banner-section__button {
        padding: 13px 28px;
        font-size: 15px;
    }
}
