/*
 * Homepage Care Continuum image refinement — v10.21.2
 * Scope: high-resolution image replacement / fit / restrained transition only.
 * Existing Elementor layout, tabs, typography, copy and links remain intact.
 */

body.pdl-pr-home-continuum-active .pdl-home-continuum-image-host {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
}

body.pdl-pr-home-continuum-active .pdl-home-continuum-replacement-media {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    pointer-events: none;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1.001);
    transform-origin: center center;
    will-change: opacity, transform, filter;
}

body.pdl-pr-home-continuum-active img.pdl-home-continuum-direct-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

body.pdl-pr-home-continuum-active .pdl-home-continuum-replacement-media.pdl-home-continuum-replacement--swap {
    animation: pdlHomeContinuumReveal 680ms cubic-bezier(.2,.72,.24,1) both;
}

@keyframes pdlHomeContinuumReveal {
    0% {
        opacity: .72;
        transform: translateZ(0) scale(1.018);
        filter: saturate(.94) contrast(.98);
    }
    55% {
        opacity: 1;
        transform: translateZ(0) scale(1.006);
        filter: saturate(1.01) contrast(1.01);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) scale(1.001);
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pdl-pr-home-continuum-active .pdl-home-continuum-replacement-media,
    body.pdl-pr-home-continuum-active .pdl-home-continuum-replacement-media.pdl-home-continuum-replacement--swap,
    body.pdl-pr-home-continuum-active img.pdl-home-continuum-direct-image {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}


/* v10.21.2: direct replacement for the legacy Base64 JPEG slide images. */
body.pdl-pr-home-continuum-active #pdl-who-we-serve-simple .pdl-wsa-image-wrap img.pdl-home-continuum-direct-image {
    width: 100% !important;
    height: 100% !important;
    min-height: inherit;
    object-fit: cover !important;
    image-rendering: auto !important;
    filter: none;
}

body.pdl-pr-home-continuum-active #pdl-who-we-serve-simple .pdl-wsa-image-wrap img.pdl-home-continuum-direct-image.pdl-home-continuum-replacement--swap {
    animation: pdlHomeContinuumDirectReveal 680ms cubic-bezier(.2,.72,.24,1) both;
}

@keyframes pdlHomeContinuumDirectReveal {
    from { opacity: .72; transform: scale(1.035); }
    to { opacity: 1; transform: scale(1.015); }
}
