/* ==========================================================================
   GOOGLE REVIEWS SECTION & AUTO-SWAPPING REVIEWS GRID
   ========================================================================== */

.google-reviews-section {
    background: var(--bg-surface-gradient);
    padding-top: 6rem;
    padding-bottom: 6rem;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    position: relative;
}

@media (min-width: 640px) {
    .google-reviews-section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

@media (min-width: 1024px) {
    .reviews-header-desktop {
        text-align: left !important;
        margin-left: 0 !important;
        max-width: 48rem !important;
    }
}

.reviews-section-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

@media (min-width: 1024px) {
    .reviews-section-grid {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: start;
    }
}

.reviews-cards-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .reviews-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .reviews-cta-wrap {
        grid-column: span 2 / span 2;
    }
}

.rating-summary-card {
    background: #ffffff;
    border: 1px solid var(--hairline);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
}

.review-card-item {
    background: #ffffff;
    border: 1px solid var(--hairline);
    border-radius: 1.5rem;
    padding: 1.35rem;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 145px;
}

.review-card-item:hover {
    border-color: rgba(66, 133, 244, 0.3);
    box-shadow: 0 10px 25px -5px rgba(66, 133, 244, 0.08);
}

.review-card-item.is-fading {
    opacity: 0;
    transform: translateY(4px);
}

.rating-bar-track {
    background-color: #f1f3f4;
    height: 0.5rem;
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    border-radius: 9999px;
}

.rating-bar-fill {
    background-color: var(--g-yellow);
    display: block;
    height: 100%;
    border-radius: 9999px;
}

.btn-google-maps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
    border: 1px solid rgba(32, 33, 36, 0.15);
    background-color: #ffffff;
    color: var(--ink) !important;
    height: 2.75rem;
    padding: 0 1.25rem;
    font-size: 0.9375rem;
    width: 100%;
    margin-top: 1.5rem;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-google-maps:hover {
    background-color: #f8f9fa;
    border-color: rgba(66, 133, 244, 0.4);
}

.btn-review-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
    background-color: var(--ink);
    color: #ffffff !important;
    height: 2.75rem;
    padding: 0 1.25rem;
    font-size: 0.9375rem;
    text-decoration: none;
    box-shadow: 0 4px 14px -3px rgba(32, 33, 36, 0.25);
    transition: all 0.2s ease;
}

.btn-review-google:hover {
    background-color: var(--g-yellow);
    color: var(--ink) !important;
    box-shadow: 0 6px 20px -4px rgba(251, 188, 5, 0.4);
    filter: brightness(1.02);
}

.review-circle-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background-color: #f1f3f4;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: inherit;
}

.review-author-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #202124;
    line-height: 1.2;
}

.review-text-content {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #5f6368;
    margin-top: 0.75rem;
    flex-grow: 1;
}

.review-skeleton-bar {
    display: block;
    height: 0.75rem;
    width: 6rem;
    border-radius: 9999px;
    background-color: #f1f3f4;
}

.google-dots-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.google-dot-b { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background-color: #4285f4; }
.google-dot-r { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background-color: #ea4335; }
.google-dot-y { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background-color: #fbbc05; }
.google-dot-g { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background-color: #34a853; }

.star-gold {
    color: #fbbc05;
    fill: currentColor;
}

.review-dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: rgba(32, 33, 36, 0.18);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.review-dot-indicator:hover {
    background-color: rgba(32, 33, 36, 0.35);
}

.review-dot-indicator.active {
    width: 22px;
    background-color: var(--ink);
}

.review-nav-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid var(--hairline);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 200ms ease;
    flex-shrink: 0;
}

.review-nav-btn:hover {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
    transform: scale(1.08);
}

.reviews-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 639px) {
    .google-reviews-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .rating-summary-card {
        padding: 1.25rem 1rem;
        border-radius: 1.25rem;
    }

    .review-card-item {
        padding: 1.15rem 1rem;
        border-radius: 1.25rem;
    }

    .reviews-cta-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .reviews-cta-wrap .btn-review-google {
        width: 100%;
        justify-content: center;
    }
}
