/* ==========================================================================
   Hero section — matches demo style.css exactly
   ========================================================================== */

.b-hero {
    align-items: center;
    display: flex;
    height: var(--hero-h, 100dvh);
    overflow: hidden;
    position: relative;
    will-change: transform
}

/* Elementor widget — break out of the boxed container to full viewport
   width; transform-centering tolerates Elementor container padding */
.b-hero.is-stretched {
    left: 50%;
    margin-inline-start: 0;
    transform: translateX(-50%);
    width: 100vw
}

.b-hero.is-stretched .b-hero__image,
.b-hero.is-stretched .b-hero__image figure {
    height: var(--hero-h, 100vh);
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0
}

/* widget hero — image fills the whole section, edge to edge, no aspect spacer */
.b-hero.is-stretched .b-hero__image .mw:before {
    display: none
}

.b-hero.is-stretched .b-hero__image picture,
.b-hero.is-stretched .b-hero__image img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%
}

/* widget hero — fluid, adaptive type at every viewport */
.b-hero.is-stretched .b-hero__heading {
    font-size: clamp(2.6rem, 9.5vw, 9rem);
    hyphens: none;
    letter-spacing: -.04em;
    line-height: .95;
    overflow-wrap: normal;
    padding-inline: 1.6rem;
    word-break: keep-all
}

.b-hero.is-stretched .b-hero__subhead {
    font-size: clamp(1.2rem, 3.6vw, 1.4rem);
    letter-spacing: -.01em;
    line-height: 1.15;
    max-width: min(88%, 46rem);
    padding-inline: 1.6rem
}

.b-hero .wrapper {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    text-align: center;
    /* per-device nudges from the widget's Content offset controls */
    transform: translate(var(--hero-off-x, 0rem), calc(var(--hero-off-y, 0rem) * -1));
    z-index: 1
}

/* Content position: bottom-left — interior page banners (e.g. About Us) */
.b-hero.is-pos-bottom-left .wrapper {
    align-items: flex-start;
    padding: 0 2rem 4rem;
    text-align: left
}

@media(min-width:768px) {
    .b-hero.is-pos-bottom-left .wrapper {
        padding: 0 4rem 6rem
    }
}

.b-hero.is-pos-bottom-left .b-hero__subhead {
    margin-inline: 0
}

/* Optional extra darkening overlay, on top of the default gradient */
.b-hero.has-overlay .b-hero__image:before {
    content: "";
    inset: 0;
    position: absolute;
    z-index: 0
}

.b-hero.has-overlay--light .b-hero__image:before { background-color: rgba(0, 0, 0, .18) }
.b-hero.has-overlay--dark .b-hero__image:before { background-color: rgba(0, 0, 0, .42) }

.b-hero__image {
    pointer-events: none;
    position: relative
}

.b-hero__image:after {
    background: linear-gradient(202deg, transparent 64.42%, rgba(0, 0, 0, .22) 86.44%), linear-gradient(0deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .22));
    content: "";
    display: block;
    height: 101%;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 101%
}

.b-hero__image,
.b-hero__image figure {
    height: var(--hero-h, 100vh);
    left: 0;
    position: absolute;
    top: 0;
    width: 100vw;
    z-index: 0
}

.b-hero__image picture {
    height: 100%
}

.b-hero__heading {
    font-size: 3.7rem;
    letter-spacing: -.148rem;
    line-height: 3.33rem;
    margin-bottom: 2.4rem
}

@media(min-width:576px) {
    .b-hero__heading {
        font-size: clamp(3.7rem, 7vw, 9rem);
        letter-spacing: -.36rem;
        line-height: 8.1rem
    }

    .b-hero__heading .br {
        display: none
    }
}

.b-hero__subhead {
    font-size: 1.2rem;
    letter-spacing: -.012rem;
    line-height: 1.44rem;
    margin-bottom: 3.2rem;
    max-width: 82%;
    width: 100%
}

@media(min-width:576px) {
    .b-hero__subhead {
        font-size: 1.4rem;
        letter-spacing: -.014rem;
        line-height: 1.58rem;
        margin-bottom: 4rem;
        max-width: 29.71%
    }
}

@media(min-width:576px) and (max-width:1439px) {
    .b-hero__subhead {
        max-width: 50%
    }
}
