/*==========================================================
    Home "Testimonials" (design C = featured quote) — Views/Shared/_testimonialPartial.cshtml
    Heading -> one review large on a dark card (client photos switch it, auto-advance)
    -> 4 stat boxes.
    Every class is prefixed ts- so the legacy .fifth-section / .testimonial-* rules in
    style.css cannot leak in. Colours come from tokens.css (accents follow --brand);
    stars stay gold in every theme.
==========================================================*/

.ts-section {
    padding: 80px clamp(18px, 5.5vw, 80px);
    background: var(--color-surface-muted);
    font-family: var(--font-sans);
    color: var(--color-text);
}
.ts-wrap { max-width: 1330px; margin: 0 auto; }
.ts-section ul { list-style: none; margin: 0; padding: 0; }

/* ---------- heading ---------- */
.ts-head { max-width: 800px; margin: 0 auto; text-align: center; }
.ts-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--color-primary-soft);
    border: 1px solid var(--color-primary-soft-border);
    color: var(--color-primary-hover);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.ts-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary-bright); }
.ts-h2 {
    margin: 16px 0 0;
    font-size: clamp(1.9rem, 2.6vw + .6rem, 2.9rem);
    line-height: var(--lh-tight);
    font-weight: 800;
    letter-spacing: -.5px;
    text-wrap: balance;
    color: var(--color-text);
}
/* span gradient: components.css (shared heading-highlight rule) */
.ts-lead { margin: 12px 0 0; font-size: 1.05rem; line-height: 1.75; color: var(--color-text-muted); }

/* ---------- featured card ---------- */
.ts-card {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    padding: 48px 56px;
    border-radius: 28px;
    background: #0f1a2e;
    color: #fff;
}
.ts-card::after {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand) 40%, transparent), transparent 70%);
    pointer-events: none;
}
.ts-card__mark {
    position: absolute;
    right: 48px;
    top: 20px;
    font-size: 140px;
    line-height: 1;
    color: color-mix(in srgb, var(--brand) 35%, transparent);
    pointer-events: none;
}
.ts-card__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }

.ts-quote { margin: 0; }
.ts-quote[hidden] { display: none; }
.ts-quote.is-in { animation: ts-in .4s var(--ease-standard); }
@keyframes ts-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ts-stars { display: inline-flex; gap: 3px; color: #f59e0b; font-size: 15px; }
.ts-quote blockquote {
    margin: 18px 0 0;
    max-width: 900px;
    font-size: clamp(1.15rem, 1vw + .8rem, 1.5rem);
    line-height: 1.6;
    font-weight: var(--fw-medium);
    color: #fff;
}
.ts-person { display: flex; align-items: center; gap: 14px; padding-top: 26px; }
.ts-person img { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid #0f1a2e; box-shadow: 0 0 0 2px var(--brand); }
.ts-person b { display: block; font-size: 15.5px; color: #fff; }
.ts-person span span { font-size: 13px; color: var(--color-neutral-300); }

.ts-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.ts-pick { display: flex; gap: 10px; }
.ts-pick button { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; opacity: .5; transition: opacity var(--duration-base); }
.ts-pick button:hover { opacity: .85; }
.ts-pick button[aria-pressed="true"] { opacity: 1; }
.ts-pick img { display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; }
.ts-pick button[aria-pressed="true"] img { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
.ts-pick button:focus-visible, .ts-pause:focus-visible { outline: var(--focus-ring-width) solid #fff; outline-offset: 3px; }
.ts-pause {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-neutral-300);
    font: inherit;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    cursor: pointer;
}
.ts-pause:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }
.ts-pause[hidden] { display: none; }

.ts-progress { position: relative; z-index: 1; height: 3px; margin-top: 30px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ts-progress i { display: block; width: 0; height: 100%; background: var(--gradient-primary); }
.ts-progress.is-run i { animation: ts-prog 7s linear forwards; }
@keyframes ts-prog { to { width: 100%; } }

/* ---------- stats ---------- */
.ts-section .ts-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.ts-stats li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.ts-stats__ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary); font-size: 19px; }
.ts-stats b { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--color-text); }
.ts-stats li span span { font-size: 13px; color: var(--color-text-subtle); }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .ts-card { padding: 36px 32px; }
    .ts-card__in { grid-template-columns: 1fr; gap: 24px; }
    .ts-side { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
    .ts-section .ts-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ts-section { padding: 56px 16px; }
    .ts-card { margin-top: 28px; padding: 28px 22px; }
    .ts-card__mark { right: 18px; font-size: 90px; }
    .ts-pick img { width: 46px; height: 46px; }
    .ts-pause { min-height: 44px; padding: 6px 16px; }
    .ts-section .ts-stats { gap: 10px; }
    .ts-stats li { padding: 14px; gap: 10px; }
    .ts-stats__ico { width: 38px; height: 38px; font-size: 16px; }
    .ts-stats b { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ts-quote.is-in { animation: none; }
}
