/* ============================================================
   REVIEWS PAGE -- dark "stage" treatment matching page-about.php,
   page-services.php, page-faq.php, and page-contact.php. Same
   visual language: one dark panel (--card-public-bg-alt), a single
   soft radial glow top-right (--color-public-main-1/-2/-3), bold heading, eyebrow label.
   Review cards use --card-public-border for their border (same
   reasoning as faq.css), and the star rating now uses BOTH brand
   colors instead of one flat color for both filled and empty stars --
   --brand-primary for filled (matches the byline, which already used
   it) and --brand-secondary for empty, which until now was barely
   used anywhere on the public site.
   Text-color selectors are scoped under .reviews-stage from the
   start, same reasoning as services.css/contact.css/faq.css:
   assets/css/main.css's .public-main p/.public-main ul/.public-main a
   are more specific than a lone class and will silently win
   otherwise.
   Loaded only on page-reviews.php. */

/* ---- Stage ---- */
.reviews-stage {
    position: relative;
    overflow: hidden;
    background: var(--card-public-bg-alt);
    border-radius: 28px;
    padding: 56px 48px 64px;
    margin-top: 24px;
    color: var(--static-page-container-text);
}

.reviews-stage-glow {
    position: absolute;
    right: -20%;
    top: -35%;
    width: 820px;
    height: 820px;
    border-radius: 50%;
    background: radial-gradient(circle,
        color-mix(in srgb, var(--color-public-main-1) 45%, transparent) 0%,
        color-mix(in srgb, var(--color-public-main-2) 20%, transparent) 45%,
        var(--color-public-main-3) 75%);
    filter: blur(100px);
    pointer-events: none;
    animation: reviews-glow-drift 16s ease-in-out infinite;
}

@keyframes reviews-glow-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.1); }
}

.reviews-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--public-text-special);
    margin-bottom: 14px;
    position: relative;
}

.reviews-stage h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 18px;
    position: relative;
}

.reviews-stage .breadcrumbs {
    margin-bottom: 22px;
    position: relative;
}

.reviews-stage .breadcrumbs a,
.reviews-stage .breadcrumbs span {
    color: rgba(255, 255, 255, 0.6);
}

.reviews-stage .breadcrumbs a:hover {
    color: #fff;
}

.reviews-stage .reviews-intro-text {
    max-width: 720px;
    color: var(--static-page-container-text);
    font-size: 18px;
    line-height: 1.7;
    position: relative;
}

.reviews-stage .reviews-empty-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    position: relative;
}

/* ---- Reviews grid: bordered panels, same auto-fill treatment as
   faq.css's cards. ---- */
.reviews-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 56px;
}

.review-card {
    border: 1px solid var(--card-public-border);
    border-radius: 16px;
    padding: 28px;
    background: var(--card-public-bg);
    transition: transform 0.2s ease, background 0.2s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    background: var(--card-public-hover-bg);
}

.review-stars {
    font-size: 40px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.review-stars .filled {
    color: var(--brand-primary);
}

.review-stars .empty {
    color: var(--brand-secondary);
    opacity: 0.5;
}

.reviews-stage .review-text {
    margin: 0;
    color: var(--card-public-text);
    font-size: 16px;
    line-height: 1.6;
}

.reviews-stage .review-author {
    margin: 14px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-primary);
}

/* ---- Scroll reveal ----
   Progressive enhancement: elements are fully visible by default
   so a JS failure never hides content. assets/js/reviews-page.js
   adds .reveal-pending right before it starts observing, then swaps
   it for .is-visible as each element scrolls into view. Same logic
   as about-page.js/services-page.js/faq-page.js/contact-page.js. ---- */
[data-reveal] {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].reveal-pending {
    opacity: 0;
    transform: translateY(24px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reviews-stage-glow {
        animation: none;
    }

    [data-reveal] {
        transition: none;
    }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .reviews-stage {
        padding: 40px 24px 48px;
        border-radius: 20px;
    }

    .reviews-stage h1 {
        font-size: 34px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
