/*
 * Huteco — Reviews
 */

.huteco-reviews {
    --rv-bg:          #f8f7f4;
    --rv-bg-card:     #ffffff;
    --rv-bg-card-hov: #fdf5f6;
    --rv-border:      #e8e5e0;
    --rv-border-hov:  rgba(39,179,233,0.3);
    --rv-text:        #1a1a2e;
    --rv-text-body:   rgba(26,26,46,0.7);
    --rv-text-muted:  rgba(26,26,46,0.45);
    --rv-accent:      #27b3e9;
    --rv-gold:        #c47f00;
    --rv-gold-dim:    rgba(196,127,0,0.08);
    --rv-quote-color: rgba(196,127,0,0.15);
    --rv-avatar-bg:   rgba(39,179,233,0.1);
    --rv-tag-bg:      #f0ede8;
    --rv-fs-heading:  clamp(1.75rem, 3vw, 2.5rem);
    --rv-fs-score:    clamp(3rem, 5vw, 4rem);
    --rv-fs-text:     0.9375rem;
    --rv-fs-name:     0.9375rem;
    --rv-fs-meta:     0.8rem;
    --rv-radius:      16px;
    --rv-transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.huteco-reviews {
    background: var(--rv-bg);
    padding: var(--huteco-space-20, 5rem) 0;
    position: relative;
    overflow: hidden;
}

/* top border */
.huteco-reviews::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196,127,0,0.2), transparent);
}

.huteco-rv__inner {
    position: relative;
    z-index: 1;
    max-width: var(--huteco-container, 1200px);
    margin: 0 auto;
    padding: 0 var(--huteco-container-px, 1.5rem);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.huteco-rv__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.huteco-rv__heading {
    font-family: var(--huteco-font, sans-serif);
    font-size: var(--rv-fs-heading);
    font-weight: 900;
    color: var(--rv-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.huteco-rv__overall {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--rv-gold-dim);
    border: 1px solid rgba(240,192,64,0.2);
    border-radius: var(--rv-radius);
}

.huteco-rv__score-big {
    font-family: var(--huteco-font, 'Inter', sans-serif);
    font-size: var(--rv-fs-score);
    font-weight: 700;
    color: var(--rv-gold);
    line-height: 1;
}

.huteco-rv__score-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.huteco-rv__stars {
    display: flex;
    gap: 2px;
    color: var(--rv-gold);
}

.huteco-rv__score-meta span {
    font-size: var(--rv-fs-meta);
    color: var(--rv-text-muted);
}

/* ── Header layout: heading+score left, nav right ───────────────────────── */
.huteco-rv__header > div:first-child {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ── Nav arrows ─────────────────────────────────────────────────────────── */
.huteco-rv__nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.huteco-rv__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #d0ccc7;
    background: #ffffff;
    color: #1a1a2e;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    outline: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.huteco-rv__nav-btn svg {
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}

.huteco-rv__nav-btn:hover {
    background: var(--rv-accent);
    border-color: var(--rv-accent);
    color: #fff;
}

.huteco-rv__nav-btn.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ── Swiper container ───────────────────────────────────────────────────── */
.huteco-rv__swiper {
    margin-bottom: 0;
    padding-bottom: 0;
    overflow: visible;
}

/* ── CTA wrap spacing ───────────────────────────────────────────────────── */
.huteco-rv__cta-wrap {
    margin-top: 2.5rem;
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.huteco-rv__pagination.swiper-pagination {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1.75rem;
    bottom: auto;
    left: auto;
    width: 100%;
}

.huteco-rv__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #c8c4be;
    opacity: 1;
    margin: 0 !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.huteco-rv__pagination .swiper-pagination-bullet-active {
    background: var(--rv-accent);
    transform: scale(1.3);
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.huteco-rv__card {
    padding: 1.75rem;
    background: var(--rv-bg-card);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    transition: background var(--rv-transition), border-color var(--rv-transition), transform var(--rv-transition);
}

.huteco-rv__card:hover {
    background: var(--rv-bg-card-hov);
    border-color: var(--rv-border-hov);
    transform: translateY(-4px);
}

.huteco-rv__quote {
    color: var(--rv-quote-color);
    line-height: 0;
}

.huteco-rv__text {
    font-size: var(--rv-fs-text);
    color: var(--rv-text-body);
    line-height: 1.7;
    flex: 1;
}

.huteco-rv__card-stars {
    display: flex;
    gap: 2px;
    color: var(--rv-gold);
}

/* ── Reviewer ───────────────────────────────────────────────────────────── */
.huteco-rv__reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--rv-border);
}

.huteco-rv__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rv-avatar-bg);
    color: var(--rv-accent);
    font-family: var(--huteco-font, sans-serif);
    font-weight: 800;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.huteco-rv__reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.huteco-rv__reviewer-name {
    font-size: var(--rv-fs-name);
    font-weight: 700;
    color: var(--rv-text);
    font-family: var(--huteco-font, sans-serif);
}

.huteco-rv__reviewer-meta {
    font-size: var(--rv-fs-meta);
    color: var(--rv-text-muted);
}

.huteco-rv__tag {
    font-size: 0.75rem;
    color: var(--rv-text-muted);
    background: var(--rv-tag-bg);
    border: 1px solid var(--rv-border);
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
    margin-left: auto;
}

/* ── CTA ────────────────────────────────────────────────────────────────── */
.huteco-rv__cta-wrap {
    display: flex;
    justify-content: center;
}

.huteco-rv__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--rv-accent);
    color: #fff;
    font-family: var(--huteco-font, sans-serif);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(39,179,233,0.28);
    transition: background var(--rv-transition), transform var(--rv-transition), box-shadow var(--rv-transition);
}

.huteco-rv__cta:hover {
    background: #1a95c8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,179,233,0.4);
    color: #fff;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .huteco-rv__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .huteco-rv__header > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .huteco-rv__tag { display: none; }
    .huteco-rv__nav { display: none; }
}
