/* ─────────────────────────────────────────────────────────────
   REVIEWS PAGE — stars-as-heading hero + elegant review cards
   ───────────────────────────────────────────────────────────── */


/* ===== HERO — stars-as-heading ===== */

body main .rv-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 25px 75px 25px;
}

body main .rv-hero .rv-hero__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

body main .rv-hero .rv-hero__inner .rv-hero__heading {
    margin: 0;
    display: flex;
    justify-content: center;
}

body main .rv-hero .rv-hero__inner .rv-hero__heading .rv-hero__stars {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

body main .rv-hero .rv-hero__inner .rv-hero__heading .rv-hero__stars .rv-hero-star {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
}

body main .rv-hero .rv-hero__inner .rv-hero__heading .rv-hero__stars .rv-hero-star .rv-hero-star__bg,
body main .rv-hero .rv-hero__inner .rv-hero__heading .rv-hero__stars .rv-hero-star .rv-hero-star__fg {
    display: block;
    width: 100%;
    height: 100%;
}

body main .rv-hero .rv-hero__inner .rv-hero__heading .rv-hero__stars .rv-hero-star .rv-hero-star__bg {
    fill: transparent;
    stroke: rgba(15, 23, 42, 0.18);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body main .rv-hero .rv-hero__inner .rv-hero__heading .rv-hero__stars .rv-hero-star .rv-hero-star__fg {
    position: absolute;
    top: 0;
    left: 0;
    fill: var(--color-accent);
    stroke: var(--color-accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0);
    filter: drop-shadow(0 10px 25px rgba(255, 111, 60, 0.3));
}

body main .rv-hero .rv-hero__inner .rv-hero__caption {
    margin: 0;
    color: var(--color-muted);
    font-size: 18px;
    letter-spacing: 0.25px;
}

body main .rv-hero .rv-hero__inner .rv-hero__caption strong {
    color: var(--color-ink);
    font-weight: 700;
}


/* ===== REVIEW CARDS — elegant grid ===== */

body main .rv-list {
    background: var(--color-background);
    position: relative;
    z-index: 1;
}

body main .rv-list::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f6f7fc' d='M0,80 C360,0 1080,0 1440,80 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

body main .rv-list .content-inner .rv-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
    align-items: stretch;
    justify-content: flex-start;
}

body main .rv-list .content-inner .rv-grid .rv-card {
    position: relative;
    flex: 1 1 320px;
    max-width: 420px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 50px;
    background: var(--color-surface);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05), 0 1px 0 rgba(15, 23, 42, 0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body main .rv-list .content-inner .rv-grid .rv-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body main .rv-list .content-inner .rv-grid .rv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1), 0 1px 0 rgba(15, 23, 42, 0.04);
}

body main .rv-list .content-inner .rv-grid .rv-card:hover::before {
    opacity: 1;
}


/* CARD HEAD — avatar + identity */

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__head {
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: center;
}

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__head .rv-card__avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
}

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__head .rv-card__avatar .rv-card__logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__head .rv-card__avatar .rv-card__initials {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background: linear-gradient(135deg, #eef1f8 0%, #dbeafe 100%);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 25px rgba(28, 145, 228, 0.08);
}

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__head .rv-card__identity {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    flex: 1;
}

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__head .rv-card__identity .rv-card__company {
    margin: 0;
    font-weight: 700;
    color: var(--color-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__head .rv-card__identity .rv-card__company .rv-card__company-link {
    color: var(--color-ink);
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__head .rv-card__identity .rv-card__company .rv-card__company-link:hover {
    color: var(--color-primary);
}

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__head .rv-card__identity .rv-card__name {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}


/* CARD RATING */

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__rating {
    display: flex;
    flex-direction: row;
    gap: 10px;
}


/* CARD QUOTE — typographic treatment with subtle opening quote */

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__quote {
    position: relative;
    margin: 0;
    padding: 25px 0 0 25px;
}

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__quote::before {
    content: "\201C";
    position: absolute;
    top: -25px;
    left: -10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 100px;
    line-height: 1;
    color: rgba(28, 145, 228, 0.12);
    pointer-events: none;
    user-select: none;
}

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__quote p {
    position: relative;
    margin: 0;
    color: var(--color-ink);
    font-size: 17px;
    line-height: 1.7;
    white-space: pre-wrap;
    font-weight: 400;
}


/* CARD FOOTER */

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__foot {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

body main .rv-list .content-inner .rv-grid .rv-card .rv-card__foot .rv-card__date {
    color: var(--color-muted);
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: lowercase;
}


/* ===== EMPTY STATE ===== */

body main .rv-list .content-inner .rv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 50px 25px;
    text-align: center;
}

body main .rv-list .content-inner .rv-empty .rv-empty__title {
    margin: 0;
    color: var(--color-ink);
    font-weight: 700;
}

body main .rv-list .content-inner .rv-empty .rv-empty__subtitle {
    margin: 0;
    color: var(--color-muted);
    max-width: 600px;
}


/* ===== CTA — dark accent ===== */

body main .rv-cta {
    background: var(--color-ink);
    position: relative;
    z-index: 1;
}

body main .rv-cta::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%230f172a' d='M0,80 C360,0 1080,0 1440,80 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

body main .rv-cta .content-inner .rv-cta__actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 25px;
}


/* ===== STAR ICONS (inside review cards — solid filled or empty) ===== */

body main .rv-star {
    display: inline-block;
    width: 25px;
    height: 25px;
}

body main .rv-star.rv-star--filled {
    fill: var(--color-accent);
    stroke: var(--color-accent);
}

body main .rv-star.rv-star--empty {
    fill: transparent;
    stroke: rgba(15, 23, 42, 0.18);
    stroke-width: 2;
}


/* ===== VISUALLY HIDDEN — for screen-reader-only content ===== */

body main .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ===== RESPONSIVE ===== */

@media (min-width: 768px) {
    body main .rv-hero .rv-hero__inner .rv-hero__heading .rv-hero__stars .rv-hero-star {
        width: 80px;
        height: 80px;
    }
}

@media (min-width: 1024px) {
    body main .rv-hero .rv-hero__inner .rv-hero__heading .rv-hero__stars .rv-hero-star {
        width: 100px;
        height: 100px;
    }

    body main .rv-list .content-inner .rv-grid .rv-card {
        padding: 50px;
    }
}

@media (max-width: 767px) {
    body main .rv-hero .rv-hero__inner .rv-hero__heading .rv-hero__stars {
        gap: 10px;
    }

    body main .rv-hero .rv-hero__inner .rv-hero__heading .rv-hero__stars .rv-hero-star {
        width: 50px;
        height: 50px;
    }

    body main .rv-hero .rv-hero__inner .rv-hero__caption {
        font-size: 16px;
    }

    body main .rv-list .content-inner .rv-grid .rv-card {
        padding: 25px;
    }
}
