/* ===================================================
   QRP Dynamic Google Reviews Showcase Stylesheet
   =================================================== */

.testimonials {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    padding: 3rem 5%;
    overflow: hidden;
}

@media (min-width: 992px) {
    .testimonials {
        min-height: calc(100vh - 88px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
        padding: 2.2rem 5% 2.5rem;
    }
}

.reviews-section-container {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

/* Header & Trust Bar */
.reviews-header-block {
    text-align: center;
    margin-bottom: 1.25rem;
}

.reviews-header-block .section-title {
    margin-bottom: 0.6rem;
}

.reviews-header-block .section-title h2 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.reviews-header-block .section-title h2 span {
    color: #0284c7;
}

.reviews-header-block .section-subtitle {
    font-size: 0.98rem;
    color: #64748b;
    margin: 0 auto;
    max-width: 620px;
}

/* Overall Google Trust Bar */
.google-trust-bar {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    margin-top: 0.85rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.google-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #1e293b;
    font-size: 0.92rem;
}

.google-brand-badge svg {
    width: 20px;
    height: 20px;
}

.google-rating-score {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
}

.google-stars-row {
    display: inline-flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 0.88rem;
}

.google-review-count {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
    border-left: 1px solid #cbd5e1;
    padding-left: 0.9rem;
}

.google-rate-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #eff6ff;
    color: #0284c7;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.google-rate-link:hover {
    background: #0284c7;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Filter Tabs */
.reviews-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0 0.8rem;
}

.review-filter-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.review-filter-btn:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
}

.review-filter-btn.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.review-filter-btn .filter-count {
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.72rem;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    font-weight: 700;
}

.review-filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Carousel Slider Stage */
.reviews-carousel-stage {
    position: relative;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0 42px;
    box-sizing: border-box;
}

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

.reviews-slider-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
    will-change: transform;
}

/* Review Card Design */
.google-review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    flex: 0 0 100%;
    min-width: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-height: 230px;
}

@media (min-width: 640px) {
    .google-review-card {
        flex: 0 0 calc((100% - 1.25rem) / 2);
        min-width: calc((100% - 1.25rem) / 2);
    }
}

@media (min-width: 1024px) {
    .google-review-card {
        flex: 0 0 calc((100% - 2.5rem) / 3);
        min-width: calc((100% - 2.5rem) / 3);
        padding: 1.25rem;
        min-height: 240px;
    }
}

.google-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.1);
    border-color: #bae6fd;
}

/* Card Header */
.review-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.6rem;
}

.review-author-group {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.92rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-family: var(--font-heading, 'Outfit', sans-serif);
}

.review-author-meta {
    min-width: 0;
}

.review-author-name {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-author-badge {
    font-size: 0.72rem;
    color: #f59e0b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.1rem;
}

.review-author-badge.regular-badge {
    color: #64748b;
}

.google-verified-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.9;
}

/* Star Rating & Date */
.review-rating-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.review-stars {
    display: inline-flex;
    gap: 1.5px;
    color: #f59e0b;
    font-size: 0.85rem;
}

.review-date-text {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Review Text */
.review-text-content {
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.88rem;
    line-height: 1.55;
    color: #334155;
    margin: 0 0 0.8rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Owner Reply Box */
.review-owner-response {
    background: #f8fafc;
    border-left: 3px solid #0284c7;
    border-radius: 0 8px 8px 0;
    padding: 0.55rem 0.75rem;
    margin-top: auto;
}

.owner-response-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0284c7;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.2rem;
}

.owner-response-text {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #475569;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Navigation Controls (Arrows) */
.reviews-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.reviews-nav-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

.reviews-nav-btn.prev {
    left: 0;
}

.reviews-nav-btn.next {
    right: 0;
}

.reviews-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

/* Dots Pagination */
.reviews-dots-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
}

.review-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.review-dot.active {
    width: 22px;
    background: #0284c7;
}

/* Footer Action Buttons */
.reviews-actions-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
}

.btn-rate-google-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    transition: all 0.2s ease;
}

.btn-rate-google-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-rate-google-cta svg {
    width: 17px;
    height: 17px;
}

.btn-share-insta-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #e11d48;
    border: 1px solid #fecdd3;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-share-insta-cta:hover {
    background: #fff1f2;
    border-color: #fda4af;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .reviews-carousel-stage {
        padding: 0 32px;
    }

    .reviews-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .google-trust-bar {
        border-radius: 16px;
        padding: 0.6rem 0.9rem;
    }

    .google-review-count {
        border-left: none;
        padding-left: 0;
        width: 100%;
        text-align: center;
    }
}
