/* -- General -- */

.r_note {
    font-style: italic;
    font-weight: 300;
    font-size: .9em;
}
.r_col-top {
    width: 100%;
    margin-bottom: 25px;
}



/* -- About -- */

.r_about-list {
    margin: -10px 0 20px;
    padding: 0;
    list-style: none;
}
.r_about-item {
    margin-bottom: 30px;
}



/* -- Services -- */

#r_services_section {
    background-color: var(--black);
    background-image: url(/imageserver/UserMedia/stormshield/abstract_bg.webp);
    background-size: cover;
    background-position: 33% center;
    background-color: #303030;
    background-blend-mode: overlay;
}
.r_services-wrapper h2 + p {
    color: #d6d8dd;
}
.r_services-list {
    list-style: none;
    margin: 40px auto 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3%;
}
.r_services-item {
    position: relative;
    width: calc(33.3333333333% - (6% / 3));
    height: 400px;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(5, 5, 5, .2);
    border-radius: 10px;
    text-align: center;
    z-index: 0;
    background-size: cover;
    background-position: top center;
}
#r_services_repair_installation {
    background-image: url("/imageserver/Reusable/gutters21/services_repair_installation.webp");
}
#r_services_cleaning {
    background-image: url("/imageserver/Reusable/gutters21/services_cleaning.webp");
}
#r_services_protection {
    background-image: url("/imageserver/UserMedia/stormshield/alurex_doublepro_gutter_guard.webp");
}
.r_services-item h3 {
    position: absolute;
    inset: auto 0 0;
    font-size: 1.1em;
    height: 75px;
    margin: 0;
    padding: 25px 20px;
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(5px);
    font-weight: 700;
    transition: height .4s, background-color .4s;
}
.r_services-item:hover h3 {
    height: 100%;
    background-color: rgba(255, 255, 255, .8);
}
.r_services-item .r_arrow {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(5, 5, 5, .15);
    transition: opacity .4s;
}
.r_services-item:hover .r_arrow  {
    opacity: 0;
}
.r_services-item .r_arrow::after {
    content: "";
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 12px;
    height: 12px;
    border-top: 3px solid #111;
    border-right: 3px solid #111;
}
.r_services-content {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(25px);
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .2s;
}
.r_services-item:hover .r_services-content {
    opacity: 1;
    transform: translateX(0);
    transition: transform .4s ease .3s, opacity .4s ease .3s;
}
.r_services-content p {
    font-size: .9em;
    max-width: 400px;
    width: 100%;
    margin: 0 auto 20px;
}

.r_services-link {
    position: relative;
    font-size: .95em;
    font-weight: 700;
    color: #111;
}
.r_services-link:hover,
.r_services-link:focus {
    text-decoration: none;
    color: #111;
}
.r_services-link::after {
    content: "";
    position: absolute;
    left: 30%;
    bottom: -5px;
    width: 40%;
    height: 2px;
    background-color: #111;
    transition: width .2s, left .2s;
}
.r_services-link:hover::after,
.r_services-link:focus::after {
    left: 0;
    width: 100%;
}
.r_services-link-inner::before,
.r_services-link-inner::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #111;
}
.r_services-link-inner::before {
    left: -25px;
}
.r_services-link-inner::after {
    right: -25px;
}



/* -- Color Picker -- */

.r_color-picker-wrapper {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 1fr 1fr;
}
.r_item-text {
    padding: 20px 25px 0;
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    align-self: flex-end;
}
.r_item-colors {
    padding: 0 20px 25px;
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    align-self: flex-start;
}
.r_item-color-picker {
    padding: 20px 25px;
    grid-row: 1 / 3;
    grid-column: 2 / 3;
}

.r_color-picker-preview {
    position: relative;
    display: grid;
    max-width: 550px;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(5, 5, 5, .2);
}
.r_color-picker-preview img {
    display: block;
    width: 100%;
    height: 100%;
}
.r_preview-roof-desat {
    grid-column: 1/2;
    grid-row: 1/2;
}
.r_preview-overlaySvg {
    grid-column: 1/2;
    grid-row: 1/2;
    background-color: #211f21; /* Black default color */
    height: 100%;
    width: 100%;
    mix-blend-mode: overlay;
    z-index: 2;
}
.r_preview-house {
    grid-column: 1/2;
    grid-row: 1/2;
    z-index: 3;
}
#r_selected_color {
    position: absolute;
    inset: auto auto 20px 20px;
    text-align: center;
    font-weight: 700;
    margin: 0;
    padding: 5px 15px;
    background-color: #fff;
    font-size: 1em;
    color: #111;
}

.r_gutter-colors {
    margin: 50px auto 20px;
}
.r_col-gallery {
    width: 100%;
}
.r_gutter-colors .swiper-slide {
    width: 100px;
    height: auto;
    transition: opacity .4s;
}
.r_gutter-colors .swiper-slide:hover {
    opacity: .5;
}
.r_gutter-colors .r_color-box {
    display: block;
    width: 100%;
    height: 100px;
}
.r_gutter-colors .r_color-name {
    font-size: .65em;
    font-weight: 500;
    margin: 3px 0 0;
}
.r_gutter-colors .swiper-button-prev,
.r_gutter-colors .swiper-button-next {
    top: 53%;
    transform: translateY(-50%);
    color: #fff;
    background-color: #111;
    border-radius: 20px;
    width: 20px;
    height: 40px;
    font-weight: 800;
}
.r_gutter-colors .swiper-button-next::after,
.r_gutter-colors .swiper-button-prev::after {
    font-size: 15px;
}
.r_gutter-colors .swiper-button-next {
    right: 5px;
}
.r_gutter-colors .swiper-button-prev {
    left: 5px;
}



/* -- Responsiveness -- */

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


@media (max-width: 1024px) {
    .r_col-top {
        margin-bottom: 5px;
    }

    .r_about-list {
        margin-top: 0;
    }

    .r_services-item {
        max-width: 600px;
        width: 100%;
    }

    .r_color-picker-wrapper {
        display: block;
    }
    .r_item-text,
    .r_item-colors,
    .r_item-color-picker {
        padding: 0;
    }
    .r_item-color-picker {
        margin: 50px auto;
    }
}