/* =========================================
   VIREXIS CARE JOURNEY 3.0
   CINEMATIC EXPERIENCE ENGINE
   ========================================= */

.vx-care-v3 {
    --care-navy: #0b233b;
    --care-deep: #061728;
    --care-blue: #187db8;
    --care-cyan: #63ccff;
    --care-muted: #526b83;
    --care-border: #dce6ee;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(70px, 7vw, 125px) 0;
    background:
        radial-gradient(
            ellipse at 90% 5%,
            rgba(181, 218, 240, .24),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #f1f6fa 0%,
            #ffffff 100%
        );
    color: var(--care-navy);
}

.vx-care-v3 *,
.vx-care-v3 *::before,
.vx-care-v3 *::after {
    box-sizing: border-box;
}

.vx-care-v3 [hidden] {
    display: none !important;
}

.vx-care-shell {
    position: relative;
    z-index: 2;
    width: min(92%, 1600px);
    margin-inline: auto;
}

/* AMBIENT ARCHITECTURE */

.vx-care-ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.vx-care-ambient span {
    position: absolute;
    display: block;
    width: 850px;
    height: 850px;
    right: -340px;
    top: -420px;
    border: 1px solid rgba(29, 105, 158, .09);
    border-radius: 50%;
}

.vx-care-ambient span:nth-child(2) {
    width: 950px;
    height: 950px;
    right: -390px;
    top: -470px;
}

.vx-care-ambient span:nth-child(3) {
    width: 1050px;
    height: 1050px;
    right: -440px;
    top: -520px;
}

/* EDITORIAL HEADER */

.vx-care-header {
    max-width: 960px;
    margin: 0 auto clamp(35px, 4vw, 65px);
    text-align: center;
}

.vx-care-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--care-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .23em;
    line-height: 1.7;
}

.vx-care-eyebrow > span {
    width: 28px;
    height: 1px;
    background: var(--care-blue);
}

.vx-care-header h2 {
    margin: 0;
    color: var(--care-navy);
    font-size: clamp(36px, 3.7vw, 66px);
    font-weight: 650;
    line-height: 1.07;
    letter-spacing: -.055em;
}

.vx-care-header h2 > span {
    display: block;
    color: var(--care-blue);
}

.vx-care-header > p {
    max-width: 690px;
    margin: 24px auto 0;
    color: var(--care-muted);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.85;
}

/* MAIN EXPERIENCE */

.vx-care-experience {
    position: relative;
}

.vx-care-stage-area {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(80, 170, 230, .35);
    border-radius: 24px;
    background: var(--care-deep);
    box-shadow:
        0 35px 85px rgba(9, 39, 65, .16),
        0 5px 15px rgba(9, 39, 65, .08);
}

.vx-care-panel {
    display: grid;
    grid-template-columns: 58% 42%;
    min-height: clamp(490px, 34vw, 600px);
    margin: 0;
    padding: 0;
    background: var(--care-deep);
}

/* Accessible fallback without JavaScript */

.vx-care-v3:not(.is-enhanced)
.vx-care-panel + .vx-care-panel {
    border-top: 1px solid rgba(255, 255, 255, .12);
}

/* Interactive state */

.vx-care-v3.is-enhanced .vx-care-panel {
    display: none;
}

.vx-care-v3.is-enhanced .vx-care-panel.is-active {
    display: grid;
    animation: vxCareReveal .55s ease both;
}

@keyframes vxCareReveal {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PHOTOGRAPHIC EXPERIENCE */

.vx-care-visual {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 100%;
    background: #102b42;
}

.vx-care-visual picture {
    position: absolute;
    inset: 0;
    display: block;
}

.vx-care-visual img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .9s ease;
}

.vx-care-panel.is-active .vx-care-visual img {
    animation: vxCarePhoto 1.1s ease both;
}

@keyframes vxCarePhoto {
    from {
        transform: scale(1.035);
    }
    to {
        transform: scale(1);
    }
}

.vx-care-photo-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent 65%,
            rgba(6, 23, 40, .35) 100%
        ),
        linear-gradient(
            0deg,
            rgba(5, 19, 33, .72),
            transparent 24%
        );
}

.vx-care-photo-brand {
    position: absolute;
    top: 28px;
    left: 28px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 5px;
    background: rgba(6, 23, 40, .72);
    color: #ffffff;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: .17em;
    line-height: 1.4;
    backdrop-filter: blur(10px);
}

.vx-care-photo-brand span {
    display: block;
    margin-top: 4px;
    color: #b8d7ec;
    font-size: 8px;
    letter-spacing: .2em;
}

.vx-care-photo-credit {
    position: absolute;
    bottom: 20px;
    left: 28px;
    right: 28px;
    color: #ffffff;
    font-size: 10px;
    line-height: 1.5;
    text-shadow: 0 1px 5px #061728;
}

/* NARRATIVE PANEL */

.vx-care-story {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(30px, 3.8vw, 68px);
    padding-bottom: 110px;
    color: #ffffff;
    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(33, 132, 192, .26),
            transparent 65%
        ),
        linear-gradient(
            135deg,
            #0b263e,
            #071b2e 75%
        );
}

.vx-care-story::before {
    content: "";
    position: absolute;
    top: -190px;
    right: -200px;
    width: 540px;
    height: 540px;
    border: 1px solid rgba(99, 204, 255, .10);
    border-radius: 50%;
    z-index: -1;
    box-shadow:
        0 0 0 35px rgba(99, 204, 255, .025),
        0 0 0 70px rgba(99, 204, 255, .018);
}

.vx-care-watermark {
    position: absolute;
    z-index: -1;
    top: 10px;
    right: 15px;
    color: rgba(255, 255, 255, .035);
    font-size: clamp(150px, 18vw, 290px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.09em;
    user-select: none;
    pointer-events: none;
}

.vx-care-stage-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--care-cyan);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.vx-care-stage-label > span {
    font-size: 17px;
    letter-spacing: .05em;
}

.vx-care-stage-label > i {
    width: 30px;
    height: 1px;
    background: var(--care-cyan);
    box-shadow: 0 0 12px var(--care-cyan);
}

.vx-care-story h3 {
    max-width: 530px;
    margin: 0 0 23px;
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: clamp(35px, 3.4vw, 60px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.vx-care-story > p {
    max-width: 500px;
    margin: 0;
    color: #c5d8e8;
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.85;
}

.vx-care-features {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.vx-care-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #e1edf6;
    font-size: 13px;
    line-height: 1.5;
}

.vx-care-features li > span {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--care-cyan);
    box-shadow: 0 0 12px rgba(99, 204, 255, .65);
}

/* INTERACTIVE CONTROLS */

.vx-care-controls {
    position: absolute;
    z-index: 5;
    right: clamp(30px, 3.8vw, 68px);
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.vx-care-controls button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(139, 204, 243, .38);
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
    color: #ffffff;
    cursor: pointer;
    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.vx-care-controls button:hover {
    border-color: var(--care-cyan);
    background: rgba(99, 204, 255, .15);
    transform: translateY(-2px);
}

.vx-care-controls svg {
    width: 20px;
    height: 20px;
}

.vx-care-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a9c1d4;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.vx-care-counter > span:first-child {
    color: var(--care-cyan);
    font-size: 16px;
    font-weight: 650;
}

.vx-care-counter > i {
    width: 25px;
    height: 1px;
    background: rgba(255, 255, 255, .25);
}

/* PROGRESS SYSTEM */

.vx-care-navigation {
    margin-top: 24px;
}

.vx-care-track {
    position: relative;
    height: 3px;
    margin-bottom: 17px;
    overflow: hidden;
    border-radius: 10px;
    background: #dbe7ef;
}

.vx-care-track > span {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #187db8,
        #63ccff
    );
    box-shadow: 0 0 14px rgba(99, 204, 255, .7);
    transition: width .45s ease;
}

/* CLINICAL NAVIGATION */

.vx-care-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.vx-care-tab {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    min-height: 136px;
    padding: 22px 24px;
    border: 1px solid var(--care-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, .9);
    color: var(--care-navy);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 7px 25px rgba(11, 35, 59, .035);
    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.vx-care-tab:hover {
    transform: translateY(-3px);
    border-color: #8cc9ec;
    box-shadow: 0 10px 30px rgba(11, 35, 59, .09);
}

.vx-care-tab.is-active {
    border-color: #409ed2;
    background: linear-gradient(
        130deg,
        #102e49,
        #0a2035
    );
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(11, 35, 59, .17);
}

.vx-care-tab-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.vx-care-tab-number {
    color: var(--care-blue);
    font-size: 25px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: -.04em;
}

.vx-care-tab-top svg {
    width: 27px;
    height: 27px;
    color: var(--care-blue);
}

.vx-care-tab.is-active .vx-care-tab-number,
.vx-care-tab.is-active svg {
    color: var(--care-cyan);
}

.vx-care-tab-label {
    display: block;
    font-size: clamp(13px, 1.05vw, 17px);
    font-weight: 650;
    line-height: 1.4;
}

.vx-care-tab-verb {
    display: block;
    color: #627b91;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
}

.vx-care-tab.is-active .vx-care-tab-verb {
    color: #b3cde0;
}

.vx-care-tab-light {
    position: absolute;
    right: 15px;
    bottom: 0;
    left: 15px;
    height: 2px;
    border-radius: 50%;
    background: var(--care-cyan);
    opacity: 0;
    box-shadow: 0 0 15px 2px var(--care-cyan);
    transition: opacity .3s ease;
}

.vx-care-tab.is-active .vx-care-tab-light {
    opacity: 1;
}

/* EDITORIAL FOOTER */

.vx-care-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid var(--care-border);
}

.vx-care-promise {
    display: flex;
    align-items: center;
    gap: 13px;
}

.vx-care-promise > span {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #248fc8;
    box-shadow: 0 0 0 5px rgba(36, 143, 200, .10);
}

.vx-care-promise p {
    margin: 0;
    color: var(--care-muted);
    font-size: 14px;
    line-height: 1.7;
}

.vx-care-promise strong {
    color: var(--care-navy);
    font-weight: 650;
}

.vx-care-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 16px 25px;
    border: 1px solid #173f60;
    border-radius: 7px;
    background: var(--care-navy);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background .25s ease,
        box-shadow .25s ease;
}

.vx-care-cta:hover {
    background: #17689b;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(23, 104, 155, .2);
}

.vx-care-cta svg {
    width: 19px;
    height: 19px;
}

.vx-care-v3 button:focus-visible,
.vx-care-v3 a:focus-visible {
    outline: 3px solid #39b6f5;
    outline-offset: 4px;
}

/* TABLET */

@media (max-width: 1100px) {

    .vx-care-panel {
        grid-template-columns: 52% 48%;
        min-height: 490px;
    }

    .vx-care-story {
        padding: 32px 30px 105px;
    }

    .vx-care-tab {
        padding: 18px 16px;
    }

    .vx-care-controls {
        right: 30px;
    }
}

/* MOBILE EXPERIENCE */

@media (max-width: 767px) {

    .vx-care-v3 {
        padding: 65px 0;
    }

    .vx-care-shell {
        width: calc(100% - 32px);
    }

    .vx-care-header {
        margin-bottom: 30px;
    }

    .vx-care-eyebrow {
        font-size: 9px;
        letter-spacing: .16em;
    }

    .vx-care-eyebrow > span {
        width: 16px;
    }

    .vx-care-header h2 {
        font-size: clamp(32px, 8.4vw, 46px);
    }

    .vx-care-header > p {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.75;
    }

    .vx-care-stage-area {
        border-radius: 16px;
    }

    .vx-care-panel,
    .vx-care-v3.is-enhanced
    .vx-care-panel.is-active {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .vx-care-visual {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .vx-care-photo-brand {
        top: 14px;
        left: 14px;
        padding: 8px 11px;
        font-size: 11px;
    }

    .vx-care-photo-brand span {
        font-size: 7px;
    }

    .vx-care-photo-credit {
        bottom: 12px;
        left: 14px;
        right: 14px;
        font-size: 9px;
    }

    .vx-care-story {
        justify-content: flex-start;
        min-height: 385px;
        padding: 30px 25px 100px;
    }

    .vx-care-watermark {
        font-size: 190px;
    }

    .vx-care-stage-label {
        margin-bottom: 18px;
    }

    .vx-care-story h3 {
        font-size: clamp(32px, 8vw, 44px);
        margin-bottom: 16px;
    }

    .vx-care-story > p {
        font-size: 14px;
        line-height: 1.75;
    }

    .vx-care-features {
        gap: 10px;
        margin-top: 22px;
    }

    .vx-care-controls {
        right: 25px;
        bottom: 23px;
        gap: 13px;
    }

    .vx-care-controls button {
        width: 44px;
        height: 44px;
    }

    .vx-care-navigation {
        margin-top: 18px;
    }

    .vx-care-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .vx-care-tab {
        min-height: 110px;
        padding: 14px;
        border-radius: 10px;
    }

    .vx-care-tab-number {
        font-size: 22px;
    }

    .vx-care-tab-top {
        margin-bottom: 3px;
    }

    .vx-care-tab-top svg {
        width: 23px;
        height: 23px;
    }

    .vx-care-tab-label {
        font-size: 13px;
    }

    .vx-care-tab-verb {
        font-size: 10px;
    }

    .vx-care-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin-top: 25px;
        padding-top: 22px;
    }

    .vx-care-promise {
        justify-content: center;
    }

    .vx-care-promise p {
        font-size: 12px;
    }

    .vx-care-cta {
        width: 100%;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .vx-care-v3 *,
    .vx-care-v3 *::before,
    .vx-care-v3 *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* VIREXIS DAVID ADAPTIVE PHOTOGRAPHY V1.0 */

.vx-care-v3 [data-care-panel="3"] .vx-care-visual {
    isolation: isolate;
    background:
        radial-gradient(
            ellipse at 45% 40%,
            #496779 0%,
            #203d53 48%,
            #0b233b 100%
        );
}

.vx-care-v3 [data-care-panel="3"] .vx-care-visual picture {
    z-index: 1;
}

.vx-care-v3 [data-care-panel="3"] .vx-care-visual picture img {
    object-fit: contain;
    object-position: center center;
    position: relative;
    z-index: 1;
    animation: none;
    transform: none;
    filter: drop-shadow(
        0 12px 30px rgba(0, 0, 0, .16)
    );
}

.vx-care-v3 [data-care-panel="3"] .vx-care-visual::before {
    content: "";
    position: absolute;
    inset: -25px;
    z-index: 0;
    background-image: var(--vx-david-ambient, none);
    background-size: cover;
    background-position: center 42%;
    filter: blur(32px) brightness(.66);
    transform: scale(1.12);
    pointer-events: none;
}

.vx-care-v3 [data-care-panel="3"] .vx-care-photo-shade {
    z-index: 2;
    background:
        linear-gradient(
            90deg,
            rgba(7, 24, 39, .12),
            transparent 25%,
            transparent 70%,
            rgba(7, 24, 39, .30)
        ),
        linear-gradient(
            0deg,
            rgba(5, 19, 33, .65),
            transparent 18%
        );
}

.vx-care-v3 [data-care-panel="3"] .vx-care-photo-brand,
.vx-care-v3 [data-care-panel="3"] .vx-care-photo-credit {
    z-index: 3;
}

@media (max-width: 767px) {

    .vx-care-v3 [data-care-panel="3"] .vx-care-visual {
        aspect-ratio: 4 / 5;
        min-height: 0;
    }

    .vx-care-v3 [data-care-panel="3"] .vx-care-visual::before {
        filter: blur(24px) brightness(.70);
    }

    .vx-care-v3 [data-care-panel="3"] .vx-care-visual picture img {
        object-fit: contain;
    }
}



/* VIREXIS DAVID CINEMATIC REFINEMENT V2.0 */

.vx-care-v3 [data-care-panel="3"] .vx-care-visual {
    background: #0b233b;
    isolation: isolate;
}

/* Institutional ambient photography */

.vx-care-v3 [data-care-panel="3"] .vx-care-visual::before {
    inset: -35px;

    background-image:
        linear-gradient(
            110deg,
            rgba(9, 35, 57, .72),
            rgba(15, 48, 73, .35),
            rgba(6, 23, 40, .92)
        ),
        var(--vx-david-ambient, none);

    background-size: cover;
    background-position: center 38%;

    filter: blur(38px) brightness(.85);
    transform: scale(1.12);
}

/* Desktop photographic composition */

@media (min-width: 768px) {

    .vx-care-v3 [data-care-panel="3"] .vx-care-visual picture {

        inset: 0 auto 0 50%;

        width: min(100%, 580px);
        height: 100%;

        transform: translateX(-50%);

        -webkit-mask-image: linear-gradient(
            90deg,
            transparent 0%,
            #000 13%,
            #000 84%,
            transparent 100%
        );

        mask-image: linear-gradient(
            90deg,
            transparent 0%,
            #000 13%,
            #000 84%,
            transparent 100%
        );
    }

    .vx-care-v3 [data-care-panel="3"] .vx-care-visual picture img {

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: 50% 35% !important;

        transform: none;
        animation: none;
        filter: none;
    }
}

/* Cinematic integration */

.vx-care-v3 [data-care-panel="3"] .vx-care-photo-shade {

    background:
        linear-gradient(
            90deg,
            rgba(7, 25, 42, .30) 0%,
            transparent 25%,
            transparent 65%,
            rgba(9, 31, 50, .88) 100%
        ),
        linear-gradient(
            0deg,
            rgba(5, 19, 33, .80),
            transparent 23%
        );
}

/* Preserve natural portrait on mobile */

@media (max-width: 767px) {

    .vx-care-v3 [data-care-panel="3"] .vx-care-visual {

        aspect-ratio: 4 / 5;
        min-height: 0;
    }

    .vx-care-v3 [data-care-panel="3"] .vx-care-visual picture {

        inset: 0;
        width: 100%;
        height: 100%;
        transform: none;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .vx-care-v3 [data-care-panel="3"] .vx-care-visual picture img {

        object-fit: contain;
        object-position: center center !important;
        filter: none;
    }

    .vx-care-v3 [data-care-panel="3"] .vx-care-photo-shade {

        background: linear-gradient(
            0deg,
            rgba(5, 19, 33, .65),
            transparent 20%
        );
    }
}

