/* Behaviour Management V2 — Hero banner
   Figma desktop: 19804-8686 | mobile: 20615-93097 */

.bm-hero {
    background: linear-gradient(180deg, #E5FBFC 31%, #7FEAF6 99%);
    padding: 156px 20px 0;
    box-sizing: border-box;
    overflow: hidden;
}
.bm-hero__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.bm-hero__text {
    order: 1;
    width: 100%;
}
h1.bm-hero__heading {
    margin: 0;
    font-family: 'avenir_next_worldbold', 'Verdana';
    font-weight: normal;
    font-size: 40px;
    line-height: 48px;
    color: #333333;
}
p.bm-hero__desc {
    max-width: 736px;
    margin: 8px auto 0;
    font-family: 'avenir_next_worldmedium', 'Verdana';
    font-weight: normal;
    font-size: 16px;
    line-height: 28px;
    color: #333333;
}
a.bm-hero__cta {
    order: 2;
    margin-top: 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 192px;
    height: 48px;
    padding: 13px 16px;
    border-radius: 8px;
    background-color: #222222;
    color: #ffffff !important;
    font-family: 'avenir_next_worlddemi', 'Verdana';
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}
a.bm-hero__cta:hover {
    background-color: #3D3D3D;
}
.bm-hero__graphic {
    order: 3;
    width: 100%;
    margin-top: 96px;
}
/* Desktop artwork is pre-cropped at the section edge, so it sits flush on the bottom */
img.bm-hero__img {
    display: block;
    width: 960px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
img.bm-hero__img-mb {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

@media (min-width: 1920px) {
    .bm-hero__inner {
        max-width: 1600px;
    }
}
/* iPad and up keeps the desktop layout — stacked/mobile layout starts below 991px */
@media (max-width: 1024px) and (min-width: 991px) {
    .bm-hero {
        padding: 140px 20px 0;
    }
    h1.bm-hero__heading {
        font-size: 36px;
        line-height: 44px;
    }
    .bm-hero__graphic {
        margin-top: 72px;
    }
}
@media (max-width: 990px) {
    .bm-hero {
        padding: 152px 16px 72px;
    }
    h1.bm-hero__heading {
        font-size: 32px;
        line-height: 40px;
    }
    /* Stacked order: text → artwork → CTA */
    .bm-hero__graphic {
        order: 2;
        margin-top: 40px;
    }
    a.bm-hero__cta {
        order: 3;
        width: 100%;
        max-width: 400px;
        margin-top: 40px;
    }
    /* The desktop artwork is cropped to bleed off the section edge, so the
       stacked layout uses the full-card mobile artwork instead. Overrides the
       theme's .hide-mb / .hide-lg helpers, which only switch at 767px. */
    img.bm-hero__img {
        display: none !important;
    }
    img.bm-hero__img-mb {
        display: block !important;
        width: 100%;
        max-width: 560px;
    }
}
@media (max-width: 767px) {
    .bm-hero {
        background: linear-gradient(180deg, #E5FBFC 33%, #7FEAF6 104%);
        padding: 128px 16px 72px;
    }
    h1.bm-hero__heading {
        font-size: 28px;
        line-height: 36px;
    }
    p.bm-hero__desc {
        color: #707070;
    }
    /* img.bm-hero__img-mb {
        max-width: 300px;
    } */
    a.bm-hero__cta {
        max-width: 100%;
    }
}
