/* ==================================================
   Combined Client Reviews Section
================================================== */

#info-cards.c-reviews,
#info-cards.c-reviews * {
    box-sizing: border-box;
}

#info-cards.c-reviews {
    --cr-green: #176b4d;
    --cr-dark-green: #0d5038;
    --cr-light-green: #e4f6e9;
    --cr-lighter-green: #f4faf6;
    --cr-heading: #17231e;
    --cr-text: #66736d;
    --cr-white: #ffffff;
    --cr-star: #fbbc04;
    --cr-youtube: #ff0000;
    --cr-border: rgba(23, 107, 77, 0.12);

    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(23, 107, 77, 0.12),
            transparent 27%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(251, 188, 4, 0.08),
            transparent 25%
        ),
        var(--cr-lighter-green);
}

#info-cards.c-reviews::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 280px;
    height: 280px;
    border: 55px solid rgba(23, 107, 77, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

#info-cards .cr-section-heading {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto 45px;
}

#info-cards .cr-small-heading {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--cr-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

#info-cards .cr-main-heading {
    margin: 0 0 15px;
    color: var(--cr-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
}

#info-cards .cr-heading-text {
    margin: 0;
    color: var(--cr-text);
    font-size: 17px;
    line-height: 1.75;
}

/* Slider */

#info-cards .cr-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

#info-cards .cr-slider-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

#info-cards .cr-slider-viewport::-webkit-scrollbar {
    display: none;
}

#info-cards .cr-slider-track {
    display: flex;
    align-items: stretch;
    gap: 22px;
    padding: 8px 0 15px;
}

#info-cards .cr-review-card {
    flex: 0 0 calc((100% - 44px) / 3);
    min-width: 0;
    min-height: 390px;
    overflow: hidden;
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(20, 47, 36, 0.09);
    scroll-snap-align: start;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#info-cards .cr-review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(20, 47, 36, 0.14);
}

/* Slider arrows */

#info-cards .cr-slider-button {
    position: relative;
    z-index: 5;
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: var(--cr-white);
    background: var(--cr-green);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 9px 22px rgba(23, 107, 77, 0.22);
    font-size: 21px;
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

#info-cards .cr-slider-button:hover {
    background: var(--cr-dark-green);
    transform: scale(1.07);
}

#info-cards .cr-slider-button:focus-visible {
    outline: 3px solid rgba(23, 107, 77, 0.25);
    outline-offset: 4px;
}

/* Google summary */

#info-cards .cr-google-summary {
    display: flex;
    flex-direction: column;
    padding: 28px;
    color: var(--cr-white);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.08),
            transparent 45%
        ),
        var(--cr-green);
}

#info-cards .cr-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

#info-cards .cr-platform-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

#info-cards .cr-google-summary h4 {
    margin: 0;
    color: var(--cr-white);
    font-size: 24px;
    line-height: 1.25;
}

#info-cards .cr-google-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    background: var(--cr-white);
    border-radius: 50%;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
    font-size: 25px;
    font-weight: 800;

    background-image: conic-gradient(
        #4285f4 0deg 90deg,
        #34a853 90deg 180deg,
        #fbbc05 180deg 270deg,
        #ea4335 270deg
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

#info-cards .cr-overall-rating {
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 38px 0 20px;
}

#info-cards .cr-overall-rating strong {
    color: var(--cr-white);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
}

#info-cards .cr-stars {
    color: var(--cr-star);
    font-size: 20px;
    letter-spacing: 1px;
    line-height: 1;
}

#info-cards .cr-overall-rating p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

#info-cards .cr-summary-description {
    margin: 0 0 25px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.7;
}

#info-cards .cr-summary-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 14px 17px;
    color: var(--cr-green);
    background: var(--cr-white);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease;
}

#info-cards .cr-summary-link:hover {
    color: var(--cr-green);
    transform: translateY(-2px);
}

/* Google review card */

#info-cards .cr-google-review {
    padding: 27px;
    background: var(--cr-light-green);
}

#info-cards .cr-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

#info-cards .cr-reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#info-cards .cr-avatar {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
}

#info-cards .cr-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cr-white);
    background: #5b36b2;
    font-size: 21px;
    font-weight: 700;
}

#info-cards .cr-reviewer h4 {
    margin: 0 0 4px;
    color: var(--cr-heading);
    font-size: 18px;
    font-weight: 700;
}

#info-cards .cr-reviewer span {
    color: var(--cr-text);
    font-size: 13px;
}

#info-cards .cr-google-logo-small {
    width: 37px;
    height: 37px;
    font-size: 20px;
}

#info-cards .cr-google-review .cr-stars {
    margin-bottom: 18px;
    font-size: 21px;
}

#info-cards .cr-review-text {
    margin: 0 0 20px;
    padding: 0;
    color: #26332d;
    border: 0;
    font-size: 15px;
    font-style: normal;
    line-height: 1.72;
}

#info-cards .cr-text-link {
    display: inline-block;
    color: var(--cr-green);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

#info-cards .cr-text-link:hover {
    color: var(--cr-dark-green);
    text-decoration: underline;
}

/* YouTube cards */

#info-cards .cr-video-review {
    display: flex;
    flex-direction: column;
}

#info-cards .cr-video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111111;
}

#info-cards .cr-video-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.3)
        );
    pointer-events: none;
}

#info-cards .cr-video-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}

#info-cards .cr-video-placeholder:hover img {
    transform: scale(1.05);
    filter: brightness(0.88);
}

#info-cards .cr-youtube-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    color: var(--cr-white);
    background: rgba(0, 0, 0, 0.65);
    border-radius: 7px;
    backdrop-filter: blur(6px);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

#info-cards .cr-video-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 48px;
    padding: 0;
    background: var(--cr-youtube);
    border: 0;
    border-radius: 13px;
    box-shadow: 0 9px 25px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

#info-cards .cr-video-placeholder:hover .cr-video-play {
    background: #d60000;
    transform: translate(-50%, -50%) scale(1.08);
}

#info-cards .cr-video-play:focus-visible {
    outline: 3px solid var(--cr-white);
    outline-offset: 4px;
}

#info-cards .cr-video-play span {
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 16px solid var(--cr-white);
}

#info-cards .cr-video-placeholder iframe {
    position: absolute;
    z-index: 5;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#info-cards .cr-video-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 23px;
}

#info-cards .cr-video-content h4 {
    margin: 0 0 10px;
    color: var(--cr-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

#info-cards .cr-video-content p {
    margin: 0 0 20px;
    color: var(--cr-text);
    font-size: 14px;
    line-height: 1.65;
}

#info-cards .cr-video-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--cr-border);
}

#info-cards .cr-video-footer .cr-stars {
    font-size: 16px;
    letter-spacing: 0;
}

#info-cards .cr-video-footer > span:last-child {
    color: var(--cr-text);
    font-size: 12px;
    font-weight: 600;
}

/* Slider dots */

#info-cards .cr-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 12px;
    margin-top: 20px;
}

#info-cards .cr-slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    background: rgba(23, 107, 77, 0.23);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition:
        width 0.25s ease,
        background 0.25s ease;
}

#info-cards .cr-slider-dot.active {
    width: 27px;
    background: var(--cr-green);
    border-radius: 20px;
}

/* Bottom buttons */

#info-cards .cr-review-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

#info-cards .cr-review-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 52px;
    padding: 13px 23px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#info-cards .cr-review-button:hover {
    transform: translateY(-3px);
}

#info-cards .cr-google-button {
    color: var(--cr-heading);
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    box-shadow: 0 8px 24px rgba(20, 47, 36, 0.08);
}

#info-cards .cr-google-button:hover {
    color: var(--cr-heading);
    box-shadow: 0 13px 30px rgba(20, 47, 36, 0.13);
}

#info-cards .cr-button-google {
    font-size: 21px;
    font-weight: 800;

    background-image: conic-gradient(
        #4285f4 0deg 90deg,
        #34a853 90deg 180deg,
        #fbbc05 180deg 270deg,
        #ea4335 270deg
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

#info-cards .cr-youtube-button {
    color: var(--cr-white) !important;
    background: var(--cr-youtube);
    box-shadow: 0 8px 22px rgba(255, 0, 0, 0.2);
}

#info-cards .cr-youtube-button:hover {
    color: var(--cr-white);
    background: #d60000;
}

#info-cards .cr-youtube-icon {
    position: relative;
    width: 25px;
    height: 17px;
    background: var(--cr-white);
    border-radius: 5px;
}

#info-cards .cr-youtube-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid var(--cr-youtube);
    transform: translate(-50%, -50%);
}

/* Keep additional written reviews neat */
#info-cards .cr-google-review {
    display: flex;
    flex-direction: column;
}

#info-cards .cr-google-review .cr-review-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
}

#info-cards .cr-google-review .cr-text-link {
    margin-top: auto;
}

/* Better thumbnail positioning for vertical YouTube Shorts */
#info-cards .cr-video-placeholder img {
    object-position: center;
}

/* Responsive */

@media (max-width: 991px) {
    #info-cards.c-reviews {
        padding: 75px 0;
    }

    #info-cards .cr-review-card {
        flex-basis: calc((100% - 22px) / 2);
    }
}

@media (max-width: 767px) {
    #info-cards.c-reviews {
        padding: 60px 0;
    }

    #info-cards .cr-section-heading {
        margin-bottom: 32px;
        padding: 0 5px;
    }

    #info-cards .cr-heading-text {
        font-size: 15px;
    }

    #info-cards .cr-slider-wrapper {
        display: block;
    }

    #info-cards .cr-slider-viewport {
        width: 100%;
    }

    #info-cards .cr-review-card {
        flex-basis: 100%;
        min-height: 385px;
    }

    #info-cards .cr-slider-button {
        position: absolute;
        z-index: 10;
        top: 50%;
        width: 42px;
        height: 42px;
        font-size: 18px;
        transform: translateY(-50%);
    }

    #info-cards .cr-slider-button:hover {
        transform: translateY(-50%) scale(1.05);
    }

    #info-cards .cr-slider-prev {
        left: -7px;
    }

    #info-cards .cr-slider-next {
        right: -7px;
    }

    #info-cards .cr-slider-track {
        gap: 15px;
        padding-right: 0;
        padding-left: 0;
    }

    #info-cards .cr-review-buttons {
        flex-direction: column;
    }

    #info-cards .cr-review-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #info-cards .cr-slider-viewport {
        scroll-behavior: auto;
    }

    #info-cards .cr-review-card,
    #info-cards .cr-slider-button,
    #info-cards .cr-video-placeholder img {
        transition: none;
    }
}
