/* -- General -- */

:root {
    --r_light-blue: #00AEEF;
    --r_dark-blue: #005270;
}
.maincontent {
    display: block !important;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    letter-spacing: .015em;
    max-width: 100%;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: none;
}
.r_h1,
.r_h2,
.r_h3,
.r_h4 {
    position: relative;
    margin: 20px 0;
    line-height: 1.05em;
    color: #111;
}
.r_h2,
.r_h3 {
    font-size: 2.25em;
    font-weight: 300;
}
.r_h4 {
    font-size: 1.33em;
    font-weight: 500;
    text-transform: uppercase;
}
.r_h4-sub {
    display: block;
    font-size: .7em;
    font-weight: 300;
    line-height: 1.05em;
    margin-top: 5px;
}
.maincontent p {
    font-size: .95em;
    line-height: 1.45em;
    font-weight: 300;
    color: #111;
    margin: 0 auto 10px;
}

.r_underline {
    width: 80px;
    border: none;
    border-top: 3px solid var(--r_light-blue);
    margin: 20px auto;
}
.r_underline-left {
    margin-left: 0;
}

.r_space-around {
    position: relative;
    z-index: 0;
    padding: 80px 5%;
}
.r_space-above-below {
    padding-block: 80px;
}
.r_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.r_wrapper-align-top {
    align-items: flex-start;
}
.r_wrapper-reverse {
    flex-direction: row-reverse;
}
.r_col-sm {
    width: 45%;
    padding: 20px 25px;
}
.r_col-lg {
    width: 55%;
    padding: 20px 25px;
}
.r_img-wrapper {
    position: relative;
    max-width: 750px;
    width: 100%;
    margin: 20px auto;
    background-color: #fff;
    -webkit-clip-path: polygon(0 45px, 45px 0, 100% 0, 100% calc(100% - 45px), calc(100% - 45px) 100%, 0 100%);
    clip-path: polygon(0 45px, 45px 0, 100% 0, 100% calc(100% - 45px), calc(100% - 45px) 100%, 0 100%);
}
.r_img-wrapper img {
    width: 100%;
    height: auto;
}
.r_text-center {
    text-align: center;
}
.r_content-wrapper,
.r_content-wrapper-md,
.r_content-wrapper-sm,
.r_content-wrapper-x-sm {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.r_content-wrapper {
    max-width: 1550px;
}
.r_content-wrapper-md {
    max-width: 1400px;
}
.r_content-wrapper-sm {
    max-width: 1250px;
}
.r_content-wrapper-x-sm {
    max-width: 950px;
}



/* -- Hero -- */

#r_hero_section {
    min-height: 550px;
    height: 100%;
    display: flex;
    align-items: center;
    background-color: #3a3a3a;
}
#r_hero_section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #181818 25%, #005270 75%);
    opacity: .75;
}
.r_hero-bg-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
}
.r_hero-bg {
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}
.r_hero-bg-left {
    background-image: url(https://contractorwebzone.com/imageserver/Reusable/crystalite/hero_bg_01.webp);
}
.r_hero-bg-right {
    background-image: url(https://contractorwebzone.com/imageserver/Reusable/crystalite/hero_bg_02.webp);
}
.r_h1 {
    font-size: 3.5em;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0 20px #000;
    text-transform: uppercase;
    z-index: 1;
}
.r_h1-sub {
    display: block;
    line-height: 1.05em;
    margin-top: 10px;
    font-size: .75em;
    font-weight: 200;
    text-transform: none;
}



/* -- Products - Nav -- */

.r_products-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto;
    padding: 0;
    gap: 2%;
    z-index: 0;
}
.r_products-item {
    position: relative;
    width: 23.5%;
    margin: 20px auto;
    min-height: 400px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    text-align: left;
    overflow: hidden;
}
.r_products-item::before {
    content: "";
    position: absolute;
    inset: 0 -20px;
    background-color: #f0f0f0;
    background-position: center;
    background-size: cover;
    z-index: -2;
    transition: inset .33s;
}
.r_products-item:hover::before {
    inset: 0 -40px 0 0;
}
.r_products-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 5, 5, .75) 25%, transparent 75%);
    z-index: -1;
}
#r_standard::before {
    background-image: url(https://contractorwebzone.com/imageserver/Reusable/crystalite/standard_img.webp);
}
#r_dome::before {
    background-image: url(https://contractorwebzone.com/imageserver/Reusable/crystalite/dome_img.webp);
}
#r_venting::before {
    background-image: url(https://contractorwebzone.com/imageserver/Reusable/crystalite/venting_img.webp);
}
#r_tubular::before {
    background-image: url(https://contractorwebzone.com/imageserver/Reusable/crystalite/tubular_img.webp);
}
.r_products-title {
    width: 100%;
    padding: 30px;
}
.r_products-title h3 {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 15px #000;
}
.r_products-title .r_thin {
    display: block;
    font-weight: 300;
    line-height: 1.05em;
    font-size: .8em;
    margin-top: 5px;
    text-transform: none;
}
.r_products-link {
    display: block;
    width: 100%;
    color: #fff;
    text-decoration: none;
    font-size: .9em;
    font-weight: 500;
    text-shadow: 0 0 15px #000;
    transition: color .33s;
}
.r_products-link:hover,
.r_products-link:focus {
    color: var(--r_light-blue);
    text-decoration: none;
}
.r_products-link::after {
    content: "";
    position: absolute;
    inset: 0;
}
.r_products-link-inner {
    position: relative;
    display: block;
    margin-top: 15px;
    padding-top: 15px;
}
.r_products-link-inner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 1px;
    background-color: var(--r_light-blue);
    transition: width .33s;
    z-index: 1;
}
.r_products-link:hover .r_products-link-inner::after,
.r_products-link:focus .r_products-link-inner::after {
    width: 100%;
}



/* -- Products - Pages -- */

.r_products-wrapper {
    position: relative;
    transition: opacity .4s;
}

.r_products-page:not(#r_nav_page) {
    display: none;
}
.r_fade-out {
    opacity: 0;
}

.r_products-page-header {
    padding-block: 30px;
    background-color: var(--r_light-blue);
}
.r_logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10%;
}
.r_logo-wrapper img {
    max-width: 200px;
    width: 100%;
    height: auto;
}
.r_logo-wrapper h2 {
    color: #fff;
    text-align: left;
}

.r_product-nav-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 20px auto 40px;
}
.r_product-nav {
    position: relative;
    border: none;
    background-color: transparent;
    margin: 0;
    padding: 0;
    border: none;
    color: #888;
    font-size: .95em;
    cursor: pointer;
    transition: color .33s;
}
.r_product-nav:hover,
.r_product-nav:focus {
    color: var(--r_light-blue);
}
.r_product-nav-prev,
.r_product-nav-go-back {
    padding-left: 15px;
}
.r_product-nav-next {
    padding-right: 15px;
}
.r_product-nav-prev::before,
.r_product-nav-go-back::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 2px;
    transform: translateY(-50%) rotateZ(-45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--r_light-blue);
    border-left: 2px solid var(--r_light-blue);
}
.r_product-nav-next::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%) rotateZ(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--r_light-blue);
    border-right: 2px solid var(--r_light-blue);
}

.r_frames-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px auto 0;
    padding: 0;
    list-style: none;
    gap: 2%;
}
.r_frames-item {
    position: relative;
    margin-block: 30px;
    padding-inline: 5px;
    text-align: left;
}
.r_frames-item-4 {
    max-width: 600px;
    width: 23.5%;
}
.r_frames-item-2 {
    max-width: 450px;
    width: 49%;
}
.r_frames-img-wrapper {
    position: relative;
    box-shadow: 0 4px 12px rgba(5, 5, 5, .2);
    overflow: hidden;
    margin: 0 auto;
    padding-top: 20px;
}
.r_frames-img-wrapper::after {
    content: url("https:contractorwebzone.com/imageserver/Reusable/GAF/gaf23/gaf23-shingles/zoom_in_icon.svg");
    position: absolute;
    top: 5px;
    right: 5px;
    display: block;
    width: 40px;
    height: 40px;
}
.r_frames-img-wrapper img {
    display: block;
    width: 90%;
    height: auto;
    margin: 0 auto;
    background-color: #fff;
    transition: transform .4s;
}
.r_frames-img-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.r_frames-img-link:hover img,
.r_frames-img-link:focus img {
    transform: scale(1.1);
}
.r_frames-item h4 {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--r_light-blue);
}
.r_frames-item p {
    font-size: .9em;
}
p.r_tag-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    margin: 30px auto;
}
.r_tag {
    display: block;
    font-size: .8em;
    line-height: 1.05em;
    margin-block: 3px;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    min-height: 26px;
    width: 49%;
    color: #fff;
}
.r_tag-blue { background-color: #0099ff; }
.r_tag-orange { background-color: #F15522; }
.r_tag-yellow { background-color: #E3A824; }
.r_tag-green { background-color: #67A844; }
.r_tag-empty { background-color: #ddd; }

#r_features_section {
    padding-bottom: 5px;
    background-color: #f0f2f4;
}
.r_features-list {
    list-style: none;
    margin: 35px 0 20px;
    padding: 0;
}
.r_features-item {
    margin-bottom: 25px;
}
.r_features-item:last-child {
    margin-bottom: 0;
}
.r_features-item h4 {
    position: relative;
    font-size: 1.05em;
    margin-bottom: 10px;
    padding-left: 20px;
}
.r_features-item h4::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--r_light-blue);
    -wekbit-clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.r_features-item p {
    font-size: .9em;
    padding-left: 20px;
}

#r_glazing_section {
    display: none;
    background-color: #f0f2f4;
}



/* -- Responsiveness -- */

@media (max-width: 1200px) {
    .r_products-item {
        width: 49%;
    }

    .r_frames-item-4 {
        width: 49%;
    }
}

@media (max-width: 981px) {
    .r_wrapper {
        max-width: 750px;
        width: 100%;
        margin-inline: auto;
    }
    .r_col-sm,
    .r_col-lg {
        width: 100%;
        padding: 0;
    }
    .r_img-wrapper {
        margin-bottom: 30px;
    }
}

@media (max-width: 750px) {
    .r_h1 {
        font-size: 3em;
    }
    .r_h2,
    .r_h3 {
        font-size: 2.1em;
    }

    #r_hero_section {
        min-height: 525px;
    }
    .r_hero-bg-left {
        width: 100%;
    }
    .r_hero-bg-right {
        display: none;
    }

    .r_logo-wrapper {
        flex-direction: column;
    }
    .r_logo-wrapper h2 {
        text-align: center;
    }

    .r_products-item {
        width: 100%;
    }

    .r_frames-item {
        max-width: 600px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .r_space-around {
        padding-inline: 20px;
    }
    .r_text-center {
        text-align: left;
    }

    .r_h1 {
        font-size: 2.5em;
    }
    .r_h2,
    .r_h3 {
        font-size: 1.95em;
    }

    #r_hero_section {
        min-height: 500px;
    }
}