/* -- General -- */

:root {
    --r_light-teal: #00A7CC;
    --r_dark-teal: #005366;
}

html,
body {
    font-size: 16px;
}
.maincontent {
    display: block !important;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    letter-spacing: .025rem;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background-color: #f2f2f2;
}

.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: 1700px;
}
.r_content-wrapper-md {
    max-width: 1550px;
}
.r_content-wrapper-sm {
    max-width: 1400px;
}
.r_content-wrapper-x-sm {
    max-width: 1250px;
}

.r_h1-heading,
.r_h2-heading,
.r_h3-heading {
    font-family: 'Red Hat Display', 'Montserrat', 'Poppins', sans-serif;
    margin: 20px 0;
    line-height: 1.05em;
    color: #222;
}
.r_h2-heading {
    font-size: 2.8rem;
    font-weight: 600;
}
.r_h3-heading {
    font-size: 1.5rem;
    font-weight: 600;
}
.maincontent p {
    font-size: 1.05rem;
    line-height: 1.4em;
    font-weight: 500;
}

.r_big-underline {
    width: 88%;
    border-top: 2px solid #ccc;
    margin: -20px auto;
}



/* -- Main -- */

.r_main-global {
    position: relative;
    padding: 120px 5%;
    z-index: 0;
}
.r_main-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.r_main-wrapper-reverse {
    flex-direction: row-reverse;
}
.r_main-left {
    width: 45%;
    padding: 20px 40px;
}
.r_main-right {
    width: 55%;
    padding: 20px 40px;
}
.r_main-image {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 20px auto;
}
.r_main-image::after {
    content: "";
    position: absolute;
    top: -15px;
    bottom: -15px;
    left: 15px;
    right: 15px;
    border: 3px solid var(--r_light-teal);
}
.r_main-image img {
    width: 100%;
    height: auto;
    background-color: #e2e2e2;
}
.r_main-text-center {
    text-align: center;
}



/* -- EMCO - Hero -- */

#r_hero_global {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 10px solid var(--r_dark-teal);
}
.r_hero-left,
.r_hero-right {
    width: 50%;
}
.r_hero-left {
    background-image: url(/imageserver/Reusable/emco_building_products/emco_metal_roofing/dark_abstract_bg.webp);
    background-size: cover;
    background-position: top left;
    padding: 200px 50px;
}
.r_hero-content {
    max-width: 750px;
    width: 100%;
    margin-left: auto;
}
.r_logo {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    background-color: #e2e2e2;
    border-radius: 10px;
    padding: 20px;
    max-width: 260px;
    width: 100%;
    height: auto;
}
.r_h1-heading {
    font-size: 3.75rem;
    color: #fff;
    margin: 0;
}
.r_h1-top {
    display: block;
    font-weight: 900;
    -webkit-animation: fadeInBottom 1s ease 1s backwards;
    animation: fadeInBottom 1s ease 1s backwards;
}
.r_h1-bottom {
    display: block;
    font-weight: 400;
    font-size: .88em;
    margin-top: 5px;
    line-height: 1.05em;
    color: #00D0FF;
    -webkit-animation: fadeInBottom 1s ease .75s backwards;
    animation: fadeInBottom 1s ease .75s backwards;
}
.r_underline {
    width: 65%;
    height: 4px;
    background: linear-gradient(90deg, #888 50%, transparent 100%);
    margin: 30px 0;
    border: none;
    -webkit-animation: fadeInWidth 1s ease .25s backwards;
    animation: fadeInWidth 1s ease .25s backwards;
}
.r_hero-content p {
    font-size: 1.5rem;
    line-height: 1.15em;
    color: #ccc;
    margin: 0;
    -webkit-animation: fadeInTop 1s ease .75s backwards;
    animation: fadeInTop 1s ease .75s backwards;
}
.r_hero-right {
    background-image: url(/imageserver/Reusable/emco_building_products/emco_metal_roofing/hero_right_bg.webp);
    background-size: cover;
    background-position: 25% 25%;
}

@keyframes fadeInTop {
    from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInBottom {
    from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInWidth {
    from { opacity: 0; width: 0; } to { opacity: 1; width: 65%; }
}



/* -- EMCO - Colors -- */

#r_color_global {
    overflow-x: hidden;
}
#r_color_global h2 {
    font-weight: 800;
}
#r_color_global .r_h2-thin {
    font-weight: 400;
    color: var(--r_dark-teal);
}
.r_disclaimer {
    max-width: 1000px;
    color: #656565;
    font-style: italic;
}
.r_color-preview-wrapper {
    position: relative;
}
.r_color-preview-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -6%;
    right: -6%;
    height: 80%;
    background-color: var(--r_dark-teal);
    transform: translateY(-50%);
    z-index: -1;
}
.r_color-preview {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin: 70px auto 0;
    z-index: 0;
}
.r_color-preview img {
    position: relative;
    width: 100%;
    height: auto;
}
.r_color-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    mix-blend-mode: overlay;
    z-index: 2;
}
img.r_color-preview-home {
    z-index: 3;
}
img.r_color-preview-roof {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
p.r_color-preview-text {
    font-size: 1.15rem;
    font-weight: 700;
    background-color: #e2e2e2;
    margin: 0 auto;
    padding: 30px 20px;
    max-width: 900px;
    width: 90%;
    border-radius: 10px;
    text-align: center;
    transform: translateY(-20px);
}
.r_color-preview-current {
    font-weight: 400;
}
.r_color-list {
    display: flex;
    flex-wrap: wrap;
    margin: 50px auto 20px;
    padding: 0;
    list-style: none;
}
.r_color-item {
    position: relative;
    width: 18%;
    margin: 15px 1%;
    padding: 0;
    text-align: center;
}
.r_color {
    display: block;
    position: relative;
    width: 100%;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 10px;
    cursor: pointer;
    border: 4px solid transparent;
    transition: transform .2s, border-color .2s;
}
.r_color:hover {
    transform: scale(1.05);
}
.r_color-selected::after {
    content: "Selected";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid #fff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-style: italic;
}
.r_color-item p {
    font-weight: 700;
    margin: 0;
    font-size: 1rem;
}
.r_color-item p::before,
.r_color-item p::after {
    content: " - ";
    color: #aaa;
}
.r_color-image {
    background-size: cover;
    background-position: center;
}



/* -- EMCO - Design -- */

.r_design-list {
    margin: 30px auto 20px;
    padding: 0;
    list-style: none;
}
.r_design-item {
    position: relative;
    margin-bottom: 15px;
    padding-left: 25px;
}
.r_design-item::before,
.r_design-item::after {
    content: "";
    position: absolute;
    -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.r_design-item::before {
    left: 0;
    background-color: var(--r_dark-teal);
    z-index: -1;
    width: 8px;
    height: 8px;
    top: 6px;
}
.r_design-item::after {
    left: 6px;
    background-color: var(--r_light-teal);
    width: 10px;
    height: 10px;
    top: 5px;
}
.r_design-item p {
    margin: 0;
    font-weight: 600;
}



/* -- Responsiveness -- */

@media (max-width: 1350px) {
    .r_design-wrapper {
        align-items: flex-start;
    }
}
@media (max-width: 1200px) {
    .r_main-wrapper {
        max-width: 900px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .r_main-left,
    .r_main-right {
        width: 100%;
        padding: 0;
    }
    .r_main-right {
        max-width: 981px;
        margin-left: auto;
        margin-right: auto;
    }
    .r_main-image {
        margin: 40px auto 60px;
    }

    .r_hero-left,
    .r_hero-right {
        width: 100%;
    }
    .r_hero-left {    
        padding: 160px 40px 200px;
        background-image: url(/imageserver/Reusable/emco_building_products/emco_metal_roofing/hero_right_bg.webp);
        background-size: cover;
        background-position: 25% 25%;
        background-blend-mode: overlay;
        background-color: #202020;
    }
    .r_hero-content {
        max-width: 950px;
        margin-right: auto;
    }

    .r_color-item {
        width: 23%;
    }
}

@media (max-width: 750px) {
    .r_h1-heading {
        font-size: 3.25rem;
    }
    .r_h2-heading {
        font-size: 2.6rem;
    }

    .r_main-global {
        padding: 100px 20px;
    }

    .r_color-preview-current {
        display: block;
    }
    .r_color-item {
        width: 31.3333333333%;
    }
}

@media (max-width: 650px) {
    .r_hero-left {    
        padding: 110px 30px 150px;
    }
    .r_logo {
        max-width: 230px;
    }
}

@media (max-width: 550px) {
    .r_h1-heading {
        font-size: 2.75rem;
    }
    .r_h2-heading {
        font-size: 2.4rem;
    }

    .r_main-text-center {
        text-align: left;
    }

    .r_color-item {
        width: 48%;
    }
}