.roofing-hero {
    height: 500px;
    width: 100%;
    background-image: 
        linear-gradient(to right, rgba(42, 42, 42, 0.757)),
        url(/imageserver/UserMedia/jfroofing/roofing-1.jpeg);
    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;
}

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

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

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

/* Roofing Intro */
.roofing-intro {
    width: 100%;
    padding: 75px 5%;
    gap: 64px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #f7f7f7;
    flex-wrap: wrap;
}

.roofing-intro-content {
    max-width: 900px;
}

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

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

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

.roofing-intro-image-wrap {
    width: 500px;
    height: 300px;
    position: relative;
    max-width: 80vw;
    max-height: calc(.6 * 80vw);
}

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

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

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





/* Roofing Services */
.roofing-services {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 75px 0;
    background: url(/imageserver/UserMedia/jfroofing/abstract-1.jpeg);
    background-position: center;
    background-size: cover;
}

.roofing-services h2 {
    font-size: 40px;
    line-height: 40px;
    color: var(--main-color-500);
    margin: 0;
}

.roofing-services > p {
    width: 1000px;
    max-width: 85vw;
    text-align: center;
    font-size: 20px;
    margin: 16px 0;
}

.roofing-services-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 32px;
    padding: 16px 0 32px 0;
}

.roofing-services-card {
    color: var(--main-color-500);
    width: 300px;
    max-width: 85vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 32px 0 0 0;
    position: relative;
    padding: 64px 8px 8px 8px;
    border-bottom: solid 2px var(--main-color-500);
    border-left: solid 2px var(--main-color-500);
    border-right: solid 2px var(--main-color-500);
    border-top: solid 2px var(--main-color-500);
    background-color: white;
}

.roofing-services-card:hover svg {
    color: var(--main-color-700);
    padding: 0 32px;
}

.roofing-services-card svg {
    width: 50px;
    height: 50px;
    position: absolute;
    top: -25px;
    transition: all 0.3s ease-in-out;
    background-color: white;
    padding: 0 16px;
    box-sizing: content-box;
}

.roofing-services-card h4 {
    margin: 0;
    font-size: 24px;
    line-height: 24px;
    background-color: var(--main-color-500);
    color: white;
    padding: 8px;
}

.roofing-services-card p {
    text-align: center;
    margin: 16px 0;
    font-size: 18px;
}




/* Roofing - brands */

.roofing-brands {
    padding: 75px 0;
    border-bottom: solid 8px var(--main-color-500);
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: 
        radial-gradient(circle at 50% 300%, var(--main-color-500) -20%, transparent 80%),    
        #f7f7f7;
        
}

.roofing-brands h2 {
    text-align: center;
    font-size: 40px;
    line-height: 40px;
    color: white;
    margin: 0;
    background-color: var(--main-color-500);
    padding: 8px 32px;
    clip-path: polygon(32px 0, calc(100% - 32px) 0, 100% 50%, calc(100% - 32px) 100%, 32px 100%, 0 50%);
}

.roofing-brands > p {
    margin: 32px 0;
    font-size: 20px;
    width: 1000px;
    text-align: center;
    max-width: 85vw;
}

.roofing-brands-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.roofing-brand-card {
    width: 360px;
    border: 2px solid var(--main-color-500);
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roofing-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.roofing-brand-card img {
    width: 240px;
    height: 200px;
    max-width: 80%;
    padding: 40px 0 20px;
    object-fit: contain;
}

.roofing-brand-card-content {
    text-align: center;
    padding: 0 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.roofing-brand-card-content h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--main-color-700);
    margin: 0;
}



/* roofing CTA */
section.roofing-cta {
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url(/imageserver/UserMedia/jfroofing/abstract-1.jpeg);
    background-size: cover;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 650px;
}

.roofing-cta-content {
    position: relative;
    box-sizing: border-box;
    width: 60%;
    padding: 75px 5%;
}

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

.roofing-cta-content > p {
    color: white;
    font-size: 18px;
    margin: 24px 0;
    font-weight: 400;
}

.roofing-cta-content ul {
    list-style: none;
    padding: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 16px;
}

.roofing-cta-content ul li {
    color: white;
    font-weight: 300;
    display: flex;
    align-items: center;
}

.roofing-cta-content ul li p {
    margin: 0;
}

.roofing-cta-content ul li span {
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
    background-color: var(--main-color-500);
    padding: 4px 24px 4px 4px;
    margin: 0 8px 0 0;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}

.roofing-cta-image-wrap {
    width: 40%;
    position: relative;
    height: 100%;
}

.roofing-cta-image-wrap::before {
    content: "";
    border: solid 4px var(--main-color-500);
    position: absolute;
    height: 70%;
    width: 20%;
    top: 15%;
    right: -5%;
    z-index: 0;
}

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

@media (max-width: 1080px) {
    section.roofing-cta {
        flex-direction: column;
        height: fit-content;
        background-color: transparent;
    }

    .roofing-cta-content {
        width: 100%;
        background-color: rgb(54, 54, 54);
    }

    .roofing-cta-image-wrap {
        width: 100%;
        height: 250px;
    }

    .roofing-cta-image-wrap img {
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .roofing-cta-image-wrap::before {
        width: 80%;
        top: 85%;
        height: 100%;
        left: 10%;
    }
}