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

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

.resroof-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%
}

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

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

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

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

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

/* resroof - intro */
.resroof-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-reverse;
    justify-content: center;
    column-gap: 150px;
    row-gap: 40px;
    align-items: center;
}

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

.resroof-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 25%, 20% 0, 100% 0%, 100% 100%, 0 100%);
}

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

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

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

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

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

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

/* resroof-servicer */
.resroof-services {
    padding: 50px 0;
    background-color: #f9f9f9;
    border-bottom: solid 8px var(--main-blue-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.resroof-services > p {
    width: 1000px;
    text-align: center;
    font-size: 18px;
    color: rgb(63, 63, 63);
    position: relative;
    max-width: 80vw;
}

.resroof-services-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 30px;
}

.resroof-services-list-item {
    width: 1000px;
    max-width: 80vw;
    height: 250px;
    background-color: transparent;
    display: flex;
    overflow: hidden;
    border: solid 3px transparent;
    transition: border-color 0.2s linear;
}

.resroof-services-list-item:hover {
    border-color: var(--main-blue-dark);
}

.resroof-services-list-item img {
    width: 40%;
    height: 100%;
    object-fit: cover;
}

.resroof-services-list-item-content {
    width: 60%;
    height: 100%;
    box-sizing: border-box;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #e6e6e6;
}

.resroof-services-list-item-content h3 {
    font-size: 30px;
    line-height: 30px;
    margin: 0 0 10px 0;
    color: var(--main-blue-dark);
}

.resroof-services-list-item-content p {
    color: rgb(45, 45, 45);
    font-size: 18px;
}

.resroof-services .resroof-services-cta {
    color: white;
    background-color: var(--main-blue-dark);
    width: fit-content;
    font-size: 22px;
    padding: 20px 30px;
    box-sizing: border-box;
    width: 1000px;
    margin: 40px 0 20px 0;
}

@media (max-width: 720px) {
    .resroof-services-list-item {
        flex-direction: column;
        min-height: 300px;
        height: fit-content;
    }

    .resroof-services-list-item img {
        width: 100%;
        height: 200px;
    }

    .resroof-services-list-item-content {
        width: 100%;
        height: fit-content;
    }
}

/* resroof-brands */
.resroof-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);
}

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

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

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

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

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

.resroof-brand-card img {
    width: 100%;
    height: 200px;
    background-color: white;
    object-fit: contain;
}

.resroof-brand-card-content {
    height: 150px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--main-blue-dark);
}

.resroof-brand-card-content .site-button {
    background-color: white;
    color: var(--main-blue-dark);
    border: solid 3px white;
}

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

.resroof-brand-card-content h4 {
    font-size: 35px;
    margin: 0 0 10px 0;
    color: white;
}

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

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

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

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

/* Resroof - GAF Military */
.resroof-gaf-mil {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap-reverse;
    padding: 40px 0;
    background-color: #f9f9f9;
    column-gap: 100px;
    row-gap: 40px;
}

.resroof-gaf-mil-content {
    width: 800px;
    max-width: 85vw;
}

.resroof-gaf-mil-content h2{
    font-size: 35px;
    line-height: 35px;
    margin: 0 0 15px 0;
    color: var(--main-blue-dark);
}

.resroof-gaf-mil-content h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    line-height: 28px;
    background: linear-gradient(90deg, #B31942, #0A3161);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.resroof-gaf-mil-content p {
    color: rgb(33, 33, 33);
    font-size: 18px;
    margin: 20px 0 30px 0;
}

.resroof-gaf-mil-img-wrap {
    width: 500px;
    height: 350px;
    max-width: 75vw;
    position: relative;
}

.resroof-gaf-mil-content .site-button {
    background-color: var(--main-blue-dark);
    color: white;
}

.resroof-gaf-mil-content .site-button:hover {
    background-color: transparent;
    color: var(--main-blue-dark);
}

.resroof-gaf-mil-img-wrap::before {
    position: absolute;
    z-index: 0;
    height: calc(100% + 4px);
    width: 70px;
    left: -10px;
    border-left: double 8px #B31942;
    border-top: double 8px #B31942;
    border-bottom: double 8px #B31942;
    content: '';
    top: -10px;
}

.resroof-gaf-mil-img-wrap::after {
    position: absolute;
    z-index: 0;
    height: calc(100% + 4px);
    width: 70px;
    right: -10px;
    border-right: double 8px #0A3161;
    border-top: double 8px #0A3161;
    border-bottom: double 8px #0A3161;
    content: '';
    top: -10px;
}

.resroof-gaf-mil-img-wrap img {
    width: 100%;
    height: 95%;
    position: relative;
    z-index: 1;
    object-fit: cover;
}