/* ============================================================
 * Reviews page additions
 * ============================================================ */

.hero-reviews { padding: 72px 0 48px; }

.reviews-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.reviews-hero-inner .hero-subtitle { max-width: 620px; margin: 0 auto 32px; }

/* Rating summary */
.rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    padding: 22px 32px;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-panel) 100%);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: 0 16px 40px -12px rgba(0,0,0,0.45);
}

.rating-summary-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-right: 28px;
    border-right: 1px solid var(--border);
}
.rs-num {
    font-size: 44px;
    font-weight: 900;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.04em;
}
.rs-stars {
    color: var(--blue-bright);
    font-size: 16px;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(212,175,55,0.4);
}
.rs-count {
    font-size: 12.5px;
    color: var(--text-mute);
    margin-top: 2px;
}

.rating-summary-google {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.rating-summary-google svg { width: 28px; height: 28px; flex-shrink: 0; }
.rating-summary-google strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.rating-summary-google span {
    display: block;
    font-size: 12px;
    color: var(--text-mute);
    line-height: 1.4;
    max-width: 260px;
}

/* ===== Reviews carousel ===== */
.section-reviews {
    background: var(--bg-deep);
    padding: 64px 0 72px;
    overflow: hidden;
}

.reviews-shell { position: relative; }

.reviews-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}

.reviews-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

.review-card {
    flex: 0 0 25%;
    padding: 0 8px;
    box-sizing: border-box;
}

.review-card > * {
    /* inner container styles — applied via the article element */
}

.review-card {
    /* Outer slot */
}

/* Inner card visuals */
.review-card {
    --card-pad: 24px;
}

.review-card::before { content: none; }

article.review-card {
    /* keep flex slot behavior; visuals on the inner article */
}

.review-card {
    display: block;
    color: inherit;
}

/* The article itself */
article.review-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-panel) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 22px 24px;
    margin: 0 8px;
    flex: 0 0 calc(25% - 16px);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}
article.review-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -16px rgba(0,0,0,0.6);
}

.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: hsl(var(--avatar-h, 200), 55%, 48%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 10px -2px rgba(0,0,0,0.4);
    letter-spacing: 0.02em;
}

.review-meta {
    flex: 1;
    min-width: 0;
}
.review-meta strong {
    display: block;
    font-size: 14.5px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.review-meta span {
    display: block;
    font-size: 12.5px;
    color: var(--text-dim);
    margin-top: 1px;
}

.review-google {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.85;
}

.review-stars {
    color: var(--blue-bright);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(212,175,55,0.35);
}
.review-stars .empty {
    color: rgba(255,255,255,0.18);
    text-shadow: none;
}

.review-text {
    font-size: 14px;
    color: var(--text-mute);
    line-height: 1.6;
    flex: 1;
}

/* Pagination dots */
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.reviews-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}
.reviews-dot:hover { background: rgba(255,255,255,0.3); }
.reviews-dot.is-active {
    background: var(--gradient-blue);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 12px rgba(212,175,55,0.5);
}

/* Responsive: 2 per page on tablet, 1 per page on mobile */
@media (max-width: 1024px) {
    article.review-card {
        flex: 0 0 calc(50% - 16px);
    }
    .rating-summary { flex-direction: column; gap: 18px; padding: 20px 24px; }
    .rating-summary-score { padding-right: 0; border-right: none; padding-bottom: 18px; border-bottom: 1px solid var(--border); width: 100%; }
}

@media (max-width: 640px) {
    .hero-reviews { padding: 48px 0 32px; }
    article.review-card {
        flex: 0 0 calc(100% - 16px);
        min-height: auto;
        padding: 18px 18px 20px;
    }
    .rating-summary { width: 100%; box-sizing: border-box; }
    .rating-summary-google { flex-direction: column; text-align: center; gap: 8px; }
    .rating-summary-google span { max-width: 100%; }
    .review-text { font-size: 13.5px; }
    .review-meta strong { font-size: 14px; }
}
