/* comroof - HERO */
.comroof-hero {
    height: 600px;
    width: 100%;
    position: relative;
    user-select: none;
}

.comroof-hero img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.comroof-hero-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    background: linear-gradient(to right, rgba(128, 128, 128, 0.718) 40%, transparent);
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 10% 0 10%
}

.comroof-hero-overlay-content {
    background-color: rgba(255, 255, 255, 0.909);
    width: fit-content;
    padding: 40px 20px;
    border-radius: 10px;
}

.comroof-hero-overlay-content h1 {
    color: var(--main-blue-dark);
    width: fit-content;
    border-radius: 50px 0 0 50px;
    font-size: 50px;
    margin: 0 0 20px 0;
    line-height: 50px;
}

.comroof-hero-overlay-content p {
    font-size: 20px;
    font-weight: 600;
    color: rgb(101, 101, 101);
    margin: 0 0 20px 0;
}

.comroof-hero-overlay-content .site-button {
    background-color: var(--main-blue-dark);
    color: white;
}

.comroof-hero-overlay-content .site-button:hover {
    background-color: transparent;
    color: var(--main-blue-dark);
}

/* comroof - intro */
.comroof-intro {
    padding: 60px 0;
    border-top: solid 8px var(--main-blue-dark);
    border-top: solid 8px var(--main-blue-dark);
    background-color: #e7e7e7;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0px;
    row-gap: 40px;
    align-items: center;
}

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

.comroof-image-wrap::before {
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    content: '';
    position: absolute;
    background-color: var(--main-blue-dark);
    z-index: 0;
    clip-path: polygon(0 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%);
}

.comroof-image-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    clip-path: polygon(0 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%);
}

.comroof-intro-content {
    width: 1000px;
    max-width: 90vw;
    box-sizing: border-box;
    padding: 0 20px 0 10%;
}

.comroof-intro-content h2 {
    font-size: 30px;
    line-height: 30px;
    margin: 0 0 20px 0;
    color: var(--main-blue-dark);
}

.comroof-intro-content p {
    font-size: 18px;
    color: rgb(60, 60, 60);
    position: relative;
}

.comroof-intro-content p:first-of-type {
    margin: 0 0 40px 0;
}

.comroof-intro-content p::before {
    width: 30px;
    height: 110%;
    top: -5%;
    box-sizing: border-box;
    content: '';
    position: absolute;
    border-left: double 8px var(--main-blue);
    left: -20px;
}

/* comroof - SERVICES */
.comroof-services {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    padding: 50px 0;
}

.comroof-services h2 {
    font-size: 35px;
    text-align: center;
    line-height: 35px;
    margin: 0 0 15px 0;
    color: var(--main-blue-dark);
}

.comroof-services-grid {
    display: grid;
    grid-template-columns: 400px 400px 400px;
    column-gap: 50px;
}

.comroof-services-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid 3px transparent;
    transition: border 0.2s linear;
}

.comroof-services-card:hover {
    border-color: var(--main-blue-dark);
}

.comroof-services-card-content {
    background-color: #e7e7e7;
    width: 100%;
    box-sizing: border-box;
    padding: 30px 20px;
    height: 250px;
}

.comroof-services-card-content h3 {
    font-size: 25px;
    color: var(--main-blue-dark);
    line-height: 25px;
    margin: 0 0 5px 0;
}

.comroof-services-card-content p {
    color: rgb(59, 59, 59);
    font-size: 18px;
    margin: 20px 0 0 0;
}

.comroof-services-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.comroof-services-outside-card {
    width: 1300px;
    max-width: 90vw;
    box-sizing: border-box;
    padding: 30px 20px;
    background-color: #e7e7e7;
    margin: 30px 0 20px 0;
    border: solid 3px transparent;
    transition: border 0.2s linear;
}

.comroof-services-outside-card:hover {
    border-color: var(--main-blue-dark);
}

.comroof-services-outside-card h3 {
    text-align: center;
    color: var(--main-blue-dark);
    font-size: 25px;
    margin: 0 0 20px 0;
    line-height: 25px;
}

.comroof-services-outside-card p {
    position: relative;
    font-size: 18px;
    color: rgb(55, 55, 55);
    text-align: center;
    margin: 0;
}

.comroof-services > .site-button {
    background-color: var(--main-blue-dark);
    color: white;
}

.comroof-services > .site-button:hover {
    background-color: transparent;
    color: var(--main-blue-dark);
}

@media (max-width: 1340px) {
    .comroof-services .comroof-services-grid {
        grid-template-columns: 90%;
        justify-content: center;
        row-gap: 30px;
    }

    .comroof-services .comroof-services-card {
        flex-direction: row;
        height: 250px;
    }

    .comroof-services .comroof-services-card img {
        height: 100%;
        width: 50%;
    }

    .comroof-services-card .comroof-services-card-content {
        width: 50%;
        height: 100%;
    }
}

@media (max-width: 740px) {

    .comroof-services .comroof-services-card {
        flex-direction: column;
        width: 100%;
        height: fit-content;
    }

    .comroof-services .comroof-services-card img {
        height: 200px;
        width: 100%;
    }

    .comroof-services-card .comroof-services-card-content {
        width: 100%;
        height: fit-content;
    }
}

/* comroof - BRANDS */
.comroof-brands {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.831) url(/imageserver/UserMedia/kyrobuilders/background.jpeg);
    background-blend-mode: overlay;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: solid 8px var(--main-blue-dark);
}

.comroof-brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    column-gap: 80px;
    row-gap: 30px;
    justify-content: center;
    width: 100%;
}

.comroof-brand-title {
    grid-column: 1 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.comroof-brand-title h2 {
    color: var(--main-blue-dark);
    font-size: 35px;
}

.comroof-brand-title p {
    background-color: var(--main-blue-dark);
    color: white;
    font-size: 18px;
    padding: 20px 30px;
    width: 700px;
    max-width: 80vw;
}

.comroof-brand-card {
    height: 350px;
    width: 300px;
    background-color: #e7e7e7;
    justify-self: center;
    display: flex;
    flex-direction: column;
}

.comroof-brand-card img {
    width: 100%;
    height: 200px;
    border-bottom: solid 12px var(--main-blue-dark);
    padding: 5px;
    background: white;
    box-sizing: border-box;
    object-fit: contain;
}

.comroof-brand-card-content {
    height: 150px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.comroof-brand-card-content .site-button {
    background-color: var(--main-blue-dark);
    color: white;
}

.comroof-brand-card-content .site-button:hover {
    background-color: transparent;
    color: var(--main-blue-dark);
}

.comroof-brand-card-content h4 {
    font-size: 35px;
    margin: 0 0 10px 0;
    color: var(--main-blue-dark);
}

@media (max-width: 1100px) {
    .comroof-brands-grid {
        grid-template-columns: 80%;
    }

    .comroof-brand-title {
        grid-column: unset;
    }
}

@media (max-width: 800px) {
    .comroof-brand-title {
        flex-direction: column;
    }

    .comroof-brand-title h2 {
        text-align: center;
    }
}