/* Homepage-only refinements approved for the original start page. */

@media only screen and (min-width: 768px) {
    body.homepage-page .slide-overlay .rev-slidebg {
        box-shadow: none !important;
    }

    body.homepage-page #rev_slider_1078_1 > ul > li {
        isolation: isolate;
    }

    body.homepage-page #rev_slider_1078_1 > ul > li[data-index="rs-3050"]::after,
    body.homepage-page #rev_slider_1078_1 > ul > li[data-index="rs-3051"]::after {
        content: "";
        inset: 0;
        pointer-events: none;
        position: absolute;
        z-index: 5;
    }

    /* First image: dark on the right, opening toward the solar panels on the left. */
    body.homepage-page #rev_slider_1078_1 > ul > li[data-index="rs-3050"]::after {
        background: linear-gradient(
            to left,
            rgba(3, 28, 54, 0.88) 0%,
            rgba(3, 28, 54, 0.56) 47%,
            rgba(3, 28, 54, 0.24) 100%
        );
    }

    /* Second image: dark on the left behind the copy, opening toward the right. */
    body.homepage-page #rev_slider_1078_1 > ul > li[data-index="rs-3051"]::after {
        background: linear-gradient(
            to right,
            rgba(3, 28, 54, 0.9) 0%,
            rgba(3, 28, 54, 0.58) 48%,
            rgba(3, 28, 54, 0.2) 100%
        );
    }

    body.homepage-page #rev_slider_1078_1 .tp-parallax-wrap {
        z-index: 10 !important;
    }
}

@media only screen and (max-width: 767px) {
    /* First image: right to left. */
    body.homepage-page .mobile-hero .m-slide-1 .m-scrim {
        background:
            linear-gradient(
                to left,
                rgba(3, 28, 54, 0.88) 0%,
                rgba(3, 28, 54, 0.56) 47%,
                rgba(3, 28, 54, 0.28) 100%
            ),
            linear-gradient(180deg, rgba(3, 28, 54, 0.08), rgba(3, 28, 54, 0.48));
    }

    /* Second image: left to right. */
    body.homepage-page .mobile-hero .m-slide-2 .m-scrim {
        background:
            linear-gradient(
                to right,
                rgba(3, 28, 54, 0.9) 0%,
                rgba(3, 28, 54, 0.58) 48%,
                rgba(3, 28, 54, 0.24) 100%
            ),
            linear-gradient(180deg, rgba(3, 28, 54, 0.08), rgba(3, 28, 54, 0.48));
    }
}

/* Restore the missing divider between the 30+ and 150 MW proof values. */
body.homepage-page .proof-item:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

/* Ventilated rooftop PV / second-roof gallery. */
body.homepage-page .why-feature-second-roof .why-feature-media {
    aspect-ratio: 1024 / 585;
    background: #031c36;
    flex: 0 0 auto;
    min-height: 0;
}

body.homepage-page .why-feature-second-roof .why-feature-media img {
    object-fit: contain;
    object-position: center center;
    transform: none;
}

body.homepage-page .why-feature-second-roof:hover .why-feature-media img {
    transform: none;
}

body.homepage-page .why-second-roof-slide {
    inset: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    visibility: hidden;
}

body.homepage-page .why-second-roof-slide.is-active {
    opacity: 1;
    visibility: visible;
}

body.homepage-page .why-second-roof-controls {
    background: rgba(3, 28, 54, 0.82);
    display: flex;
    gap: 6px;
    padding: 6px;
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 3;
}

body.homepage-page .why-second-roof-controls button {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: 30px;
}

body.homepage-page .why-second-roof-controls button.is-active,
body.homepage-page .why-second-roof-controls button:hover,
body.homepage-page .why-second-roof-controls button:focus {
    background: #f2c21a;
    border-color: #f2c21a;
    color: #031c36;
    outline: none;
}

body.homepage-page .why-feature-second-roof .why-feature-technical-note {
    align-items: flex-start;
    background: #f5f7fa;
    border-left: 3px solid #f2c21a;
    color: #536273;
    display: grid;
    font-size: 13px;
    gap: 11px;
    grid-template-columns: 18px minmax(0, 1fr);
    line-height: 21px;
    margin: 0 0 24px;
    padding: 14px 16px;
}

body.homepage-page .why-feature-second-roof .why-feature-technical-note i {
    color: #c89c00;
    margin-top: 3px;
}

body.homepage-page .why-feature-second-roof .why-feature-technical-note strong {
    color: #20364d;
    font-weight: 800;
}

@media only screen and (max-width: 767px) {
    body.homepage-page .why-feature-second-roof .why-feature-media img {
        object-position: center center;
        transform: none;
    }

    body.homepage-page .why-feature-second-roof:hover .why-feature-media img {
        transform: none;
    }

    body.homepage-page .why-second-roof-controls {
        right: 12px;
        top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.homepage-page .why-second-roof-slide {
        transition: none;
    }
}

/* Catalogue-backed training collaboration and final project call to action. */
body.homepage-page {
    --home-navy: #031c36;
    --home-yellow: #f2c21a;
    --home-copy: #5f6f83;
}

body.homepage-page .home-catalogue-eyebrow {
    align-items: center;
    color: #bd8f00;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 11px;
    letter-spacing: 1.5px;
    line-height: 18px;
    margin-bottom: 17px;
    text-transform: uppercase;
}

body.homepage-page .home-catalogue-eyebrow::before {
    background: var(--home-yellow);
    content: "";
    flex: 0 0 28px;
    height: 3px;
    width: 28px;
}

body.homepage-page .home-training {
    background: #fff;
    padding: 105px 0;
}

body.homepage-page .home-training-grid {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1.14fr .86fr;
    min-height: 470px;
}

body.homepage-page .home-training-image {
    margin: 0;
    min-height: 470px;
    overflow: hidden;
    position: relative;
}

body.homepage-page .home-training-image::after {
    background: linear-gradient(180deg, transparent 62%, rgba(3, 28, 54, .83) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

body.homepage-page .home-training-image img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center;
    position: absolute;
    width: 100%;
}

body.homepage-page .home-training-image figcaption {
    bottom: 22px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    left: 27px;
    letter-spacing: 1.1px;
    margin: 0;
    position: absolute;
    text-transform: uppercase;
    z-index: 1;
}

body.homepage-page .home-training-copy {
    background: var(--home-navy);
    border-top: 7px solid var(--home-yellow);
    padding: 49px 48px 44px;
}

body.homepage-page .home-training-copy .home-catalogue-eyebrow,
body.homepage-page .home-router-header .home-catalogue-eyebrow {
    color: var(--home-yellow);
}

body.homepage-page .home-training-copy h2,
body.homepage-page .home-router-header h2 {
    color: #fff;
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 800;
    letter-spacing: -1.75px;
    line-height: 1.04;
    margin: 0;
}

body.homepage-page .home-training-copy h2 {
    font-size: clamp(37px, 3.4vw, 50px);
    margin-bottom: 25px;
}

body.homepage-page .home-training-copy > p {
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 25px;
}

body.homepage-page .home-training-facts {
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    border-top: 1px solid rgba(255, 255, 255, .16);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 26px 0 20px;
}

body.homepage-page .home-training-facts span {
    color: rgba(255, 255, 255, .61);
    font-size: 11px;
    line-height: 1.45;
    padding: 17px 15px 17px 0;
}

body.homepage-page .home-training-facts span + span {
    border-left: 1px solid rgba(255, 255, 255, .16);
    padding-left: 18px;
}

body.homepage-page .home-training-facts strong {
    color: var(--home-yellow);
    display: block;
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 3px;
}

body.homepage-page .home-training-copy .flat-button,
body.homepage-page .home-router-header .flat-button {
    margin: 0;
}

body.homepage-page .home-project-router {
    background:
        linear-gradient(115deg, rgba(10, 52, 89, .6), transparent 50%),
        var(--home-navy);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 92px 0 96px;
    position: relative;
}

body.homepage-page .home-project-router::before {
    background: var(--home-yellow);
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

body.homepage-page .home-router-header {
    align-items: center;
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0;
}

body.homepage-page .home-router-header h2 {
    max-width: 730px;
}

body.homepage-page .home-router-header p {
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    line-height: 1.7;
    margin: 18px 0 0;
    max-width: 720px;
}

@media only screen and (max-width: 1199px) {
    body.homepage-page .home-training-copy {
        padding-left: 38px;
        padding-right: 38px;
    }
}

@media only screen and (max-width: 991px) {
    body.homepage-page .home-training,
    body.homepage-page .home-project-router {
        padding-bottom: 72px;
        padding-top: 72px;
    }

    body.homepage-page .home-training-grid,
    body.homepage-page .home-router-header {
        grid-template-columns: 1fr;
    }

    body.homepage-page .home-training-image {
        min-height: 430px;
    }

    body.homepage-page .home-router-header {
        align-items: start;
    }

    body.homepage-page .home-router-header .flat-button {
        justify-self: start;
    }
}

@media only screen and (max-width: 767px) {
    body.homepage-page .home-catalogue-eyebrow {
        font-size: 10px;
        letter-spacing: 1.15px;
        margin-bottom: 13px;
    }

    body.homepage-page .home-training,
    body.homepage-page .home-project-router {
        padding-bottom: 55px;
        padding-top: 55px;
    }

    body.homepage-page .home-training-grid {
        min-height: 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    body.homepage-page .home-training-image {
        min-height: 270px;
    }

    body.homepage-page .home-training-copy {
        padding: 35px 26px 36px;
    }

    body.homepage-page .home-training-copy h2,
    body.homepage-page .home-router-header h2 {
        font-size: 34px;
        letter-spacing: -1px;
        line-height: 1.08;
    }

    body.homepage-page .home-training-facts {
        grid-template-columns: 1fr;
    }

    body.homepage-page .home-training-facts span + span {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .16);
        padding-left: 0;
    }

    body.homepage-page .home-training-copy .flat-button {
        padding-left: 18px;
        padding-right: 18px;
        text-align: center;
        width: 100%;
    }
}
