/* =====================================================
   CUSTOMER STORIES — REVIEWS
   ====================================================== */

.reviews {
    padding: var(--section-pad) 24px;
    background:
        radial-gradient(circle at 12% 10%, rgba(254, 111, 1, .12), transparent 40%),
        #16150f;
}

.rv-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Header ---- */
.rv-header {
    text-align: center;
    margin-bottom: var(--header-gap);
}

.rv-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(254, 111, 1, .12);
    border: 1px solid rgba(254, 111, 1, .3);
    color: var(--orange-light, #ff9445);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.rv-title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.3px;
    color: #ffffff;
}

.rv-subtitle {
    max-width: 560px;
    margin: 13px auto 0;
    color: rgba(255, 255, 255, .55);
    font-size: 15px;
    line-height: 1.65;
}

/* ---- Rating Summary ---- */
.rv-summary {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 12px 22px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
}

.rv-summary strong {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.rv-summary span {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
}

.rv-summary .rv-stars,
.rv-stars {
    display: inline-flex;
    gap: 3px;
    color: var(--orange, #fe6f01);
}

.rv-stars i,
.rv-stars svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ---- Carousel ---- */
.rv-carousel {
    position: relative;
}

/* Horizontal scroll track: native scrolling + snap, arrows are a convenience. */
.rv-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;
    padding: 8px 2px 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rv-grid::-webkit-scrollbar {
    display: none;
}

.rv-grid:focus-visible {
    outline: 2px solid var(--orange, #fe6f01);
    outline-offset: 6px;
    border-radius: 22px;
}

/* ---- Arrows ---- */
.rv-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    transition: background 280ms ease, border-color 280ms ease, opacity 280ms ease, transform 280ms ease;
}

.rv-arrow i,
.rv-arrow svg {
    width: 20px;
    height: 20px;
}

.rv-arrow-prev {
    left: -14px;
}

.rv-arrow-next {
    right: -14px;
}

.rv-arrow:hover:not(:disabled) {
    background: var(--orange, #fe6f01);
    border-color: var(--orange, #fe6f01);
    transform: translateY(-50%) scale(1.07);
}

.rv-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.rv-card {
    flex: 0 0 clamp(280px, 31%, 372px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 28px 26px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: transform 380ms cubic-bezier(.2, .8, .2, 1),
        background 380ms ease,
        border-color 380ms ease;
}

.rv-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(254, 111, 1, .38);
}

.rv-quote {
    font-size: 15px;
    line-height: 1.72;
    color: rgba(255, 255, 255, .8);
    flex: 1;
    margin-top: 14px;
}

.rv-person {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.rv-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--orange, #fe6f01), #a03f00);
    color: #ffffff;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.rv-person-name {
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.rv-person-meta {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
}

.rv-verified {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .45);
}

.rv-verified i,
.rv-verified svg {
    width: 13px;
    height: 13px;
    color: #4ade80;
}

/* =====================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1100px) {
    .rv-arrow-prev {
        left: 4px;
    }

    .rv-arrow-next {
        right: 4px;
    }
}

@media (max-width: 940px) {
    .rv-card {
        flex-basis: 78%;
    }
}

@media (max-width: 560px) {
    .reviews {
        padding: var(--section-pad) 20px;
    }

    .rv-card {
        flex-basis: 86%;
        padding: 24px 20px 20px;
    }

    /* Arrows overlap the cards at this width — swipe is the natural gesture. */
    .rv-arrow {
        display: none;
    }
}
