/* Doctor reviews — homepage section: centred header (same rhythm as Why Choose / Pricing)
   above a masonry wall of review cards (each card as tall as its review).
   Homepage system: Sora headings, Inter body, DM Sans names, brand blue #245cb5. */
.rv-section {
    --rv-blue: #245cb5;
    --rv-ink: #172d40;
    --rv-text: #334659;
    --rv-muted: #5b6c80;
    --rv-line: #e2eaf4;
    --rv-gap: 24px;
    position: relative;
    padding: clamp(64px, 7vw, 96px) 0;
    background: #f7faff;
    border-top: 1px solid #e5edf7;
    border-bottom: 1px solid #e5edf7;
    color: var(--rv-ink);
    overflow: hidden;
}
.rv-section *, .rv-section *::before, .rv-section *::after { box-sizing: border-box; }
.rv-section__inner { max-width: 1240px; margin-inline: auto; padding-inline: 28px; }

/* ── Header ────────────────────────────────────────────── */
.rv-section__header { display: flex; flex-direction: column; align-items: center; max-width: 760px; margin: 0 auto 48px; text-align: center; }
.rv-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 7px 12px;
    border: 1px solid #d4e1f3;
    border-radius: 999px;
    background: #edf3fc;
    color: #214f9f;
    font: 600 12px/1.4 'Inter', system-ui, sans-serif;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.rv-pill > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rv-section__title {
    margin: 0;
    color: var(--rv-ink);
    font: 700 clamp(30px, 3.2vw, 40px)/1.2 'Sora', system-ui, sans-serif;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.rv-section__lead { max-width: 760px; text-wrap: balance; margin: 14px 0 0; color: #52647a; font: 400 17px/1.7 'Inter', system-ui, sans-serif; }

.rv-section__source { margin: 10px 0 0; color: #8292a4; font: 400 13px/1.6 'Inter', system-ui, sans-serif; }

/* ── Review wall ───────────────────────────────────────
   Grid by default (reading order runs across rows). The homepage script upgrades it
   to masonry: cards go one by one into the shortest column, so the first row never moves. */
.rv-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: var(--rv-gap); }
.rv-wall.is-masonry { display: flex; align-items: flex-start; }
.rv-wall__col { display: flex; flex: 1 1 0; flex-direction: column; gap: var(--rv-gap); min-width: 0; }
.rv-wall__item.is-extra { display: none; }
.rv-wall.is-open .rv-wall__item.is-extra { display: block; animation: rv-in .35s ease both; }
@keyframes rv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Review card ───────────────────────────────────────── */
.rv-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--rv-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(23, 45, 64, .04), 0 14px 30px -24px rgba(23, 45, 64, .24);
    font-family: 'Inter', system-ui, sans-serif;
    transition: border-color .2s, box-shadow .2s;
}
.rv-card:hover { border-color: #cfdcee; box-shadow: 0 1px 2px rgba(23, 45, 64, .04), 0 20px 36px -24px rgba(23, 45, 64, .32); }

.rv-card__author { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rv-card__avatar { position: relative; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border: 1px solid #dce6f2; border-radius: 50%; background: #edf3fc; color: #245cb5; font: 600 15px/1 'Inter', system-ui, sans-serif; }
.rv-card__avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-card__avatar--1 { background: #edf5f3; border-color: #dcebe6; color: #397263; }
.rv-card__avatar--2 { background: #f1eef8; border-color: #e5dff0; color: #6a5492; }
.rv-card__avatar--3 { background: #f8f1e9; border-color: #eee3d6; color: #8b6437; }
.rv-card__identity { display: flex; flex-direction: column; min-width: 0; }
.rv-card__name { color: var(--rv-ink); font: 700 15.5px/1.35 'DM Sans', system-ui, sans-serif; letter-spacing: -.005em; }
.rv-card__meta { margin-top: 1px; color: var(--rv-muted); font-size: 13px; line-height: 1.45; }

.rv-card__text { margin: 0; }
.rv-card__text p { margin: 0; color: var(--rv-text); font-size: 15.5px; line-height: 1.7; }

.rv-card__exam { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding-top: 14px; border-top: 1px solid #edf2f8; color: #214f9f; font: 600 12.5px/1.4 'Inter', system-ui, sans-serif; }
.rv-card__exam svg { flex: 0 0 16px; width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: #e6effb; }

/* ── Show more ─────────────────────────────────────────── */
.rv-more { display: flex; justify-content: center; margin-top: 36px; }
.rv-more__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid #cfdcee;
    border-radius: 999px;
    background: #fff;
    color: var(--rv-blue);
    font: 600 14px/1.2 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s;
}
.rv-more__btn svg { width: 16px; height: 16px; transition: transform .2s; }
.rv-more__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.rv-more__btn:hover { background: var(--rv-blue); border-color: var(--rv-blue); color: #fff; }
.rv-more__btn:focus-visible { outline: 3px solid var(--rv-blue); outline-offset: 3px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1080px) {
    .rv-wall { --rv-gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .rv-section__inner { padding-inline: 20px; }
    .rv-section__header { margin-bottom: 32px; }
    .rv-section__title { font-size: clamp(26px, 7vw, 32px); }
    .rv-section__lead { font-size: 15.5px; }
    .rv-wall { --rv-gap: 14px; grid-template-columns: minmax(0, 1fr); }
    .rv-more { margin-top: 28px; }
    .rv-card { padding: 20px; }
    .rv-card__text p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .rv-card, .rv-more__btn, .rv-more__btn svg { transition: none; }
    .rv-wall.is-open .rv-wall__item.is-extra { animation: none; }
}
