﻿/* ──────────────────────────────────────────────
   ProTemplate1 • TESTIMONIALS — stacked cards + logo marquee
   Respects: --primary-bg, --text-color, --accent, --accent-2
   ────────────────────────────────────────────── */

.pt1-testimonials {
    --_bg: var(--primary-bg, #0b1b2b);
    --_text: var(--text-color, #e7eef6);
    --_accent: var(--accent, #c96d36);
    --_accent2: var(--accent-2, #d88346);
    background: color-mix(in srgb, var(--_bg) 92%, #fff 8%);
    color: var(--_text);
    padding: clamp(42px, 6vw, 84px) 24px;
}

.pt1-testimonials__inner {
    max-width: min(1280px, 94vw);
    margin: 0 auto;
    text-align: left;
}

.pt1-testimonials__title {
    font-weight: 900;
    font-size: clamp(2rem, 4.8vw, 3.2rem);
    line-height: 1.08;
    margin: 0 0 clamp(18px, 3vw, 32px);
    position: relative;
    text-wrap: balance;
}

    .pt1-testimonials__title::after {
        content: "";
        display: block;
        width: 72px;
        height: 4px;
        margin-top: 10px;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--_accent), var(--_accent2));
    }

/* Stacked featured cards */
.t-stack {
    position: relative;
    display: grid;
    gap: 18px;
    margin-bottom: clamp(22px, 4vw, 38px);
}

.t-card {
    position: relative;
    padding: clamp(18px, 2.4vw, 26px);
    border-radius: 18px;
    background: color-mix(in srgb, var(--_bg) 86%, #fff 14%);
    border: 1px solid color-mix(in srgb, var(--_text) 14%, transparent);
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
    overflow: hidden;
}

.t-card--back {
    transform: translateY(16px) rotate(-1.6deg);
    z-index: 1;
    opacity: .92;
}

.t-card--front {
    transform: translateY(-6px) rotate(.8deg);
    z-index: 2;
}

/* Logo chip (top-right) */
.t-logo {
    position: absolute;
    top: 12px;
    right: 12px;
    max-height: 30px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    background: color-mix(in srgb, var(--_bg) 55%, transparent);
    border: 1px solid color-mix(in srgb, var(--_text) 12%, transparent);
    padding: 4px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* Avatar (bottom-left overlay) */
.t-avatar {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    border: 2px solid color-mix(in srgb, var(--_bg) 75%, #fff 25%);
}

/* Quote */
.t-quote {
    position: relative;
    padding-left: clamp(8px, 2vw, 10px);
    margin: 0 0 16px;
}

    .t-quote p {
        margin: 0;
        font-size: clamp(1.05rem, 1.9vw, 1.22rem);
        line-height: 1.6;
        color: color-mix(in srgb, var(--_text) 88%, transparent);
    }

.t-quote-mark {
    position: absolute;
    left: -8px;
    top: -2px;
    font-size: clamp(2.2rem, 4.2vw, 3rem);
    line-height: 1;
    color: var(--_accent2);
}

/* Meta */
.t-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-left: 72px; /* leave room for avatar */
}

.t-author strong {
    display: block;
    color: #fff;
    font-weight: 800;
}

.t-author span {
    display: inline-block;
    margin-right: 10px;
    color: color-mix(in srgb, var(--_text) 75%, transparent);
}

.t-company {
    color: color-mix(in srgb, var(--_text) 78%, transparent);
}

.t-stars {
    color: var(--_accent);
    letter-spacing: .15em;
    font-size: 1.05rem;
    user-select: none;
}

/* Reveal states */
[data-reveal] {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0,24px,0);
    transition: opacity .45s ease, transform .45s ease, filter .45s ease;
}

    [data-reveal].in {
        opacity: 1;
        filter: blur(0);
        transform: none;
    }

/* Logo marquee */
.t-logos {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.t-logos__track {
    display: flex;
    gap: 28px;
    align-items: center;
    padding: 8px 2px;
    animation: t-marquee 28s linear infinite;
}

.t-logos__item img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: saturate(.9) brightness(1.05) drop-shadow(0 2px 6px rgba(0,0,0,.25));
    background: #fff;
    border-radius: 6px;
    padding: 3px 6px;
    border: 1px solid color-mix(in srgb, #000 10%, transparent);
}

@keyframes t-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 820px) {
    .t-card--back {
        transform: translateY(10px) rotate(-1deg);
    }

    .t-card--front {
        transform: translateY(-4px) rotate(.6deg);
    }

    .t-meta {
        padding-left: 66px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t-logos__track {
        animation: none !important;
    }
}
