/* ============================================
   HERO SLIDER (slide 1 = mockup colours + doctor photo, slide 2 = theme colours + lounge photo)
   ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #232A40;
}

.hero-slides {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.hero-slide {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility 0s linear .7s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .7s ease, visibility 0s linear 0s;
    z-index: 1;
}

/* Slider controls */
.hero-slider-controls {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(20, 24, 42, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-slider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    transition: background-color .2s ease;
}

.hero-slider-arrow:hover {
    background: rgba(101, 192, 191, 0.45);
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: width .3s ease, background-color .3s ease;
}

.hero-slider-dot.is-active {
    width: 26px;
    background: #65C0BF;
}

.hero-slider-arrow:focus-visible,
.hero-slider-dot:focus-visible {
    outline: 3px solid #65C0BF;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .hero-slider-controls {
        left: 50%;
        bottom: 14px;
        transform: translateX(-50%);
    }
}

/* ============================================
   PHOTO HERO SLIDES: HEALTHCARE THAT PUTS YOU FIRST
   ============================================ */
.ph-hero {
    position: relative;
    overflow: hidden;
    background: #F2FAFA;
    color: #232A40;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
}

.ph-hero *,
.ph-hero *::before,
.ph-hero *::after {
    box-sizing: border-box;
}

.ph-hero .ph-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
}

.ph-hero .ph-photo img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
}

.ph-hero .ph-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(101,192,191,0.18) 0%, rgba(101,192,191,0) 45%),
        linear-gradient(90deg, #F2FAFA 0%, #F2FAFA 42%, rgba(242,250,250,0.92) 54%, rgba(242,250,250,0) 64%);
}

.ph-hero .ph-wave-left {
    position: absolute;
    left: 0;
    bottom: 0;
    width: clamp(240px, 28vw, 420px);
    height: clamp(110px, 12vw, 180px);
    pointer-events: none;
}

.ph-hero .ph-inner {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(56px, 7vw, 100px) 20px clamp(96px, 9vw, 130px);
}

.ph-hero .ph-copy {
    max-width: 740px;
}

.ph-hero .ph-eyebrow {
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #2E3747;
}

.ph-hero .ph-title {
    margin: 0 0 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 1.1rem + 3.2vw, 4.1rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #232A40;
}

.ph-hero .ph-accent {
    position: relative;
    display: inline-block;
    color: #2B8F8D;
}

.ph-hero .ph-swoosh {
    position: absolute;
    left: 28%;
    bottom: -0.32em;
    width: 72%;
    height: 0.3em;
    overflow: visible;
}

.ph-hero .ph-lead {
    margin: 0 0 34px;
    font-size: clamp(16px, 0.9rem + 0.3vw, 18px);
    line-height: 1.6;
    color: #2E3747;
}

.ph-hero .ph-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 44px;
}

.ph-hero .ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 30px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, background-color .2s ease;
}

.ph-hero .ph-btn i { font-size: 17px; }

.ph-hero .ph-btn-primary {
    background: #232A40;
    color: #FFFFFF;
    box-shadow: 0 10px 24px rgba(35,42,64,0.25);
}

.ph-hero .ph-btn-primary:hover {
    color: #FFFFFF;
    background: #2E3747;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(35,42,64,0.3);
}

.ph-hero .ph-btn-outline {
    border: 2px solid #65C0BF;
    background: #FFFFFF;
    color: #232A40;
}

.ph-hero .ph-btn-outline:hover {
    color: #232A40;
    background: rgba(101,192,191,0.14);
}

.ph-hero .ph-btn:focus-visible {
    outline: 3px solid #65C0BF;
    outline-offset: 3px;
}

.ph-hero .ph-trust {
    list-style: none;
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 0;
}

.ph-hero .ph-trust li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    border-left: 2px solid rgba(46,55,71,0.25);
}

.ph-hero .ph-trust li:first-child {
    padding-left: 0;
    border-left: 0;
}

.ph-hero .ph-trust i {
    width: 30px;
    text-align: center;
    flex: none;
    font-size: 28px;
    color: #2B8F8D;
}

.ph-hero .ph-trust span,
.ph-hero .ph-card span {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.5;
    color: #4A5261;
}

.ph-hero .ph-trust strong,
.ph-hero .ph-card strong {
    font-size: 14px;
    font-weight: 600;
    color: #232A40;
}

/* Cards, heart line and wave over the photo */
.ph-hero .ph-photo-wave {
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    width: clamp(150px, 17vw, 260px);
    height: clamp(100px, 11vw, 170px);
    pointer-events: none;
}

.ph-hero .ph-heartline {
    position: absolute;
    right: 0;
    bottom: 31%;
    width: clamp(120px, 14vw, 220px);
    height: auto;
    pointer-events: none;
}

.ph-hero .ph-card-top { top: 7%; right: clamp(16px, 4.7vw, 72px); }
.ph-hero .ph-card-bottom { bottom: 14%; right: clamp(16px, 4.7vw, 72px); }

.ph-hero .ph-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px 14px 20px;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 14px 34px rgba(35,42,64,0.14);
    white-space: nowrap;
}

.ph-hero .ph-card i {
    width: 30px;
    text-align: center;
    flex: none;
    font-size: 30px;
    color: #232A40;
}

.ph-hero .ph-card strong { font-size: 15px; }

/* Entrance animations: replay each time the slide becomes active */
.ph-hero.is-active .ph-in { animation: ph-in .8s cubic-bezier(.2,.8,.2,1) both; }
.ph-hero.is-active .ph-pop { animation: ph-pop .6s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes ph-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ph-pop { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
    .ph-hero .ph-photo { width: 55%; }
    .ph-hero .ph-fade {
        background: linear-gradient(90deg, #F2FAFA 0%, #F2FAFA 45%, rgba(242,250,250,0.85) 48%, rgba(242,250,250,0) 57%);
    }
}

@media (max-width: 920px) {
    .ph-hero { flex-direction: column; align-items: stretch; }
    .ph-hero .ph-inner { padding-bottom: 0; }
    .ph-hero .ph-photo {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        flex: 1 0 auto;
        margin-top: 0;
        order: 2;
    }
    .ph-hero .ph-fade {
        background: radial-gradient(ellipse at 10% 10%, rgba(101,192,191,0.18) 0%, rgba(101,192,191,0) 45%);
    }
    /* Blend the top of the photo into the text area, like the desktop side fade */
    .ph-hero .ph-photo::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -1px;
        height: 45%;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(180deg, #F2FAFA 0%, rgba(242,250,250,0.92) 25%, rgba(242,250,250,0.4) 65%, rgba(242,250,250,0) 100%);
    }
    .ph-hero .ph-br { display: none; }
}

@media (max-width: 560px) {
    .ph-hero .ph-ctas > a { flex: 1 1 100%; }
    /* Keep the trust points side by side on mobile. */
    .ph-hero .ph-trust {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }
    .ph-hero .ph-trust li {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-width: 0;
        padding: 0 10px;
        border-left: 2px solid rgba(46,55,71,0.25);
        text-align: left;
    }
    .ph-hero .ph-trust li:first-child { padding-left: 0; border-left: 0; }
    .ph-hero .ph-trust li:last-child { padding-right: 0; }
    .ph-hero .ph-trust i { width: 24px; font-size: 22px; }
    .ph-hero .ph-trust span { align-items: flex-start; font-size: 10px !important; line-height: 1.35 !important; }
    .ph-hero .ph-trust strong { font-size: 11px; line-height: 1.3; margin-bottom: 2px; }
    .ph-hero .ph-card { gap: 12px; padding: 10px 14px; border-radius: 12px; }
    .ph-hero .ph-card i { width: 24px; font-size: 24px; }
    .ph-hero .ph-card strong { font-size: 13px; }
    .ph-hero .ph-card span { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .ph-hero.is-active .ph-in,
    .ph-hero.is-active .ph-pop { animation: none; }
    .ph-hero .ph-btn { transition: none; }
}

/* ============================================
   SLIDE 1 (doctor photo): same theme as slide 2, layout tuned so the
   fade only touches the blurred background, never the doctor's face
   ============================================ */
.ph-doc .ph-photo { width: 61%; }
.ph-doc .ph-photo img { object-position: 65% 50%; }
.ph-doc .ph-photo-wave { right: auto; bottom: auto; }

.ph-doc .ph-fade {
    background:
        radial-gradient(ellipse at 10% 20%, rgba(101,192,191,0.18) 0%, rgba(101,192,191,0) 45%),
        linear-gradient(90deg, #F2FAFA 0%, #F2FAFA 39%, rgba(242,250,250,0.85) 43%, rgba(242,250,250,0) 50%);
}

/* keep the copy clear of the doctor: it may wrap rather than run over his face */
.ph-doc .ph-copy {
    max-width: calc(52vw - max(20px, (100vw - 1240px) / 2 + 20px));
}

@media (max-width: 1100px) {
    .ph-doc .ph-photo { width: 58%; }
    .ph-doc .ph-fade {
        background: linear-gradient(90deg, #F2FAFA 0%, #F2FAFA 42%, rgba(242,250,250,0.85) 46%, rgba(242,250,250,0) 52%);
    }
}

@media (max-width: 920px) {
    .ph-doc .ph-photo { width: 100%; aspect-ratio: 936 / 662; }
    .ph-doc .ph-copy { max-width: none; }
    .ph-doc .ph-fade {
        background: radial-gradient(ellipse at 10% 10%, rgba(101,192,191,0.18) 0%, rgba(101,192,191,0) 45%);
    }
    /* a short top blend only, so the face stays untouched */
    .ph-doc .ph-photo::before { height: 12%; }
}

/* mobile: leave room under the photo for the slider controls so they never cover a card */
@media (max-width: 920px) {
    .ph-hero { padding-bottom: 76px; }
}

/* ============================================
   PERFORMANCE: no animation work for slides that can't be seen
   ============================================ */
.hero-slide:not(.is-active) *,
.hero-slider.is-offscreen * {
    animation-play-state: paused !important;
}

.hero-slide:not(.is-active) {
    pointer-events: none;
}
