/*
Theme Name: Renovation LTD
Theme URI: https://www.renovation-ltd.ca/
Author: Renovation LTD
Description: Custom WordPress theme for Roman & K Renovation LTD.
Version: 1.0.21
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: renovation-ltd
*/

:root {
    --renovation-accent: #842AF9;
    --renovation-dark: #212529;
    scroll-behavior: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 5px;
    left: 5px;
    width: auto;
    height: auto;
    padding: 12px 18px;
    clip: auto;
    background: #fff;
    color: var(--renovation-dark);
}

.custom-logo-link,
.custom-logo-link img {
    display: block;
    max-width: 174px;
    height: auto;
}

#sp-menu .sp-column,
#sp-menu .sp-megamenu-wrapper {
    height: 100%;
}

#sp-menu .sp-megamenu-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-menu.sp-megamenu-parent {
    margin: 0;
}

.site-menu.sp-megamenu-parent > li > a,
.site-menu.sp-megamenu-parent > li:last-child > a {
    padding: 0 12px;
    color: var(--renovation-dark);
    font-size: 14px;
    font-weight: 600;
}

.site-menu.sp-megamenu-parent > li:hover > a,
.site-menu.sp-megamenu-parent > li.active > a,
.site-menu.sp-megamenu-parent > li.current-menu-item > a,
.site-menu.sp-megamenu-parent > li.current-menu-ancestor > a {
    color: var(--renovation-accent);
}

.sp-megamenu-parent .sub-menu {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    display: none;
    min-width: 240px;
    padding: 20px 0;
    margin: 0;
    list-style: none;
    border-top: 3px solid var(--renovation-accent);
    border-radius: 0 0 3px 3px;
    background: #fff;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

.sp-megamenu-parent li {
    position: relative;
}

.sp-megamenu-parent li:hover > .sub-menu,
.sp-megamenu-parent li:focus-within > .sub-menu {
    display: block;
}

.sp-megamenu-parent .sub-menu a {
    display: block;
    padding: 6px 20px;
    color: var(--renovation-dark);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.site-menu.sp-megamenu-parent > li.menu-cta {
    margin-left: 14px;
}

.site-menu.sp-megamenu-parent > li.menu-cta > a,
.site-menu.sp-megamenu-parent > li.menu-cta:last-child > a {
    min-width: 193px;
    height: 46px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--renovation-accent);
    border-radius: 3px;
    background: var(--renovation-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.site-menu.sp-megamenu-parent > li.menu-cta > a::before {
    display: none;
}

.site-menu.sp-megamenu-parent > li.menu-cta > a:hover,
.site-menu.sp-megamenu-parent > li.menu-cta > a:focus {
    background: transparent;
    color: var(--renovation-accent);
}

.offcanvas-inner ul.menu .sub-menu {
    display: none;
    padding-left: 18px;
    list-style: none;
}

.offcanvas-menu .offcanvas-inner ul.menu > li.menu-parent > a > .menu-toggler {
    right: -10px;
    width: 48px;
}

.offcanvas-inner ul.menu > li.menu-cta > a {
    margin-top: 18px;
    padding: 15px 20px;
    border-radius: 3px;
    background: var(--renovation-accent);
    color: #fff;
    text-align: center;
}

.offcanvas-inner ul.menu > li.menu-cta > a:hover,
.offcanvas-inner ul.menu > li.menu-cta > a:focus {
    background: #6f1fdb;
    color: #fff;
}

.blog-grid,
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.carousel-gallery-services {
    width: 100%;
    margin-top: 48px;
    overflow: hidden;
}

.swiper-container-services {
    overflow: hidden;
}

.carousel-gallery-services .swiper-wrapper {
    align-items: stretch;
}

.carousel-gallery-services .swiper-slide {
    height: auto;
}

.swiper-pagination-services {
    position: relative;
    margin-top: 32px;
    text-align: center;
}

.swiper-pagination-services .swiper-pagination-bullet {
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.swiper-pagination-services .swiper-pagination-bullet-active {
    background: var(--renovation-accent);
    transform: scale(1.15);
}

.service-card,
.blog-card,
.related-post-card {
    display: flex;
    min-height: 100%;
    padding: 34px;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.carousel-gallery-services .service-card {
    height: 100%;
}

.service-card__image,
.blog-card__image,
.related-post-card__image {
    display: block;
    margin: -34px -34px 28px;
    overflow: hidden;
}

.service-card__image img,
.blog-card__image img,
.related-post-card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.service-card h3,
.blog-card h2,
.related-post-card h3 {
    margin: 0 0 18px;
    font-family: "Oswald Regular", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
}

.service-card h3 a {
    color: var(--renovation-accent);
}

.service-card h3 a:hover,
.service-card h3 a:focus {
    color: #6f1fdb;
}

.services-intro-copy p:last-child {
    margin-bottom: 0;
}

.services-intro-cta {
    min-height: 46px;
    margin-top: 24px;
    padding: 13px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--renovation-accent);
    border-radius: 3px;
    background: var(--renovation-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.services-intro-cta:hover,
.services-intro-cta:focus {
    background: transparent;
    color: var(--renovation-accent);
}

.service-card__link,
.blog-card-link,
.article-back-link {
    margin-top: auto;
    color: var(--renovation-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.blog-hero,
.page-hero {
    padding: 96px 0 82px;
    background: #f6f6f6;
}

.blog-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    color: var(--renovation-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.blog-kicker::before,
.page-kicker::before {
    width: 4px;
    height: 12px;
    background: var(--renovation-accent);
    content: "";
}

.blog-hero h1,
.page-hero h1 {
    max-width: 920px;
    margin: 0 0 24px;
    font-family: "Oswald Regular", sans-serif;
    font-size: clamp(44px, 6vw, 78px);
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
}

.blog-hero p {
    max-width: 760px;
    margin: 0;
    color: #5d5d5d;
    font-size: 18px;
    line-height: 1.75;
}

.blog-list-section,
.content-section,
.article-section,
.related-posts {
    padding: 88px 0 110px;
}

.blog-card-meta,
.article-meta {
    margin-bottom: 22px;
    color: var(--renovation-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.blog-card p {
    margin-bottom: 26px;
    color: #5d5d5d;
    line-height: 1.75;
}

.navigation.pagination {
    margin-top: 48px;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-numbers {
    padding: 10px 14px;
    border: 1px solid #dedede;
}

.page-numbers.current {
    border-color: var(--renovation-dark);
    background: var(--renovation-dark);
    color: #fff;
}

.article-layout {
    max-width: 900px;
}

.article-featured-image {
    margin: 0 0 40px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.entry-content {
    color: #3d3d3d;
    font-size: 17px;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.7em;
    color: var(--renovation-dark);
    font-family: "Oswald Regular", sans-serif;
    text-transform: uppercase;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.testimonial-media {
    position: relative;
    margin-bottom: 20px;
}

.testimonial-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.testimonial-play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--renovation-dark);
    transform: translate(-50%, -50%);
}

.not-found {
    padding: 140px 0;
    text-align: center;
}

.service-faq-list {
    display: grid;
    gap: 12px;
}

.service-faq-list details {
    padding: 18px 22px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.service-faq-list summary {
    cursor: pointer;
    font-family: "Oswald Regular", sans-serif;
    font-size: 20px;
    text-transform: uppercase;
}

.service-faq-list details p {
    margin: 16px 0 0;
}

section[id] {
    scroll-margin-top: 120px;
}

@media (max-width: 991px) {
    section[id] {
        scroll-margin-top: 102px;
    }

    .blog-grid,
    .related-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .blog-hero,
    .page-hero {
        padding: 55px 0 48px;
    }

    .blog-list-section,
    .content-section,
    .article-section,
    .related-posts {
        padding: 55px 0 70px;
    }

    .blog-grid,
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Homepage before / after transformation. */
.before-after-section {
    position: relative;
    overflow: hidden;
    padding: clamp(76px, 7.5vw, 118px) 0;
    background:
        radial-gradient(circle at 72% 42%, rgba(132, 42, 249, .12), transparent 34%),
        linear-gradient(180deg, #050505 0%, #090909 58%, #343434 100%);
    color: #fff;
}

.before-after-section::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .025), transparent 28%, transparent 72%, rgba(255, 255, 255, .02));
    content: "";
    pointer-events: none;
}

.before-after-section > .sppb-row-container {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100% - 48px));
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
}

.before-after-layout {
    display: grid;
    grid-template-columns: minmax(270px, .72fr) minmax(0, 1.55fr);
    gap: clamp(44px, 6vw, 88px);
    align-items: center;
}

.before-after-copy {
    max-width: 470px;
}

.before-after-title {
    margin: 0 0 20px;
    color: #fff;
    font-family: "Oswald Regular", sans-serif;
    font-size: clamp(40px, 4vw, 58px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.before-after-text {
    margin: 0 0 34px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.65;
}

.before-after-text > :last-child {
    margin-bottom: 0;
}

.before-after-cta {
    display: inline-flex;
    min-height: 56px;
    padding: 15px 29px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--renovation-accent);
    border-radius: 3px;
    background: var(--renovation-accent);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.before-after-cta:hover,
.before-after-cta:focus {
    border-color: #fff;
    background: #fff;
    color: var(--renovation-accent);
    text-decoration: none;
    transform: translateY(-2px);
}

.before-after-cta:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .8);
    outline-offset: 4px;
}

.before-after-comparison {
    --split: 50%;
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    isolation: isolate;
    background: #171717;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .34);
    -webkit-user-select: none;
    user-select: none;
}

.before-after-media {
    position: absolute;
    inset: 0;
    margin: 0;
    overflow: hidden;
}

.before-after-image--before,
.before-after-image--after {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.before-after-image-layer--after {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 0 0 var(--split));
}

.before-after-media::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .2), transparent 30%, transparent 70%, rgba(0, 0, 0, .18));
    content: "";
    pointer-events: none;
}

.before-after-label--before,
.before-after-label--after {
    position: absolute;
    z-index: 4;
    top: 50%;
    min-width: 112px;
    padding: 14px 20px;
    background: rgba(18, 18, 18, .62);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .11em;
    text-align: center;
    text-transform: uppercase;
    transform: translateY(-50%);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.before-after-label--before {
    left: 18px;
}

.before-after-label--after {
    right: 18px;
}

.before-after-range {
    position: absolute;
    z-index: 7;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    touch-action: pan-y;
}

.before-after-divider {
    position: absolute;
    z-index: 5;
    top: 0;
    bottom: 0;
    left: var(--split);
    width: 3px;
    background: #fff;
    box-shadow: 0 0 16px rgba(0, 0, 0, .35);
    transform: translateX(-50%);
    pointer-events: none;
}

.before-after-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 10px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: rgba(20, 20, 20, .78);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
    transform: translate(-50%, -50%);
}

.before-after-range:focus-visible ~ .before-after-divider .before-after-handle {
    outline: 4px solid rgba(132, 42, 249, .55);
    outline-offset: 4px;
}

@media (max-width: 991px) {
    .before-after-section > .sppb-row-container {
        width: min(calc(100% - 40px), 820px);
    }

    .before-after-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .before-after-copy {
        max-width: 670px;
        text-align: center;
        justify-self: center;
    }

    .before-after-comparison {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .before-after-section {
        padding: 66px 0 72px;
    }

    .before-after-section > .sppb-row-container {
        width: calc(100% - 28px);
    }

    .before-after-layout {
        gap: 34px;
    }

    .before-after-title {
        margin-bottom: 16px;
        font-size: clamp(34px, 11vw, 44px);
    }

    .before-after-text {
        margin-bottom: 27px;
        font-size: 16px;
    }

    .before-after-cta {
        width: 100%;
    }

    .before-after-comparison {
        aspect-ratio: 4 / 5;
    }

    .before-after-label--before,
    .before-after-label--after {
        top: 18px;
        min-width: 86px;
        padding: 11px 12px;
        font-size: 12px;
        transform: none;
    }

    .before-after-label--before {
        left: 12px;
    }

    .before-after-label--after {
        right: 12px;
    }

    .before-after-handle {
        width: 52px;
        height: 52px;
        padding: 0 8px;
        border-width: 3px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .before-after-cta {
        transition: none;
    }
}
