/* =============================================================
   Clutch review carousel — shared component (.lp-reviews /
   .lp-review-card). Extracted verbatim from the homepage's
   home.css so the homepage renders with zero visual change;
   now also consumed by about.html. Load it after the shared
   stylesheets on every page that uses the component.
   Accents inherit the page's blue --main-color (dot, reviewer
   names, "Let's talk" pill); the Clutch brand marks (star.svg,
   clutch-icon.svg) stay red as shipped assets. --lp-slate is a
   clutch-only token, inlined here as #EBEBF2. No red overrides.
   Page-only overrides stay page-scoped (e.g. home.css).
   ============================================================= */

.lp-reviews {
    background: #fff;
    padding: 150px 0;
    /* The slider bleeds to the right viewport edge via margin-right:
       calc(50% - 50vw), which resolves to 100vw and so includes the
       scrollbar width in real browsers (headless overlay scrollbars
       hid this) — a ~scrollbar-width horizontal overflow strip. Clip
       it at the section box (= clientWidth, the visible edge): the
       bleed still reaches the visible edge, the sliver past it is cut.
       overflow-x: clip (not hidden) creates no scroll container, so it
       doesn't affect sticky ancestors; scoped to the section, not body. */
    overflow-x: clip;
}

/* Comp gap between eyebrow and headline is 40px (global default 28). */
.lp-reviews .sec-heading span {
    margin-bottom: 40px;
}

.lp-reviews .sec-heading {
    margin-bottom: 80px;
}

/* Slider bleeds from the container's left edge to the viewport's right
   edge at desktop, per the comp (cards clip at the screen, not the
   container). */
.lp-reviews__slider.swiper {
    overflow: hidden;
}

@media (min-width: 1200px) {
    .lp-reviews__slider.swiper {
        margin-right: calc(50% - 50vw);
    }

    /* slidesPerView: 'auto' at desktop — comp card width */
    .lp-reviews__slider .swiper-slide {
        width: 380px;
    }
}

/* Equal-height cards */
.lp-reviews__slider .swiper-slide {
    height: auto;
}

.lp-review-card {
    background-color: #fff;
    background-image: radial-gradient(100% 100% at 50% 0%,
            rgba(244, 244, 247, 0.25) 0%, rgba(235, 235, 242, 0.5) 100%);
    border-radius: 18px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lp-review-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--fourth-color);
}

.lp-review-card__score {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.lp-review-card__number {
    font-family: 'HelveticaNowDisplay-Medium';
    font-weight: 500;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.6px;
    color: var(--third-color);
}

/* Optional deep link wrapping the Clutch platform mark (about.html
   links each card to its Clutch review). line-height:0 kills the
   inline-image baseline gap; the mark keeps its shipped red. */
.lp-review-card__clutch-link {
    display: inline-flex;
    line-height: 0;
}

.lp-review-card__body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.lp-review-card__quote {
    font-family: 'HelveticaNowDisplay-Light';
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
    color: var(--third-color);
    margin: 0;
    border: 0;
    /* Reserve the longest quote's height (3 lines at the 380px desktop
       card) so reviewer names start at the same y in every card. */
    min-height: calc(3 * 1.4em);
}

.lp-review-card__client {
    display: flex;
    flex-direction: column;
}

.lp-review-card__name {
    font-family: 'HelveticaNowDisplay-Bold';
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.44px;
    color: var(--main-color);
    margin: 0 0 16px;
}

.lp-review-card__name a {
    color: inherit;
    text-decoration: none;
}

.lp-review-card__role {
    font-family: 'HelveticaNowDisplay-Regular';
    font-size: 16px;
    line-height: 1;
    color: var(--third-color);
    margin: 0 0 20px;
}

.lp-review-card__since {
    font-family: 'HelveticaNowDisplay-Regular';
    font-size: 12px;
    line-height: 1;
    color: var(--secondary-color);
    margin: 0;
}

/* Footer row: nav buttons left, CTAs right */
.lp-reviews__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 80px;
}

.lp-reviews__nav {
    display: flex;
    gap: 12px;
}

.lp-reviews__prev,
.lp-reviews__next {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #EBEBF2;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lp-reviews__prev svg,
.lp-reviews__next svg {
    display: block;
}

/* Ends of the (non-looping) slider: Swiper toggles this class and
   aria-disabled — comp's Inactive state is 50% opacity. */
.lp-reviews__prev.swiper-button-disabled,
.lp-reviews__next.swiper-button-disabled {
    opacity: 0.5;
    cursor: default;
}

.lp-reviews__cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* =============================================================
   Responsive (ported clutch breakpoints)
   ============================================================= */

/* Tablet band: at the 2-per-view slide width the longest quote wraps
   to 4 lines, so the name-alignment reserve grows to match. */
@media (min-width: 768px) and (max-width: 991px) {
    .lp-review-card__quote {
        min-height: calc(4 * 1.4em);
    }
}

@media (max-width: 991px) {
    .lp-reviews {
        padding: 80px 0;
    }

    .lp-reviews .sec-heading {
        margin-bottom: 40px;
    }

    .lp-reviews__footer {
        margin-top: 40px;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .lp-reviews {
        padding: 60px 0;
    }

    .lp-reviews .sec-heading span {
        margin-bottom: 24px;
    }

    /* Headline row — arrows sit top-right on the h2's row. The heading
       and footer wrappers unwrap via display: contents so h2, nav,
       slider, and CTA become items of one phone-only grid. */
    .lp-reviews .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .lp-reviews .sec-heading,
    .lp-reviews__footer {
        display: contents;
    }

    .lp-reviews .sec-heading span {
        grid-row: 1;
        grid-column: 1 / -1;
    }

    .lp-reviews .sec-heading h2 {
        grid-row: 2;
        grid-column: 1;
        align-self: center;
        margin-bottom: 40px;
        font-size: 32px;
        letter-spacing: -0.64px;
    }

    .lp-reviews__nav {
        grid-row: 2;
        grid-column: 2;
        align-self: center;
        gap: 8px;
        margin-bottom: 40px;
    }

    /* Compact 28px arrows per the comp; the invisible ::before overlay
       keeps each hit area at 44x44. */
    .lp-reviews__prev,
    .lp-reviews__next {
        position: relative;
        width: 28px;
        height: 28px;
        border-radius: 4px;
    }

    .lp-reviews__prev svg,
    .lp-reviews__next svg {
        width: 12px;
        height: 12px;
    }

    .lp-reviews__prev::before,
    .lp-reviews__next::before {
        content: '';
        position: absolute;
        inset: -8px;
    }

    /* Carousel row: 320px cards, next card peeking at the right viewport
       edge; the slider bleeds past the right gutter (same as desktop). */
    .lp-reviews__slider.swiper {
        grid-row: 3;
        grid-column: 1 / -1;
        margin-left: 0;
        min-width: 0;
        margin-right: calc(50% - 50vw);
    }

    .lp-reviews__slider .swiper-slide {
        width: min(320px, calc(100vw - 60px));
    }

    .lp-reviews__cta {
        grid-row: 4;
        grid-column: 1 / -1;
        margin-top: 40px;
        flex-wrap: wrap;
        width: 100%;
    }

    .lp-reviews__cta .def-btn.bg-blue {
        max-width: 150px;
    }

    .lp-review-card__quote {
        text-wrap: pretty;
    }
}

@media (max-width: 395px) {
    .lp-reviews .sec-heading h2 {
        font-size: 30px;
    }

    .lp-reviews__cta .def-btn.bg-blue {
        max-width: fit-content;
    }
}
