/* ********** 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: .925em;
    line-height: 1.5em;
    font-weight: 400;
    color: #44464a;
}
.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: .28em;
    letter-spacing: 1px;
    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;
    letter-spacing: 2px;
    font-size: .85em;
    margin-block: 20px -5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--r_gaf-red);
}
.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: 85px 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: 1450px;
}
.r_content-wrapper-md {
    max-width: 1350px;
}
.r_content-wrapper-sm {
    max-width: 1200px;
}
.r_content-wrapper-x-sm {
    max-width: 1050px;
}
.r_content-wrapper-left {
    margin-left: 0;
}

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

.r_site-button {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: fit-content;
    width: 100%;
    gap: 8px;
    color: #fff;
    font-size: .815em;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    margin: 35px auto 20px;
    border: 1px solid var(--r_gaf-red);
    background-color: var(--r_gaf-red);
    border-radius: 5px;
    padding: 12px 18px;
    transition: background-color .33s, color .33s;
}
.r_site-button:hover,
.r_site-button:focus {
    text-decoration: none;
    background-color: #fff;
    color: var(--r_gaf-red);
}
.r_site-button-icon {
    width: 17px;
    height: 17px;
    fill: #fff;
    transition: fill .33s;
}
.r_site-button:hover .r_site-button-icon,
.r_site-button:focus .r_site-button-icon {
    fill: var(--r_gaf-red);
    animation: r_bounce .4s linear forwards;
}

@keyframes r_bounce {
    0% { transform: translateY(0); }
    25% { transform: translateY(-2px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(2px); }
}



/* -- 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);
}



/* -- 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;
    }
}






/* ********** Warranty Page ********** */

.r_warranties-accordion {
    margin: 65px auto 20px;
    text-align: left;
}
.r_warranties-button {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 35px;
    margin-block: 10px;
    padding: 20px 40px 20px 60px;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 5px 12px rgba(0, 20, 60, .1);
    border-radius: 5px;
    border: 1px solid transparent;
    z-index: 0;
    transition: border-color .25s;
}
.r_warranties-button:hover,
.r_warranties-button:focus {
    border-color: var(--r_gaf-red);
}
.r_warranties-button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 5px;
    opacity: .4;
}
#r_golden_pledge .r_warranties-button::after {
    background: linear-gradient(90deg, #CBB47A 0%, transparent 25%);
}
#r_silver_pledge .r_warranties-button::after {
    background: linear-gradient(90deg, #868A8F 0%, transparent 25%);
}
#r_system_plus .r_warranties-button::after {
    background: linear-gradient(90deg, #073673 0%, transparent 25%);
}
#r_roofing_system .r_warranties-button::after {
    background: linear-gradient(90deg, #C9CBCB 0%, transparent 25%);
}
#r_shingle_accessory .r_warranties-button::after {
    background: linear-gradient(90deg, #434854 0%, transparent 25%);
}

.r_warranties-logo {
    display: block;
    max-width: 120px;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}
.r_warranties-text {
    font-size: 1.05em;
    font-weight: 500;
    line-height: 1.3em;
}
.r_warranties-text-highlight {
    text-transform: uppercase;
    font-weight: 700;
}
.r_warranties-button-icon {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: auto;
    border: 2px solid var(--r_gaf-red);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .33s ease, background-color .33s;
}
.r_warranties-button-icon::before,
.r_warranties-button-icon::after {
    content: '';
    position: absolute;
    background-color: var(--r_gaf-red);
    transition: transform .33s ease, opacity .33s;
}
.r_warranties-button-icon::before {
    width: 10px;
    height: 2px;
}
.r_warranties-button-icon::after {
    width: 2px;
    height: 10px;
}
.r_warranties-accordion-item-open .r_warranties-button-icon {
    background: var(--r_gaf-red);
    transform: rotate(180deg);
}
.r_warranties-accordion-item-open .r_warranties-button-icon::before,
.r_warranties-accordion-item-open .r_warranties-button-icon::after {
    background: #fff;
}
.r_warranties-accordion-item-open .r_warranties-button-icon::after {
    opacity: 0;
}

.r_warranties-level {
    position: absolute;
    transform: rotate(-90deg);
    transform-origin: 0 0;
    top: 100%;
    left: 0;
    background-color: #888;
    font-size: .75em;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .05em;
    padding: 2px 20px;
    border-radius: 5px 5px 0 0;
    width: 160px;
    text-align: center;
}
#r_golden_pledge .r_warranties-level {
    background-color: #CBB47A;
}
#r_silver_pledge .r_warranties-level {
    background-color: #868A8F;
    color: #fff;
}
#r_system_plus .r_warranties-level {
    background-color: #073673;
    color: #fff;
}
#r_roofing_system .r_warranties-level {
    background-color: #C9CBCB;
}
#r_shingle_accessory .r_warranties-level {
    background-color: #434854;
    color: #fff;
}

.r_warranties-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .33s ease;
}
.r_warranties-content-inner {
    padding: 0 30px 30px;
}
.r_warranties-content-heading {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0;
    color: #111;
    margin-block: 0 60px;
    gap: 5%;
    z-index: 0;
}
.r_warranties-content-heading::after { /* Bottom border */
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    border-radius: 5px;
}

#r_golden_pledge .r_warranties-content-heading::after {
    background-color: #CBB47A;
}
#r_silver_pledge .r_warranties-content-heading::after {
    background-color: #ABADAE;
}
#r_system_plus .r_warranties-content-heading::after {
    background-color: #1F9AC3;
}
#r_roofing_system .r_warranties-content-heading::after {
    background-color: #C9CBCB;
}
#r_shingle_accessory .r_warranties-content-heading::after {
    background-color: #434952;
}

.r_warranties-content-heading h3 {
    font-size: 1.7em;
    margin: 0;
    font-weight: 600;
}
.r_warranties-content-heading h3::after {
    display: none;
}
.r_warranties-content-heading .r_site-button {
    margin: 0;
}
.r_warranties-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 30px 0 50px;
    padding: 0;
    gap: 20px;
}
.r_warranties-item {
    width: calc(50% - (20px / 2));
    background-color: #fff;
    border: 1px solid #d4d6da;
    padding: 35px 20px 35px 15px;
    border-radius: 5px;
}
.r_warranties-item h4 {
    font-size: 1em;
    font-weight: 600;
    margin-block: 0 15px;
    padding: 0 0 0 10px;
    border-left: 3px solid var(--r_gaf-red);
    text-transform: none;
}
.r_warranties-item h4::after {
    display: none;
}
.r_warranties-item p {
    font-size: .85em;
    padding-left: 14px;
    margin-bottom: 15px;
}
.r_warranties-item p:last-child {
    margin-bottom: 0;
}



/* -- Responsiveness -- */

@media (max-width: 850px) {
    .r_warranties-content-heading {
        flex-direction: column;
        text-align: center;
    }
    .r_warranties-content-heading .r_site-button {
        margin-top: 40px;
    }
}

@media (max-width: 750px) {
    .r_warranties-content-inner {
        padding-inline: 0;
    }
    .r_warranties-item {
        width: 100%;
    }
}


@media (max-width: 700px) {
    .r_warranties-button {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 60px 30px 30px;
    }
    .r_warranties-button-icon {
        margin-inline: auto;
    }
    .r_warranties-level {
        transform: none;
        top: 0;
        left: 0;
        width: 100%;
    }
    #r_golden_pledge .r_warranties-button::after {
        background: linear-gradient(180deg, #CBB47A 0%, transparent 25%);
    }
    #r_silver_pledge .r_warranties-button::after {
        background: linear-gradient(180deg, #868A8F 0%, transparent 25%);
    }
    #r_system_plus .r_warranties-button::after {
        background: linear-gradient(180deg, #073673 0%, transparent 25%);
    }
    #r_roofing_system .r_warranties-button::after {
        background: linear-gradient(180deg, #C9CBCB 0%, transparent 25%);
    }
    #r_shingle_accessory .r_warranties-button::after {
        background: linear-gradient(180deg, #434854 0%, transparent 25%);
    }
}