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

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

.services-hero-overlay {
    width: 100%;
    height: 100%;
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(38, 38, 38, 0.747);
    padding: 20px 0 20px 5vw;
    box-sizing: border-box;
}

.services-hero-overlay h1 {
    color: white;
    margin: 0 0 10px 0;
    width: 600px;
    max-width: 90vw;
    position: relative;
    font-size: 50px;
}

.services-hero-overlay h1::after {
    width: 50px;
    height: 4px;
    content: "";
    background-color: var(--main-color-light);
    display: block;
    position: absolute;
    bottom: -5px;
}

.services-hero-overlay p {
    color: white;
    margin: 0 0 30px 0;
    width: 600px;
    max-width: 90vw;
    font-size: 25px;
}

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

    .services-hero-overlay p {
        font-size: 18px;
    }
}

.services-hero-overlay .site-button {
    color: white;
    background-color: rgba(255, 255, 255, 0.207);
}

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

/* SERVICES - BANNER */
.services-banner {
    padding: 50px 0;
    text-align: center;
    color: white;
    background-color: var(--main-color);
    border-bottom: solid 8px var(--main-color-light);
}

.services-banner h2 {
    margin: 0;
    font-size: 40px;
    text-align: center;
}

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

/* SERVICES - INTRO */
.services-intro {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 40px;
    padding: 50px 0;
    background-color: #f1f1f1;
}

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

.services-intro-image-accent {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border-bottom: solid 6px var(--main-color-light);
    border-right: solid 6px var(--main-color-light);
    z-index: 1;
}

.services-intro-image-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
    position: relative;
}

.services-intro-content {
    width: 1000px;
    max-width: 90vw;
    display: grid;
    grid-template-columns: 15% 80%;
    column-gap: 10px;
    row-gap: 20px;
    align-items: center;
}

.services-intro-content img {
    width: 50px;
    justify-self: end;
}

.services-intro-content-row h6{
    margin: 0 0 5px 0;
    font-size: 20px;
    color: var(--main-color);
}

.services-intro-content-row p {
    margin: 0 0 10px 0;
    color: darkslategray;
    font-size: 18px;
}

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

.services-roofing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 0 20px 0;
    background: linear-gradient(rgba(230, 230, 230, 0.597), rgba(177, 177, 177, 0.534));
    background-size: cover;
    border-top: solid 8px var(--main-color);
}

.services-roofing-summary {
    position: relative;
    width: fit-content;
    max-width: 80vw;
    text-align: center;
}

.services-roofing-summary h2 {
    font-weight: 600;
    font-size: 30px;
    position: relative;
    margin: 0px 0 10px 0;
}

.services-roofing-summary::before {
    position: absolute;
    width: 30%;
    top: -30px;
    content: '';
    background-color: var(--main-color-light);
    height: 6px;
    left: 35%;
}

.services-roofing-summary::after {
    position: absolute;
    width: 30%;
    bottom: -30px;
    content: '';
    background-color: var(--main-color-light);
    height: 6px;
    left: 35%;
}

.services-roofing-summary p {
    margin: 0;
    font-size: 18px;
    width: 900px;
    max-width: 100%;
}

.services-roofing-row {
    display: flex;
    flex-direction: row;
    row-gap: 30px;
    column-gap: 20px;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    padding: 80px 0 60px 0;
    width: 100%;
}

.services-roofing-card {
    width: 500px;
    box-sizing: border-box;
    border-bottom: solid 6px var(--main-color);
    min-height: 300px;
    max-width: 90vw;
    background: linear-gradient(to bottom right, var(--main-color-light) 25%, var(--main-color) 25%);
    border-radius: 10px;
    display: grid;
    grid-template-columns: 90%;
    padding: 30px 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    transition: all 0.2s ease-in-out;
}

.services-roofing-card img{
    width: 60%;
    justify-self: center;
}

.services-roofing-card .site-button{
    border-color: white;
    position: relative;
    color: var(--main-color);
    background-color: white;
}

.services-roofing-card .site-button::before {
    position: absolute;
    height: 4px;
    top: calc(50% - 2px);
    left: -40px;
    width: 0px;
    background-color: white;
    content: "";
    border-radius: 5px 0 0 5px;
    transition: width 0.2s linear;
}

.services-roofing-card .site-button::after {
    position: absolute;
    height: 4px;
    top: calc(50% - 2px);
    right: -40px;
    width: 0px;
    background-color: white;
    content: "";
    border-radius: 0px 5px 5px 0px;
    transition: width 0.2s linear;
}

.services-roofing-card:hover .site-button::before, .services-roofing-card:hover .site-button::after {
    width: 20px;
}

.services-roofing-card:hover .site-button {
    letter-spacing: 2px;
}

.services-roofing-card .site-button:hover{
    background-color: var(--main-color);
    color: white;
}

.services-roofing-card:hover {
    transform: translateY(-15px);
}

/* SERVICES - GUTTERS */
.services-gutters-wrap {
    background-image: url(/imageserver/UserMedia/bestroofingandgutters/background.jpeg);
    background-position: center;
    background-size: cover;
}

.services-gutters {
    width: 100%;
    padding: 80px 0;
    background-color: #4951ae8f;
    border-top: solid 8px var(--main-color);
    border-bottom: solid 6px var(--main-color);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 150px;
    row-gap: 50px;
    flex-wrap: wrap-reverse;
}

.services-gutters-image-wrap {
    width: 450px;
    height: 300px;
    position: relative;
    max-width: 70vw;
}

.services-gutters-image-wrap::before {
    width: 40%;
    height: 50%;
    border-top: double 6px white;
    border-left: double 6px white;
    border-right: double 6px transparent;
    border-bottom: double 6px transparent;
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    border-radius: 10px 0px 0px 0px;
}

.services-gutters-image-wrap::after {
    width: 40%;
    height: 50%;
    border-top: double 6px transparent;
    border-left: double 6px transparent;
    border-right: double 6px white;
    border-bottom: double 6px white;
    content: "";
    position: absolute;
    bottom: -10px;
    right: -10px;
    border-radius: 10px 0px 10px 0px;
}

.services-gutters-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 30px 10px 30px;
}

.services-gutters-content {
    color: white;
    width: 700px;
    max-width: 90vw;
    background-color: rgba(174, 174, 174, 0.325);
    padding: 30px 15px;
    border-radius: 15px;
    box-sizing: border-box;
}

.services-gutters-content hr {
    width: 75px;
    margin: 0 0 10px 0;
    height: 6px;
    outline: none;
    background-color: white;
    border: none;
}

.services-gutters-content h3 {
    margin: 0 0 10px 0;
    font-size: 25px;
    font-weight: 500;
}

.services-gutters-content h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    
}

.services-gutters-content p {
    font-size: 18px;
    margin: 0 0 40px 0;
}

.services-gutters-content .site-button{
    border-color: white;
    position: relative;
    color: var(--main-color);
    background-color: white;
}

.services-gutters-content .site-button:hover{
    background-color: transparent;
    color: white;
}

/* SERVICES - MILITARY */

.services-mil {
    padding: 80px 0;
    background-color: #f1f1f1;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 30px;
    column-gap: 20px;
}

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

.services-mil-image-wrap::before {
    width: 60%;
    height: 40%;
    border-top: dotted 8px #B31942;
    border-left: dotted 8px #B31942;
    content: "";
    top: -10px;
    left: -10px;
    position: absolute;
    border-radius: 20px 0 0 0;
}

.services-mil-image-wrap::after {
    width: 60%;
    height: 40%;
    border-bottom: dotted 8px #0A3161;
    border-right: dotted 8px #0A3161;
    content: "";
    bottom: -10px;
    right: -10px;
    border-radius: 0 0 20px 0;
    position: absolute;
}

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

.services-mil-content {
    width: 700px;
    max-width: 80vw;
}

.services-mil-content h3 {
    margin: 0 0 10px 0;
    font-size: 30px;
}

.services-mil-content h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.services-mil-content h4 span{
    color: goldenrod;
    font-weight: 800;
    font-style: italic;
}

.services-mil-content p {
    font-size: 18px;
    margin: 0 0 30px 0;
}