.hero__layout {
    background: url('../assets/images/showcase/mount-2.webp');
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, .5);
    padding: 8rem 5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    background-position: center 50%;
}

.hero__titles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 70vw;
    align-items: center;
    color: white;
}

.hero__subtitle {
    width: 60%;
}

.cta__testimonial {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: white;
    text-align: left;
    width: 50%;
    gap: 2rem;
}

.cta__testimonial-text {
    line-height: 200%;
    font-weight: 500;
}

.services__layout {
    padding: 6rem 8rem 10rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.services__intro {
    text-align: center;
    max-width: 52rem;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.services__intro-title {
    font-size: 26px;
    font-weight: 800;
}

.services__intro-text {
    max-width: 42rem;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.services__slideshow {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.services__slideshow-viewport {
    min-width: 0;
    overflow: hidden;
}

.services__slideshow-viewport .service {
    animation: services-slide-in 0.45s ease;
}

.services__slideshow-viewport .service[hidden] {
    display: none;
}

@keyframes services-slide-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services__slideshow-viewport .service {
        animation: none;
    }
}

.services__slideshow-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #1a1a1a;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.services__slideshow-btn:hover {
    opacity: 0.7;
}

.services__slideshow-btn:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.services__slideshow-btn:active {
    transform: scale(0.96);
}

.service {
    display: flex;
    flex-direction: row;
    box-shadow: 5px 10px 30px 0px rgba(0, 0, 0, .4);
    overflow: hidden;
    border-radius: 5px;
}

.image__container {
    display: flex;
    flex: 1.6 1 0px;
    position: relative;
    overflow: hidden;
}

.service__image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform .2s ease-in-out;
}

.image__container:after {
    display: block;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0);
    background: -moz-linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(255, 173, 173, 0) 60%);
    background: -webkit-linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(255, 173, 173, 0) 60%);
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(255, 173, 173, 0) 60%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#ffadad", GradientType=1);
}

.image__container:hover>.service__image {
    transition: transform .2s ease-in-out;
    transform: scale(1.015);
}

.service__text-container {
    background-color: #ECF2F6;
    display: flex;
    flex: 1 1 0;
    background-image: url('../assets/images/noise.png');
    object-fit: cover;
}

.service__text {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.services__caption {
    font-size: 16px;
}

.service__titles {
    font-weight: 900;
}

.services__button {
    margin: 0;
    max-width: 50%;
    min-width: fit-content;
}

.about__us-landing {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.75) 100%), url('../assets/images/home/about-landing-background.webp'), lightgray 0px -248.685px / 100% 292.355% no-repeat;
    background-size: cover;
    height: 250px;
    background-position: -4rem;
    margin-bottom: 8rem;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.join__us-landing {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.75) 100%), url('../assets/images/showcase/showcase-header.webp'), lightgray 0px -248.685px / 100% 292.355% no-repeat;
    background-size: cover;
    height: 250px;
    background-position: -4rem;
    margin-bottom: 8rem;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.about__us-content {
    flex: 1 1 100%;
    width: 100%;
    padding: 0rem 8rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
    box-sizing: border-box;
}

.about__us-text {
    display: flex;
    flex-direction: column;
    color: white;
    gap: 1rem;
    flex: 1 1 50%;
    min-width: 0;
}

.about__us-content .services__button {
    flex: 0 0 auto;
    max-width: none;
    width: 200px;
}

.accolades__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 8rem;
    padding: 3rem 2rem;
    background: white;
    border-radius: 15px;
}

.accolades {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 960px;
    width: 100%;
    padding: 0 2rem;
}

.accolade__image {
    object-fit: contain;
    max-width: 420px;
    width: 100%;
    height: auto;
}

.contact__container {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.30) 100%), url('../assets/images/home/contact-image.webp'), lightgray 50% / cover no-repeat;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0, -5rem;
    height: 750px;
    margin-bottom: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.contact__form {
    width: 40%;
    padding: 5rem 15rem;
    background: rgba(0, 0, 0, .5);
    gap: 3rem;
}

.contact__us-subheader {
    color: white;
    padding: 0rem 2rem;
    text-align: center;
}

@media screen and (max-width: 1325px) {
    .hero__titles {
        width: 64vw;
    }
}

@media screen and (max-width: 1200px) {
    .contact__form {
        width: 60%;
        padding: 3rem 9rem;
    }

    .hero__cta {
        width: 80%;
    }

    .hero__titles {
        width: 75vw;
    }

    .service__image {
        height: 375px;
    }

    .accolades {
        max-width: 600px;
    }
}

@media screen and (max-width: 1050px) {
    .about__us-content {
        padding: 0rem;
        flex-direction: column;
    }

    .about__us-landing,
    .join__us-landing {
        text-align: center;
        height: fit-content;
        padding: 3rem;
    }

    .contact__container {
        background-position: 0, -45vw;
    }

    .hero__subtitle {
        width: 80%;
    }

    .services__layout {
        padding: 3rem 3rem 5rem;
    }

    .services__intro {
        margin-bottom: 2rem;
    }

    .services__slideshow {
        gap: 0.75rem;
    }

    .services__slideshow-btn {
        width: 2.75rem;
        height: 2.75rem;
    }

    .service__image {
        height: 325px;
    }
}

@media screen and (max-width: 1000px) {
    .hero__cta {
        width: fit-content;
    }

    .hero__titles {
        width: fit-content;
    }

    .service__image {
        height: 325px;
    }

    .accolades {
        max-width: 520px;
    }
}

@media screen and (max-width: 800px) {
    .hero__layout {
        padding: 5rem 2rem;
    }

    .hero__titles {
        gap: 1rem;
    }

    .service {
        display: flex;
        flex-direction: column;
    }

    .image__container {
        flex: unset;
    }

    .service__image {
        height: 390px;
    }

    .service__text {
        padding: 1rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #home-automation,
    #outdoor-living {
        flex-direction: column-reverse;
    }

    .about__us-content {
        gap: 2rem;
    }

    .about__us-text {
        flex: 1 1 100%;
    }

    .contact__container {
        background-position: 0, -66vw;
    }
}

@media screen and (max-width: 650px) {
    .hero__cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
    }

    .cta__testimonial {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        gap: 1rem;
    }

    .hero__cta {
        padding: 1rem;
    }

    .hero__subtitle {
        width: 100%;
    }

    .about__us-landing,
    .join__us-landing {
        padding: 2rem 1rem;
        margin-bottom: 3rem;
    }

    .accolades__container {
        margin: 0 1rem 3rem;
        padding: 2rem 1.5rem;
    }

    .contact__container {
        background-position: 0, -85vw;
    }

    .contact__container {
        height: 600px;
    }

    .form__container {
        width: auto;
    }

    .contact__container {
        margin-bottom: 3rem;
    }
}

@media screen and (max-width: 550px) {
    .hero__layout {
        padding: 5rem 1rem;
    }

    .hero__titles h1 {
        font-size: clamp(22px, 7.25vw, 35px);
        white-space: nowrap;
    }

    .contact__us-subheader {
        padding: 0;
    }

    .services__layout {
        padding: 3rem 1rem 5rem;
    }

    .services__intro {
        margin-bottom: 1.5rem;
        gap: 1rem;
    }

    .services__intro-title {
        font-size: 22px;
    }

    .services__intro-text {
        font-size: 16px;
    }

    .services__slideshow {
        gap: 0.5rem;
    }

    .services__slideshow-btn {
        width: 2.5rem;
        height: 2.5rem;
    }

    .service__image {
        width: 100%;
    }

    .service__image {
        height: 275px;
    }

    .footer_columns {
        flex-direction: column;
        align-items: flex-start;
        padding: 0rem 1rem;
    }

    .contact__form {
        width: fit-content;
        padding: 3rem 2rem;
    }

    .contact__container {
        width: fit-content;
    }

    .footer__column {
        min-width: unset;
    }

    .contact__container {
        background-position: 0, -120vw;
    }

    .accolades {
        flex-direction: column;
        max-width: 320px;
        gap: 2rem;
    }
}

@media screen and (max-width: 400px) {
    .contact__form {
        padding: 2rem 1rem;
    }

    .submit__button {
        margin: 0rem;
    }
}