/* ********** General ********** */

:root {
    --r_gaf-red: #d71920;
    --r_blue: #18346A;
}
.maincontent {
    display: block !important;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 18px;
    letter-spacing: .025rem;
    max-width: 100%;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    background-color: #f3f3f3;
    overflow: hidden;
}
.maincontent p {
    font-size: 1em;
    line-height: 1.45em;
    font-weight: 400;
    color: #282828;
}
.r_p-highlight {
    color: #18346A;
    font-weight: 600;
    font-style: italic;
}
p.r_note {
    font-size: .8em;
    color: #606060;
    font-style: italic;
    margin-bottom: 20px;
}

.r_underline {
    width: 100%;
    margin: 0 auto;
    max-width: 1550px;
    width: 90%;
    border-radius: 50%;
    height: 2px;
    background-color: #a8a8a8;
    border: none;
}
.r_underline-sm {
    width: 100px;
    margin: 20px auto;
    border-top: 3px solid var(--r_gaf-red);
}
.r_underline-sm-left {
    margin-left: 0;
}

.r_h1,
.r_h2,
.r_h3,
.r_h4 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    position: relative;
    line-height: 1.15em;
    margin: 20px auto;
    color: #181818;
}
.r_h1 {
    font-size: 3em;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 0 15px #202020;
    text-transform: uppercase;
}
.r_h1-sup {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 10px 30px;
    font-size: .3em;
    line-height: 1em;
    font-weight: 700;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.r_h2 {
    font-size: 2.25em;
    font-weight: 500;
}
.r_h2-sup {
    display: block;
    line-height: 1.15em;
    font-size: .8em;
    margin-bottom: 8px;
}
.r_h3 {
    font-size: 1.8em;
    font-weight: 400;
    margin-bottom: 30px;
}
.r_h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--r_gaf-red);
}
.r_h3-no-underline {
    text-align: center;
    text-transform: uppercase;
}
.r_h3-no-underline::after {
    display: none;
}
.r_h4 {
    font-size: 1.15em;
    font-weight: 600;
}
.r_h-sup {
    display: block;
    line-height: 1.15em;
    font-size: .6em;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--r_blue);
}
.r_thin {
    font-weight: 500;
}
.r_bold {
    font-weight: 700;
}
.r_blue {
    color: var(--r_blue);
}
.r_sup {
    font-weight: 300;
    color: #50525d;
    margin-left: 3px;
}

.r_space-around,
.r_space-around-lg,
.r_space-around-sm {
    position: relative;
    z-index: 0;
}
.r_space-around {
    padding: 80px 5%;
}
.r_space-around-lg {
    padding: 120px 5%;
}
.r_space-around-sm {
    padding: 50px 5%;
}

.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 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-sm {
    max-width: 550px;
}
.r_img-wrapper img {
    width: 100%;
    height: auto;
    background-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(5, 5, 5, .2);
    border: 3px solid #fdfdfd;
    border-radius: 5px;
}
.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-inline: auto;
}
.r_content-wrapper {
    max-width: 1500px;
}
.r_content-wrapper-md {
    max-width: 1350px;
}
.r_content-wrapper-sm {
    max-width: 1200px;
}
.r_content-wrapper-x-sm {
    max-width: 1100px;
}
.r_content-wrapper-left {
    margin-left: 0;
}

.r_text-center {
    text-align: center;
}

.r_site-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .75em;
    font-weight: 600;
    max-width: fit-content;
    width: 100%;
    text-align: center;
    margin: 35px auto 20px;
    padding: 14px 24px;
    text-decoration: none;
    background-color: transparent;
    border: 2px solid var(--r_gaf-red);
    color: #111;
    border-radius: 30px;
    text-transform: uppercase;
    z-index: 0;
    overflow: hidden;
    cursor: pointer;
    transition: color .33s;
}
.r_site-button:hover,
.r_site-button:focus {
    color: #fff;
    text-decoration: none;
}
.r_site-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--r_gaf-red);
    z-index: -1;
    border-radius: 30px;
    transition: left .33s;
}
.r_site-button:hover::after,
.r_site-button:focus::after {
    left: 0;
}
.r_site-button-left {
    margin-left: 0;
}

.r_site-button-light {
    color: #fff;
}
.r_site-button-light .r_site-button-icon {
    fill: #fff;
}

.r_site-button-icon {
    width: 20px;
    height: auto;
    margin-right: 8px;
    fill: var(--r_gaf-red);
    transition: fill .33s;
}
.r_site-button:hover .r_site-button-icon,
.r_site-button:focus .r_site-button-icon {
    fill: #fff;
}

.r_site-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 35px auto 20px;
}
.r_site-button-wrapper .r_site-button {
    max-width: 250px;
    margin: 0;
}



/* -- Hero -- */

.r_hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
    border-bottom: 10px solid var(--r_gaf-red);
    text-align: center;
}
.r_hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: #404040;
    z-index: -1;
}
#r_hero_shingles::before {
    background-image: url(/imageserver/Reusable/GAF/gaf23/uhdz_bg.webp);
}
#r_hero_warranties::before {
    background-image: url(/imageserver/Reusable/GAF/gaf23/warranty_bg.webp);
}
#r_hero_commercial::before {
    background-image: url(/imageserver/UserMedia/stormshield/residential_flat_hero.webp);
    background-position: center 25%;
}



/* -- Responsiveness -- */

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

@media (max-width: 750px) {
    .r_hero-section {
        min-height: 475px;
    }
    .r_h1 {
        font-size: 2.6em;
    }
    .r_h1-sup {
        font-size: .35em;
    }
    .r_h2,
    .r_h3 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .r_hero-section {
        min-height: 450px;
    }
    .r_h1 {
        font-size: 2.2em;
    }
    .r_h1-sup {
        font-size: .4em;
    }
    .r_h2,
    .r_h3 {
        font-size: 1.8em;
    }

    .r_space-around,
    .r_space-around-sm {
        padding-inline: 20px;
    }
    .r_space-around-lg {
        padding: 80px 20px;
    }
    .r_text-center {
        text-align: left;
    }
}






/* ********** Product Page ********** */

/* -- Product Picker - Nav -- */

#r_product_picker {
    display: flex;
    flex-wrap: wrap;
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
}

.r_nav-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    font-size: .95em;
    font-weight: 600;
    border: 2px solid var(--r_gaf-red);
    background-color: var(--r_gaf-red);
    color: #fff;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 25px;
    display: none;
    transition: background-color .3s, color .3s;
}
.r_nav-button:hover,
.r_nav-button:focus {
    background-color: #fff;
    color: #111;
}

.r_nav-container {
    position: relative;
    width: 25%;
}
.r_nav {
    position: absolute;
    inset: 0 20px auto;
    box-shadow: 0 10px 20px rgba(5, 5, 5, .15);
    border-radius: 20px;
    background-color: #fff;
    padding: 15px 0 30px;
    background-color: #fff;
    z-index: 99;
}
.r_nav .r_nav-header {
    margin: 20px 23px;
    font-weight: 700;
    border-bottom: 1px solid #a8a8a8;
    padding-bottom: 5px;
    font-size: .95em;
}

.r_nav-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.r_nav-list ul li a {
    display: block;
    padding: 10px 25px;
    margin: 0;
    font-size: .85em;
    font-weight: 400;
    color: #111;
    text-decoration: none;
    transition: background-color .25s, color .25s;
}
.r_nav-list ul li a:hover,
.r_nav-list ul li a:focus {
    color: var(--r_gaf-red);
    text-decoration: none;
}
.r_nav-list ul li a.r_active-link {
    background-color: var(--r_gaf-red);
    color: #fff;
}



/* -- Product Picker - Header -- */

.r_header-section {
    background-image: url(/imageserver/Reusable/GAF/commercial/header_bg.webp);
    background-size: cover;
    background-position: 35% 25%;
    background-blend-mode: overlay;
    background-color: #3a3a3a;
}
.r_header-section h3 {
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
}
.r_header-section p {
    max-width: 925px;
    font-size: .95em;
    color: #fff;
    margin-bottom: 20px;
}



/* -- Product Picker - Product List -- */

.r_product-content-container {
    width: 75%;
    opacity: 1;
    margin-bottom: 120px;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(5, 5, 5, .15);
    border-radius: 20px;
    overflow: hidden;
    transition: opacity .3s;
}
.r_invisible {
    opacity: 0;
}

.r_product-wrapper {
    display: none;
}
#tpo {
    display: block; /* Show by default */
}

.r_product-list {
    margin: 20px auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 3%;
}
.r_product-item {
    width: calc(25% - (9% / 4));
    margin-block: 30px;
    padding-inline: 5px;
    text-align: left;
}
.r_product-img {
    display: block;
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 10px auto 45px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, .1);
    border-radius: 10px;
}
.r_product-type {
    display: block;
    width: fit-content;
    color: #111;
    margin: 20px 0;
    padding: 8px 15px;
    font-size: .7em;
    line-height: 1em;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(0, 0, 0, .08);
    border: 1px solid rgba(0, 0, 0, .1);
}
.r_product-item h5 {
    margin-block: 20px 30px;
}
.r_product-item h5::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--r_gaf-red);
    transition: width .33s;
}
.r_product-item p {
    font-size: .85em;
}



/* -- Product Picker - Warranty List -- */

.r_warranties-list {
    display: flex;
    flex-wrap: wrap;
    margin: 60px auto 20px;
    padding: 0;
    list-style: none;
    gap: 3%;
}
.r_warranties-item {
    width: calc(33.3333333333% - (6% / 3));
    max-width: 500px;
    margin: 15px auto;
    padding-inline: 5px;
    text-align: center;
}
.r_warranties-item img {
    display: block;
    max-width: 175px;
    width: 100%;
    height: auto;
    margin: 0px auto 30px;
}
.r_warranties-item .r_thin {
    display: block;
    font-size: .85em;
    line-height: 1em;
    font-weight: 300;
    margin-top: 8px;
}
.r_warranties-item p {
    font-size: .85em;
}



/* -- Product Picker - Warranty Info -- */

.r_warranty-info-container {
    position: fixed;
    inset: 100% 0 0;
    z-index: 9999;
    max-width: 850px;
    margin-inline: auto;
    opacity: 0;
    transform: translateY(20px);
    background-color: #fff;
    max-width: 850px;
    width: calc(100% - 30px);
    height: calc(100% - 80px);
    margin-inline: auto;
    border-radius: 10px;
    overflow: hidden;
    transition: opacity .25s, transform .25s, top 0s .5s;
}
.r_warranty-info-backdrop {
    position: fixed;
    inset: 100% 0 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, .85);
    opacity: 0;
    backdrop-filter: blur(5px);
    transition: opacity .25s, top 0s .3s;
}
.r_warranty-info-content {
    overflow: scroll;
    height: 100%;
    display: none;
}
.r_warranty-info-header {
    position: relative;
}
.r_warranty-info-header::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 125px;
    z-index: -1;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, calc(50% + 85px) 100%, 50% calc(100% - 85px), calc(50% - 85px) 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, calc(50% + 85px) 100%, 50% calc(100% - 85px), calc(50% - 85px) 100%, 0 100%);
}
#integrated_system_limited_warranty .r_warranty-info-header::after {
    background: #1299c0;
}
#system_pledge_roof_guarantee .r_warranty-info-header::after {
    background: #5f6369;
}
#diamond_pledge_ndl_roof_guarantee .r_warranty-info-header::after {
    background: #033572;
}
.r_warranty-info-header img {
    display: block;
    max-width: 150px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}
.r_warranty-info-header h4 {
    text-align: center;
}
.r_warranty-info-body {
    padding-top: 0;
}

.r_warranty-info-container-show {
    opacity: 1;
    top: 40px;
    transform: translateY(0);
    transition: opacity .25s, transform .25s;
}
.r_warranty-info-container-show + .r_warranty-info-backdrop {
    opacity: 1;
    top: 0;
    transition: opacity .25s;
}

.r_close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    backdrop-filter: blur(5px);
    border: 1px solid var(--accent-color);
    box-shadow: 0 8px 15px rgba(0, 0, 0, .2);
    border-radius: 10px;
    z-index: 1;
    transition: background-color .25s;
}
.r_close-btn:hover,
.r_close-btn:focus {
    background-color: #111;
}
.r_close-btn::before,
.r_close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 3px;
    background-color: #111;
    transition: background-color .25s;
}
.r_close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.r_close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.r_close-btn:hover::before,
.r_close-btn:hover::after,
.r_close-btn:focus::before,
.r_close-btn:focus::after {
    background-color: #fff;
}

.r_warranty-info-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto 20px;
    padding: 0;
    list-style: none;
    gap: 8%;
}
.r_warranty-info-item {
    width: calc(50% - (8% / 2));
    margin-block: 20px;
}
.r_warranty-info-item h5 {
    margin-block: 10px 15px;
    padding-left: 8px;
    font-weight: 700;
    font-size: .95em;
    border-left: 3px solid var(--r_gaf-red);
}
.r_warranty-info-item p {
    font-size: .85em;
    padding-left: 10px;
}



/* -- Product Picker - Back To Top -- */

#back_to_top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: var(--r_gaf-red);
    border: none;
    border-radius: 50%;
    opacity: 0;
    z-index: 9999;
    transition: opacity .33s;
}
#back_to_top::after {
    content: "";
    position: absolute;
    top: 55%;
    left: 50%;
    width: 15px;
    height: 15px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: translate(-50%, -50%) rotate(-45deg);
}



/* -- Responsiveness -- */

@media (max-width: 1450px) {
    .r_nav-button {
        display: block;
    }
    .r_nav-container,
    .r_product-content-container {
        width: 100%;
        margin: 0;
    }
    .r_nav {
        position: fixed;
        max-width: 500px;
        width: calc(100% - 40px);
        inset: auto auto 90px -100%;
        transition: left .3s;
    }
    .r_nav-open {
        left: 20px;
    }
    .r_product-content-container {
        border-left: none;
        border-radius: 0;
    }
}

@media (max-width: 1200px) {
    .r_product-item {
        width: calc(33.3333333333% - (6% / 3));
    }
}

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

    .r_warranties-item {
        width: calc(50% - (3% / 2));
    }
}

@media (max-width: 550px) {
    .r_product-item {
        max-width: 400px;
        width: 100%;
        margin-inline: auto;
    }

    .r_warranties-item {
        width: 100%;
    }

    .r_warranty-info-item {
        width: 100%;
    }
}