/* -- General -- */

.maincontent {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border: none;
}

.g_space-around,
.g_space-around-lg {
    position: relative;
    z-index: 0;
}
.g_space-around {
    padding: 85px 5%;
}
.g_space-around-lg {
    padding: 115px 5%;
}

.content-wrapper-md,
.content-wrapper-sm {
    width: 100%;
    margin-inline: auto;
}
.content-wrapper-md {
    max-width: 1500px;
}
.content-wrapper-sm {
    max-width: 1150px;
}

.hero-global {
    background-image: linear-gradient(-45deg, rgba(0, 25, 0, .6), rgba(0, 0, 0, 1)), url(/imageserver/UserMedia/roofrite/hero_windows_doors_bg.webp);
}



/* -- Services - Overview -- */

.svc-overview-header {
    width: 100%;
    margin-block: 10px 30px;
    text-align: center;
}
.svc-overview-header .underline {
    margin-block: 30px 20px;
}
.svc-overview-header p {
    font-size: 1rem;
}



/* -- Services - Window & Door Types -- */

#types_section {
    background: linear-gradient(135deg, var(--darker-green) 40%, var(--green) 100%);
}
#types_section::before,
#types_section::after {
    content: "";
    position: absolute;
    inset: -1px auto auto 0;
    width: 50%;
    background-color: #fff;
    height: 35px;
    -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 25px) 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, calc(100% - 25px) 100%, 0 100%);
}
#types_section::after {
    transform: rotate(180deg);
    inset: auto 0 -1px auto;
}
#types_section h2 {
    color: #fff;
    font-weight: 700;
}
.types-nav-list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    margin: 20px auto 65px;
    padding: 0;
    list-style: none;
    gap: 3%;
}
.types-nav-disabled::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
}
.types-nav-item {
    width: calc(50% - (3% / 2));
    margin-block: 8px;
    z-index: 0;
}
.types-nav-button {
    position: relative;
    width: 100%;
    background-color: transparent;
    color: #fff;
    box-shadow: 0 6px 12px rgba(5, 5, 5, .1);
    border: 2px solid var(--green);
    text-align: center;
    padding: 15px 10px;
    font-size: .9rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .3s, background-color .3s;
}
.types-nav-button:hover,
.types-nav-button:focus {
    background-color: var(--dark-green);
}
.types-nav-button-active,
.types-nav-button-active:hover,
.types-nav-button-active:focus {
    background-color: var(--light-green);
    color: #fff;
}

.types-wrapper {
    transition: all .3s;
}
.types-wrapper-fade-out {
    opacity: 0;
    transform: translateY(20px);
}
.types-content {
    display: none;
}
.types-content-visible {
    display: block;
}

.types-list {
    display: flex;
    flex-wrap: wrap;
    margin: 30px auto 20px;
    padding: 0;
    list-style: none;
    gap: 3%;
}
.types-item {
    width: calc(25% - (9% / 4));
    margin: 25px 0;
    padding: 45px 30px;
    box-shadow: 0 8px 16px rgba(5, 5, 5, .25);
    background-color: #e0e2e8;
    border-radius: 10px;
    text-align: center;
}
.types-icon {
    display: block;
    max-width: 140px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}
.types-item p {
    font-size: .9rem;
    color: #50525d;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}
.fill-dark-green {
    fill: var(--darker-green);
}
.fill-green {
    fill: var(--green);
}
.fill-light-green {
    fill: var(--lighter-green);
}
.fill-white {
    fill: #fff;
}



/* -- Services - Benefits -- */

.svc-benefits-list {
    list-style: none;
    margin: 55px 0 20px;
    padding: 0;
}
.svc-benefits-item {
    width: 100%;
    margin-bottom: 30px;
}
.svc-benefits-item:last-child {
    margin-bottom: 0;
}
.svc-benefits-item p {
    position: relative;
    display: flex;
    align-items: flex-start;
    font-size: .95rem;
    margin: 0;
}
.svc-benefits-icon {
    width: 30px;
    height: auto;
    fill: #fff;
    margin-right: 10px;
    padding: 3px;
    background-color: var(--green);
    border-radius: 50%;
    border: 2px solid #fff;
}
.svc-benefits-item-content {
    width: 100%;
}



/* -- Responsiveness -- */

@media (max-width: 1300px) {
    .svc-overview-header {
        order: 2;
    }
    .svc-overview-wrapper .main-left {
        order: 1;
    }
    .svc-overview-wrapper .main-right {
        order: 3;
    }

    .types-item {
        width: calc(33.3333333333% - (6% / 3));
    }
}

@media (max-width: 981px) {
    .types-item {
        width: calc(50% - (3% / 2));
    }
}

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

@media (max-width: 480px) {
    .g_space-around,
    .g_space-around-lg {
        padding-inline: 20px;
    }
}

@media (max-width: 380px) {
    .types-nav-item {
        width: 100%;
    }
}