/* Styles for templates/reviews.html only. Scope every rule under
   .reviews-page — do not add global rules here. */

.reviews-page {
    font-family: var(--ff-secondary);
    color: var(--core-1-hex);
    background: var(--canvas-base-hex);
}

.reviews-page .rv-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Hero ---------- */
.reviews-page .rv-hero {
    padding: 56px 0 40px;
    text-align: center;
}

.reviews-page .rv-hero h1 {
    font-family: var(--ff-primary);
    font-weight: 600;
    font-size: var(--fz-h1);
    letter-spacing: var(--track-title-primary);
    margin: 0 0 12px;
    text-wrap: balance;
}

.reviews-page .rv-hero p {
    font-size: 1.125rem;
    max-width: 62ch;
    margin: 0 auto 20px;
    color: rgba(var(--core-1-rgb), 0.78);
}

.reviews-page .rv-verify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--core-3-hex);
    text-decoration: none;
    border: 1.5px solid rgba(var(--core-3-rgb), 0.35);
    border-radius: 999px;
    padding: 8px 18px;
    transition: all 0.2s ease-in-out;
}

.reviews-page .rv-verify:hover {
    background: rgba(var(--core-3-rgb), 0.08);
    color: var(--core-3-hex);
}

.reviews-page .rv-verify img {
    width: 18px;
    height: 18px;
}

/* ---------- Stats strip ---------- */
.reviews-page .rv-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 28px 0 0;
}

.reviews-page .rv-stat {
    background: var(--light-bg-hex);
    border-radius: 999px;
    padding: 10px 22px;
    font-size: var(--fz-caption);
    font-weight: 600;
    letter-spacing: var(--track-caption-primary);
}

.reviews-page .rv-stat strong {
    color: var(--core-2-hex);
    font-size: 1rem;
    margin-right: 6px;
}

/* ---------- Video case studies ---------- */
.reviews-page .rv-videos {
    padding: 48px 0;
}

.reviews-page .rv-section-title {
    font-family: var(--ff-primary);
    font-weight: 600;
    font-size: var(--fz-h2);
    text-align: center;
    margin: 0 0 8px;
    text-wrap: balance;
}

.reviews-page .rv-section-sub {
    text-align: center;
    color: rgba(var(--core-1-rgb), 0.7);
    margin: 0 0 32px;
}

.reviews-page .rv-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.reviews-page .rv-video-card {
    background: var(--canvas-base-hex);
    border: 1px solid var(--ui-gray-hex);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.reviews-page .rv-video-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.reviews-page .rv-video-trigger {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: none;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.reviews-page .rv-video-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reviews-page .rv-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 16, 28, 0.25);
    transition: background 0.2s ease-in-out;
}

.reviews-page .rv-video-trigger:hover .rv-play,
.reviews-page .rv-video-trigger:focus-visible .rv-play {
    background: rgba(12, 16, 28, 0.4);
}

.reviews-page .rv-video-trigger:focus-visible {
    outline: 3px solid var(--core-3-hex);
    outline-offset: -3px;
}

.reviews-page .rv-play span {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--canvas-base-hex);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.reviews-page .rv-play svg {
    width: 26px;
    height: 26px;
    fill: var(--core-2-hex);
    margin-left: 3px;
}

.reviews-page .rv-video-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.reviews-page .rv-video-body blockquote {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    letter-spacing: var(--track-body-primary);
}

.reviews-page .rv-video-meta {
    margin-top: auto;
    font-size: var(--fz-caption);
    color: rgba(var(--core-1-rgb), 0.65);
}

.reviews-page .rv-video-meta strong {
    display: block;
    color: var(--core-1-hex);
    font-size: 1rem;
}

/* ---------- Review wall ---------- */
.reviews-page .rv-wall {
    padding: 40px 0 56px;
    background: var(--light-bg-hex);
}

.reviews-page .rv-wall-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 32px;
}

.reviews-page .rv-review {
    background: var(--canvas-base-hex);
    border-radius: 1rem;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reviews-page .rv-review-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-page .rv-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--core-1-hex);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: var(--ff-primary);
    flex-shrink: 0;
}

.reviews-page .rv-review-name {
    font-weight: 600;
    line-height: 1.2;
}

.reviews-page .rv-review-date {
    font-size: var(--fz-caption);
    color: rgba(var(--core-1-rgb), 0.55);
}

.reviews-page .rv-stars {
    color: #f5a623;
    letter-spacing: 2px;
    font-size: 0.95rem;
}

.reviews-page .rv-review p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.reviews-page .rv-review a {
    font-size: var(--fz-caption);
    font-weight: 600;
    color: var(--core-3-hex);
    text-decoration: none;
    margin-top: auto;
}

.reviews-page .rv-review a:hover {
    text-decoration: underline;
}

/* ---------- CTA band ---------- */
.reviews-page .rv-cta {
    padding: 56px 0;
    text-align: center;
    background: var(--dark-bg-hex);
    color: #fff;
}

.reviews-page .rv-cta h2 {
    font-family: var(--ff-primary);
    font-weight: 600;
    font-size: var(--fz-h2);
    color: #fff;
    margin: 0 0 10px;
    text-wrap: balance;
}

.reviews-page .rv-cta p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 24px;
}

.reviews-page .rv-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------- Modal ---------- */
.reviews-page .rv-modal {
    position: fixed;
    inset: 0;
    background: rgba(12, 16, 28, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 20px;
}

.reviews-page .rv-modal[hidden] {
    display: none;
}

.reviews-page .rv-modal-content {
    position: relative;
    width: min(880px, 100%);
}

.reviews-page .rv-modal video {
    width: 100%;
    border-radius: 0.75rem;
    display: block;
    background: #000;
}

.reviews-page .rv-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.reviews-page .rv-modal-close:focus-visible {
    outline: 3px solid var(--support-2-hex);
}

/* ---------- Scroll reveal ---------- */
.reviews-page .rv-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reviews-page .rv-reveal.rv-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reviews-page .rv-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reviews-page .rv-video-card,
    .reviews-page .rv-video-card:hover {
        transform: none;
        transition: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .reviews-page .rv-video-grid,
    .reviews-page .rv-wall-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .reviews-page .rv-hero h1 {
        font-size: var(--fz-h1-mobile);
    }
    .reviews-page .rv-video-grid,
    .reviews-page .rv-wall-grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- v2 additions: verify row, Facebook, guarantee pill ---------- */

.reviews-page .rv-verify-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.reviews-page .rv-verify--fb {
    color: #1877F2;
    border-color: rgba(24, 119, 242, 0.35);
}

.reviews-page .rv-verify--fb:hover {
    background: rgba(24, 119, 242, 0.08);
    color: #1877F2;
}

.reviews-page .rv-guarantee-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(118deg, rgba(3, 255, 136, 0.14), rgba(0, 213, 254, 0.14));
    border: 1.5px solid rgba(3, 200, 110, 0.5);
    color: #065f3c;
    font-weight: 600;
    border-radius: 999px;
    padding: 9px 22px;
    margin-top: 18px;
}

.reviews-page .rv-guarantee-pill svg {
    width: 20px;
    height: 20px;
}
