/* BM-013B — Hero slider overlay */

.bm-hero {
    position: relative;
    overflow: hidden;
}

.bm-hero .bm-slider {
    position: relative;
    height: clamp(460px, 42vw, 620px);
    min-height: 460px;
    aspect-ratio: auto;
    background: #edf3f0;
}

.bm-hero .bm-slide {
    position: absolute;
    inset: 0;
    isolation: isolate;
}

.bm-hero .bm-slide .bm-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

.bm-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.36) 0%,
        rgba(255,255,255,.15) 40%,
        transparent 70%
    );
}

.bm-hero-inner {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.bm-hero-content {
    width: min(550px, 48%);
    padding: 35px 0 55px;
}

.bm-hero-eyebrow {
    display: block;
    margin-bottom: 17px;
    color: #007b36;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.bm-hero-title {
    margin: 0 0 20px;
    color: #16221b;
    font-size: clamp(34px, 3.6vw, 56px);
    font-weight: 800;
    letter-spacing: -1.4px;
    line-height: 1.13;
}

.bm-hero-title span {
    display: block;
    color: #007b36;
}

.bm-hero-description {
    max-width: 490px;
    margin: 0 0 28px;
    color: #26352d;
    font-size: clamp(15px, 1.25vw, 19px);
    line-height: 1.65;
}

.bm-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 15px 26px;
    background: #008b3d;
    border-radius: 7px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}

.bm-hero-cta:hover,
.bm-hero-cta:focus-visible {
    background: #005b2a;
    color: white;
}

.bm-hero-cta span {
    font-size: 22px;
    line-height: 1;
}

.bm-hero .bm-slide-arrow,
.bm-hero .bm-slide-dots {
    z-index: 6;
}

@media (max-width: 900px) {

    .bm-hero .bm-slider {
        height: 510px;
        min-height: 510px;
    }

    .bm-hero-content {
        width: 58%;
    }

    .bm-hero-shade {
        background: linear-gradient(
            90deg,
            rgba(255,255,255,.93),
            rgba(255,255,255,.65) 48%,
            transparent
        );
    }
}

@media (max-width: 600px) {

    .bm-hero .bm-slider {
        height: 600px;
        min-height: 600px;
    }

    .bm-hero .bm-slide .bm-hero-image {
        object-position: 68% center;
    }

    .bm-hero-shade {
        background: linear-gradient(
            180deg,
            rgba(255,255,255,.98),
            rgba(255,255,255,.94) 45%,
            rgba(255,255,255,.20)
        );
    }

    .bm-hero-inner {
        align-items: flex-start;
    }

    .bm-hero-content {
        width: 100%;
        padding: 45px 15px 0;
    }

    .bm-hero-title {
        font-size: clamp(31px, 8vw, 42px);
        letter-spacing: -1px;
    }

    .bm-hero-description {
        font-size: 15px;
    }

    .bm-hero-cta {
        padding: 13px 20px;
        font-size: 14px;
    }

    .bm-hero .bm-slide-arrow {
        top: auto;
        bottom: 15px;
        transform: none;
    }

    .bm-hero .bm-slide-dots {
        bottom: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bm-hero .bm-slide,
    .bm-hero-cta {
        transition: none;
    }
}
