/*
 * Temporary TOP photos for client review.
 * Keep the original live layout, text, buttons and formal pictograms.
 */

body.home .lla-photo-slot--hero {
    border: 0 !important;
    background-image: url("../images/top-hero.png") !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
}

body.home .lla-photo-slot--hero > span,
body.home .lla-photo-slot--card > span,
body.home .lla-photo-slot--about > span {
    display: none !important;
}

body.home .lla-photo-slot--hero::before,
body.home .lla-photo-slot--card::before,
body.home .lla-photo-slot--about::before {
    display: none !important;
}

body.home .lla-service-card:nth-child(1) .lla-photo-slot--card {
    background-image: url("../images/top-service-care-taxi.png") !important;
}

body.home .lla-service-card:nth-child(2) .lla-photo-slot--card {
    background-image: url("../images/top-service-nurse.png") !important;
}

body.home .lla-service-card:nth-child(3) .lla-photo-slot--card {
    background-image: url("../images/top-service-travel.png") !important;
}

body.home .lla-service-card:nth-child(4) .lla-photo-slot--card {
    background-image: url("../images/top-service-support.png") !important;
}

body.home .lla-photo-slot--card {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* About: use the full image as the section background without cropping. */
body.home .lla-about {
    background-image: url("../images/top-about.png") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center center !important;
}

/* Keep the existing right-side slot only as layout space. */
body.home .lla-photo-slot--about {
    background: transparent !important;
    border: 0 !important;
}

/* STEP 167: TOP mobile hero layout */
@media screen and (max-width: 640px) {

    body.home .lla-hero {
        position: relative;
        min-height: 590px;
        display: flex;
        align-items: flex-end;
        background: #fffaf3;
    }

    body.home .lla-photo-slot--hero {
        position: absolute;
        inset: 0;
        height: 100%;
        background-position: 62% center !important;
        background-size: cover !important;
    }

    body.home .lla-hero::after {
        content: none !important;
    }

    body.home .lla-hero__content {
        position: relative;
        z-index: 2;
        padding: 0 0 34px;
    }

    body.home .lla-hero__content h1 {
        position: relative;
        z-index: 1;
        isolation: isolate;
        font-size: clamp(27px, 7vw, 36px);
        line-height: 1.5;
    }

    body.home .lla-hero__content h1::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: -22px -14px;
        background: radial-gradient(
            ellipse at center,
            rgba(255,250,243,.95) 0%,
            rgba(255,250,243,.82) 45%,
            rgba(255,250,243,0) 100%
        );
        pointer-events: none;
    }

    body.home .lla-hero__content p {
        position: relative;
        z-index: 1;
        padding: 12px 8px;
        background: rgba(255,250,243,.78);
        border-radius: 8px;
    }
}

/* STEP 168: Soft mobile text background */
@media screen and (max-width: 640px) {

    body.home .lla-hero__content h1::before {
        inset: -30px -22px;
        background: radial-gradient(
            ellipse at center,
            rgba(255,250,243,.92) 0%,
            rgba(255,250,243,.68) 55%,
            rgba(255,250,243,0) 100%
        );
    }

    body.home .lla-hero__content p {
        background: linear-gradient(
            90deg,
            rgba(255,250,243,.88) 0%,
            rgba(255,250,243,.65) 65%,
            rgba(255,250,243,.15) 100%
        );
        border-radius: 0;
    }
}

/* STEP 170: Improve mobile heading contrast */
@media screen and (max-width: 640px) {
    body.home .lla-hero__content h1 {
        text-shadow:
            0 0 8px rgba(255,250,243,.95),
            0 0 18px rgba(255,250,243,.9),
            0 0 28px rgba(255,250,243,.8);
    }
}

/* STEP 171: Position heading in upper-left sky */
@media screen and (max-width: 640px) {

    body.home .lla-hero__content h1 {
        position: absolute;
        top: 34px;
        left: 14px;
        width: calc(100% - 28px);
        max-width: 100%;
        margin: 0;
        font-size: clamp(24px, 6vw, 30px);
        line-height: 1.55;
        letter-spacing: .035em;
        text-shadow: 0 1px 8px rgba(255,255,255,.85);
    }

    body.home .lla-hero__content h1::before {
        content: none !important;
    }
}

/* STEP 172: Anchor mobile heading to entire hero */
@media screen and (max-width: 640px) {

    body.home .lla-hero__content {
        position: static;
    }

    body.home .lla-hero__content h1 {
        position: absolute;
        top: 42px;
        left: 16px;
        width: 52%;
        max-width: 52%;
        margin: 0;
        font-size: clamp(20px, 5vw, 25px);
        line-height: 1.55;
        letter-spacing: .02em;
        z-index: 3;
        text-shadow: 0 1px 5px rgba(255,255,255,.9);
    }
}

/* STEP 173: Larger heading and stronger sky halo */
@media screen and (max-width: 640px) {

    body.home .lla-hero__content h1 {
        top: 38px;
        left: 14px;
        width: 58%;
        max-width: 58%;
        font-size: clamp(25px, 6vw, 31px);
        line-height: 1.5;
        letter-spacing: .01em;
        text-shadow: none;
        isolation: isolate;
    }

    body.home .lla-hero__content h1::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: -35px -28px;
        background: radial-gradient(
            ellipse at center,
            rgba(255,255,255,.96) 0%,
            rgba(255,255,255,.82) 35%,
            rgba(255,255,255,.48) 65%,
            rgba(255,255,255,0) 100%
        );
        pointer-events: none;
    }
}

/* STEP 174: Lower heading and restore visible halo */
@media screen and (max-width: 640px) {

    body.home .lla-hero__content h1 {
        top: 85px;
    }

    body.home .lla-hero__content h1::before {
        content: "" !important;
        display: block !important;
        position: absolute;
        z-index: -1;
        inset: -30px -22px;
        background: radial-gradient(
            ellipse at center,
            rgba(255,255,255,.96) 0%,
            rgba(255,255,255,.82) 45%,
            rgba(255,255,255,.35) 75%,
            rgba(255,255,255,0) 100%
        );
        pointer-events: none;
    }
}

/* STEP 175: Clean sky heading without white panel */
@media screen and (max-width: 640px) {

    body.home .lla-hero__content h1 {
        top: 65px;
        left: 16px;
        width: 52%;
        max-width: 52%;
        font-size: clamp(24px, 6vw, 29px);
        line-height: 1.55;
        background: none !important;
        text-shadow: 0 1px 3px rgba(255,255,255,.8);
    }

    body.home .lla-hero__content h1::before {
        content: none !important;
        display: none !important;
        background: none !important;
    }
}

/* STEP 176: Strong mobile hero typography */
@media screen and (max-width: 640px) {
    body.home .lla-hero__content h1 {
        top: 65px;
        left: 14px;
        width: 58%;
        max-width: 58%;
        font-size: clamp(27px, 6.5vw, 33px);
        font-weight: 700;
        line-height: 1.5;
        letter-spacing: .015em;
        color: #183b56;
        text-shadow: 0 1px 2px rgba(255,255,255,.65);
    }

    body.home .lla-hero__content h1 em {
        color: #c85b55;
        font-weight: 700;
    }
}

/* STEP 178: Mobile service cards with photos */
@media screen and (max-width: 640px) {

    body.home .lla-service-card {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 0 22px;
        overflow: hidden;
        border-radius: 14px;
        background: #fff;
    }

    body.home .lla-service-card .lla-photo-slot--card {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        border-radius: 0;
        flex-shrink: 0;
    }

    body.home .lla-service-card > img {
        display: block;
        align-self: flex-start;
        flex-shrink: 0;
        margin: -37px 0 10px 18px !important;
    }

    body.home .lla-service-card h3 {
        margin: 0 18px 12px;
        font-size: 19px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    body.home .lla-service-card p {
        margin: 0 18px 18px;
        min-height: 0;
        font-size: 14px;
        line-height: 1.85;
    }

    body.home .lla-service-card > a {
        align-self: flex-start;
        margin: auto 18px 0;
        font-size: 14px;
    }
}

/* STEP 184: Separate About text and photo on mobile */
@media screen and (max-width: 640px) {

    body.home .lla-about {
        background-image: none !important;
    }

    body.home .lla-about__inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    body.home .lla-about__copy {
        position: relative;
        z-index: 1;
        width: 100%;
        padding: 20px 0 24px;
    }

    body.home .lla-photo-slot--about {
        display: block;
        width: 100%;
        min-height: 240px;
        background-image: url("../images/top-about.png") !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: contain !important;
        border: 0;
        border-radius: 12px;
    }
}

/* STEP 185: Mobile About content order */
@media screen and (max-width: 640px) {

    body.home .lla-about__inner {
        display: flex;
        flex-direction: column;
    }

    body.home .lla-about__copy {
        display: contents;
    }

    body.home .lla-about__copy .lla-eyebrow {
        order: 1;
    }

    body.home .lla-about__copy h2 {
        order: 2;
    }

    body.home .lla-about__copy > p:not(.lla-eyebrow):not(.lla-operator) {
        order: 3;
    }

    body.home .lla-photo-slot--about {
        order: 4;
        margin: 16px 0 24px;
    }

    body.home .lla-about__copy .lla-operator {
        order: 5;
        width: 100%;
        margin-bottom: 24px;
    }

    body.home .lla-about__copy > .lla-button {
        order: 6;
        align-self: flex-start;
    }
}

/* STEP 245: TOP mobile hero unified 470px */
@media screen and (max-width: 640px) {
    body.home .lla-hero {
        min-height: 470px;
        height: 470px;
        display: block;
        overflow: visible;
    }

    body.home .lla-photo-slot--hero {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background-size: cover !important;
    }

    body.home .lla-hero__content {
        position: static;
        padding: 0;
    }

    body.home .lla-hero__content h1 {
        position: absolute;
        top: 35px;
        left: 14px;
        width: 58%;
        max-width: 58%;
    }

    body.home .lla-hero__content p {
        position: absolute;
        top: 180px;
        left: 14px;
        width: 56%;
        box-sizing: border-box;
        margin: 0;
        padding: 8px;
        font-size: 11px;
        line-height: 1.65;
        background: rgba(255,250,243,.72);
    }

    body.home .lla-hero__buttons {
        position: absolute;
        top: 470px;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 16px 20px;
        display: grid;
        gap: 10px;
        background: #fffaf3;
    }
}

/* STEP 246: Remove mobile hero text background */
@media screen and (max-width: 640px) {
    body.home .lla-hero__content p {
        background: transparent !important;
        border-radius: 0;
    }
}

/* STEP 247: Mobile hero white gradient from left */
@media screen and (max-width: 640px) {
    body.home .lla-hero::after {
        content: "" !important;
        display: block !important;
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(
            90deg,
            rgba(255,255,255,.90) 0%,
            rgba(255,255,255,.75) 22%,
            rgba(255,255,255,.35) 42%,
            rgba(255,255,255,0) 58%
        ) !important;
        pointer-events: none;
    }
}

/* STEP 248: Keep description above white gradient */
@media screen and (max-width: 640px) {
    body.home .lla-hero__content p {
        z-index: 3 !important;
    }
}
