/* Shared Home/city/Services client review carousel. */
.home-reviews {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--homepage-comparison-background, #052743);
}

.home-reviews::before,
.home-reviews::after {
    position: absolute;
    z-index: -1;
    width: 400px;
    height: 400px;
    border: 34px solid rgba(0, 123, 253, 0.16);
    border-radius: 42% 58% 65% 35%;
    box-shadow:
        0 0 0 28px rgba(0, 123, 253, 0.07),
        inset 0 0 0 1px rgba(90, 181, 255, 0.2);
    content: none;
    pointer-events: none;
}

.home-reviews::before {
    top: -325px;
    left: -180px;
    transform: rotate(-32deg);
}

.home-reviews::after {
    right: -180px;
    bottom: -330px;
    transform: rotate(28deg);
}

.home-reviews__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: stretch;
    gap: 40px;
}

.home-reviews__intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    margin-block-end: 0;
    text-align: left;
}

.home-reviews__watch {
    width: fit-content;
    opacity: 0.84;
    transition: opacity 180ms ease;
}

.home-reviews__watch:hover,
.home-reviews__watch:focus-visible {
    opacity: 1;
}

.home-reviews__carousel {
    --home-reviews-slide-width: 40cqw;
    position: relative;
    min-width: 0;
    container-type: inline-size;
}

.home-reviews__slider:not(.slick-initialized) {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Keep the scrollable fallback without flashing a scrollbar before lazy init. */
    scrollbar-width: none;
}

.home-reviews__slider:not(.slick-initialized)::-webkit-scrollbar {
    display: none;
}

.home-reviews__slider {
    -webkit-mask-image: linear-gradient(
        90deg,
        #000 0,
        #000 calc(100% - 34px),
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        #000 0,
        #000 calc(100% - 34px),
        transparent 100%
    );
}

.home-reviews__slide {
    width: var(--home-reviews-slide-width);
    min-width: 0;
    flex-shrink: 0;
    padding-inline: 7px;
}

.home-reviews__carousel .home-reviews__slider {
    margin-bottom: 0;
}

.home-reviews__slider:not(.slick-initialized) > .home-reviews__slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.home-reviews__slider .slick-track {
    display: flex;
}

.home-reviews__slider .slick-slide {
    height: inherit;
}

.home-reviews__slider .slick-slide > div {
    height: 100%;
}

.home-reviews__card {
    display: flex;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    margin: 0;
    border: 1px solid rgba(184, 216, 241, 0.75);
    border-radius: 12px;
    background: #fff;
}

.home-reviews__video {
    position: relative;
    display: block;
    overflow: hidden;
    flex-shrink: 0;
    aspect-ratio: 16 / 10;
    background: #103451;
}

.home-reviews__video img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 200ms ease;
}

.home-reviews__video:hover img {
    transform: scale(1.04);
}

/* The homepage uses its circular play icon instead of the shared red overlay. */
.home-reviews__video.service-video-frame::before,
.home-reviews__video.service-video-frame::after {
    content: none;
}

.home-reviews__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(3, 19, 39, 0.72);
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
}

.home-reviews__play::after {
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
    content: "";
}

.home-reviews__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
}

.home-reviews__quotation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.home-reviews__quote-mark {
    flex: 0 0 24px;
    color: #00bf87;
    font-family: Georgia, serif;
    font-size: 3.3rem;
    font-weight: 700;
    line-height: 0.9;
}

.home-reviews__card blockquote {
    margin: 0;
    color: #263e53;
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.6;
}

.home-reviews__client-link,
.home-reviews__client-link:hover {
    color: inherit;
    font: inherit;
}

.home-reviews__client-link:hover,
.home-reviews__client-link:focus-visible {
    text-decoration: underline;
}

.home-reviews__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #193a56;
    font-size: 0.9rem;
}

.home-reviews__identity > span:last-child,
.home-reviews__identity > span:last-child > span {
    display: block;
}

.home-reviews__identity strong {
    display: block;
    font-weight: 720;
}

.home-reviews__identity > span:last-child > span {
    margin-top: 2px;
    color: #526174;
    font-size: 0.76rem;
    line-height: 1.4;
}

.home-reviews__avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: #c8fae8;
    color: #006b50;
    font-size: 1rem;
    font-weight: 700;
}

.home-reviews__arrow {
    position: absolute;
    z-index: 1;
    top: calc(50% - 36px);
    display: none;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #c8dae8;
    border-radius: 50%;
    background: #fff;
    color: #092945;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.home-reviews__carousel.is-ready .home-reviews__arrow {
    display: flex;
}

.home-reviews__prev {
    left: -10px;
}

.home-reviews__next {
    right: -10px;
}

.home-reviews__dots .slick-dots {
    position: static;
    display: flex;
    min-height: 10px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.home-reviews__dots .slick-dots li {
    width: 8px;
    height: 8px;
    margin: 0;
}

.home-reviews__dots .slick-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #94afca;
    color: transparent;
    font-size: 0;
    transform: none;
    cursor: pointer;
}

.home-reviews__dots .slick-dots button::before {
    content: none;
}

.home-reviews__dots .slick-dots li.slick-active button {
    width: 8px;
    background: #35e5a2;
}

.home-reviews__video:focus-visible,
.home-reviews__arrow:focus-visible,
.home-reviews__dots button:focus-visible {
    outline: 3px solid #35e5a2;
    outline-offset: -3px;
}

@media (max-width: 1199.98px) {
    .home-reviews__layout {
        gap: 30px;
    }
}

@media (max-width: 991.98px) {
    .home-reviews__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--homepage-content-gap, 32px);
    }

    .home-reviews__intro h2 {
        max-width: 480px;
    }
}

@media (max-width: 767.98px) {
    .home-reviews__carousel {
        --home-reviews-slide-width: 66.6667cqw;
    }
}

@media (max-width: 575.98px) {
    .home-reviews__carousel {
        --home-reviews-slide-width: 90.9091cqw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-reviews__video img {
        transition: none;
    }
}
