.res-hero {
    width: 100%;
    height: 516px;
    background-image: linear-gradient( rgba(0, 0, 0, .6) 0%), url(/imageserver/UserMedia/princeroofing/house-row.jpeg);
    background-color: #353535;
    background-size: cover;
    background-position: 70% center;
    display: flex;
    flex-direction: column;
    padding: 0 10%;
    box-sizing: border-box;
    justify-content: center;
    border-bottom: solid 16px var(--main-color-500);
}

.res-hero h1 {
    margin: 0 0 12px 0;
    line-height: 36px;
    font-size: 36px;
    color: white;
}

.res-hero p {
    color: white;
    font-size: 20px;
    margin: 0 0 12px 0;
    width: 800px;
    max-width: 80vw;
}

@media (max-width: 1000px) {
    .res-hero h1 {
        font-size: 24px;
        line-height: 24px;
        text-align: center;
    }

    .res-hero p {
        font-size: 16px;
        text-align: center;
    }

    .res-hero .site-button {
        font-size: 16px;
        align-self: center;
    }
}

/* RES - SERVICES */
.res-services {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient(rgb(234, 234, 234), rgba(255, 255, 255, 0.479)), 
                url(/imageserver/UserMedia/princeroofing/background.jpeg);
}

.res-services h2 {
    margin: 0 0 12px 0;
    font-size: 32px;
    line-height: 32px;
    color: var(--main-color-700);
    text-align: center;
}

.res-services p {
    font-size: 20px;
    text-align: center;
    margin: 0;
}

.res-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 600px);
    column-gap: 48px;
    row-gap: 32px;
    width: 100%;
    padding: 30px 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    align-items: center;
}

.res-services-card {
    width: 100%;
    /* min-height: 200px; */
    height: 220px;
    overflow: hidden;
    box-shadow: 0px 0px 8px -4px black;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background-color: white;
    color: white;
    transition: all 0.2s linear;
}

.res-services-card-image {
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom right, var(--main-color-500), var(--main-color-700));
}

.res-services-card svg {
    height: 60px;
    width: 60px;
    transition: all 0.2s linear;
}

.res-services-card-content {
    width: 70%;
    padding: 0 20px;
    box-sizing: border-box;
}

.res-services-card-content h3 {
    margin: 0 0 12px 0;
    color: var(--main-color-700);
    text-align: left;
}

.res-services-card-content p {
    text-align: left;
    margin: 0;
    color: black;
}

.res-services-card:hover {
    color: var(--main-color-200);
}

.res-services-card:hover svg {
    transform: scale(1.1);
}

@media (max-width: 1268px) {
    .res-services-grid {
        grid-template-columns: min(500px, 90vw);
    }
    
    .res-services-card {
        max-width: 90vw;
        height: 250px;
        justify-self: center;
    }

    .res-services-card-image {
        height: 100%;
    }
}

/* RES - GAF */
.res-gaf {
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

.res-gaf-accent-1 {
    width: 30%;
    height: 100%;
    position: absolute;
    background-color: var(--main-color-200);
    left: 0;
    clip-path: polygon(0 0, 60% 50%, 0 100%);
}

@media (max-width: 1000px) {
    .res-gaf-accent-1 {
        top: 0;
        left: 0;
        width: 100%;
        height: 40%;
        clip-path: polygon(0 0, 100% 0, 50% 90%);
    }
}

.res-gaf-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    position: relative;
    max-width: 80vw;
}

.res-gaf-content::before {
    height: 30px;
    width: 30px;
    border-top: double 8px var(--main-color-500);
    border-left: double 8px var(--main-color-500);
    top: 0;
    left: -24px;
    position: absolute;
    content: '';
}

.res-gaf-content::after {
    height: 30px;
    width: 30px;
    border-bottom: double 8px var(--main-color-500);
    border-right: double 8px var(--main-color-500);
    bottom: 0;
    right: -24px;
    position: absolute;
    content: '';
}

.res-gaf h2 {
    color: var(--main-color-700);
    text-align: center;
    font-size: 32px;
    line-height: 32px;
    margin: 48px 0 16px 0;
}

.res-gaf p {
    color: black;
    font-size: 20px;
    text-align: center;
    width: 1000px;
    max-width: 90vw;
    margin: 0 0 12px 0;
}

.res-gaf .site-button {
    justify-self: center;
}

.res-gaf-image-wrap {
    width: 200px;
    height: 200px;
    position: relative;
}

.res-gaf-image-wrap img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

/* RES - TROOPS */
.res-troops {
    padding: 50px 0;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap-reverse;
    column-gap: 40px;
    row-gap: 30px;
}

.res-troops-image-wrap {
    width: 500px;
    height: 350px;
    position: relative;
    max-width: 75vw;
    max-height: calc(.7 * 75vw);
}

.res-troops-image-wrap::before {
    height: 40%;
    width: 40%;
    content: '';
    top: -12px;
    left: -12px;
    position: absolute;
    border-radius: 10px 0 0 0;
    border-top: double 8px #B31942;
    border-left: double 8px #B31942;
}

.res-troops-image-wrap::after {
    bottom: -12px;
    height: 40%;
    width: 40%;
    content: '';
    right: -12px;
    position: absolute;
    border-radius: 0 0 10px 0;
    border-bottom: double 8px #0A3161;
    border-right: double 8px #0A3161;
}

.res-troops-image-wrap img {
    height: 100%;
    width: 100%;
    border-radius: 5px;
}

.res-troops-content {
    width: 800px;
    padding: 0 40px;
    max-width: 90vw;
    box-sizing: border-box;
}

.res-troops-content h2 {
    color: var(--main-color-700);
    margin: 0 0 12px 0;
    line-height: 32px;
    font-size: 32px;
}

.res-troops-content h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    line-height: 24px;
    color: var(--main-color-500);
}

.res-troops-content p {
    font-size: 20px;
    margin: 0 0 16px 0;
}

@media (max-width: 1000px) {
    .res-troops-content h2, .res-services h2, .res-gaf h2 {
        font-size: 24px;
        line-height: 24px;
    }

    .res-troops-content h3 {
        font-size: 20px;
        line-height: 20px;
    }

    .res-troops-content p, .res-services > p, .res-gaf p, .res-services-card-content p{
        font-size: 16px;
    }
}