/* SERVICES - HERO */
.services-hero {
    height: 500px;
    width: 100%;
    position: relative;
}

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

.services-hero-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(49, 49, 49, 0.588);
    color: white;
    padding-left: 10%;
    box-sizing: border-box;
}

.services-hero-overlay h2 {
    font-size: 40px;
    margin: 0;
    position: relative;
}

.services-hero-overlay h2::after {
    width: 70px;
    height: 5px;
    border-radius: 3px;
    background-color: white;
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
}

.services-hero-overlay p {
    margin: 15px 0;
    font-size: 20px;
    max-width: 60vw;
}

.services-hero-overlay .site-button {
    border: solid 4px white;
    color: white;
    font-size: 20px;
}

.services-hero-overlay .site-button:hover {
    background-color: white;
    color: var(--main-red);
}

@media (max-width: 981px) {
    .services-hero-overlay h2 {
        font-size: 30px;
    }

    .services-hero-overlay p {
        font-size: 15px;
    }
 
    .services-hero-overlay .site-button {
        font-size: 15px;
    }
}

/* SERVICES - BANNER */
.services-banner {
    background-color: var(--main-red);
    padding: 50px 0 80px 0;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: ellipse(90% 100% at top);
}

.services-banner h3 {
    text-align: center;
    margin: 0;
    font-size: 40px;
    width: fit-content;
    position: relative;
}

@media (max-width: 981px) {
    .services-banner h3 {
        font-size: 30px;
    }
}

.services-banner h3::before {
    content: '';
    width: 50px;
    border-radius: 5px 0 0 5px;
    height: 5px;
    background-color: white;
    position: absolute;
    left: -80px;
    top: calc(50% - 2.5px);
}

.services-banner h3::after {
    content: '';
    width: 50px;
    border-radius: 0 5px 5px 0;
    height: 5px;
    background-color: white;
    position: absolute;
    right: -80px;
    top: calc(50% - 2.5px);
}

/* SERVICEs - INTRO */
.services-intro {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 30px 0;
    column-gap: 50px;
    row-gap: 50px;
    border-bottom: solid 8px var(--main-red);
}

.services-intro-image-wrap {
    position: relative;
    width: 450px;
    height: 300px;
    max-width: 80vw;
    max-height: calc(.66 * 80vw);
}

.services-intro-image-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.services-intro-image-wrap::before {
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    content: '';
    background-color: transparent;
    position: absolute;
    top: -8px;
    left: -8px;
    border: solid 4px var(--main-red);
    box-sizing: border-box;
    border-radius: 25px;
}

.services-intro-content {
    width: 800px;
    max-width: 90vw;
}

.services-intro-content h3 {
    color: black;
    margin: 0 0 5px 0;
    font-size: 30px;
    font-weight: 600;
}

.services-intro-content h4 {
    color: rgb(54, 54, 54);
    margin: 10px 0;
    font-size: 25px;
    position: relative;
    width: fit-content;
}

.services-intro-content h4::after {
    width: 30px;
    height: 5px;
    background-color: var(--main-red);
    content: '';
    position: absolute;
    border-radius: 5px;
    bottom: -5px;
    left: 0;
}

.services-intro-content p {
    font-size: 20px;
    margin: 5px 0;
}

.services-intro-content ul {
    list-style: none;
    padding: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;
    column-gap: 40px;
    row-gap: 30px;
}

.services-intro-content ul li svg {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.services-intro-content ul li svg * {
    fill: var(--main-red);
}

.services-intro-content ul li {
    font-size: 20px;
    font-weight: 600;
}

@media (max-width: 981px) {
    .services-intro-content h3 {
        font-size: 28px;
    }

    .services-intro-content h4 {
        font-size: 18px;
    }

    .services-intro-content p {
        font-size: 14px;
    }

    .services-intro-content ul li {
        font-size: 14px;
    }
}

/* SERVICES - ROOFING */
.services-roofing {
    padding: 60px 0;
    background: #f9f9f9;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap-reverse;
    column-gap: 150px;
    row-gap: 40px;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.services-roofing-accent {
    position: absolute;
    content: "";
    height: 200%;
    background: linear-gradient(to bottom, red, var(--main-red));
    z-index: 0;
    aspect-ratio: 1 / 1;
    right: 0;
    transform: translateX(75%) rotate(45deg);
}

.services-roofing-image-wrap {
    width: 600px;
    height: 400px;
    max-width: 80vw;
    max-height: calc(0.66 * 80vw);
    position: relative;
    z-index: 1;
}

.services-roofing-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.services-roofing-image-wrap::before {
    content: '';
    width: 100%;
    height: 100%;
    background-color: transparent;
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
    border-top: double 10px var(--main-red);
    top: -10px;
}

.services-roofing-image-wrap::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: transparent;
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
    border-bottom: double 10px var(--main-red);
    left: 0;
    bottom: -10px;
}

.services-roofing-content {
    position: relative;
    z-index: 1;
    width: 700px;
    max-width: 80vw;
}

.services-roofing-content .site-button {
    font-size: 20px;
}

.services-roofing-content h3 {
    margin: 0 0 5px 0;
    font-size: 25px;
    position: relative;
    font-weight: 700;
}

.services-roofing-content h4 {
    font-size: 20px;
    margin: 0 0 10px 0;
    width: fit-content;
    font-weight: 600;
}

.services-roofing-content p {
    margin: 20px 0;
    font-size: 18px;
}

.services-roofing-content::before {
    width: 60px;
    background-color: transparent;
    border-top: double 8px var(--main-red);
    border-left: double 8px var(--main-red);
    height: 40px;
    border-radius: 5px;
    content: "";
    position: absolute;
    left: -25px;
    top: -20px;
}

.services-roofing-content::after {
    width: 60px;
    background-color: transparent;
    border-bottom: double 8px var(--main-red);
    border-right: double 8px var(--main-red);
    height: 40px;
    border-radius: 5px;
    content: "";
    position: absolute;
    right: -25px;
    bottom: -20px;
}

@media (max-width: 1464px) {
    .services-roofing-accent {
        position: absolute;
        content: "";
        height: 300px;
        width: 100%;
        background: linear-gradient(to bottom, rgb(93, 44, 44), var(--main-red));
        z-index: 0;
        top: 0;
        left: 0;
        transform: translateX(0%) rotate(0deg);
        clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%)
    }
}

/* SERVICES - SIDING */
.services-siding {
    padding: 60px 0;
    background: #e8e8e8;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 150px;
    row-gap: 40px;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.services-siding-accent {
    position: absolute;
    content: "";
    height: 200%;
    background: linear-gradient(to bottom, red, var(--main-red));
    z-index: 0;
    aspect-ratio: 1 / 1;
    left: 0;
    transform: translateX(-75%) rotate(315deg);
}

.services-siding-image-wrap {
    width: 600px;
    height: 400px;
    max-width: 80vw;
    max-height: calc(0.66 * 80vw);
    position: relative;
    z-index: 1;
}

.services-siding-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.services-siding-image-wrap::before {
    content: '';
    width: 100%;
    height: 100%;
    background-color: transparent;
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
    border-top: double 10px var(--main-red);
    top: -10px;
}

.services-siding-image-wrap::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: transparent;
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
    border-bottom: double 10px var(--main-red);
    left: 0;
    bottom: -10px;
}

.services-siding-content {
    position: relative;
    z-index: 1;
    width: 700px;
    max-width: 80vw;
}

.services-siding-content .site-button {
    font-size: 20px;
}

.services-siding-content p {
    margin: 20px 0;
    font-size: 18px;
}

.services-siding-content::before {
    width: 60px;
    background-color: transparent;
    border-top: double 8px var(--main-red);
    border-left: double 8px var(--main-red);
    height: 40px;
    border-radius: 5px;
    content: "";
    position: absolute;
    left: -25px;
    top: -20px;
}

.services-siding-content::after {
    width: 60px;
    background-color: transparent;
    border-bottom: double 8px var(--main-red);
    border-right: double 8px var(--main-red);
    height: 40px;
    border-radius: 5px;
    content: "";
    position: absolute;
    right: -25px;
    bottom: -20px;
}

.services-siding-content h3 {
    margin: 0 0 5px 0;
    font-size: 25px;
    position: relative;
    font-weight: 700;
}

.services-siding-content h4 {
    font-size: 20px;
    margin: 0 0 10px 0;
    width: fit-content;
    font-weight: 600;
}

@media (max-width: 1464px) {
    .services-siding-accent {
        position: absolute;
        content: "";
        height: 300px;
        width: 100%;
        background: linear-gradient(to bottom, rgb(93, 44, 44), var(--main-red));
        z-index: 0;
        top: 0;
        left: 0;
        transform: translateX(0%) rotate(0deg);
        clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%)
    }
}

/* SERVICES - CERT */
.services-cert-wrap {
    background: url(/imageserver/UserMedia/texasroofmasters/background.jpeg);
    background-position: center;
    background-size: cover;
}

.services-cert {
    padding: 50px 0;
    background: linear-gradient(to bottom, #000f809d, rgba(19, 34, 119, 0.947));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: solid 8px  var(--main-blue);
    border-bottom: solid 8px  var(--main-blue);
}

.services-cert-image-wrap {
    width: 150px;
    height: auto;
    position: relative;
}

.services-cert-image-wrap img {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

.services-cert-image-accent {
    position: absolute;
    box-sizing: border-box;
    height: 120%;
    width: 60%;
    background-color: var(--main-blue);
    top: -12%;
    left: calc(50% - 30%);
    clip-path: polygon(0 10%, 50% 0, 100% 10%, 100% 90%, 50% 100%, 0 90%);
}

.services-cert-image-accent-2 {
    position: absolute;
    box-sizing: border-box;
    height: 120%;
    width: 160%;
    background-color: var(--main-blue);
    top: -12%;
    left: -30%;
    clip-path: polygon(0 50%, 10% 0, 90% 0%, 100% 50%, 90% 100%, 10% 100%);
}

.services-cert h3 {
    color: white;
    font-weight: 500;
    font-size: 30px;
    margin: 30px 0;
    text-align: center;
}

.services-cert h3 span {
    font-weight: 700;
    color: gold;
}

.services-cert p {
    color: white;
    font-size: 20px;
    text-align: center;
    width: 1000px;
    max-width: 90vw;
    margin: 0;
}