/* -- General -- */

.maincontent {
    display: block !important;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    letter-spacing: .015em;
    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: #111;
}
.r_h2 {
    font-size: 2.2em;
    font-weight: 500;
}
.r_h3 {
    font-size: 1.3em;
    font-weight: 500;
    text-transform: uppercase;
}
.maincontent p {
    font-size: 1em;
    line-height: 1.45em;
    font-weight: 300;
    color: #111;
}

.r_underline {
    width: 150px;
    height: 4px;
    background-color: #808080;
    margin: 20px auto;
}
.r_underline-left {
    margin-left: 0;
}

.r_space-around {
    position: relative;
    z-index: 0;
    padding: 80px 5%;
}
.r_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.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;
}
.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: 950px;
}



/* -- Hero -- */

#r_hero_section {
    min-height: 550px;
    height: 100%;
    display: flex;
    align-items: center;
    background-color: #3a3a3a;
    background-image: url(https://contractorwebzone.com/imageserver/Reusable/doors_general/hero_bg.webp);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}
.r_h1 {
    font-size: 3em;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0 20px #202020;
    z-index: 1;
}
.r_h1-sup {
    display: block;
    line-height: 1.05em;
    margin-bottom: 10px;
    font-size: .75em;
    font-weight: 200;
    text-transform: none;
}
.r_hero-content {
    transform: translateY(-50px);
    margin-bottom: -50px;
    background-color: #f2f4f8;
    border-radius: 8px;
    padding: 45px 30px;
}
.r_hero-content p {
    font-weight: 400;
}



/* -- Commonly Installed Doors -- */

#r_doors_section {
    box-shadow: 0 0 20px rgba(5, 5, 5, .2);
    background-color: #fafafa;
    z-index: 1;
}
.r_doors-list {
    display: flex;
    flex-wrap: wrap;
    margin: 40px auto 20px;
    padding: 0;
    list-style: none;
    gap: 2.5%;
}
.r_doors-item {
    position: relative;
    width: calc((100% - (2.5% * 2)) / 3);
    margin-block: 20px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(5, 5, 5, .2);
    border-radius: 8px;
    overflow: hidden;
}
.r_doors-img {
    display: block;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    height: auto;
}
.r_doors-item h3 {
    position: absolute;
    bottom: -1px;
    left: -1px;
    background-color: #151515;
    color: #fff;
    margin: 0;
    padding: 15px 35px 15px 15px;
    -webkit-clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 100%, 0 100%);
    clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 100%, 0 100%);
}



/* -- Types of Door Material -- */

#r_materials_section {
    background-color: #f2f4f8;
}
.r_materials-list {
    display: flex;
    flex-wrap: wrap;
    margin: 40px auto 20px;
    padding: 0;
    list-style: none;
    gap: 2.5%;
}
.r_materials-item {
    width: calc((100% - (2.5% * 2)) / 3);
    margin-block: 20px;
    padding: 0;
    text-align: left;
    background-color: #fdfdfd;
    padding: 45px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(5, 5, 5, .2);
    overflow: hidden;
}
.r_materials-icon-wrapper {
    position: relative;
    display: block;
    width: 70px;
    height: 70px;
    margin: 10px 0 20px;
}
.r_materials-icon-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid #d0d0d0;
    border-radius: 50%;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(50% - 10px), 0 calc(50% - 10px), 0 calc(50% + 10px), 100% calc(50% + 10px), 100% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(50% - 10px), 0 calc(50% - 10px), 0 calc(50% + 10px), 100% calc(50% + 10px), 100% 100%, 0 100%);
}
.r_materials-icon-wrapper::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 65px;
    width: 100px;
    height: 3px;
    background-color: #d0d0d0;
    box-shadow: -160px 17px 0 #d0d0d0;
}
.r_materials-icon {
    width: 100%;
    height: auto;
    fill: #808080;
    padding: 10px
}
.r_materials-item p {
    font-size: .95em;
}



/* -- Responsiveness -- */

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

@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_doors-item,
    .r_materials-item {
        width: calc((100% - (2.5% * 1)) / 2);
    }
}

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

    #r_hero_section {
        min-height: 525px;
    }
}

@media (max-width: 650px) {
    .r_doors-item,
    .r_materials-item {
        width: 100%;
    }
}

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

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

    #r_hero_section {
        min-height: 500px;
    }
}