/* WayCare HomeCare Before/After Results v1.1 Best */

.wchba-section,
.wchba-section *{
    box-sizing:border-box;
    text-shadow:none!important;
}

.wchba-section{
    width:100%;
    padding:26px 42px;
    font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:transparent;
}

.wchba-shell{
    width:100%;
    max-width:1380px;
    margin:0 auto;
}

.wchba-header{
    margin:0 0 20px;
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    column-gap:28px;
    align-items:end;
}

.wchba-label{
    margin:0 0 7px;
    color:#94A3B8;
    font-family:"Geist Mono",monospace;
    font-size:11px;
    line-height:1;
    letter-spacing:.26em;
    text-transform:uppercase;
    font-weight:850;
    grid-column:1 / -1;
}

.wchba-headline{
    margin:0;
    color:#122C4A;
    font-family:Fraunces,Georgia,serif;
    font-size:clamp(32px,3.25vw,52px);
    line-height:1.03;
    letter-spacing:-.045em;
    font-weight:500;
}

.wchba-headline-accent{
    margin-left:.22em;
    color:#2E9B6A;
    font-style:italic;
}

.wchba-subtitle{
    max-width:680px;
    margin:9px 0 0;
    color:#334155;
    font-size:15px;
    line-height:1.55;
    font-weight:520;
    grid-column:1 / -1;
}

.wchba-drag-hint{
    justify-self:end;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:9px 13px;
    border:1px solid rgba(46,155,106,.16);
    border-radius:999px;
    background:rgba(91,227,184,.11);
    color:#334155;
    font-size:12px;
    line-height:1;
    font-weight:750;
    white-space:nowrap;
}

.wchba-drag-hint::before{
    content:"↔";
    color:#2E9B6A;
    font-weight:900;
}

.wchba-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
}

.wchba-card{
    min-width:0;
    display:block;
    position:relative;
    text-decoration:none!important;
    color:inherit;
    border:1px solid rgba(226,232,240,.88);
    border-radius:24px;
    background:#fff;
    overflow:hidden;
    box-shadow:0 16px 40px rgba(15,23,42,.055);
    transition:transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.wchba-card:hover{
    transform:translateY(-3px);
    border-color:rgba(46,155,106,.26);
    box-shadow:0 24px 64px rgba(15,23,42,.09);
}

.wchba-card-badge{
    position:absolute;
    left:14px;
    top:14px;
    z-index:12;
    display:inline-flex;
    align-items:center;
    padding:7px 11px;
    border-radius:999px;
    background:rgba(91,227,184,.14);
    color:#2E9B6A;
    font-family:"Geist Mono",monospace;
    font-size:10px;
    line-height:1;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
    backdrop-filter:blur(10px);
    box-shadow:0 8px 20px rgba(15,23,42,.08);
}

.wchba-comparison{
    --pos:50%;
    position:relative;
    width:100%;
    height:390px;
    overflow:hidden;
    border-radius:24px 24px 0 0;
    background:#E2E8F0;
    user-select:none;
    touch-action:none;
    cursor:ew-resize;
}

.wchba-img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
    pointer-events:none;
}

.wchba-img-after{
    z-index:1;
}

.wchba-before-layer{
    position:absolute;
    inset:0;
    z-index:2;
    width:var(--pos);
    overflow:hidden;
}

.wchba-before-layer .wchba-img-before{
    width:calc(100% * 100 / var(--pos-raw, 50));
    max-width:none;
}

.wchba-slider-line{
    position:absolute;
    top:0;
    bottom:0;
    left:var(--pos);
    width:2px;
    transform:translateX(-50%);
    background:#fff!important;
    z-index:5;
    box-shadow:0 0 0 1px rgba(15,23,42,.15);
    pointer-events:none;
}

.wchba-handle{
    position:absolute;
    left:var(--pos);
    top:50%;
    width:42px;
    height:42px;
    transform:translate(-50%,-50%);
    z-index:6;
    border:1px solid rgba(255,255,255,.28);
    border-radius:999px;
    background:#122C4A!important;
    color:#fff!important;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:2px;
    cursor:grab;
    box-shadow:0 12px 28px rgba(15,23,42,.25), 0 0 0 4px rgba(255,255,255,.18);
}

.wchba-handle:active{
    cursor:grabbing;
}

.wchba-handle span{
    font-size:18px;
    line-height:1;
    font-weight:800;
    transform:translateY(-1px);
}

.wchba-image-label{
    position:absolute;
    z-index:7;
    bottom:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 13px;
    border-radius:10px;
    background:rgba(255,255,255,.92);
    color:#122C4A;
    font-size:12px;
    line-height:1;
    font-weight:850;
    letter-spacing:.02em;
    box-shadow:0 8px 22px rgba(15,23,42,.10);
    backdrop-filter:blur(10px);
}

.wchba-before-label{
    left:14px;
}

.wchba-after-label{
    right:14px;
}

.wchba-title{
    margin:0;
    padding:15px 16px 17px;
    text-align:center;
    color:#122C4A;
    font-size:15px;
    line-height:1.25;
    font-weight:760;
    letter-spacing:-.01em;
}

.wchba-placeholder{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#334155;
    font-size:14px;
    font-weight:800;
    background:
        linear-gradient(135deg, rgba(91,227,184,.14), rgba(18,44,74,.08)),
        #F8FAFC;
}

.wchba-cta{
    margin:22px auto 0;
    padding:18px 20px;
    border:1px solid rgba(46,155,106,.16);
    border-radius:22px;
    background:
        radial-gradient(circle at 8% 50%, rgba(91,227,184,.16), transparent 38%),
        #F8FAFC;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.wchba-cta-text{
    color:#122C4A;
    font-family:Fraunces,Georgia,serif;
    font-size:clamp(22px,2.2vw,34px);
    line-height:1.05;
    letter-spacing:-.035em;
    font-weight:500;
}

.wchba-cta-button{
    flex:0 0 auto;
    min-width:180px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    padding:14px 24px;
    border-radius:14px;
    background:#2E9B6A;
    color:#fff;
    text-decoration:none!important;
    font-size:14px;
    line-height:1;
    font-weight:850;
    box-shadow:0 16px 34px rgba(46,155,106,.20);
    transition:transform .22s ease, box-shadow .22s ease;
}

.wchba-cta-button:hover{
    transform:translateY(-2px);
    box-shadow:0 20px 44px rgba(46,155,106,.27);
}

.wchba-cta-button b{
    font-size:20px;
    line-height:1;
    font-weight:500;
}

@media (max-width:1100px){
    .wchba-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width:767px){
    .wchba-section{
        padding:24px 14px;
    }

    .wchba-header{
        display:block;
        margin-bottom:16px;
    }

    .wchba-label{
        font-size:10px;
        letter-spacing:.23em;
    }

    .wchba-headline{
        font-size:clamp(28px,8.8vw,39px);
        line-height:1.05;
    }

    .wchba-headline-main,
    .wchba-headline-accent{
        display:inline;
    }

    .wchba-subtitle{
        font-size:13px;
    }

    .wchba-drag-hint{
        width:100%;
        margin-top:12px;
        justify-content:center;
        font-size:11.5px;
    }

    .wchba-grid{
        grid-template-columns:1fr!important;
        gap:16px!important;
    }

    .wchba-card{
        border-radius:20px;
    }

    .wchba-card-badge{
        left:12px;
        top:12px;
        font-size:9px;
        padding:6px 9px;
    }

    .wchba-comparison{
        height:260px;
        border-radius:20px 20px 0 0;
    }

    .wchba-handle{
        width:40px;
        height:40px;
        box-shadow:0 10px 25px rgba(15,23,42,.25), 0 0 0 4px rgba(255,255,255,.18);
    }

    .wchba-handle span{
        font-size:17px;
    }

    .wchba-image-label{
        bottom:12px;
        padding:7px 11px;
        border-radius:9px;
        font-size:11px;
    }

    .wchba-before-label{
        left:12px;
    }

    .wchba-after-label{
        right:12px;
    }

    .wchba-title{
        padding:13px 14px 15px;
        font-size:14px;
    }

    .wchba-cta{
        margin-top:18px;
        flex-direction:column;
        align-items:stretch;
        text-align:center;
        padding:18px 16px;
        border-radius:20px;
    }

    .wchba-cta-text{
        font-size:27px;
    }

    .wchba-cta-button{
        width:100%;
        min-width:0;
    }
}

@media (max-width:390px){
    .wchba-section{
        padding-left:10px;
        padding-right:10px;
    }

    .wchba-comparison{
        height:235px;
    }
}
