/* -- General -- */

:root {
    --r_light-blue: #457EBF;
    --r_blue: #2E5480;
    --r_dark-blue: #122438;
}
.maincontent {
    display: block !important;
    font-family: 'Roboto', 'Poppins', sans-serif;
    font-size: 18px;
    letter-spacing: .025em;
    max-width: 100%;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: none;
}
.r_h1,
.r_h2,
.r_h3 {
    position: relative;
    margin: 20px 0;
    line-height: 1.05em;
    color: #151515;
}
.r_h1 {
    font-size: 3.2em;
    font-weight: 700;
}
.r_h2 {
    font-size: 2.2em;
    font-weight: 600;
}
.r_h2-sm {
    font-size: 1.8em;
    text-transform: uppercase;
}
.r_h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
}
.r_h-sup {
    display: block;
    line-height: 1.05em;
    margin: 0 auto 8px;
    font-size: .7em;
    font-weight: 300;
    text-transform: none;
    color: var(--accent-color);
}
.r_h-light,
.r_h-light .r_h-sup {
    color: #fff;
}
.maincontent p {
    font-family: 'Montserrat', sans-serif;
    font-size: .95em;
    line-height: 1.45em;
    font-weight: 400;
    color: #050505;
}

.r_space-around {
    position: relative;
    z-index: 0;
    padding: 80px 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 25px;
}
.r_col-lg {
    width: 55%;
    padding: 20px 25px;
}
.r_img-wrapper {
    position: relative;
    max-width: 750px;
    width: 100%;
    margin: 20px auto;
}
.r_img-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(5, 5, 5, .2);
}
.r_img-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
}
.r_img-top-left {
    grid-row: 1 / 5;
    grid-column: 1 / 5;
}
.r_img-bottom-right {
    grid-row: 3 / 6;
    grid-column: 3 / 6;
}
.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: 1100px;
}

.r_underline {
    border: none;
    border-top: 2px solid var(--accent-color);
    width: 150px;
    margin: 20px auto;
}
.r_underline-sm {
    width: 50px;
    margin-top: 0;
}
.r_underline-left {
    margin-left: 0;
}



/* -- Hero -- */

.r_hero-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    min-height: 600px;
    border-bottom: 2px solid var(--r_dark-blue);
    margin-bottom: 40px;
}
.r_hero-wrapper::before,
.r_hero-wrapper::after {
    content: "";
    position: absolute;
    height: 2px;
}
.r_hero-wrapper::before {
    inset: auto 0 -20px;
    background: linear-gradient(90deg, var(--accent-color) 45%, transparent 45%);
}
.r_hero-wrapper::after {
    inset: auto 0 -40px;
    background: linear-gradient(90deg, var(--accent-color) 35%, transparent 35%);
}
.r_hero-bg {
    position: relative;
    background-image: url(/imageserver/Reusable/craft_bilt/hero-bg.webp);
    background-size: cover;
    background-position: 70% center;
    width: 50%;
}
.r_hero-logo {
    position: absolute;
    left: -10px;
    bottom: 30px;
    max-width: 180px;
    width: 100%;
    height: auto;
    background-color: rgba(5, 5, 5, .7);
    padding: 15px;
    border-radius: 15px;
    z-index: 1;
}
.r_hero-content {
    display: flex;
    align-items: center;
    width: 50%;
    background-color: #f2f4f8
}
.r_hero-inner-content {
    position: relative;
    max-width: 700px;
    width: 100%;
    margin-left: auto;
}
.r_hero-inner-content::after {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: -1;
    box-shadow: inset -12px 12px 0 #e2e4e8;
    border-radius: 50%;
}
.r_hero-inner-content p {
    font-size: 1em;
}



/* -- Brands -- */

.r_brand-logo-wrapper {
    display: flex;
    justify-content: center;
    gap: 5%;
    max-width: 700px;
    width: 100%;
    margin: 30px 0 20px;
}
.r_brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
    margin-block: 20px;
}
.r_brand-logo:nth-of-type(1) {
    width: 40%;
}
.r_brand-logo img {
    display: block;
    margin: auto;
    padding: 0;
    width: 100%;
    height: auto;
    transition: transform .5s;
}
.r_brand-logo:hover img {
    transform: scale(1.1);
}
.r_brand-logo-long img {
    max-width: 200px;
}
.r_brand-logo-square img {
    max-width: 120px;
}

.r_brand-wrapper::after {
    content: "";
    position: absolute;
    height: 2px;
    inset: auto 0 10px;
    background: linear-gradient(90deg, var(--accent-color) 35%, transparent 35%, transparent 65%, var(--accent-color) 65%);
}



/* -- Product Overview -- */

.r_product-section {
    transition: transform .3s, opacity .3s;
}
.r_fade-to-left {
    transform: translateX(-25px);
    opacity: 0;
}
.r_fade-from-right {
    transform: translateX(50px);
}

.r_container {
    display: none;
}
#r_product_list_section {
    display: block;
}

.r_overview-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 50px auto 20px;
    padding: 0;
    gap: 2.5%;
    z-index: 0;
}
.r_overview-item {
    position: relative;
    width: calc(33.3333333333% - (5% / 3));
    margin: 20px auto;
    min-height: 400px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    text-align: left;
    overflow: hidden;
}
.r_overview-item::before {
    content: "";
    position: absolute;
    inset: 0 -20px;
    background-color: #f0f0f0;
    background-position: center;
    background-size: cover;
    z-index: -2;
    transition: inset .33s;
}
.r_overview-item:hover::before {
    inset: 0 -40px 0 0;
}
.r_overview-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 5, 5, .75) 25%, transparent 75%);
    z-index: -1;
}
#r_vinyl_sunrooms::before {
    background-image: url(/imageserver/Reusable/craft_bilt/vinyl_sunrooms_overview.webp);
}
#r_screen_rooms::before {
    background-image: url(/imageserver/Reusable/craft_bilt/screen_rooms_overview.webp);
}
#r_patio_covers_carports::before {
    background-image: url(/imageserver/Reusable/craft_bilt/patio_covers_carports_overview.webp);
}    
#r_canopies_awnings::before {
    background-image: url(/imageserver/Reusable/craft_bilt/canopies-awnings_overview.webp);
}
#r_railings::before {
    background-image: url(/imageserver/Reusable/craft_bilt/railings_overview.webp);
}
#r_other_shade_products::before {
    background-image: url(/imageserver/Reusable/craft_bilt/other-shade_products_overview.webp);
}

.r_overview-title {
    width: 100%;
    padding: 30px;
}
.r_overview-title h3 {
    font-size: 1.4em;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 15px #000;
}
.r_overview-button {
    display: block;
    width: 100%;
    background-color: transparent;
    text-align: left;
    color: #fff;
    border: none;
    text-decoration: none;
    font-size: .95em;
    font-weight: 400;
    text-shadow: 0 0 15px #000;
    letter-spacing: .15em;
    transition: color .33s;
}
.r_overview-button:hover,
.r_overview-button:focus {
    color: #a0a0a0;
}
.r_overview-button::after {
    content: "";
    position: absolute;
    inset: 0;
}
.r_overview-button-inner {
    position: relative;
    display: block;
    margin-top: 15px;
    padding-top: 15px;
}
.r_overview-button-inner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 1px;
    background-color: #a0a0a0;
    transition: width .33s;
    z-index: 1;
}
.r_overview-button:hover .r_overview-button-inner::after,
.r_overview-button:focus .r_overview-button-inner::after {
    width: 100%;
}



/* -- Product Info -- */

.r_product-header {
    background: linear-gradient(135deg, #151515 20%, var(--r_dark-blue) 80%);
}
.r_product-header::after {
    content: "";
    position: absolute;
    height: 2px;
    inset: auto 0 -10px;
    background: linear-gradient(90deg, var(--accent-color) 25%, transparent 25%, transparent 75%, var(--accent-color) 75%);
}
.r_product-header p {
    color: #e2e4e8;
}

.r_product-card-list {
    margin: 40px auto 20px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5%;
}
.r_product-card-list-center {
    justify-content: center;
}
.r_product-card {
    width: calc(33.3333333333% - (5% / 3));
    margin-block: 20px;
    text-align: left;
}
.r_product-card-2 {
    max-width: 450px;
    width: calc(50% - (2.5% / 2));
}
.r_product-card-header {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 35px;
}
.r_product-img {
    display: block;
    max-width: 600px;
    width: 100%;
    height: auto;
    transition: transform .5s;
}
.r_product-card:hover .r_product-img {
    transform: scale(1.1);
}
.r_product-card .r_highlight {
    font-weight: 600;
    font-style: italic;
    color: #808080;
}
.r_product-card p {
    font-size: .9em;
}

.r_features-section {
    background-color: #f2f4f8;
}
.r_features-list {
    margin: 40px auto 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5%;
}
.r_features-item {
    width: calc(25% - (7.5% / 4));
    margin-block: 20px;
    text-align: left;
    background-color: #fff;
    padding: 45px 30px;
    box-shadow: 0 4px 12px rgba(5, 5, 5, .2);
}
.r_features-icon-wrapper {
    position: relative;
}
.r_features-icon-wrapper::before,
.r_features-icon-wrapper::after {
    content: "";
    position: absolute;
    bottom: 10px;
}
.r_features-icon-wrapper::before {
    right: -30px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background-color: #606060;
}
.r_features-icon-wrapper::after {
    right: -50px;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background-color: #a0a0a0;
}
.r_features-icon {
    width: 55px;
    height: 55px;
    padding: 5px;
    border-radius: 10px;
    background-color: #202020;
    fill: #fff;
    margin-bottom: 5px;
}
.r_features-item p {
    font-size: .9em;
}



/* -- Product Nav -- */

.r_product-nav-section {
    display: none;
    position: relative;
    z-index: 1;
}
.r_product-nav-section-top {
    padding: 0 5%;
}
.r_product-nav-section-top .r_product-nav-wrapper,
.r_product-nav-section-bottom .r_product-nav-wrapper {
    position: absolute;
    inset: -20px 0 auto;
}
.r_product-nav-section-bottom {
    background-color: #f2f4f8;
    padding: 0 5% 50px;
}
.r_product-nav-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 15px;
}
.r_product-nav-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: transparent;
    margin: 0;
    width: 45px;
    height: 45px;
    background-color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(5, 5, 5, .2);
    border-radius: 50%;
    transition: background-color .33s;
}

.r_product-nav-btn-prev::after,
.r_product-nav-btn-next::after {
    content: "";
    position: absolute;
    width: 40%;
    height: 40%;
    border-top: 2px solid #151515;
    border-left: 2px solid #151515;
    transition: border-color .33s;
}
.r_product-nav-btn-prev::after {
    transform: rotateZ(-45deg);
    margin-right: -5px;
}
.r_product-nav-btn-next::after {
    transform: rotateZ(135deg);
    margin-left: -5px;
}

.r_product-nav-btn-go-back {
    margin-right: auto;
}
.r_product-nav-btn-go-back::before,
.r_product-nav-btn-go-back::after {
    content: "";
    position: absolute;
    width: 50%;
    height: 0;
    border-top: 2px solid #151515;
    transition: border-color .33s;
}
.r_product-nav-btn-go-back::before {
    transform: rotateZ(45deg);
}
.r_product-nav-btn-go-back::after {
    transform: rotateZ(-45deg);
}

.r_product-nav-btn:hover,
.r_product-nav-btn:focus {
    background-color: #181818;
}
.r_product-nav-btn:hover::before,
.r_product-nav-btn:focus::before,
.r_product-nav-btn:hover::after,
.r_product-nav-btn:focus::after {
    border-color: #fff;
}

.r_tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    width: 120px;
    background-color: #151515;
    color: #fff;
    padding: 5px 10px;
    font-size: .75em;
    transform: translateX(-50%);
    opacity: 0;
    border-radius: 20px;
    transition: top .33s, opacity .33s;
}
.r_tooltip::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 8px;
    background-color: #151515;
    -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.r_product-nav-btn:hover .r_tooltip,
.r_product-nav-btn:focus .r_tooltip {
    opacity: 1;
    top: -40px;
}
.r_product-nav-btn:hover .r_tooltip {
    z-index: 1;
}



/* -- Responsiveness -- */

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

@media (max-width: 1200px) {
    .r_screen-rooms-wrapper {
        align-items: flex-start;
    }

    .r_features-item {
        width: calc(50% - (2.5% / 2));
    }
}

@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: 35px;
    }

    .r_hero-bg,
    .r_hero-content {
        width: 100%;
    }
    .r_hero-bg {
        height: 350px;
        background-position: 70% 60%;
    }
    .r_hero-inner-content {
        max-width: 750px;
        margin-inline: auto;
    }
    .r_hero-logo {
        max-width: 160px;
        left: 20px;
        bottom: -10px;
    }

    .r_overview-item,
    .r_product-card {
        width: calc(50% - (2.5% / 2));
    }
    .r_overview-item {
        min-height: 350px;
    }
}

@media (max-width: 750px) {
    .r_h1 {
        font-size: 2.6em;
    }
    .r_h2 {
        font-size: 2em;
    }
}

@media (max-width: 600px) {
    .r_overview-item,
    .r_product-card,
    .r_features-item {
        width: 100%;
    }
    .r_overview-item {
        min-height: 300px;
    }
}

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

    .r_h1 {
        font-size: 2em;
    }
    .r_h2 {
        font-size: 1.8em;
    }

    .r_hero-bg {
        height: 250px;
    }
    .r_hero-logo {
        max-width: 140px;
    }

    .r_brand-logo-wrapper {
        flex-direction: column;
    }
    .r_brand-logo:nth-of-type(1),
    .r_brand-logo {
        width: 100%;
    }

    .r_product-nav-section-top,
    .r_product-nav-section-bottom {
        padding-inline: 20px;
    }
}