/* WayCare HomeCare Services Selector */

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

.wchs-section{
    width:100%;
    padding:28px 42px 24px;
    background:#fff;
    font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

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

.wchs-header{
    text-align:center;
    margin-bottom:54px;
}

.wchs-label,
.wchs-selector-label{
    color:#334155;
    font-family:"Geist Mono",monospace;
    font-size:13px;
    line-height:1;
    font-weight:800;
    letter-spacing:.28em;
    text-transform:uppercase;
}

.wchs-label{
    margin-bottom:12px;
}

.wchs-headline{
    margin:0;
    color:#122C4A;
    font-family:Fraunces,Georgia,serif;
    font-size:clamp(34px,3.35vw,48px);
    line-height:1.05;
    letter-spacing:-.045em;
    font-weight:500;
}

.wchs-services-wrap{
    width:100%;
}

.wchs-services-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:18px;
    align-items:stretch;
}

.wchs-service-card{
    position:relative;
    min-height:190px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    text-align:center;
    padding:52px 22px 22px;
    background:#fff;
    border:1px solid #E2E8F0;
    border-radius:18px;
    text-decoration:none !important;
    color:inherit;
    box-shadow:0 16px 42px rgba(15,23,42,.04);
    transition:transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.wchs-service-card:hover{
    transform:translateY(-4px);
    border-color:rgba(46,155,106,.26);
    box-shadow:0 22px 60px rgba(15,23,42,.08);
}

.wchs-icon-wrap{
    position:absolute;
    top:-39px;
    left:50%;
    width:78px;
    height:78px;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:rgba(91,227,184,.16);
    box-shadow:0 12px 34px rgba(46,155,106,.08);
}

.wchs-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    color:#2E9B6A;
    font-size:38px;
    line-height:1;
}

.wchs-icon i{
    font-size:inherit;
}

.wchs-icon svg,
.wchs-icon img{
    width:38px;
    height:38px;
    display:block;
    object-fit:contain;
}

.wchs-service-title{
    margin:0 0 10px;
    color:#122C4A;
    font-size:21px;
    line-height:1.08;
    font-weight:820;
    letter-spacing:-.02em;
}

.wchs-service-desc{
    color:#334155;
    font-size:13px;
    line-height:1.36;
    font-weight:560;
}

.wchs-service-arrow{
    margin-top:auto;
    padding-top:10px;
    color:#2E9B6A;
    font-size:20px;
    line-height:1;
    font-weight:600;
    transition:transform .24s ease;
}

.wchs-service-card:hover .wchs-service-arrow{
    transform:translateX(4px);
}

.wchs-selector{
    margin-top:34px;
    display:grid;
    grid-template-columns:minmax(250px,.85fr) minmax(520px,1.65fr);
    align-items:center;
    gap:28px;
    padding:24px 34px;
    border:1px solid rgba(91,227,184,.28);
    border-radius:28px;
    background:
        radial-gradient(circle at 0% 50%, rgba(91,227,184,.16), transparent 38%),
        #F8FAFC;
    box-shadow:0 18px 46px rgba(15,23,42,.045);
}

.wchs-selector-label{
    margin-bottom:8px;
    font-size:12px;
    letter-spacing:.26em;
}

.wchs-selector-title{
    margin:0;
    color:#122C4A;
    font-family:Fraunces,Georgia,serif;
    font-size:clamp(26px,2.35vw,38px);
    line-height:1.02;
    letter-spacing:-.045em;
    font-weight:500;
}

.wchs-properties{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:center;
}

.wchs-property{
    min-height:86px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    padding:14px 22px;
    text-decoration:none !important;
    color:inherit;
    border-left:1px solid rgba(15,23,42,.18);
    transition:background .24s ease, transform .24s ease;
}

.wchs-property:first-child{
    border-left:none;
}

.wchs-property:hover{
    background:rgba(255,255,255,.62);
    transform:translateY(-1px);
}

.wchs-property-icon{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#2E9B6A;
    font-size:44px;
    line-height:1;
}

.wchs-property-icon i{
    font-size:inherit;
}

.wchs-property-icon svg,
.wchs-property-icon img{
    width:44px;
    height:44px;
    display:block;
    object-fit:contain;
}

.wchs-property-title{
    color:#122C4A;
    font-size:18px;
    line-height:1.22;
    font-weight:760;
    letter-spacing:-.01em;
}

/* Tablet */
@media (max-width:1024px){
    .wchs-section{
        padding:28px 18px 24px;
    }

    .wchs-services-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        row-gap:52px;
    }

    .wchs-selector{
        grid-template-columns:1fr;
        gap:20px;
    }

    .wchs-selector-copy{
        text-align:center;
    }
}

/* Mobile */
@media (max-width:767px){
    .wchs-section{
        padding:28px 14px 24px;
        overflow:hidden;
    }

    .wchs-header{
        text-align:left;
        margin-bottom:44px;
        padding:0 2px;
    }

    .wchs-label{
        margin-bottom:10px;
        font-size:11px;
        letter-spacing:.22em;
    }

    .wchs-headline{
        max-width:330px;
        font-size:34px;
        line-height:1.03;
    }

    .wchs-services-wrap{
        margin-left:-14px;
        margin-right:-14px;
        overflow-x:auto;
        overflow-y:visible;
        padding:40px 14px 10px;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }

    .wchs-services-wrap::-webkit-scrollbar{
        display:none;
    }

    .wchs-services-grid{
        display:flex;
        gap:14px !important;
        width:max-content;
    }

    .wchs-service-card{
        width:178px;
        min-height:178px;
        padding:46px 16px 18px;
        border-radius:18px;
        flex:0 0 auto;
    }

    .wchs-icon-wrap{
        width:66px;
        height:66px;
        top:-33px;
    }

    .wchs-icon{
        font-size:31px;
    }

    .wchs-icon svg,
    .wchs-icon img{
        width:31px;
        height:31px;
    }

    .wchs-service-title{
        font-size:18px;
        line-height:1.08;
    }

    .wchs-service-desc{
        font-size:12px;
        line-height:1.32;
    }

    .wchs-service-arrow{
        font-size:18px;
    }

    .wchs-selector{
        margin-top:20px;
        grid-template-columns:1fr;
        gap:16px !important;
        padding:20px 16px;
        border-radius:22px;
    }

    .wchs-selector-copy{
        text-align:left;
    }

    .wchs-selector-label{
        font-size:10.5px;
        letter-spacing:.22em;
        margin-bottom:7px;
    }

    .wchs-selector-title{
        font-size:28px;
        line-height:1.02;
    }

    .wchs-properties{
        grid-template-columns:1fr;
        gap:10px;
    }

    .wchs-property{
        min-height:64px;
        justify-content:flex-start;
        gap:14px;
        padding:12px 14px;
        border-left:none;
        border:1px solid rgba(226,232,240,.8);
        border-radius:16px;
        background:rgba(255,255,255,.72);
    }

    .wchs-property-icon{
        font-size:31px;
    }

    .wchs-property-icon svg,
    .wchs-property-icon img{
        width:31px;
        height:31px;
    }

    .wchs-property-title{
        font-size:16px;
    }
}

@media (max-width:390px){
    .wchs-headline{
        font-size:31px;
    }

    .wchs-service-card{
        width:166px;
    }
}


/* v1.1 — 4-card desktop + premium mobile 2-column swipe with dots */
.wchs-mobile-dots{
    display:none;
}

@media (min-width:1025px){
    .wchs-services-grid{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
        max-width:1250px;
        margin-left:auto;
        margin-right:auto;
    }
}

@media (max-width:767px){
    .wchs-services-wrap{
        position:relative;
        margin-left:-14px;
        margin-right:-14px;
        overflow-x:auto;
        overflow-y:visible;
        padding:42px 14px 10px;
        scroll-snap-type:x mandatory;
        scroll-padding-left:14px;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }

    .wchs-services-wrap::-webkit-scrollbar{
        display:none;
    }

    .wchs-services-grid{
        display:grid !important;
        grid-auto-flow:column !important;
        grid-template-rows:repeat(2, minmax(0, 1fr)) !important;
        grid-auto-columns:calc((100vw - 48px) / 2) !important;
        grid-template-columns:none !important;
        gap:46px 12px !important;
        width:max-content !important;
        align-items:stretch !important;
    }

    .wchs-service-card{
        width:auto !important;
        min-width:0 !important;
        min-height:168px !important;
        max-width:none !important;
        scroll-snap-align:start;
        padding:44px 12px 16px !important;
        border-radius:17px !important;
    }

    .wchs-icon-wrap{
        width:62px !important;
        height:62px !important;
        top:-31px !important;
    }

    .wchs-icon{
        font-size:29px !important;
    }

    .wchs-icon svg,
    .wchs-icon img{
        width:29px !important;
        height:29px !important;
    }

    .wchs-service-title{
        font-size:16.8px !important;
        line-height:1.08 !important;
        margin-bottom:8px !important;
    }

    .wchs-service-desc{
        font-size:11.4px !important;
        line-height:1.3 !important;
    }

    .wchs-service-arrow{
        font-size:17px !important;
        padding-top:8px !important;
    }

    .wchs-mobile-dots{
        display:flex;
        justify-content:center;
        align-items:center;
        gap:7px;
        padding:11px 0 0;
        width:100%;
    }

    .wchs-mobile-dot{
        width:7px;
        height:7px;
        border-radius:999px;
        border:0;
        padding:0;
        background:#CBD5E1;
        opacity:.9;
        transition:width .24s ease, background .24s ease, opacity .24s ease;
    }

    .wchs-mobile-dot.is-active{
        width:24px;
        background:#2E9B6A;
        opacity:1;
    }
}

@media (max-width:390px){
    .wchs-services-grid{
        grid-auto-columns:calc((100vw - 42px) / 2) !important;
        gap:44px 10px !important;
    }

    .wchs-service-card{
        min-height:160px !important;
        padding-left:10px !important;
        padding-right:10px !important;
    }

    .wchs-service-title{
        font-size:15.8px !important;
    }

    .wchs-service-desc{
        font-size:10.8px !important;
    }
}


/* v1.2 — mobile fixed 2-column stacked grid, no swipe, no dots */
.wchs-mobile-dots{
    display:none !important;
}

@media (max-width:767px){
    .wchs-services-wrap{
        margin-left:0 !important;
        margin-right:0 !important;
        overflow:visible !important;
        padding:36px 0 0 !important;
        scroll-snap-type:none !important;
    }

    .wchs-services-grid{
        display:grid !important;
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        grid-auto-flow:row !important;
        grid-template-rows:auto !important;
        grid-auto-columns:auto !important;
        width:100% !important;
        gap:44px 12px !important;
        align-items:stretch !important;
    }

    .wchs-service-card{
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        min-height:166px !important;
        scroll-snap-align:none !important;
        padding:44px 12px 16px !important;
        border-radius:17px !important;
    }
}

@media (max-width:390px){
    .wchs-services-grid{
        gap:42px 10px !important;
    }

    .wchs-service-card{
        min-height:158px !important;
        padding-left:10px !important;
        padding-right:10px !important;
    }
}
