/* ========================================
   LANDING TESTIMONIAL — Testimonial Pelanggan
   Kode: Google Review + Manual Testimonial (struktur card sama).
   Mobile-first scroll-snap slider, tanpa library.
   Palette: GOLD. Prefix: landing-reviews-.
   ======================================== */

.landing-reviews {
    padding: 90px 24px;
    background-color: #0f1419;
    text-align: center;
    overflow: hidden;
}

.landing-reviews-heading {
    max-width: 640px;
    margin: 0 auto 44px;
}

.landing-reviews-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-light);
    margin: 0 0 10px;
}

.landing-reviews-subtitle {
    font-size: 1rem;
    color: var(--text-light-soft);
    margin: 0;
}

/* ── Slider container ─────────────────────────────────────────── */
.landing-reviews-slider {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.landing-reviews-slider::-webkit-scrollbar {
    display: none;
}

/* ── Track ────────────────────────────────────────────────────── */
.landing-reviews-grid {
    display: flex;
    gap: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.landing-reviews-grid::-webkit-scrollbar {
    display: none;
}

/* ── Card ─────────────────────────────────────────────────────── */
.landing-reviews-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    min-height: 0;
    min-width: 0;
    box-sizing: border-box;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.landing-reviews-card:hover,
.landing-reviews-card:focus-visible {
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}

/* ── Standardisasi area foto ──────────────────────────────────── */
.landing-reviews-avatar {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    overflow: hidden;
    border: 1px solid rgba(201, 161, 74, 0.35);
}

.landing-reviews-avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.landing-reviews-avatar img {
    display: block;
}

/* ── Body ──────────────────────────────────────────────────────── */
.landing-reviews-body {
    min-width: 0;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.landing-reviews-author {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.landing-reviews-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.landing-reviews-stars .is-filled {
    color: var(--gold-primary);
}

.landing-reviews-stars .is-empty {
    color: rgba(255, 255, 255, 0.18);
}

.landing-reviews-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light-soft);
    margin: 0 0 10px;
    overflow-wrap: break-word;
}

.landing-reviews-date {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* ── Navigasi slider ──────────────────────────────────────────── */
.landing-reviews-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(201, 161, 74, 0.45);
    background: rgba(15, 20, 25, 0.85);
    color: var(--gold-primary);
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.9;
    transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.landing-reviews-nav:hover {
    background: var(--gold-primary);
    color: #0f1419;
    opacity: 1;
}
.landing-reviews-nav:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}
.landing-reviews-prev { left: -16px; }
.landing-reviews-next { right: -16px; }

.landing-reviews-slider.is-slider .landing-reviews-nav {
    display: flex;
}

.landing-reviews-empty {
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

/* ── Breakpoint: LG ≥ 1024px → 4 card ─────────────────────────── */
@media (min-width: 1024px) {
    .landing-reviews-grid {
        overflow-x: auto;
        overflow-y: hidden;
    }
    .landing-reviews-card {
        flex: 0 0 calc((100% - 60px) / 4); /* gap 20px × 3 */
    }
}

/* ── Breakpoint: MD 768–1023px → 3 card ───────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
    .landing-reviews-grid {
        overflow-x: auto;
        overflow-y: hidden;
    }
    .landing-reviews-card {
        flex: 0 0 calc((100% - 40px) / 3); /* gap 20px × 2 */
    }
}

/* ── Mode statis: jumlah card ≤ kapasitas → tanpa slider artinya ─
      tetap tampil rapi tanpa tombol nav (opsional dari JS).        */
.landing-reviews-slider.is-fitted .landing-reviews-grid {
    overflow: visible;
}
.landing-reviews-slider.is-fitted .landing-reviews-nav {
    display: none;
}

/* ── Breakpoint: SM < 768px → 1 card ──────────────────────────── */
@media (max-width: 767px) {
    .landing-reviews {
        padding: 64px 16px;
    }
    .landing-reviews-grid {
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .landing-reviews-card {
        flex: 0 0 100%;
    }
    .landing-reviews-prev { left: 8px; }
    .landing-reviews-next { right: 8px; }
}