/* Techromatic - testimonials
 *
 * Rotating quotes band with an ASCII hover canvas. Lived on the pricing page
 * and was named .tr-pricing-testimonials; moved to /contact and renamed,
 * because social proof belongs next to the form rather than next to a price.
 * Extracted to its own file so it can be enqueued anywhere without dragging
 * the pricing tier table along with it.
 *
 * Pairs with js/tr-testimonials-canvas.js and the rotation script in
 * functions.php.
 */

/* ===================================================================
   TESTIMONIALS - dark purple rotating quotes band
   =================================================================== */

.tr-testimonials {
    background: var(--mv-color-indigo);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle dot-grid overlay */
.tr-testimonials::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--tr-iv-wash) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* ASCII hover canvas background */
.tr-testimonials-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.tr-testimonials__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.tr-testimonials__track {
    position: relative;
    min-height: 180px;
}

.tr-testimonial__item {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    margin: 0;
    padding: 0;
}

.tr-testimonial__item.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.tr-testimonial__quote {
    font-family: var(--tr-font-display);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 400;
    font-style: italic;
    line-height: var(--tr-leading-relaxed);
    color: var(--mv-color-ivory);
    margin: 0 0 28px;
}

.tr-testimonial__cite {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-style: normal;
}

.tr-testimonial__name {
    font-family: var(--tr-font-display);
    font-size: var(--tr-size-body-sm);
    font-weight: var(--tr-weight-bold);
    color: var(--tr-iv-strong);
    letter-spacing: 0.03em;
}

.tr-testimonial__role {
    font-family: var(--tr-font-body);
    font-size: var(--tr-size-label);
    color: var(--tr-light-tertiary);
    letter-spacing: 0.02em;
}

/* Navigation - arrows + dots */
.tr-testimonial__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}
.tr-testimonial__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--tr-iv-muted);
    background: transparent;
    color: var(--tr-iv-soft);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.tr-testimonial__arrow:hover {
    border-color: var(--mv-color-ivory);
    color: var(--mv-color-ivory);
    background: rgba(251, 252, 239, 0.06);
}
.tr-testimonial__dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tr-testimonial__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tr-iv-muted);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.tr-testimonial__dot.is-active {
    background: var(--tr-iv-strong);
    transform: scale(1.3);
}

.tr-testimonial__dot:hover {
    background: var(--tr-iv-soft);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 1024px) {
    .tr-testimonials {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .tr-testimonials {
        padding: 48px 0;
    }

    .tr-testimonials__track {
        min-height: 220px;
    }
}
