/* ============================================================
   Public Reviews page (/reviews)
   Colours follow the brand colour: the page sets --rv-primary / --rv-soft / --rv-deep inline (BrandIdentity);
   the values below are only the template-pink fallbacks.
   ============================================================ */
.rv-page {
    --rv-primary: #ff67b0;
    --rv-soft: #ffeaf4;
    --rv-deep: #a8366f;
    --rv-ink: #25101b;
    --rv-muted: #6b7280;
    --rv-line: #f3d3e4;
    --rv-star: #f5a524;
    --rv-plum: #2a1020;
    --rv-plum-2: #16101a;
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    color: var(--rv-ink);
    background: #fff;
    overflow-x: clip;
}

.rv-page *,
.rv-page *::before,
.rv-page *::after {
    box-sizing: border-box;
}

.rv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Hero ---------- */
.rv-hero {
    background: linear-gradient(180deg, var(--rv-soft) 0%, #fff 100%);
    padding: clamp(104px, 11vw, 132px) 0 clamp(36px, 5vw, 60px);
}

.rv-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.rv-breadcrumbs {
    margin-bottom: 20px;
    font-size: .85rem;
    color: var(--rv-muted);
}

.rv-breadcrumbs a {
    color: var(--rv-muted);
    text-decoration: none;
}

.rv-breadcrumbs a:hover {
    color: var(--rv-primary);
}

.rv-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.03em;
}

.rv-accent {
    color: var(--rv-primary);
}

.rv-lead {
    max-width: 540px;
    margin: 0 0 28px;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--rv-muted);
}

.rv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    background: var(--rv-primary);
    border: 2px solid var(--rv-primary);
    border-radius: 14px;
    font: inherit;
    font-weight: 800;
    color: var(--rv-ink);
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}

.rv-btn:hover {
    background: var(--rv-deep);
    border-color: var(--rv-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -14px var(--rv-primary);
}

.rv-btn:focus-visible {
    outline: 3px solid var(--rv-ink);
    outline-offset: 3px;
}

.rv-btn[hidden] {
    display: none;
}

.rv-btn-ghost {
    background: #fff;
    border-color: var(--rv-line);
    color: var(--rv-ink);
}

/* ---------- Score card ---------- */
.rv-score {
    padding: 30px 28px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rv-plum) 0%, var(--rv-plum-2) 70%, #24101c 100%);
    border: 1.5px solid rgba(255, 103, 176, .4);
    border-radius: 28px;
    box-shadow: 0 30px 60px -26px rgba(37, 16, 27, .55), 0 0 44px -16px var(--rv-primary);
}

.rv-score-num {
    font-size: clamp(3.4rem, 7vw, 4.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--rv-primary);
}

.rv-score-stars {
    margin: 10px 0 6px;
    font-size: 1.3rem;
    color: var(--rv-star);
}

.rv-score-stars i {
    margin: 0 1px;
}

.rv-score-count {
    margin-bottom: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
}

.rv-score-split {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: .92rem;
    font-weight: 700;
}

.rv-score-split small {
    font-weight: 500;
    color: rgba(255, 255, 255, .6);
}

.rv-score-split i {
    margin-right: 4px;
    color: var(--rv-primary);
}

/* ---------- Sections ---------- */
.rv-section {
    padding: clamp(40px, 5vw, 72px) 0;
}

.rv-tight {
    padding-top: 0;
    padding-bottom: 8px;
}

.rv-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid var(--rv-line);
    border-radius: 22px;
}

.rv-bar-row {
    display: grid;
    grid-template-columns: 64px 1fr 40px;
    align-items: center;
    gap: 14px;
    font-size: .88rem;
    font-weight: 700;
}

.rv-bar {
    height: 10px;
    overflow: hidden;
    background: var(--rv-soft);
    border-radius: 999px;
}

.rv-bar span {
    display: block;
    height: 100%;
    min-width: 0;
    background: linear-gradient(90deg, var(--rv-primary), var(--rv-deep));
    border-radius: inherit;
}

.rv-bar-count {
    text-align: right;
    color: var(--rv-muted);
}

/* ---------- Filters ---------- */
.rv-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.rv-filters button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #fff;
    border: 1.5px solid var(--rv-line);
    border-radius: 999px;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    color: var(--rv-ink);
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.rv-filters button i {
    color: var(--rv-primary);
}

.rv-filters button span {
    padding: 1px 8px;
    background: var(--rv-soft);
    border-radius: 999px;
    font-size: .75rem;
    color: var(--rv-deep);
}

.rv-filters button:hover {
    border-color: var(--rv-primary);
}

.rv-filters button.is-active {
    background: var(--rv-primary);
    border-color: var(--rv-primary);
    color: var(--rv-ink);
}

.rv-filters button.is-active i {
    color: var(--rv-ink);
}

.rv-filters button.is-active span {
    background: rgba(255, 255, 255, .6);
    color: var(--rv-ink);
}

.rv-filters button:focus-visible {
    outline: 3px solid var(--rv-ink);
    outline-offset: 2px;
}

/* ---------- Review cards ---------- */
.rv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.rv-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--rv-line);
    border-radius: 22px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.rv-card:hover {
    border-color: var(--rv-primary);
    box-shadow: 0 20px 40px -28px rgba(37, 16, 27, .45);
    transform: translateY(-3px);
}

.rv-card[hidden] {
    display: none;
}

.rv-card-stars {
    font-size: 1.05rem;
    color: var(--rv-star);
}

.rv-text {
    margin: 0;
    font-size: .98rem;
    line-height: 1.65;
    color: #3b2a33;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.rv-text.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rv-text.is-clamped.is-open {
    display: block;
}

.rv-more {
    align-self: flex-start;
    margin-top: -6px;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    color: var(--rv-deep);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rv-more:focus-visible {
    outline: 3px solid var(--rv-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.rv-card-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--rv-soft);
}

.rv-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rv-primary), var(--rv-deep));
    border-radius: 50%;
    font-weight: 800;
    color: #fff;
}

.rv-who {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.rv-who strong {
    font-size: .95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rv-who small {
    font-size: .78rem;
    color: var(--rv-muted);
}

.rv-src {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--rv-soft);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    color: var(--rv-deep);
}

.rv-src-google {
    background: #fff;
    border: 1px solid var(--rv-line);
    color: #4b5563;
}

.rv-more-wrap {
    margin-top: 32px;
    text-align: center;
}

.rv-nomatch {
    margin: 24px 0 0;
    text-align: center;
    color: var(--rv-muted);
}

.rv-nomatch[hidden] {
    display: none;
}

.rv-empty {
    max-width: 480px;
    margin: 0 auto;
    padding: 44px 28px;
    text-align: center;
    background: var(--rv-soft);
    border: 1.5px dashed var(--rv-primary);
    border-radius: 24px;
}

.rv-empty i {
    font-size: 2.4rem;
    color: var(--rv-primary);
}

.rv-empty h2 {
    margin: 10px 0 6px;
    font-size: 1.4rem;
    font-weight: 800;
}

.rv-empty p {
    margin: 0;
    color: var(--rv-muted);
}

/* ---------- CTA banner ---------- */
.rv-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(28px, 5vw, 52px);
    color: #fff;
    background: linear-gradient(135deg, var(--rv-plum) 0%, var(--rv-plum-2) 100%);
    border-radius: 28px;
}

.rv-banner::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: 46%;
    height: 180%;
    background: radial-gradient(closest-side, rgba(255, 103, 176, .28), transparent 70%);
    pointer-events: none;
}

.rv-banner > * {
    position: relative;
}

.rv-banner-eyebrow {
    margin-bottom: 8px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rv-primary);
}

.rv-banner h2 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.rv-banner p {
    margin: 0;
    max-width: 520px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
}

.rv-btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--rv-ink);
}

.rv-btn-light:hover {
    background: var(--rv-primary);
    border-color: var(--rv-primary);
    color: var(--rv-ink);
}

.rv-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.rv-btn-outline:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .rv-card,
    .rv-btn {
        transition: none;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
    .rv-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rv-score {
        max-width: 420px;
    }

    .rv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rv-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Phone ---------- */
@media (max-width: 575.98px) {
    .rv-container {
        padding: 0 16px;
    }

    .rv-grid {
        grid-template-columns: 1fr;
    }

    .rv-actions .rv-btn {
        flex: 1 1 100%;
    }

    .rv-breakdown {
        padding: 20px 18px;
    }

    .rv-bar-row {
        grid-template-columns: 56px 1fr 32px;
        gap: 10px;
    }

    .rv-card {
        padding: 20px 18px;
    }

    .rv-banner .rv-actions {
        width: 100%;
    }
}
