/* -- General -- */

.text-light-blue {
    color: var(--light-blue);
}
.maincontent p {
    font-size: .975rem;
    line-height: 1.55em;
    margin-bottom: 15px;
}



/* -- Intro -- */

.sa_light-bg {
    background-color: #c8c8c8;
    background-image: url(/imageserver/UserMedia/barnes/abstract_bg.webp);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}
.sa_dark-bg {
    background: linear-gradient(135deg, var(--dark-blue) 15%, #101010 85%);
}



/* -- Roofing Services - Overall -- */

p.sa_services-list-heading {
    position: relative;
    margin: 80px auto 20px;
    text-transform: uppercase;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--blue);
}
p.sa_services-list-heading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e6e8ed calc(50% - 200px), #fff calc(50% - 200px), #fff calc(50% + 200px), #e6e8ed calc(50% + 200px));
    z-index: -1;
}
.sa_services-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 35px auto 20px;
    padding: 0;
    gap: 2%;
}
.sa_services-item {
    width: calc(20% - (8% / 5));
    margin-block: 15px;
    padding: 25px 20px;
    border: 2px solid #d6d8dd;
    text-align: left;
    border-radius: 10px;
    background-color: rgba(0, 125, 242, .025);
    text-align: center;
    transition: border-color .25s;
}
.sa_services-item:hover {
    border-color: #86888d;
}
.sa_services-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin: 10px auto 20px;
    padding: 5px;
    border-radius: 5px;
    background-color: var(--dark-blue);
    fill: #fff;
    transition: background-color .25s, transform .25s;
}
.sa_services-item:hover .sa_services-icon {
    background-color: var(--blue);
    transform: scale(1.15);
}
.sa_services-item p {
    width: 100%;
    font-size: .9rem;
    line-height: 1.25em;
    font-weight: 700;
    text-transform: uppercase;
}

.sa_svc-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-radius: 10px;
    z-index: 0;
    gap: 5%;
}
.sa_svc-wrapper-reverse {
    flex-direction: row-reverse;
}
.sa_svc-col-img {
    width: calc(46% - (5% / 2));
    min-height: 100%;
    max-height: 600px;
    border-radius: 10px;
    overflow: hidden;
}
.sa_svc-col-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sa_svc-col-content {
    width: calc(54% - (5% / 2));
    display: flex;
    align-items: center;
}
.sa_svc-col-content .sa_svc-icon-wrapper {
    position: relative;
}
.sa_svc-col-content .sa_svc-icon-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: calc(100% - 75px);
    height: 2px;
    margin-top: -1px;
    background-color: var(--blue);
}
.sa_svc-col-content .sa_svc-icon {
    display: block;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    margin: 0 0 35px;
    padding: 8px;
    background-color: var(--blue);
    fill: #fff;
}



/* -- Roofing Services - Overall - Dark Backgrounds -- */

.sa_svc-wrapper-dark {
    color: #e0e2e8;
}
.sa_svc-wrapper-dark h2 {
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #fff;
}
.sa_svc-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 40px auto;
    padding: 0;
    text-align: left;
    gap: 5%;
}
.sa_svc-item {
    width: calc(50% - (5% / 2));
    margin-bottom: 15px;
}
.sa_svc-item:last-child {
    margin-bottom: 0;
}
.sa_svc-item p {
    position: relative;
    font-size: .9rem;
    margin: 0;
    padding-left: 30px;
    font-weight: 500;
    color: #d0d2d8;
}
.sa_svc-item p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--light-blue);
    z-index: -1;
}
.sa_svc-item p::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotateZ(45deg);
    width: 8px;
    height: 14px;
}



/* -- Roofing Materials -- */

.sa_materials-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 45px auto 0;
    padding: 0;
    gap: 3%;
}
.sa_materials-item {
    width: calc(50% - (3% / 2));
    margin-block: 15px;
    padding: 45px 30px;
    border: 2px solid #d6d8dd;
    border-radius: 10px;
    background-color: rgba(0, 125, 242, .025);
    text-align: center;
    transition: border-color .25s;
}
.sa_materials-item:hover {
    border-color: #86888d;
}
.sa_materials-item .sa_materials-icon {
    display: block;
    width: 105px;
    height: 105px;
    margin: 0 auto 35px;
    padding: 8px;
    border-radius: 50%;
    background-color: #f2f4f8;
    border: 4px solid #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, .15);
    transition: background-color .25s, transform .25s;
}
.sa_materials-item:hover .sa_materials-icon {
    background-color: #fff;
    transform: scale(1.1);
}
.sa_materials-item .fill-blue {
    fill: var(--blue);
}
.sa_materials-item .fill-light-blue {
    fill: var(--light-blue);
}
.sa_materials-item h3 {
    font-weight: 500;
    font-weight: 800;
}
.sa_materials-item p {
    max-width: 450px;
    width: 100%;
    margin-inline: auto;
    font-size: .9rem;
    color: #46484d;
}



/* -- Why Us -- */

.sa_why-col {
    width: calc(50% - (5% / 2));
}
.sa_why-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 5%;
}
.sa_why-item {
    display: flex;
    align-items: flex-start;
    width: calc(50% - (5% / 2));
    margin-block: 10px;
    padding: 5px;
    text-align: left;
    gap: 15px;
}
.sa_why-item .sa_why-icon {
    display: block;
    min-width: 40px;
    height: auto;
    margin: 0;
    padding: 5px;
    border-radius: 5px;
    background-color: var(--dark-blue);
    fill: #fff;
}
.sa_why-item .sa_why-highlight {
    display: block;
    width: 100%;
    font-size: 1.2em;
    margin-bottom: 4px;
    color: var(--blue);
    font-weight: 800;
    text-transform: uppercase;
}
.sa_why-item p {
    width: 100%;
    font-size: .9rem;
    line-height: 1.25em;
    font-weight: 500;
    color: #66686d;
}



/* -- CTA -- */

#sa_cta {
    color: #e6e8ed;
    padding-block: 85px;
}
#sa_cta h2 {
    color: #fff;
}



/* -- Responsiveness -- */

@media (max-width: 1200px) {
    .sa_services-item {
        width: calc(25% - (6% / 4));
    }
}

@media (max-width: 1024px) {
    .sa_svc-col-img,
    .sa_svc-col-content {
        max-width: 750px;
        width: 100%;
        margin-inline: auto;
    }
    .sa_svc-col-img {
        margin-bottom: 35px;
    }

    .sa_why-list {
        margin-top: 35px;
    }
}

@media (max-width: 981px) {
    .sa_services-item {
        width: calc(33.3333333333% - (4% / 3));
    }
}

@media (max-width: 750px) {
    .sa_materials-item {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .sa_services-item {
        width: calc(50% - (2% / 2));
    }
}

@media (max-width: 550px) {
    .sa_services-list-heading::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .sa_services-item {
        width: 100%;
    }

    .sa_svc-item {
        width: 100%;
    }

    .sa_why-item {
        width: 100%;
    }
}