/* ============================================================
   DEPOIMENTOS / PROVA SOCIAL | css/depoimentos.css
   Carousel de depoimentos + barra de logos em scroll infinito
   ============================================================ */

#depoimentos {
    position: relative;
    padding: 120px 0 100px;
    background-color: var(--bg-main);
    overflow: hidden;
    z-index: 2;
}

/* ─── Header ─── */
.depo-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto clamp(48px, 6vw, 80px);
}

.depo-label {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    padding: 5px 16px;
    border: 1px solid var(--card-border);
    border-radius: 3rem;
    background: var(--primary-glow);
}

.depo-header .section-title {
    font-size: clamp(3.2rem, 5vw, 5rem);
    line-height: 1.12;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.depo-header .accent-title-drama {
    font-family: var(--font-drama);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 0;
}

/* ─── Grid de Depoimentos ─── */
.depo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: clamp(56px, 7vw, 96px);
}

/* ─── Card de Depoimento ─── */
.depo-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: clamp(28px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition:
        border-color 0.45s ease,
        box-shadow 0.45s ease,
        transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.depo-card:hover {
    border-color: rgba(99, 102, 241, 0.18);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(99, 102, 241, 0.06);
    transform: translateY(-4px);
}

/* Aspas decorativas */
.depo-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 28px;
    font-family: var(--font-drama);
    font-size: 6rem;
    line-height: 1;
    color: rgba(99, 102, 241, 0.12);
    pointer-events: none;
}

/* Estrelas de avaliação */
.depo-stars {
    display: flex;
    gap: 3px;
}

.depo-stars svg {
    width: 18px;
    height: 18px;
    color: #FBBF24;
    fill: #FBBF24;
}

/* Texto do depoimento */
.depo-text {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 1.5vw, 1.55rem);
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

/* Autor */
.depo-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.depo-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.depo-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.depo-author-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.depo-author-role {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* ─── Barra de Logos (Infinite Scroll) ─── */
.logos-section {
    position: relative;
    padding-top: clamp(40px, 5vw, 64px);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.logos-label {
    text-align: center;
    font-family: var(--font-code);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.logos-track {
    display: flex;
    gap: 48px;
    animation: scrollLogos 30s linear infinite;
    width: max-content;
}

.logos-track:hover {
    animation-play-state: paused;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    opacity: 0.85;
}

.logo-item svg {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
}

.logo-item span {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Fade nas bordas do scroll */
.logos-wrapper {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 10%,
        #000 90%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 10%,
        #000 90%,
        transparent 100%
    );
}

@keyframes scrollLogos {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ─── Responsividade ─── */
@media (max-width: 1024px) {
    .depo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .depo-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    #depoimentos {
        padding: 80px 0 60px;
    }

    .depo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .depo-card:last-child {
        max-width: 100%;
    }

    .logos-track {
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .depo-card {
        padding: 24px;
        border-radius: 1.5rem;
    }
}
