/* * {
    box-sizing: border-box;
    border: solid 1px red;
} */

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

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

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

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

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

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

/* COM - GAF */
.com-gaf {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    flex-wrap: wrap-reverse;
    row-gap: 40px;
    overflow: hidden;
}

.com-gaf h2 {
    color: var(--main-color-700);
    font-size: 32px;
    margin: 0 0 24px 0;
    line-height: 42px;
}

.com-gaf h2 span {
    background-color: rgb(212, 0, 0);
    color: white;
    border-radius: 5px;
    padding: 5px 10px;
}

.com-gaf-img-wrap {
    width: 400px;
    height: 400px;
    position: relative;
}

.com-gaf-img-wrap::before {
    width: 100%;
    height: 100%;
    border-bottom: solid 12px var(--main-color-700);
    content: '';
    position: absolute;
    border-radius: 50%;
    transform: rotate(-45deg);
    bottom: -12px;
    right: -6px;
}

.com-gaf-img-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.com-gaf-content {
    width: 800px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.com-gaf-content-row {
    margin: 0 0 8px 0;
    display: flex;
    align-items: start;
}

.com-gaf-content-row p {
    font-size: 20px;
    margin: 0 0 12px 0;
}

.com-gaf-content-row img{
    height: 30px;
    width: 30px;
    height: 100%;
    margin-right: 10px;
}



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

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

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

.com-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;
}

.com-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;
}

.com-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));
}

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

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

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

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

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

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

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

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

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

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


/* COM - CTA */
.com-cta {
    width: 100%;
    display: flex;
    flex-direction: row;
    position: relative;
}

.com-cta > img {
    width: 50%;
    object-fit: cover;
}

.com-cta-content {
    width: 50%;
    background-color: var(--main-color-700);
    padding: 50px 5%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.com-cta-content h2 {
    color: white;
    font-size: 32px;
    line-height: 32px;
    margin: 0 0 12px 0;
}

.com-cta-content p {
    font-size: 20px;
    color: white;
    margin: 0 0 24px 0;
}

.com-cta-circle {
    position: absolute;
    width: 50px;
    height: 50px;
    padding: 10px;
    background-color: white;
    left: calc(50% - 25px);
    top: calc(50% - 25px);
    border-radius: 50%;
}

.com-cta-circle img {
    width: 100%;
    height: 100%;
}

@media (max-width: 1100px) {
    .com-cta {
        flex-direction: column;
    }

    .com-cta > img {
        width: 100%;
        height: 300px;

    }

    .com-cta-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .com-cta-circle {
        top: calc(300px - 25px);
    }
}