/* =========================================================
HOMEPAGE
========================================================= */

.home-hero {
    min-height: clamp(560px, 76vh, 760px);
}

.home-hero-slides {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.home-hero-slide {
    z-index: 0;
    opacity: 0;
    transform: scale(1.04);
    transition:
        opacity 0.9s ease,
        transform 5.8s ease;
    will-change: opacity, transform;
}

.home-hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    transform: scale(1);
}

.home-hero::before {
    background:
        radial-gradient(circle at 78% 44%, rgba(0, 174, 239, 0.3), transparent 28%),
        linear-gradient(
            90deg,
            rgba(18, 25, 32, 0.96) 0%,
            rgba(18, 25, 32, 0.86) 42%,
            rgba(18, 25, 32, 0.5) 74%,
            rgba(18, 25, 32, 0.76) 100%
        );
}

.home-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.86fr);
    align-items: center;
    gap: clamp(18px, 4vw, 56px);
    min-height: inherit;
}

.home-hero-content {
    align-self: center;
}

.home-hero .page-hero-title {
    max-width: 760px;
    font-size: clamp(38px, 5.5vw, 72px);
}

.home-hero .page-hero-text {
    display: block;
}

.home-hero .page-hero-pill {
    border-left-color: var(--colour-primary, #00aeef);
    background: rgba(12, 18, 24, 0.82);
    color: var(--colour-white, #ffffff);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    text-decoration: none;
}

.home-hero-van {
    position: relative;
    z-index: 2;
    align-self: center;
    width: min(112%, 760px);
    margin-inline: auto;
    filter:
        drop-shadow(2px 0 0 rgba(255, 255, 255, 0.55))
        drop-shadow(-2px 0 0 rgba(255, 255, 255, 0.55))
        drop-shadow(0 30px 34px rgba(0, 0, 0, 0.38));
    transform: rotate(-1.5deg);
    animation: home-van-bounce 4.8s ease-in-out infinite;
    will-change: transform;
}

.home-hero-dots {
    position: absolute;
    left: 50%;
    bottom: clamp(22px, 4vw, 34px);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transform: translateX(-50%);
}

.home-hero-dots button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.home-hero-dots button::before {
    content: "";
    display: block;
    width: 11px;
    height: 11px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    transition:
        width 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease;
}

.home-hero-dots button.is-active::before {
    width: 28px;
    background: var(--colour-primary, #00aeef);
    border-color: var(--colour-primary, #00aeef);
}

.home-hero-dots button:focus-visible {
    outline: 2px solid var(--colour-white, #ffffff);
    outline-offset: 3px;
}

@keyframes home-van-bounce {
    0%,
    100% {
        transform: translateY(0) rotate(-1.5deg);
    }

    50% {
        transform: translateY(-9px) rotate(-1.5deg);
    }
}

.home-section {
    padding-block: clamp(52px, 7vw, 88px);
}

.home-services,
.home-reviews,
.home-posts {
    position: relative;
    background:
        linear-gradient(rgba(214, 214, 214, 0.9), rgba(214, 214, 214, 0.92)),
        url("../../images/isle-of-wight-cleaning-bg.webp") center / cover;
    box-shadow: 0 .1rem 1rem rgb(0 0 0 / 28%);
}

.home-section-head {
    max-width: 780px;
    margin: 0 auto clamp(26px, 4vw, 42px);
    text-align: center;
}

.home-section-actions {
    display: flex;
    justify-content: center;
    margin-top: clamp(26px, 4vw, 38px);
}

.home-services {
    position: relative;
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 26px);
    align-items: stretch;
}

.home-service-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(32, 40, 50, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--colour-dark, #202832);
    box-shadow: 0 16px 38px rgba(32, 40, 50, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease;
}

.home-service-card:hover,
.home-service-card:focus-visible {
    border-color: rgba(0, 174, 239, 0.38);
    background: rgba(255, 255, 255, 0.9);
    color: var(--colour-dark, #202832);
    box-shadow: 0 22px 48px rgba(32, 40, 50, 0.14);
    transform: translateY(-4px);
}

.reveal-motion-ready .home-service-card[data-reveal].is-visible:hover,
.reveal-motion-ready .home-service-card[data-reveal].is-visible:focus-visible {
    transform: translateY(-4px);
}

.home-service-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--colour-dark, #202832);
}

.home-service-card::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: clamp(18px, 2.4vw, 24px);
    right: clamp(18px, 2.4vw, 24px);
    height: 5px;
    border-radius: 0 0 999px 999px;
    background: var(--colour-primary, #00aeef);
    box-shadow: 0 10px 22px rgba(0, 174, 239, 0.28);
}

.home-service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(18, 25, 32, 0.04), rgba(18, 25, 32, 0.28)),
        linear-gradient(90deg, rgba(0, 174, 239, 0.14), transparent 48%);
    pointer-events: none;
}

.home-service-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-service-card:hover .home-service-media img,
.home-service-card:focus-visible .home-service-media img {
    transform: scale(1.04);
}

.home-service-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    min-height: 218px;
    padding: clamp(18px, 2.4vw, 26px);
    text-align: center;
}

.home-service-title {
    color: var(--colour-dark, #202832);
    font-size: clamp(1.18rem, 1.8vw, 1.48rem);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: 0;
}

.home-service-text {
    max-width: 36rem;
    margin-inline: auto;
    color: rgba(32, 40, 50, 0.72);
    font-size: 14.5px;
    line-height: 1.6;
}

.home-service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    margin-inline: auto;
    padding: 10px 15px;
    border: 1px solid var(--colour-primary, #00aeef);
    border-radius: 8px;
    background: var(--colour-primary, #00aeef);
    color: var(--colour-white, #ffffff);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-service-link::after {
    content: ">";
    color: currentColor;
    font-size: 15px;
    line-height: 1;
    transform: translateX(0);
    transition: transform 0.18s ease;
}

.home-service-card:hover .home-service-link::after,
.home-service-card:focus-visible .home-service-link::after {
    transform: translateX(3px);
}

.home-about {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(32, 40, 50, 0.96), rgba(32, 40, 50, 0.84)),
        url("../../images/commercial-window-cleaning-wightlink.webp") center / cover;
    color: var(--colour-white, #ffffff);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.26),
        0 18px 44px rgba(32, 40, 50, 0.12);
}

.home-about-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
    align-items: center;
}

.home-about-copy p:not(.section-kicker) {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.75;
}

.home-about-copy .section-kicker {
    color: var(--colour-primary, #00aeef);
    text-align: left;
}

.home-about-copy .section-title {
    color: var(--colour-white, #ffffff);
}

.home-link-list {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.home-about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.home-link-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 750;
    text-decoration: none;
}

.home-link-list a::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--colour-primary, #00aeef);
    flex: 0 0 auto;
}

.home-link-list a:hover,
.home-link-list a:focus-visible {
    color: var(--colour-primary, #00aeef);
}

.home-about .media-frame {
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

.home-client-strip {
    margin-top: clamp(36px, 6vw, 70px);
    padding-top: clamp(28px, 4vw, 40px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-client-heading {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}

.home-client-heading .section-kicker {
    color: var(--colour-primary, #00aeef);
}

.home-client-rail {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.home-client-rail::before,
.home-client-rail::after {
    content: "";
    position: absolute;
    top: 0;
    z-index: 2;
    width: clamp(70px, 12vw, 200px);
    height: 100%;
    pointer-events: none;
}

.home-client-rail::before {
    left: 0;
    background: linear-gradient(90deg, #202832 0%, rgba(255, 255, 255, 0) 100%);
}

.home-client-rail::after {
    right: 0;
    background: linear-gradient(270deg, #202832 0%, rgba(255, 255, 255, 0) 100%);
}

.home-client-track {
    display: flex;
    width: max-content;
    animation: home-logo-scroll 34s linear infinite;
    will-change: transform;
}

.home-client-rail:hover .home-client-track {
    animation-play-state: paused;
}

.home-client-logo {
    display: flex;
    flex: 0 0 clamp(210px, 16vw, 310px);
    align-items: center;
    justify-content: center;
    min-height: clamp(92px, 9vw, 126px);
    padding: 10px;
    
}

.home-client-logo img {
    display: block;
    width: auto;
    max-width: min(300px, 85%);
    object-fit: contain;
    filter: saturate(0.95);
    border-radius: 14px;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

@keyframes home-logo-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.home-reviews {
    padding-top: clamp(52px, 7vw, 88px);
}

.home-contact {
    margin: 0;
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(32, 40, 50, 0.96), rgba(32, 40, 50, 0.88)),
        url("../../images/exterior-cleaning-services.webp") center / cover;
}

.home-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: clamp(34px, 5vw, 54px);
}

.home-contact-copy {
    max-width: 760px;
}

.home-contact .section-kicker,
.home-contact .section-title {
    text-align: left;
}

.home-contact .section-kicker {
    color: var(--colour-primary, #00aeef);
}

.home-contact .section-title {
    margin: 0;
}

.home-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 1050px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
        align-items: center;
    }

    .home-hero-van {
        width: min(100%, 560px);
        max-width: none;
    }

    .home-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 760px) {
    .home-hero {
        min-height: 640px;
    }

    .home-hero-inner {
        padding-bottom: 28px;
    }

    .home-hero-van {
        width: min(108vw, 560px);
        max-width: none;
    }

    .home-hero-dots {
        bottom: 18px;
    }

    .home-service-grid {
        grid-template-columns: 1fr;
    }

    .home-service-card {
        min-height: 0;
    }

    .home-service-body {
        min-height: 0;
    }

    .home-service-media {
        aspect-ratio: 16 / 9;
    }

    .home-about-grid {
        grid-template-columns: 1fr;
    }

    .home-contact-inner {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .home-contact .section-kicker,
    .home-contact .section-title {
        text-align: center;
    }

    .home-contact-actions {
        justify-content: center;
    }

    .home-contact-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-slide {
        transition: none;
    }

    .home-hero-van {
        animation: none;
    }

    .home-hero-dots button {
        transition: none;
    }

    .home-hero-dots button::before {
        transition: none;
    }
}

@media (max-width: 560px) {
    .home-client-track {
        animation: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-client-logo {
        flex: 0 0 50%;
        min-height: 86px;
    }

    .home-client-logo[aria-hidden="true"] {
        display: none;
    }
}
