/* -- General -- */

:root {
    --r_blue: #005d99;
    --r_dark-blue: #071a2c;
}

.maincontent {
    display: block !important;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 18px;
    letter-spacing: .015em;
    max-width: 100%;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    overflow: hidden;
    background-color: #f6f6f6;
}
.maincontent p {
    font-size: .95em;
    line-height: 1.35em;
    font-weight: 400;
    color: #111;
}
p.r_note {
    font-style: italic;
    font-weight: 300;
    font-size: .9em;
}

.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_space-around,
.r_space-around-sm {
    position: relative;
    z-index: 0;
}
.r_space-around {
    padding: 80px 5%;
}
.r_space-around-sm {
    padding: 60px 5%;
}
.r_text-center {
    text-align: center;
}

.r_h2 {
    position: relative;
    font-size: 2.05em;
    margin-block: 20px;
    padding: 0;
    line-height: 1.05em;
    font-weight: 300;
    color: var(--r_dark-blue);
}
.r_h3 {
    font-size: 1.05em;
    margin-block: 50px 10px;
    padding: 0;
    line-height: 1.05em;
    font-weight: 800;
}



/* -- Hero -- */

#r_hero_section {
    background: linear-gradient(135deg, #071a2c, #005d99);
    min-height: 500px;
    height: 100%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
#r_hero_section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 26, 44, .7) 25%, rgba(0, 93, 153, .7) 75%);
}
.r_hero-bg-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
}
.r_hero-bg {
    display: block;
    width: 33.3333333333%;
    height: 100%;
    background-color: var(--r_blue);
    background-size: cover;
    background-position: center;
    -wekbit-clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
    transform: scale(1.35);
}
.r_hero-bg-left {
    background-image: url(/imageserver/Reusable/taylor_metal/hero_bg_left.webp);
}
.r_hero-bg-center {
    background-image: url(/imageserver/Reusable/taylor_metal/hero_bg_center.webp);
}
.r_hero-bg-right {
    background-image: url(/imageserver/Reusable/taylor_metal/hero_bg_right.webp);
}
.r_hero-wrapper {
    position: relative;
    z-index: 1;
}
.r_hero-logo {
    max-width: 160px;
    width: 100%;
    height: auto;
}
.r_h1 {
    font-size: 2.95em;
    margin-block: 25px 0;
    font-weight: 300;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 20px var(--r_dark-blue);
}
.r_h1-highlight {
    font-weight: 600;
}



/* -- Products -- */

.r_products-wrapper {
    margin-bottom: 100px;
}
.r_products-wrapper:last-child {
    margin-bottom: 20px;
}
.r_products-wrapper h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 25%;
    height: 2px;
    background: linear-gradient(90deg, var(--r_blue) 25%, var(--r_dark-blue) 75%);
}
.r_products-wrapper p.r_note {
    margin-top: 40px;
}
.r_products-list {
    list-style: none;
    margin: 40px auto 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    overflow: hidden;
}
.r_products-item {
    position: relative;
    width: 23.5%;
    margin-block: 20px;
    padding: 40px 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
}
.r_products-img {
    display: block;
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    transition: transform .2s;
}
.r_products-item:hover .r_products-img {
    transform: scale(1.1);
}
.r_products-item p {
    position: relative;
    width: fit-content;
    margin: 5px 0 0;
    font-size: .85em;
    font-style: italic;
    font-weight: 500;
}
.r_products-item p::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%) rotateZ(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    transition: right .2s;
}

.r_products-link {
    position: absolute;
    inset: 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    z-index: 1;
    transition: border-color .2s;
}
.r_products-link:hover,
.r_products-link:focus {
    border-color: var(--accent-color);
}
.r_products-link:hover + p::after,
.r_products-link:focus + p::after {
    right: -16px;
}



/* -- Colors -- */

.r_colors-pop-up {
    position: fixed;
    max-width: 1000px;
    margin-inline: auto;
    background-color: #fdfdfd;
    inset: 85px 15px 15px;
    opacity: 0;
    z-index: 99999999;
    box-shadow: 0 4px 12px rgba(5, 5, 5, .35);
    transition: top .33s, opacity .33s;
}
.r_colors-pop-up + .r_backdrop {
    content: "";
    position: fixed;
    inset: 100% 0 0;
    background-color: rgba(0, 0, 0, .65);
    opacity: 0;
    z-index: 9999999;
    transition: opacity .33s, top 0s .33s;
}
.r_colors-pop-up-show {
    opacity: 1;
    top: 15px;
}
.r_colors-pop-up-show + .r_backdrop {
    top: 0;
    opacity: 1;
    transition: opacity .33s;
}
.r_colors-pop-up-content {
    height: 100%;
    overflow: scroll;
}

#r_close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background-color: #050505;
    border: none;
    border-radius: 5px;
    z-index: 1;
}
#r_close::before,
#r_close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 3px;
    background-color: #fff;
}
#r_close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
#r_close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.r_colors-wrapper {
    border-top: 2px solid var(--r_blue);
}
.r_colors-wrapper h2 {
    margin-bottom: 15px;
}

.r_colors-list {
    display: flex;
    flex-wrap: wrap;
    margin: 40px auto 80px;
    padding: 0;
    list-style: none;
    gap: 2%;
}
.r_colors-list:last-child {
    margin-bottom: 0;
}
.r_colors-item {
    width: 23.5%;
    margin-block: 12px;
}
.r_colors-preview {
    width: 100%;
    height: 80px;
}
.r_colors-item h3 {
    font-size: .85em;
    font-weight: 500;
    margin: 10px 0 5px;
}



/* -- Responsiveness -- */

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

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

    #r_hero_section {
        min-height: 400px;
    }
    .r_hero-bg {
        width: 50%;
    }
    .r_hero-bg:last-child {
        display: none;
    }

    .r_products-item {
        width: 49%;
    }

    .r_colors-item {
        width: 32%;
    }
}

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

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

    .r_h1 {
        font-size: 2.15em;
    }
    .r_h2 {
        font-size: 1.85em;
    }

    .r_products-item {
        width: 100%;
    }
}