/* ===========================================================================
   BR Testimonials - review carousel (dark theme, gold accent)
   =========================================================================== */
.pxl-ts {
    --pxl-ts-accent: #bd9a5f;
    --pxl-ts-star: #e0b978;
    position: relative;
}

/* ---------- Header ---------- */
.pxl-ts--header { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.pxl-ts--eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--pxl-ts-accent); font-size: 13px; font-weight: 600;
    letter-spacing: 2.4px; text-transform: uppercase; margin-bottom: 16px;
}
.pxl-ts--eyebrow-line { display: inline-block; width: 30px; height: 1px; background: var(--pxl-ts-accent); opacity: .75; }
.pxl-ts--title { font-size: clamp(28px, 3.4vw, 43px); line-height: 1.12; font-weight: 700; margin: 0 0 16px; letter-spacing: -.01em; }
.pxl-ts--intro { margin: 0 auto; font-size: 16px; line-height: 1.8; color: color-mix(in srgb, currentColor 62%, transparent); max-width: 600px; }

.pxl-ts--rating {
    display: inline-flex; align-items: center; gap: 12px; margin-top: 26px;
    padding: 11px 22px; border-radius: 100px;
    background: color-mix(in srgb, var(--pxl-ts-accent) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--pxl-ts-accent) 26%, transparent);
}
.pxl-ts--rating-value { font-size: 15px; font-weight: 700; color: #fff; }
.pxl-ts--rating-count { font-size: 13.5px; color: color-mix(in srgb, currentColor 60%, transparent); }
.pxl-ts--rating .pxl-ts-star { width: 16px; height: 16px; }

/* ---------- Stars ---------- */
.pxl-ts-stars { display: inline-flex; align-items: center; gap: 3px; line-height: 0; }
.pxl-ts-star { width: 17px; height: 17px; flex: 0 0 auto; }
.pxl-ts-star.is-on { fill: var(--pxl-ts-star); }
.pxl-ts-star.is-off { fill: rgba(255, 255, 255, .18); }

/* ---------- Carousel shell ---------- */
.pxl-ts--carousel { position: relative; }
.pxl-ts--viewport { overflow: hidden; }
.pxl-ts--track {
    display: flex; align-items: stretch; column-gap: 30px;
    will-change: transform;
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.pxl-ts--track.is-grabbing { transition: none; cursor: grabbing; }
.pxl-ts-slide { flex: 0 0 auto; display: flex; }

/* ---------- Card ---------- */
.pxl-ts-card {
    position: relative; width: 100%; display: flex; flex-direction: column;
    padding: 34px 32px 30px; border-radius: 18px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .8);
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), border-color .4s ease, box-shadow .5s ease;
    overflow: hidden;
}
.pxl-ts-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--pxl-ts-accent) 55%, transparent);
    box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .85);
}
.pxl-ts-card__quotemark {
    position: absolute; top: 22px; right: 24px; width: 48px; height: 48px;
    fill: var(--pxl-ts-accent); opacity: .16; pointer-events: none;
    transition: opacity .4s ease;
}
.pxl-ts-card:hover .pxl-ts-card__quotemark { opacity: .28; }
.pxl-ts-card__top { display: flex; align-items: center; position: relative; z-index: 1; }
.pxl-ts-card__quote {
    position: relative; z-index: 1; flex: 1 1 auto;
    margin: 18px 0 0; font-size: 15.5px; line-height: 1.75;
    color: color-mix(in srgb, currentColor 74%, transparent);
}

/* ---------- Card footer ---------- */
.pxl-ts-card__foot {
    display: flex; align-items: center; gap: 14px;
    margin-top: 24px; padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.pxl-ts-card__avatar {
    flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--pxl-ts-accent) 45%, transparent);
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .7);
}
.pxl-ts-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pxl-ts-card__id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pxl-ts-card__name {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 15.5px; font-weight: 600; line-height: 1.25; color: #fff;
}
.pxl-ts-card__verified { display: inline-flex; line-height: 0; }
.pxl-ts-card__tick { width: 16px; height: 16px; fill: var(--pxl-ts-accent); }
.pxl-ts-card__meta { font-size: 12.5px; letter-spacing: .3px; color: var(--pxl-ts-accent); }

/* ---------- Controls (small dots; arrows optional) ---------- */
.pxl-ts--controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 38px; }
.pxl-ts--arrow {
    -webkit-appearance: none; appearance: none;
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 48px !important; height: 48px !important; min-width: 0 !important; padding: 0 !important;
    border-radius: 50%; cursor: pointer; box-shadow: none;
    color: #fff; background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .16);
    transition: transform .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
}
.pxl-ts--arrow svg { width: 20px; height: 20px; }
.pxl-ts--arrow:hover {
    background: var(--pxl-ts-accent);
    border-color: var(--pxl-ts-accent);
    color: #0d0d0d; transform: translateY(-2px);
}
.pxl-ts--dots { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.pxl-ts--dot {
    -webkit-appearance: none; appearance: none;
    width: 9px !important; height: 9px !important; min-width: 0 !important; min-height: 0 !important;
    padding: 0 !important; margin: 0; border: 0 !important; border-radius: 50%; cursor: pointer;
    box-shadow: none !important;
    background: rgba(255, 255, 255, .26) !important;
    transition: width .35s ease, background .35s ease;
}
.pxl-ts--dot.is-active { width: 28px !important; border-radius: 6px; background: var(--pxl-ts-accent) !important; }

/* ===========================================================================
   GSAP scroll-reveal initial state (only once JS marks the section ready)
   =========================================================================== */
.pxl-ts.pxl-ready[data-animate="yes"] [data-ts-anim],
.pxl-ts.pxl-ready[data-animate="yes"] [data-ts-item] { opacity: 0; will-change: transform, opacity; }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 991px) {
    .pxl-ts--header { margin-bottom: 40px; }
    .pxl-ts--track { column-gap: 22px; }
    .pxl-ts-card { padding: 30px 26px 26px; }
}
@media (max-width: 575px) {
    .pxl-ts--controls { gap: 16px; margin-top: 32px; }
    .pxl-ts--arrow { width: 44px; height: 44px; }
    .pxl-ts-card { padding: 28px 24px 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pxl-ts.pxl-ready[data-animate="yes"] [data-ts-anim],
    .pxl-ts.pxl-ready[data-animate="yes"] [data-ts-item] { opacity: 1 !important; }
    .pxl-ts--track { transition: none; }
    .pxl-ts-card, .pxl-ts--arrow, .pxl-ts--dot { transition: none; }
}

/* Fallback where color-mix is unsupported */
@supports not (background: color-mix(in srgb, #000 10%, transparent)) {
    .pxl-ts--intro { color: rgba(255, 255, 255, .62); }
    .pxl-ts--rating { background: rgba(189, 154, 95, .08); border-color: rgba(189, 154, 95, .26); }
    .pxl-ts--rating-count { color: rgba(255, 255, 255, .6); }
    .pxl-ts-card__quote { color: rgba(255, 255, 255, .74); }
    .pxl-ts-card:hover { border-color: rgba(189, 154, 95, .55); }
    .pxl-ts-card__avatar { border-color: rgba(189, 154, 95, .45); }
}
