/* ==========================================================
   Client Reviews section (home page) – light "card stack" style
   ========================================================== */
.ssv-reviews {
    --rv-navy: #020e2a;
    --rv-red: #ed1b24;
    --rv-ink: #1f2638;
    --rv-muted: #6b7385;
    --rv-bg: #f5f6fa;
    position: relative;
    padding: 50px 0;
    background: var(--rv-navy);
    font-family: 'Open Sans', sans-serif;
    overflow: hidden;
}

/* soft decorative shapes */
.ssv-reviews::before,
.ssv-reviews::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ssv-reviews::before {
    width: 520px;
    height: 520px;
    top: -220px;
    right: -160px;
    background: radial-gradient(circle, rgba(237, 27, 36, .24), transparent 70%);
}

.ssv-reviews::after {
    width: 420px;
    height: 420px;
    bottom: -200px;
    left: -140px;
    background: radial-gradient(circle, rgba(70, 110, 230, .18), transparent 70%);
}

.rv-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
    align-items: center;
}

/* ---------- Photo side ---------- */
.rv-visual { position: relative; padding: 0 0 34px 34px; }

.rv-visual::before {
    /* red offset frame */
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 78%;
    height: 78%;
    border: 3px solid var(--rv-red);
    border-radius: 28px;
}

.rv-photo {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 5 / 6;
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7);
}

.rv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }

.rv-photo::after {
    content: "";
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(transparent, rgba(2, 14, 42, .55));
}

.rv-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 40px -18px rgba(2, 14, 42, .45);
    animation: rv-float 6s ease-in-out infinite;
}

.rv-chip-iso { right: -26px; top: 40px; }

.rv-chip-247 { left: 0; bottom: 6px; animation-delay: -3s; }

.rv-chip i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 12px;
    background: rgba(237, 27, 36, .1);
    color: var(--rv-red);
    font-size: 20px;
}

.rv-chip-247 i { background: var(--rv-navy); color: #fff; }

.rv-chip strong { display: block; color: var(--rv-navy); font: 700 15px/1.2 'Montserrat', sans-serif; }

.rv-chip span { color: var(--rv-muted); font-size: 12.5px; }

@keyframes rv-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- Text side ---------- */
.rv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--rv-red);
    font: 700 13px/1 'Montserrat', sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.rv-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--rv-red); }

.rv-content h2 {
    margin: 16px 0 14px;
    color: #fff;
    font: 800 44px/1.12 'Montserrat', sans-serif;
}

.rv-content h2 span { color: var(--rv-red); }

.rv-lead { max-width: 520px; margin: 0 0 44px; color: rgba(255, 255, 255, .72); font-size: 16.5px; line-height: 1.75; }

/* ---------- Card stack ---------- */
.rv-deck {
    position: relative;
    display: grid;
    padding-bottom: 36px;       /* room for the cards peeking behind */
    touch-action: pan-y;
    user-select: none;
}

.rv-card {
    grid-area: 1 / 1;
    position: relative;
    padding: 40px 42px 34px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 50px -24px rgba(2, 14, 42, .35);
    transform-origin: 50% 100%;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease, box-shadow .6s ease;
    cursor: grab;
}

.rv-card:active { cursor: grabbing; }

/* stack positions, set by script via data-pos */
.rv-card[data-pos="0"] { z-index: 3; }
.rv-card[data-pos="1"] { z-index: 2; transform: translateY(18px) scale(.95); background: #c9cfdd; box-shadow: 0 16px 30px -22px rgba(0, 0, 0, .6); }
.rv-card[data-pos="2"] { z-index: 1; transform: translateY(36px) scale(.9); background: #5b6684; box-shadow: none; }
.rv-card[data-pos="1"] > *, .rv-card[data-pos="2"] > * { visibility: hidden; }

/* the card being thrown off the top of the stack */
.rv-card.is-leaving-left { z-index: 4; transform: translateX(-115%) rotate(-10deg); opacity: 0; }
.rv-card.is-leaving-right { z-index: 4; transform: translateX(115%) rotate(10deg); opacity: 0; }
.rv-card.is-dragging { transition: none; }

.rv-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }

.rv-quote { color: var(--rv-red); font: 800 90px/.6 Georgia, serif; height: 44px; }

.rv-tag {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--rv-bg);
    color: var(--rv-navy);
    font: 600 12px/1 'Montserrat', sans-serif;
}

.rv-tag i { margin-right: 6px; color: var(--rv-red); }

.rv-card blockquote {
    margin: 0 0 30px;
    padding: 0;
    border: 0;
    color: var(--rv-ink);
    font: 500 19px/1.7 'Montserrat', sans-serif;
}

.rv-author { display: flex; align-items: center; gap: 15px; padding-top: 24px; border-top: 1px dashed #dde1ea; }

.rv-avatar {
    width: 52px;
    height: 52px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font: 700 17px/1 'Montserrat', sans-serif;
    background: var(--rv-navy);
}

.rv-card:nth-child(2) .rv-avatar { background: var(--rv-red); }

.rv-card:nth-child(3) .rv-avatar { background: #3a4a6b; }

.rv-author h3 { margin: 0 0 3px; color: var(--rv-navy); font: 700 17px/1.2 'Montserrat', sans-serif; }

.rv-author p { margin: 0; color: var(--rv-muted); font-size: 14px; }

/* ---------- Controls ---------- */
.rv-nav { display: flex; align-items: center; gap: 22px; margin-top: 26px; }

.rv-dots { display: flex; gap: 8px; }

.rv-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: width .35s ease, background .35s ease;
}

.rv-dot.is-active { width: 34px; background: var(--rv-red); }

.rv-hint { color: rgba(255, 255, 255, .6); font-size: 13px; }

.rv-hint i { margin-right: 6px; }

.rv-arrows { display: flex; gap: 10px; margin-left: auto; }

.rv-arrow {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--rv-navy);
    font-size: 22px;
    box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7);
    cursor: pointer;
    transition: background .25s, color .25s, transform .25s;
}

.rv-arrow.rv-next { background: var(--rv-red); color: #fff; }

.rv-arrow:hover, .rv-arrow.rv-next:hover { transform: translateY(-3px); background: #fff; color: var(--rv-red); }

.rv-arrow:focus-visible, .rv-dot:focus-visible, .rv-deck:focus-visible { outline: 3px solid rgba(237, 27, 36, .5); outline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .rv-wrap { gap: 56px; }
    .rv-content h2 { font-size: 38px; }
    .rv-chip-iso { right: -10px; }
}

@media (max-width: 991px) {
    .ssv-reviews { padding: 44px 0; }
    .rv-wrap { grid-template-columns: 1fr; gap: 56px; }
    .rv-visual { max-width: 460px; margin: 0 auto; width: 100%; }
    .rv-content { order: -1; }
}

@media (max-width: 575px) {
    .ssv-reviews { padding: 36px 0; }
    .rv-content h2 { font-size: 30px; }
    .rv-lead { font-size: 15px; margin-bottom: 32px; }
    .rv-card { padding: 30px 24px 26px; border-radius: 20px; }
    .rv-quote { font-size: 72px; height: 36px; }
    .rv-card blockquote { font-size: 16.5px; }
    .rv-hint { display: none; }
    .rv-visual { padding: 0 0 24px 24px; }
    .rv-chip { padding: 10px 14px; }
    .rv-chip-iso { right: -6px; top: 24px; }
    .rv-chip-247 { bottom: 0; }
    .rv-chip i { width: 36px; height: 36px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .rv-card, .rv-dot { transition: none; }
    .rv-chip { animation: none; }
}

/* home page only: the reviews section supplies its own top spacing */
.home-video-section { margin-bottom: 0; }
