/* ==========================================================================
   Google Reviews Section
   Figma node 1:168
   ========================================================================== */

.bc-reviews {
    --bc-reviews-per-page: 4;
    --bc-reviews-gap: 16px;
    background: #FAFAFA;
    padding: 120px 0;
}

/* --- Top: two-column header --- */
.bc-reviews__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.bc-reviews__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bc-reviews__header-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bc-reviews__subtitle {
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #D96F96;
    margin: 0;
}

.bc-reviews__title {
    font-family: 'Prata', serif;
    font-weight: 400;
    font-size: 60px;
    line-height: 72px;
    color: #0A0A0A;
    margin: 0;
}

.bc-reviews__desc {
    font-family: 'Mulish', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 40px;
    color: #0A0A0A;
    margin: 0;
}

/* --- Meta (right side) --- */
.bc-reviews__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.bc-reviews__rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bc-reviews__score {
    font-family: 'Prata', serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    color: #0A0A0A;
}

.bc-reviews__stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.bc-reviews__stars svg {
    display: block;
}

.bc-reviews__count {
    font-family: 'Mulish', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #3B3336;
    white-space: nowrap;
}

.bc-reviews__write-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0A0A0A;
    color: #fff;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.bc-reviews__write-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.bc-reviews__write-btn svg {
    flex-shrink: 0;
}

/* --- Slider --- */
.bc-reviews__slider {
    margin-bottom: 60px;
}

.bc-reviews__track {
    display: flex;
    gap: var(--bc-reviews-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.bc-reviews__track::-webkit-scrollbar {
    display: none;
}

/* --- Cards --- */
.bc-reviews__card {
    flex: 0 0 calc((100% - (var(--bc-reviews-per-page) - 1) * var(--bc-reviews-gap)) / var(--bc-reviews-per-page));
    min-width: 0;
    height: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(12, 12, 13, 0.05);
    padding: 24px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    scroll-snap-align: start;
}

.bc-reviews__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.bc-reviews__card-name {
    font-family: 'Prata', serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    color: #0A0A0A;
    margin: 0;
}

.bc-reviews__card-stars {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.bc-reviews__card-stars svg {
    display: block;
}

.bc-reviews__card-text {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    font-family: 'Mulish', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #3B3336;
}

.bc-reviews__card-text p {
    margin: 0;
}

.bc-reviews__card-logo {
    flex-shrink: 0;
}

.bc-reviews__card-logo svg {
    display: block;
    width: 61px;
    height: 20px;
}

/* --- Bottom: pagination + CTA --- */
.bc-reviews__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.bc-reviews__pagination {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    min-height: 2px;
}

.bc-reviews__pagination-bar {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    width: 80px;
    height: 2px;
    border-bottom: 2px solid #0A0A0A;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 0 !important;
}

.bc-reviews__pagination-bar:focus-visible {
    outline: 2px solid #0A0A0A;
    outline-offset: 2px;
}

.bc-reviews__pagination-bar.is-active {
    opacity: 1;
    padding: 0;
}

.bc-reviews__all-btn {
    display: inline-block;
    background: #0A0A0A;
    color: #fff;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    padding: 20px 36px;
    border-radius: 100px;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s;
}

.bc-reviews__all-btn:hover {
    opacity: 0.85;
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .bc-reviews {
        --bc-reviews-per-page: 2;
    }
}

@media (max-width: 768px) {
    .bc-reviews {
        --bc-reviews-per-page: 1;
        padding: 60px 0;
    }

    .bc-reviews__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        margin-bottom: 40px;
    }

    .bc-reviews__meta {
        align-items: flex-start;
    }

    .bc-reviews__title {
        font-size: 36px;
        line-height: 44px;
    }

    .bc-reviews__desc {
        font-size: 18px;
        line-height: 28px;
    }

    .bc-reviews__slider {
        margin-bottom: 40px;
    }

    .bc-reviews__all-btn {
        font-size: 18px;
        padding: 16px 28px;
    }

    .bc-reviews__pagination-bar {
        width: 50px;
    }
}
