.sps-home-hero {
    padding: clamp(56px, 7vw, 96px) 0 clamp(76px, 9vw, 128px);
}

.sps-home-hero__layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(42px, 5vw, 82px) !important;
    align-items: center !important;
    width: min(1380px, calc(100% - 64px)) !important;
    max-width: 1380px !important;
}

.sps-home-hero__copy {
    position: relative;
    z-index: 3;
    max-width: none !important;
}

.sps-home-hero__title {
    max-width: 760px !important;
    font-size: clamp(3.5rem, 5.4vw, 5.9rem) !important;
    line-height: 0.91 !important;
}

.sps-home-hero__lead {
    max-width: 650px;
}

.sps-home-hero__media {
    position: relative;
    min-height: clamp(560px, 43vw, 720px);
    max-width: none !important;
}

.sps-home-hero__media::before {
    content: "";
    position: absolute;
    top: 4%;
    right: -6%;
    width: 78%;
    height: 76%;
    background: var(--sps-light-blue, var(--sps-primary));
    opacity: 0.16;
    transform: rotate(5deg);
}

.sps-home-hero__media::after {
    content: "";
    position: absolute;
    left: 4%;
    bottom: 3%;
    width: 48%;
    height: 36%;
    border: 2px solid rgba(127, 155, 92, 0.45);
    transform: translate(-14%, 14%);
}

.sps-hero-collage__image {
    position: absolute;
    z-index: 1;
    margin: 0 !important;
    overflow: hidden;
    background: #dce8f1;
    box-shadow: 0 30px 70px rgba(20, 43, 65, 0.16);
}

.sps-hero-collage__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sps-hero-collage__image--primary {
    top: 0;
    right: 0;
    width: 88%;
    height: 76%;
    z-index: 2;
}

.sps-hero-collage__image--secondary {
    left: 0;
    bottom: 2%;
    width: 50%;
    height: 43%;
    z-index: 3;
    border: 9px solid var(--sps-white);
}

.sps-hero-collage__image--tertiary {
    right: 1%;
    bottom: -2%;
    width: 43%;
    height: 35%;
    z-index: 4;
    border: 9px solid var(--sps-white);
}

/* Break Gutenberg's content-width constraint for the designed homepage sections. */
.sps-section--services > .sps-shell,
.sps-section--intro > .sps-shell,
.sps-stats-section > .sps-shell,
.sps-section--heat-pumps > .sps-feature,
.sps-section--why > .sps-shell,
.sps-home-cta > .sps-shell {
    width: min(1380px, calc(100% - 64px)) !important;
    max-width: 1380px !important;
}

/* Services: full-width 3 + 2 editorial rhythm. */
.sps-section--services .sps-services-grid {
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: clamp(18px, 2vw, 30px) !important;
    margin-top: clamp(44px, 5vw, 72px);
}

.sps-section--services .sps-service-card {
    grid-column: span 2;
}

.sps-section--services .sps-service-card:nth-child(4),
.sps-section--services .sps-service-card:nth-child(5) {
    grid-column: span 3;
}

.sps-section--services .sps-service-card__media {
    aspect-ratio: 16 / 10;
}

.sps-section--services .sps-service-card__image {
    background: #d9e7f2;
}

.sps-section--services .sps-service-card__image img {
    filter: saturate(0.9) contrast(1.02);
    transition: transform 450ms cubic-bezier(0.2, 0.65, 0.3, 1), filter 300ms ease;
}

.sps-section--services .sps-service-card:hover .sps-service-card__image img {
    transform: scale(1.035);
    filter: saturate(1) contrast(1.03);
}

.sps-section--services .sps-service-card__body {
    padding: clamp(1.6rem, 2.3vw, 2.5rem);
}

.sps-section--services .sps-service-card__title {
    font-size: clamp(1.45rem, 1.8vw, 2rem);
}

/* Intro: asymmetric editorial split rather than a centred card. */
.sps-intro-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 7vw, 110px);
    row-gap: 10px;
    padding: clamp(52px, 6vw, 92px) clamp(44px, 6vw, 92px) !important;
}

.sps-intro-panel .sps-eyebrow {
    grid-column: 1;
    grid-row: 1;
}

.sps-intro-panel h2 {
    grid-column: 1;
    grid-row: 2;
    max-width: 650px;
    margin-bottom: 0;
}

.sps-intro-panel .sps-section__intro {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    max-width: 620px;
    margin-bottom: 0;
    font-size: clamp(1.08rem, 1.5vw, 1.3rem);
}

/* Stats: give the numbers enough visual weight to own the band. */
.sps-stats-section .sps-business-stats {
    width: 100% !important;
    max-width: none !important;
}

.sps-stats-section .sps-business-stat {
    padding: clamp(2rem, 4.5vw, 4.4rem);
}

.sps-stats-section .sps-business-stat__value {
    font-size: clamp(4.3rem, 7.5vw, 7.7rem);
}

.sps-stats-section .sps-business-stat__label {
    max-width: 320px;
    font-size: clamp(0.95rem, 1.15vw, 1.08rem);
}

/* Heat pumps: a true 50/50 feature with the image as a main visual. */
.sps-section--heat-pumps .sps-feature {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch !important;
    width: min(1380px, calc(100% - 64px)) !important;
    max-width: 1380px !important;
}

.sps-section--heat-pumps .sps-feature > .wp-block-column:first-child {
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(54px, 6vw, 92px);
}

.sps-feature__list {
    display: grid !important;
    grid-template-rows: minmax(350px, 1.08fr) auto;
    align-items: stretch !important;
    overflow: hidden;
    padding: 0 !important;
}

.sps-feature__media {
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    min-height: 350px;
    margin: 0 !important;
    aspect-ratio: auto;
    overflow: hidden;
}

.sps-feature__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sps-feature__list ul {
    padding: clamp(28px, 3.6vw, 52px) clamp(34px, 4vw, 60px) !important;
}

/* Reasons: full editorial row with more breathing room. */
.sps-section--why .sps-reasons {
    width: 100% !important;
    max-width: none !important;
    gap: clamp(32px, 5vw, 82px) !important;
    margin-top: clamp(48px, 6vw, 82px) !important;
}

.sps-section--why .sps-reason {
    padding-top: 2.6rem;
}

.sps-section--why .sps-reason::before {
    margin-bottom: 2.6rem;
}

.sps-section--why .sps-reason h3 {
    font-size: clamp(1.45rem, 1.9vw, 2rem);
}

@media (max-width: 1100px) {
    .sps-home-hero__layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
        gap: 40px !important;
    }

    .sps-home-hero__title {
        font-size: clamp(3.3rem, 6vw, 5rem) !important;
    }

    .sps-home-hero__media {
        min-height: 540px;
    }

    .sps-section--services .sps-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .sps-section--services .sps-service-card,
    .sps-section--services .sps-service-card:nth-child(4),
    .sps-section--services .sps-service-card:nth-child(5) {
        grid-column: auto;
    }

    .sps-section--services .sps-service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .sps-intro-panel {
        column-gap: 48px;
    }

    .sps-section--heat-pumps .sps-feature > .wp-block-column:first-child {
        min-height: 560px;
    }
}

@media (max-width: 860px) {
    .sps-home-hero__layout {
        display: flex !important;
        flex-direction: column;
        width: min(100% - 32px, 1380px) !important;
        gap: 52px !important;
    }

    .sps-home-hero__copy,
    .sps-home-hero__media {
        width: 100%;
    }

    .sps-home-hero__media {
        min-height: min(118vw, 650px);
    }

    .sps-home-hero__title {
        max-width: 720px !important;
        font-size: clamp(3rem, 10vw, 4.8rem) !important;
    }

    .sps-hero-collage__image--primary {
        width: 82%;
        height: 68%;
    }

    .sps-hero-collage__image--secondary {
        width: 52%;
        height: 41%;
    }

    .sps-hero-collage__image--tertiary {
        width: 44%;
        height: 32%;
    }

    .sps-section--services > .sps-shell,
    .sps-section--intro > .sps-shell,
    .sps-stats-section > .sps-shell,
    .sps-section--heat-pumps > .sps-feature,
    .sps-section--why > .sps-shell,
    .sps-home-cta > .sps-shell {
        width: min(100% - 32px, 1380px) !important;
    }

    .sps-intro-panel {
        display: block !important;
        padding: 42px 34px !important;
    }

    .sps-intro-panel .sps-section__intro {
        margin-top: 1.5rem;
    }

    .sps-section--heat-pumps .sps-feature {
        display: block !important;
        width: min(100% - 32px, 1380px) !important;
    }

    .sps-section--heat-pumps .sps-feature > .wp-block-column:first-child {
        min-height: auto;
    }

    .sps-feature__media {
        min-height: 360px;
    }
}

@media (max-width: 620px) {
    .sps-home-hero {
        padding-top: 44px;
    }

    .sps-home-hero__media {
        min-height: 112vw;
    }

    .sps-hero-collage__image--secondary,
    .sps-hero-collage__image--tertiary {
        border-width: 5px;
    }

    .sps-section--services .sps-services-grid {
        grid-template-columns: 1fr !important;
    }

    .sps-section--services .sps-service-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .sps-stats-section .sps-business-stats {
        grid-template-columns: 1fr;
    }

    .sps-stats-section .sps-business-stat + .sps-business-stat {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }
}
