/* ==========================================================================
   ppc-reviews.css — PPC Landing Page: 5-Star Google Reviews
   Figma: 1440×637, bg:#ffffff, padding 80px top/bottom, 60px left/right
   Inner: 1320×447px

   Header: heading only, centred (1320×46px)
   Review container (1320×391px, gap 40px):
     → cards row (4 visible cards, gap 20px, card inner gap 10px)
     → 40px gap → divider (1320px / 0.5px / #1c1c1c / 50% opacity)
     → 40px gap → nav arrows (pill, left-aligned)
   ========================================================================== */

.ppc-reviews {
    background-color: #ffffff;
    padding-block: 80px;
    padding-inline: var(--gutter, 60px);
    overflow: hidden;
}

.ppc-reviews__inner {
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ── Heading — Freight Neo Book 40px, lh 115%, centred, #1c1c1c ──────────── */
/* Figma: 1320×46px text container */
.ppc-reviews__heading {
    font-family: var(--font-heading, 'Freight Neo Pro', serif);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
    color: #1c1c1c;
    width: 100%;
    margin: 0;
}

/* ── Review container — flex column, gap 40px ────────────────────────────── */
.ppc-reviews__track-wrap {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ── Viewport — clips track; right fade hints next card (Figma 7942:36724) ─ */
.ppc-reviews__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ppc-reviews__viewport::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 72px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.ppc-reviews--at-end .ppc-reviews__viewport::after,
.ppc-reviews--no-peek .ppc-reviews__viewport::after {
    opacity: 0;
}

/* ── Cards row — horizontal carousel, gap 20px ───────────────────────────── */
.ppc-reviews__track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* ── Review card — Figma 427px; 3 full + 4th peek in 1320px viewport ─────── */
.ppc-reviews__card {
    flex: 0 0 427px;
    width: 427px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: none;
    padding: 0;
}

/* Stars row — 120×24px (5 × 24px stars) */
.ppc-reviews__card-stars {
    display: flex;
    gap: 0;
    height: 24px;
    align-items: center;
}

.ppc-reviews__card-stars svg {
    color: #1c1c1c;
    flex-shrink: 0;
}

/* Review text — Geist Light 16px, lh 139%, #1c1c1c, 110px tall */
.ppc-reviews__card-text {
    font-family: var(--font-body, 'Geist', sans-serif);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.39;
    letter-spacing: 0;
    color: #1c1c1c;
    margin: 0;
}

/* Author block — Figma: pt 20px above name */
.ppc-reviews__card-author {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 20px;
}

/* Author name — Geist Medium 16px, lh 139%, #1c1c1c */
.ppc-reviews__card-name {
    font-family: var(--font-body, 'Geist', sans-serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.39;
    color: #1c1c1c;
}

/* "Posted on Google" — Geist Light 16px, source name medium 16px — Figma 7942:36725 */
.ppc-reviews__card-source {
    font-family: var(--font-body, 'Geist', sans-serif);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.39;
    color: #1c1c1c;
}

.ppc-reviews__card-source strong {
    font-weight: 500;
}

/* ── Divider — 1320px, 0.5px solid #1c1c1c, 50% opacity ─────────────────── */
.ppc-reviews__divider {
    border: none;
    border-top: 0.5px solid #1c1c1c;
    opacity: 0.5;
    width: 100%;
}

/* ── Navigation arrows — left-aligned pill buttons ───────────────────────── */
.ppc-reviews__nav {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}

/* Arrow button — Figma: hug ~58×27px, radius 1000px, 1px border, pad 10/16 */
.ppc-reviews__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid #1c1c1c;
    border-radius: 1000px;
    cursor: pointer;
    color: #1c1c1c;
    transition: background-color 0.2s ease, color 0.2s ease;
    gap: 4px;
}

.ppc-reviews__arrow:disabled {
    border-color: rgba(28, 28, 28, 0.3);
    color: rgba(28, 28, 28, 0.3);
    cursor: default;
}

.ppc-reviews__arrow:not(:disabled):hover {
    background-color: #1c1c1c;
    color: #ffffff;
}

.ppc-reviews__arrow:focus-visible {
    outline: 2px solid #1c1c1c;
    outline-offset: 2px;
}

/* ── Tablet (max 959px) — fixed card width + peek ─────────────────────────── */
@media (max-width: 959px) {
    .ppc-reviews__card {
        flex: 0 0 320px;
        width: 320px;
    }

    .ppc-reviews__track {
        gap: 24px;
    }

    .ppc-reviews__viewport::after {
        width: 48px;
    }
}

/* ── Mobile (max 639px) ──────────────────────────────────────────────────── */
@media (max-width: 639px) {
    .ppc-reviews {
        padding-block: 60px;
        padding-inline: 16px;
    }

    .ppc-reviews__heading {
        font-size: 28px;
        line-height: 1.15;
    }

    .ppc-reviews__card {
        flex: 0 0 calc(100vw - 64px);
        width: calc(100vw - 64px);
    }

    /* One card dominant + peek of next */
    .ppc-reviews__viewport::after {
        width: 40px;
    }
}
