/* =========================================================
   Wheatfield Resource Hub Hero
   ========================================================= */

.rb-resource-hero {
    --rb-resource-height: 460px;

    position: relative;
    width: 100%;
    min-height: var(--rb-resource-height);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    color: #fff;
}

/*
 * Creates the darker center treatment shown in the example
 * while still allowing the bread/bakery imagery to remain
 * visible on both sides.
 */
.rb-resource-hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(24, 14, 8, .28) 0%,
            rgba(24, 14, 8, .46) 28%,
            rgba(24, 14, 8, .72) 50%,
            rgba(24, 14, 8, .46) 72%,
            rgba(24, 14, 8, .28) 100%
        );

    z-index: 1;
}

.rb-resource-hero__content {
    position: relative;
    z-index: 2;

    width: min(100% - 40px, 720px);
    margin: 0 auto;
    padding: 45px 20px;

    text-align: center;
}

.rb-resource-hero__logo {
    margin: 0 auto 12px;
}

.rb-resource-hero__logo img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 100px;
    margin: 0 auto;
}

.rb-resource-hero__title {
    margin: 0 auto 14px;

    max-width: 680px;

    color: #fff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.02em;

    text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.rb-resource-hero__subtitle {
    max-width: 620px;
    margin: 0 auto;

    color: rgba(255, 255, 255, .92);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;

    text-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}

.rb-resource-hero__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 24px;
}

.rb-resource-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 145px;
    min-height: 44px;

    padding: 11px 22px;

    border: 1px solid rgba(255, 255, 255, .7);

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.rb-resource-hero__button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.rb-resource-hero__button--primary {
    border-color: #b79659;
    background: #b79659;
    color: #fff;
}

.rb-resource-hero__button--primary:hover {
    border-color: #c9a96b;
    background: #c9a96b;
    color: #fff;
}

.rb-resource-hero__button--secondary {
    background: rgba(20, 14, 10, .45);
    color: #fff;
}

.rb-resource-hero__button--secondary:hover {
    border-color: #fff;
    background: #fff;
    color: #34251a;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .rb-resource-hero {
        min-height: 500px;
    }

    .rb-resource-hero__overlay {
        background: rgba(20, 12, 7, .58);
    }

    .rb-resource-hero__content {
        width: calc(100% - 30px);
        padding: 40px 15px;
    }

    .rb-resource-hero__logo img {
        max-width: 155px;
        max-height: 80px;
    }

    .rb-resource-hero__title {
        font-size: 34px;
        line-height: 1.08;
    }

    .rb-resource-hero__subtitle {
        font-size: 13px;
    }

    .rb-resource-hero__buttons {
        gap: 10px;
    }

    .rb-resource-hero__button {
        min-width: 140px;
    }
}


@media (max-width: 480px) {

    .rb-resource-hero__buttons {
        flex-direction: column;
    }

    .rb-resource-hero__button {
        width: min(100%, 260px);
    }
}