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

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

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

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

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

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

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

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

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

    .roofing-hero-overlay p {
        font-size: 15px;
    }

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

/* roofing - BANNER */
.roofing-banner {
    background-color: var(--main-red);
    padding: 50px 0 50px 0;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

@media (max-width: 981px) {
    .roofing-banner {
        overflow: hidden;
    }

    .roofing-banner h3 {
        font-size: 30px;
    }
}

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

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

/* roofing - INTRO */
.roofing-intro {
    background-color: white;
    padding: 50px 0;
    border-bottom: solid 8px var(--main-red);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 100px;
    row-gap: 40px;
    flex-wrap: wrap;
    overflow: hidden;
}

.roofing-intro-image-wrap {
    height: 400px;
    width: 400px;
    max-width: 80vw;
    max-height: 80vw;
    position: relative;
}

.roofing-intro-image-wrap::before {
    width: 100%;
    height: 100%;
    content: '';
    position: absolute;
    border: double 8px var(--main-red);
    top: 0px;
    left: 0px;
    border-radius: 50%;
    transition: all 0.2s linear;
    transform-origin: center;
}

.roofing-intro:hover .roofing-intro-image-wrap::before {
    border: double 16px var(--main-red);
}

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

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

.roofing-intro-content::before {
    position: absolute;
    content: '';
    z-index: 0;
    width: 40px;
    height: 30px;
    border-top: double 10px var(--main-red);
    border-left: double 10px var(--main-red);
    top: -20px;
    left: -20px;
}

.roofing-intro-content::after {
    position: absolute;
    content: '';
    z-index: 0;
    width: 40px;
    height: 30px;
    border-bottom: double 10px var(--main-blue);
    border-right: double 10px var(--main-blue);
    bottom: -10px;
    right: -20px;
}

.roofing-intro-content h2 {
    margin: 0 0 10px 0;
    font-size: 30px;
    font-weight: 700;
}

.roofing-intro-content h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
}

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

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

.roofing-services {
    padding: 80px 0px;
    display: grid;
    grid-template-columns: 40% 40%;
    column-gap: 20px;
    row-gap: 20px;
    justify-content: center;
    align-items: start;
    background-color: #ebebebc7;
}

.roofing-services-wide-card .red-line {
    width: 75px;
    height: 5px;
    background-color: var(--main-red);
}

.roofing-services-wide-card .site-button {
    font-size: 22px;
}

.roofing-services-wide-card {
    background-color: #f9f9f9;
    width: 95%;
    justify-self: center;
    max-width: 80vw;
    height: fit-content;
    padding: 20px;
    border-radius: 10px;
    row-gap: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap-reverse;
    box-sizing: border-box;
    border: solid 4px rgb(219, 219, 219);
    transition: border 0.2s linear;
    grid-column: 1 / 3;
}

.roofing-services-wide-card.alt-card {
    flex-direction: row;
    justify-content: space-around;
    min-height: fit-content;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 30px;
    position: relative;
}

.roofing-services-wide-card.alt-card p {
    text-align: start;
    max-width: 90%;
    width: 600px;
    margin-bottom: 20px;
}

.roofing-services-wide-card.alt-card .alt-card-content {
    width: fit-content;
    max-width: 90%;
}

.roofing-services-wide-card.alt-card h3 {
    text-align: start;
    position: relative;
    margin-bottom: 25px;
}

.roofing-services-wide-card.alt-card h3::after {
    background-color: var(--main-red);
    content: '';
    position: absolute;
    width: 40px;
    height: 5px;
    border-radius: 0 10px 10px 0;
    bottom: -10px;
    left: 0;
}

@media (max-width: 1197px) {
    .roofing-services-wide-card.alt-card h3 {
        text-align: center;
    }   
    .roofing-services-wide-card.alt-card p {
        text-align: center;
    }   

    .roofing-services-wide-card.alt-card .alt-card-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .roofing-services-wide-card.alt-card h3::after {
        left: calc(50% - 20px);
        border-radius: 10px;
    }
}

.roofing-services-wide-card h3 {
    margin: 0;
    font-size: 30px;
    text-align: center;
    font-weight: 700;
}

.roofing-services-wide-card img {
    width: 250px;
    max-width: 60%;
    border-radius: 20px;
}

.roofing-services-wide-card:hover {
    border: solid 4px var(--main-blue);
}

.roofing-services-wide-card:nth-child(1):hover {
    border: solid 4px var(--main-red);
}

.roofing-services-wide-card p {
    text-align: center;
    font-size: 20px;
    width: 700px;
    max-width: 90%;
    font-weight: 400;
}

.roofing-services-wide-card ul {
    padding: 30px 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
}

.roofing-services-wide-card ul li {
    font-size: 20px;
    font-weight: 600;
}

.roofing-services-wide-card ul li svg {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.roofing-services-wide-card ul li svg * {
    fill: var(--main-red);
}

@media (max-width: 1000px) {

    .roofing-services {
        grid-template-columns: 90%;
    }

    .roofing-services-wide-card {
        grid-column: 1;
    }
}

@media (max-width: 850px) {
    .roofing-services-wide-card ul {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }
}

/* ROOFING - MILITARY */
.roofing-mil-wrap {
    width: 100%;
    background: url(/imageserver/UserMedia/texasroofmasters/shginles-background.jpeg);
}

.roofing-mil {
    border-top: solid 8px var(--main-red);
    padding: 50px 0;
    backdrop-filter: brightness(30%);
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap-reverse;
    align-items: center;
    column-gap: 50px;
    row-gap: 30px;
    color: white;
}

.roofing-mil-image-wrap {
    width: 500px;
    height: 375px;
    max-width: 80vw;
    max-height: calc(0.75 * 80vw);
}

.roofing-mil-image-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.roofing-mil-content {
    width: 700px;
    max-width: 90vw;
    background-color: rgba(170, 170, 170, 0.397);
    padding: 30px;
    box-sizing: border-box;
    border-radius: 10px;
}

.roofing-mil-content h2 {
    margin: 0 0 10px 0;
    font-size: 30px;
    font-weight: 700;
}

.roofing-mil-content h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 700;
    position: relative;
}

.roofing-mil-content h3 span {
    color: gold;
    font-style: italic;
}

.roofing-mil-content h3::after {
    height: 5px;
    width: 40px;
    background-color: gold;
    position: absolute;
    content: '';
    left: 0;
    bottom: -10px;
    border-radius: 0 10px 10px 0;
}

.roofing-mil-content p {
    margin: 0 0 25px 0;
    font-size: 18px;
}

.roofing-mil-content .site-button {
    border: solid 4px white;
    color: white;
    font-size: 20px;
}