/* -- General -- */

:root {
    --r_red: #c10006;
}
.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;
    overflow: hidden;
}
.r_h1,
.r_h2,
.r_h3 {
    position: relative;
    margin: 20px 0;
    line-height: 1.15em;
    color: #111;
}
.r_h2 {
    font-size: 1.85em;
    font-weight: 500;
    margin-bottom: 30px;
}
.r_h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--r_red);
}
.r_h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
}
.maincontent p {
    font-size: .95em;
    line-height: 1.45em;
    font-weight: 300;
    color: #111;
}
.r_thin {
    font-weight: 300;
}

.r_space-around-lg,
.r_space-around {
    position: relative;
    z-index: 0;
}
.r_space-around-lg {
    padding: 120px 5%;
}
.r_space-around {
    padding: 80px 5%;
}
.r_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.r_col-sm {
    width: 45%;
    padding: 20px 30px;
}
.r_col-lg {
    width: 55%;
    padding: 20px 30px;
}
.r_img-wrapper {
    position: relative;
    max-width: 750px;
    width: 100%;
    margin: 20px auto;
}
.r_img-wrapper img {
    width: 100%;
    height: auto;
    background-color: #e0e0e0;
    border-radius: 10px;
}
.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;
}
.r_content-wrapper-left {
    margin-left: 0;
}

.r_link {
    display: block;
    max-width: fit-content;
    width: 100%;
    font-size: .9em;
    font-weight: 500;
    text-align: center;
    margin-block: 30px 20px;
    padding: 8px 15px;
    text-decoration: none;
    background-color: transparent;
    border: 2px solid var(--r_red);
    color: #111;
    border-radius: 5px;
    transition: background-color .2s, color .2s;
}
.r_link:hover,
.r_link:focus {
    background-color: var(--r_red);
    color: #fff;
    text-decoration: none;
}
.r_warranty-link {
    display: flex;
    align-items: center;
    max-width: fit-content;
    width: 100%;
    font-size: .9em;
    font-weight: 500;
    text-align: center;
    margin-block: 25px 45px;
    padding: 0;
    text-decoration: none;
    color: var(--r_red);
    transition: color .2s;
}
.r_warranty-link:hover,
.r_warranty-link:focus {
    color: #888;
    text-decoration: none;
}
.r_warranty-link::before {
    content: url(/imageserver/Reusable/iko2020/download.svg);
    width: 20px;
    height: 20px;
    margin-right: 5px;
}



/* -- Hero -- */

#r_hero_section {
    display: flex;
    align-items: center;
    background-image: url(/imageserver/Reusable/iko2020/hero_bg.webp);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: #555;
    z-index: 1;
}
.r_hero-content {
    max-width: 900px;
    width: 100%;
}
.r_h1 {
    font-size: 3em;
    font-weight: 800;
    line-height: 1.15em;
    color: #fff;
    text-shadow: 0 0 20px #050505;
}
.r_h1::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--r_red);
}
.r_h1-sup {
    display: block;
    font-size: .5em;
    line-height: 1.15em;
    margin-bottom: 10px;
    font-weight: 300;
    text-transform: uppercase;
}
.r_hero-content p {
    color: #fff;
    font-size: 1.1em;
    text-shadow: 0 0 20px #050505;
}
.r_hero-logo {
    position: absolute;
    left: 50%;
    bottom: -30px;
    max-width: 200px;
    width: 100%;
    height: auto;
    transform: translateX(-50%);
    background-color: #f0f0f0;
    padding: 5px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(5, 5, 5, .2);
}



/* -- About -- */

#r_about_section {
    background-color: #f0f2f4;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 55% calc(100% - 40px), calc(55% - 40px) 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 55% calc(100% - 40px), calc(55% - 40px) 100%, 0 100%);
    padding-bottom: 100px;
}



/* -- Shingles -- */

.r_shingle-section {
    position: relative;
    transition: transform .3s, opacity .3s;
}
.r_shingle-list {
    display: flex;
    flex-wrap: wrap;
    margin: 30px auto 0;
    padding: 0;
    list-style: none;
    gap: 2%;
}
.r_shingle-item {
    position: relative;
    max-width: 600px;
    width: 32%;
    padding-inline: 5px;
    margin-block: 40px;
    padding-bottom: 15px;
    text-align: left;
    border-bottom: 2px solid #ccc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color .2s;
}
.r_shingle-item:hover {
    border-color: var(--r_red);
}
.r_shingle-img-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 35px;
}
.r_shingle-img-wrapper::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 2px solid #f0f0f0;
}
.r_shingle-img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .4s;
}
.r_shingle-item:hover .r_shingle-img {
    transform: scale(1.05);
}
.r_shingle-content p {
    font-size: .9em;
}

.r_container {
    /*display: none;*/
}
#r_product_list {
    display: block;
}
.r_fade-to-left {
    transform: translateX(-25px);
    opacity: 0;
}
.r_fade-from-right {
    transform: translateX(50px);
}

.r_shingle-nav-wrapper {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
}
.r_shingle-nav {
    display: none;
}
.r_shingle-nav {
    position: relative;
    border: none;
    background-color: transparent;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #ccc;
    color: #999;
    font-size: .9em;
    transition: color .2s, border-color .2s;
}
.r_shingle-nav:hover,
.r_shingle-nav:focus {
    color: var(--r_red);
    border-color: var(--r_red);
}
.r_shingle-nav-prev,
.r_shingle-nav-go-back {
    padding-left: 15px;
}
.r_shingle-nav-next {
    padding-right: 15px;
}
.r_shingle-nav-prev::before,
.r_shingle-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_red);
    border-left: 2px solid var(--r_red);
}
.r_shingle-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_red);
    border-right: 2px solid var(--r_red);
}

.r_shingle-border {
    background-image: url(/imageserver/Reusable/iko2020/traditional_3_tab_shingles_border.webp);
    display: block;
    height: 100px;
    width: 100%;
    background-position: center;
    background-repeat: repeat;
    background-size: auto 300px;
}



/* -- Color & Preview Galleries --*/

.r_container-product {
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
}
.r_previews-gallery {
    height: 550px;
    margin: 40px auto 15px;
    border-radius: 10px;
}
.r_previews-gallery .swiper-slide {
    background-position: center 75%;
    background-size: cover;
}
.r_previews-gallery .r_color-name {
    position: absolute;
    bottom: 15px;
    left: 15px;
    font-size: 1.05em;
    font-weight: 400;
    background-color: rgba(5, 5, 5, .7);
    margin: 0;
    padding: 8px 20px;
    backdrop-filter: blur(5px);
    border-radius: 8px;
    color: #fff;
}
.r_previews-gallery .swiper-button-prev,
.r_previews-gallery .swiper-button-next {
    color: #fff !important;
    font-weight: 800;
}
.r_previews-gallery .swiper-button-prev {
    left: 0 !important;
}
.r_previews-gallery .swiper-button-next {
    right: 0 !important;
}
.r_previews-gallery .swiper-button-prev::after,
.r_previews-gallery .swiper-button-next::after {
    font-size: 28px !important;
}

.r_zoom-in {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background-color: #fff;
    background-image: url(/imageserver/Reusable/GAF/gaf23/gaf23-shingles/zoom_in_icon.svg);
    background-size: cover;
    background-position: center;
    border-radius: 0 0 0 10px;
}

.r_colors-gallery {
    margin: 20px auto 50px;
}
.r_colors-gallery .swiper-slide {
    max-width: 110px;
    width: 100%;
    height: 170px;
    text-align: center;
}
.r_colors-gallery .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    border: 4px solid transparent;
    border-radius: 50%;
    transition: border-color .2s;
}
.r_colors-gallery .swiper-slide-thumb-active img {
    border-color: var(--r_red);
}
.r_colors-gallery .r_color-name {
    font-size: .65em;
    font-weight: 500;
    margin: 2px 0 0 4px;
}

.r_loading-wrapper {
    position: relative;
}

.r_loader-animation {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    margin: 50px auto;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: 5px solid #eee;
    border-top-color: rgb(238, 238, 238);
    border-top-color: var(--r_red);
    z-index: 3;
    animation: spin .5s linear infinite;
}
@keyframes spin {
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}
.r_loader-cover {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #f0f0f0;
    z-index: 2;
}

/* -- ROOFViewer -- */

#roofviewer_section {
    background-color: #f0f0f0;
}



/* -- Responsiveness -- */

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

@media (max-width: 1150px) {
    .r_about-wrapper {
        align-items: flex-start;
    }
}

@media (max-width: 1024px) {
    .r_roofviewer-wrapper {
        align-items: flex-start;
    }
}

@media (max-width: 981px) {
    .r_space-around-lg {
        padding-block: 80px;
    }

    .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: 2.55em;
    }

    .r_shingle-item {
        width: 100%;
        margin-inline: auto;
    }

    .r_previews-gallery {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .r_h1 {
        font-size: 2.15em;
    }

    .r_space-around-lg,
    .r_space-around {
        padding-inline: 20px;
    }

    .r_previews-gallery {
        height: 350px;
    }
}