/* -- Globals -- */

.g_space-around,
.g_space-around-sm {
    position: relative;
    z-index: 0;
}
.g_space-around {
    padding: 80px 5%;
}
.g_space-around-sm {
    padding: 50px 5%;
}
.g_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.g_wrapper-align-top {
    align-items: flex-start;
}
.g_wrapper-reverse {
    flex-direction: row-reverse;
}
.g_col-sm {
    width: 45%;
    padding: 20px 25px;
}
.g_col-lg {
    width: 55%;
    padding: 20px 25px;
}
.g_img-wrapper {
    position: relative;
    max-width: 750px;
    width: 100%;
    margin: 20px auto;
}
.g_img-wrapper img {
    width: 100%;
    height: auto;
    background-color: #eee;
}
.g_text-center {
    text-align: center;
}

@media (max-width: 981px) {
    .g_wrapper {
        max-width: 750px;
        width: 100%;
        margin-inline: auto;
    }
    .g_col-sm,
    .g_col-lg {
        width: 100%;
        padding: 0;
    }
    .g_img-wrapper {
        margin-bottom: 35px;
    }
}

@media (max-width: 480px) {
    .g_space-around,
    .g_space-around-sm {
        padding-inline: 20px;
    }
    .g_text-center {
        text-align: left;
    }
    .g_text-center .underline,
    .g_text-center .site-button {
        margin-left: 0;
    }
}



/* -- Roofing Services - Hero -- */

#header_section {
    position: relative;
    background-color: #151515;
    color: #fff;
    z-index: 1;
}
#header_section::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -30px;
    width: calc(50% + 45px);
    height: 30px;
    background-color: var(--red);
    -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 45px) 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, calc(100% - 45px) 100%, 0 100%);
}
.header-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}
.header-content,
.header-bg {
    width: 50%;
}
.header-content-inner {
    max-width: 650px;
    width: 100%;
    margin-left: auto;
}
.header-star-wrapper {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-block: 20px 30px;
}
.header-google-logo {
    background-image: url(https://contractorwebzone.com/imageserver/UserMedia/dukesroof2/google_logo.webp);
    background-size: cover;
    background-position: center;
    width: 22px;
    height: 22px;
    margin-inline: 1px 10px;
}
.header-star {
    width: 22px;
    height: 22px;
    background-image: url(https://contractorwebzone.com/imageserver/UserMedia/5gstl/star_icon.svg);
    background-size: cover;
    background-position: center;
}
.header-content-inner h1 {
    font-size: 2.6rem;
    color: #fff;
}
.header-content-inner p {
    font-size: 1.25rem;
    font-weight: 300;
    color: #d2d4d8;
}
.header-bg {
    background-color: #d2d4d8;
    background-image: url(https://contractorwebzone.com/imageserver/UserMedia/powcoroofing/hero_comm_bg.webp);
    background-position: center;
    background-size: cover;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 45px 100%, 0 calc(100% - 45px));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 45px 100%, 0 calc(100% - 45px));
}



/* -- Services - Overview  -- */

#roofing_overview_section {
    background: linear-gradient(-45deg, transparent 15%, #f0f2f6 15%, #f0f2f6 35%, transparent 35%, transparent 92%, #f0f2f6 92%);
    padding-top: 100px;
}
.roofing-overview-list {
    list-style: none;
    margin: 50px 0 20px;
    padding: 0;
}
.roofing-overview-item {
    margin-bottom: 35px;
}
.roofing-overview-item:last-child {
    margin-bottom: 0;
}
.roofing-overview-item h3 {
    position: relative;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 500;
    padding-left: 33px;
}
.roofing-overview-item h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    background-color: var(--red);
    width: 22px;
    height: 22px;
    border-radius: 50%;
}
.roofing-overview-item h3::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 7px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotateZ(45deg);
    width: 7px;
    height: 12px;
}
.roofing-overview-item p {
    line-height: 1.5em;
    padding-left: 33px;
}
.quote-form {
    max-width: 500px;
}



.cert-box {
    position: relative;
    background-color: #fff;
    max-width: 500px;
    width: 100%;
    margin: 50px auto 20px;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(5, 5, 5, .15);
    text-align: center;
    z-index: 0;
}
.cert-box::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid var(--red);
    border-radius: 8px;
    z-index: -1;
}
.cert-icon {
    display: block;
    width: 70px;
    height: 70px;
    margin: 5px auto 20px;
    fill: var(--accent-color);
}
.cert-box p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.15em;
    color: #525458;
}
.cert-alt {
    display: block;
    font-size: 1.1em;
    line-height: 1.15em;
    font-weight: 600;
    margin-bottom: 5px;
    color: #111;
}



/* -- Services - Reviews -- */

#reviews_section {
    border-top: 2px solid var(--light-blue);
}
.reviews-wrapper .header-star-wrapper {
    margin-block: 5px;
}



/* -- Responsiveness -- */

@media (max-width: 1024px) {
    .header-content,
    .header-bg {
        width: 100%;
    }
    .header-bg {
        height: 350px;
    }
    .header-content-inner {
        max-width: 750px;
        margin-inline: auto;
    }
    .header-star-wrapper {
        margin-top: 0;
    }

    .roofing-overview-wrapper .g_col-sm {
        display: flex;
        flex-direction: column-reverse;
    }
    .quote-form {
        max-width: 100%;
    }
    .cert-box {
        max-width: 100%;
        margin-block: 60px 40px;
    }
}

@media (max-width: 750px) {
    .header-content-inner h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 480px) {
    .header-bg {
        height: 250px;
    }
    .header-content-inner h1 {
        font-size: 2rem;
    }
}