/* LoanCureSolutions — Desktop-style tablet hero */
@media (min-width: 651px) and (max-width: 1024px) {

    .lch-home .lch-hero-v3 {
        height: auto;
        min-height: 0;
        background: #edf7f8;
        overflow: hidden;
    }

    .lch-home .lch-hero-v3 .lch-hero-grid {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        height: auto;
        gap: 0;
        padding: 0;
        align-items: center;
    }

    .lch-home .lch-hero-v3 .lch-hero-copy {
        position: relative;
        z-index: 3;
        width: 53%;
        max-width: 470px;
        min-width: 0;
        padding: 25px 14px 25px 0;
    }

    .lch-home .lch-hero-v3 .lch-hero-copy h1 {
        font-size: clamp(28px, 3.2vw, 35px);
        line-height: 1.12;
        letter-spacing: -0.7px;
        max-width: 100%;
        margin: 14px 0 16px;
    }

    .lch-home .lch-hero-v3 .lch-hero-copy h1 em {
        display: block;
        max-width: 100%;
    }

    .lch-home .lch-hero-v3 .lch-hero-lead {
        font-size: 13px;
        line-height: 1.6;
        max-width: 100%;
    }

    .lch-home .lch-hero-v3 .lch-hero-actions {
        margin-top: 20px;
    }

    .lch-home .lch-hero-v3 .lch-hero-visual {
        position: absolute;
        z-index: 1;
        top: 0;
        bottom: 0;
        left: 35%;
        right: calc((min(100vw, 100%) - 100vw) / 2);
        width: auto;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        display: block;
    }

    .lch-home .lch-hero-v3 .lch-hero-visual::before {
        display: block;
        content: "";
        position: absolute;
        z-index: 2;
        inset: 0;
        background: linear-gradient(
            90deg,
            #edf7f8 0%,
            rgba(237,247,248,.90) 12%,
            rgba(237,247,248,.65) 24%,
            rgba(237,247,248,.20) 38%,
            transparent 52%
        );
        pointer-events: none;
    }

    .lch-home .lch-hero-v3 .lch-hero-visual img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
        object-position: 45% center;
        filter: none;
    }
}

/* STEP 46 — MOBILE FULL BACKGROUND HERO */
@media (max-width: 650px) {

    .lch-home .lch-hero-v3 {
        position: relative;
        height: auto;
        min-height: 0;
        background: #edf7f8;
        overflow: hidden;
    }

    .lch-home .lch-hero-v3 .lch-hero-grid {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 0;
        height: auto;
        min-height: 0;
        padding: 0;
    }

    .lch-home .lch-hero-v3 .lch-hero-copy {
        position: relative;
        z-index: 3;
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 25px 0 25px;
    }

    .lch-home .lch-hero-v3 .lch-hero-copy h1 {
        font-size: clamp(29px, 7vw, 36px);
        line-height: 1.12;
        letter-spacing: -0.6px;
        max-width: 100%;
        margin: 12px 0 14px;
    }

    .lch-home .lch-hero-v3 .lch-hero-lead {
        font-size: 15px;
        line-height: 1.6;
        max-width: 100%;
    }

    .lch-home .lch-hero-v3 .lch-hero-actions {
        margin-top: 18px;
    }

    .lch-home .lch-hero-v3 .lch-hero-visual {
        position: absolute;
        z-index: 1;
        top: 0;
        right: auto;
        bottom: 0;
        left: 50%;
        display: block;
        width: 100vw;
        transform: translateX(-50%);
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
        overflow: hidden;
        background-image: url('/assets/images/services/homeheader banner.webp');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .lch-home .lch-hero-v3 .lch-hero-visual::before {
        display: block;
        content: "";
        position: absolute;
        z-index: 2;
        inset: 0;
        background: linear-gradient(
            90deg,
            rgba(237,247,248,.88) 0%,
            rgba(237,247,248,.72) 35%,
            rgba(237,247,248,.42) 65%,
            rgba(237,247,248,.12) 100%
        );
        pointer-events: none;
    }

    .lch-home .lch-hero-v3 .lch-hero-visual img {
        display: none;
    }
}

/* STEP 50 — MOBILE TEXT LINE WRAPPING FIX */
@media (max-width: 650px) {

    .lch-home .lch-hero-v3 .lch-hero-copy .lch-kicker {
        display: block;
        width: 100%;
        max-width: 285px;
        white-space: normal;
        line-height: 1.45;
        overflow-wrap: normal;
    }

    .lch-home .lch-hero-v3 .lch-hero-copy h1 {
        max-width: 400px;
        font-size: clamp(29px, 6.5vw, 36px);
        line-height: 1.12;
    }

    .lch-home .lch-hero-v3 .lch-hero-copy h1 em {
        display: block;
        max-width: 330px;
    }

    .lch-home .lch-hero-v3 .lch-hero-lead {
        display: block;
        width: 100%;
        max-width: 340px !important;
        font-size: 15px;
        line-height: 1.6;
        box-sizing: border-box;
    }
}
