.services-hero {
    height: 500px;
    width: 100%;
    background-image: 
        linear-gradient(to right, rgba(42, 42, 42, 0.757)),
        url(/imageserver/UserMedia/jfroofing/jf-banner-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 5%;
    user-select: none;
    border-bottom: solid 8px var(--main-color-500);
    background-color: white;
}

.services-hero h2{
    margin: 0;
    font-size: 48px;
    line-height: 48px;
    background-color: white;
    color: var(--main-color-500);
    width: fit-content;
    padding: 8px 32px 8px 8px;
    clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 50%, calc(100% - 32px) 100%, 0 100%);
}

.services-hero h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    line-height: 24px;
    color: var(--main-color-500);
}

.services-hero p {
    color: white;
    font-size: 24px;
    width: 800px;
    max-width: 85vw;
    margin: 16px 0;
}

/* SERVICES - INTRO */
.services-intro {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 75px 0;
    flex-wrap: wrap;
}

.services-intro-content {
    flex: 2;
    position: relative;
    box-sizing: border-box;
    padding: 0 0% 0 10%;
    display: flex;
    flex-direction: column;
}

.services-intro-content .site-button {
    overflow: hidden;
}

.services-intro-content h2 {
    font-size: 32px;
    margin: 0 0 0 0;
    line-height: 32px;
}

.services-intro-content h2 span {
    color: var(--main-color-500);
}

.services-intro-content p {
    margin: 16px 0 16px 0;
    font-size: 18px;
}

.services-intro-image-container {
    width: 800px;
    max-width: 90vw;
    max-height: calc(.5 * 90vw);
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.services-intro-image-wrap {
    width: 80%;
    height: 100%;
    position: relative;
}

.services-intro-image-wrap::before {
    height: 60%;
    width: 30%;
    position: absolute;
    content: "";
    border: solid 4px var(--main-color-500);
    top: -5%;
    left: -5%;
}

.services-intro-image-wrap::after {
    height: 60%;
    width: 30%;
    position: absolute;
    content: "";
    border: solid 4px var(--main-color-700);
    bottom: -3%;
    right: -3%;
}

.services-intro-image-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

@media (max-width: 1130px) {
    .services-intro {
        flex-direction: column-reverse;
        row-gap: 32px;
    }

    .services-intro-content {
        text-align: center;
        padding: 0 5%;
        align-items: center;

    }
}

/* SERVICES - SERVICES */
.services-services {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 75px 0 0 0;
}

.services-services-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    height: 450px;
    overflow: hidden;
}

.services-item-image-wrap {
    width: 40%;
    height: 100%;
    position: relative;
}

.services-item-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.services-item-content {
    width: 60%;
    box-sizing: border-box;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-services-item:nth-child(odd) .services-item-content{
    background-color: #f3f3f3;
}

.services-services-item:nth-child(even) .services-item-content{
    background-color: white;
}

.services-services-item:nth-child(odd) .services-item-image-wrap::before {
    height: 110%;
    border: solid 4px var(--main-color-700);
    position: absolute;
    content: "";
    top: -10%;
    width: 20%;
    right: -4px;
}

.services-services-item:nth-child(even) .services-item-image-wrap::before {
    height: 110%;
    border: solid 4px var(--main-color-500);
    position: absolute;
    content: "";
    top: -10%;
    width: 20%;
    left: -4px;
}

.services-item-content h3 {
    color: var(--main-color-500);
    margin: 0;
    font-size: 32px;
    line-height: 32px;
    position: relative;
}

.services-item-content h3::before {
    width: 32px;
    height: 32px;
    border-top: solid 4px var(--main-color-500);
    border-left: solid 4px var(--main-color-500);
    content: "";
    position: absolute;
    top: -32px;
    left: -32px;
}

.services-item-content .services-item-underline {
    width: 32px;
    padding: 0;
    margin: 8px 0;
    height: 4px;
    border: none;
    background-color: var(--main-color-500);
}

.services-item-content p {
    font-size: 18px;
    margin: 16px 0 16px 0;
}

@media (max-width: 800px) {
    .services-services-item {
        flex-direction: column;
        height: fit-content;
    }

    .services-services-item:nth-child(even) {
        flex-direction: column-reverse;
    }

    .services-item-content {
        width: 100%;
        padding: 75px 5%;

    }

    .services-item-image-wrap {
        width: 100%;
        height: 200px;
    }

    .services-services-item:nth-child(odd) .services-item-image-wrap::before {
        height: 100%;
        border: solid 4px var(--main-color-700);
        position: absolute;
        content: "";
        top: -4px;
        width: 110%;
        right: -5%;
    }

    .services-services-item:nth-child(even) .services-item-image-wrap::before {
        height: 100%;
        border: solid 4px var(--main-color-500);
        position: absolute;
        content: "";
        top: -4px;
        width: 100%;
        right: -5%;
    }

    .services-item-content h3::before {
        left: -16px;
        top: -16px;
        width: 16px;
        height: 16px;
    }
}