/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * Shared, theme-agnostic social proof (testimonials) section styling for the
 * regional ancestry report pages. Colors are driven entirely by the
 * --rrsp-* CSS custom properties (set per-page) with safe fallbacks; this
 * file never hardcodes a page-specific color. No entrance/scroll-reveal
 * fade-in animation is used.
 */

.rrsp-section {
    position: relative;
    padding: 4rem 0;
    background-color: var(--rrsp-bg, #0a0e14);
    color: var(--rrsp-text, #e8e6df);
}

.rrsp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rrsp-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.rrsp-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--rrsp-accent, #c9a030);
    margin-bottom: 0.75rem;
}

.rrsp-subtitle {
    color: var(--rrsp-text-muted, rgba(232, 230, 223, 0.72));
    margin-bottom: 0;
}

.rrsp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@@media (max-width: 900px) {
    .rrsp-grid {
        grid-template-columns: 1fr;
    }
}

.rrsp-card {
    display: flex;
    flex-direction: column;
    background: var(--rrsp-card-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--rrsp-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 1.5rem;
}

.rrsp-card-top {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.rrsp-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: var(--rrsp-accent, #c9a030);
    color: var(--rrsp-bg, #0a0e14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 0.75rem;
}

.rrsp-author {
    display: flex;
    flex-direction: column;
}

.rrsp-author-name {
    font-weight: 600;
}

.rrsp-rating .dna-icon {
    width: 0.85rem;
    height: 0.85rem;
    color: var(--rrsp-accent, #c9a030);
    margin-right: 2px;
}

.rrsp-verified {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rrsp-accent, #c9a030);
    white-space: nowrap;
}

.rrsp-verified .dna-icon {
    width: 0.9rem;
    height: 0.9rem;
}

.rrsp-quote {
    flex: 1 0 auto;
    color: var(--rrsp-text, #e8e6df);
    margin-bottom: 1rem;
}

.rrsp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rrsp-border, rgba(255, 255, 255, 0.1));
    font-size: 0.8rem;
    color: var(--rrsp-text-muted, rgba(232, 230, 223, 0.6));
}

.rrsp-card-footer a {
    color: var(--rrsp-accent, #c9a030);
    text-decoration: none;
}

.rrsp-card-footer a:hover,
.rrsp-card-footer a:focus {
    text-decoration: underline;
}

.rrsp-trustpilot {
    text-align: center;
    margin-top: 2.5rem;
}

@@media print {
    .rrsp-trustpilot {
        display: none;
    }
}
