/*
|--------------------------------------------------------------------------
| Corpo e Alma Spa Urbano
|--------------------------------------------------------------------------
| Depoimentos
|--------------------------------------------------------------------------
|
| Estilos da seção de depoimentos/testemunhos.
|
*/


/* ==========================================================================
   SEÇÃO
   ========================================================================== */

.depoimentos {

    position: relative;

    padding: 120px 0;

    background: #f8f6f2;

    overflow: hidden;

}


/* ==========================================================================
   CONTAINER
   ========================================================================== */

.depoimentos .container {

    width: min(
        1200px,
        calc(100% - 40px)
    );

    margin: 0 auto;

}


/* ==========================================================================
   CABEÇALHO
   ========================================================================== */

.depoimentos .section-header {

    max-width: 760px;

    margin: 0 auto 60px;

    text-align: center;

}

.depoimentos .section-subtitle {

    display: inline-block;

    margin-bottom: 16px;

    color: #8a8f67;

    font-size: 0.72rem;

    font-weight: 600;

    letter-spacing: 0.16em;

    line-height: 1.4;

    text-transform: uppercase;

}

.depoimentos .section-title {

    margin-bottom: 20px;

    color: #30352f;

    font-size: clamp(
        2rem,
        3.5vw,
        3.2rem
    );

    font-weight: 400;

    line-height: 1.15;

}

.depoimentos .section-description {

    max-width: 650px;

    margin: 0 auto;

    color: #666;

    font-size: 0.95rem;

    line-height: 1.8;

}


/* ==========================================================================
   SLIDER
   ========================================================================== */

.testimonial-slider {

    position: relative;

    width: 100%;

    overflow: hidden;

}


/* ==========================================================================
   TRACK
   ========================================================================== */

.testimonial-track {

    display: flex;

    gap: 24px;

    width: 100%;

    transition: transform 0.6s ease;

    will-change: transform;

}


/* ==========================================================================
   CARD
   ========================================================================== */

.testimonial-card {

    flex: 0 0 calc(
        33.333333% - 16px
    );

    min-width: 0;

    padding: 32px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.05);

    border-radius: 22px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.06);

    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        box-shadow 0.3s ease;

}

.testimonial-card:hover {

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.09);

}

.testimonial-card.is-visible {

    opacity: 1;

    transform: translateY(0);

}


/* ==========================================================================
   ESTRELAS
   ========================================================================== */

.testimonial-rating {

    display: flex;

    align-items: center;

    gap: 4px;

    min-height: 20px;

    margin-bottom: 22px;

}

.testimonial-rating svg {

    display: block;

    width: 18px;

    height: 18px;

    flex: 0 0 18px;

    fill: #d9b14c;

}


/* ==========================================================================
   TEXTO
   ========================================================================== */

.testimonial-text {

    margin: 0 0 28px;

    color: #555;

    font-family: var(--font-body);

    font-size: 0.95rem;

    font-style: normal;

    line-height: 1.8;

}


/* ==========================================================================
   RODAPÉ
   ========================================================================== */

.testimonial-footer {

    display: flex;

    align-items: center;

    gap: 15px;

}


/* ==========================================================================
   FOTO
   ========================================================================== */

.testimonial-photo {

    width: 58px;

    height: 58px;

    margin: 0;

    flex: 0 0 58px;

    overflow: hidden;

    border-radius: 50%;

    background: #f1eee7;

}

.testimonial-photo img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

}


/* ==========================================================================
   AUTOR
   ========================================================================== */

.testimonial-author {

    min-width: 0;

}

.testimonial-author strong {

    display: block;

    margin-bottom: 3px;

    color: #30352f;

    font-size: 0.9rem;

    font-weight: 600;

    line-height: 1.4;

}

.testimonial-author span {

    display: block;

    color: #8a8f67;

    font-size: 0.78rem;

    line-height: 1.4;

}


/* ==========================================================================
   BOTÕES DE NAVEGAÇÃO
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| IMPORTANTE
|--------------------------------------------------------------------------
|
| Estes controles utilizam os caracteres:
|
| ❮
| ❯
|
| O tamanho do botão e do caractere são definidos explicitamente para
| impedir que regras globais alterem sua proporção.
|
*/

.testimonial-prev,
.testimonial-next {

    position: absolute;

    top: 50%;

    z-index: 20;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 46px;

    height: 46px;

    min-width: 46px;

    min-height: 46px;

    margin: 0;

    padding: 0;

    border: 1px solid rgba(
        53,
        92,
        74,
        0.14
    );

    border-radius: 50%;

    appearance: none;

    -webkit-appearance: none;

    background: #ffffff;

    color: #355c4a;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 20px;

    font-weight: 400;

    line-height: 1;

    text-align: center;

    cursor: pointer;

    box-shadow:
        0 8px 24px rgba(
            0,
            0,
            0,
            0.10
        );

    transform: translateY(-50%);

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;

}


/* ==========================================================================
   PREV
   ========================================================================== */

.testimonial-prev {

    left: 16px;

}


/* ==========================================================================
   NEXT
   ========================================================================== */

.testimonial-next {

    right: 16px;

}


/* ==========================================================================
   HOVER DOS BOTÕES
   ========================================================================== */

.testimonial-prev:hover,
.testimonial-next:hover {

    background: #8a8f67;

    border-color: #8a8f67;

    color: #ffffff;

    box-shadow:
        0 10px 28px rgba(
            0,
            0,
            0,
            0.14
        );

    transform:
        translateY(-50%)
        scale(1.04);

}


/* ==========================================================================
   FOCO
   ========================================================================== */

.testimonial-prev:focus-visible,
.testimonial-next:focus-visible {

    outline: 2px solid #8a8f67;

    outline-offset: 3px;

}


/* ==========================================================================
   DOTS
   ========================================================================== */

.testimonial-dots {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 12px;

    margin-top: 32px;

}

.testimonial-dot {

    display: block;

    width: 8px;

    height: 8px;

    min-width: 8px;

    min-height: 8px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #d6d6d6;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;

}

.testimonial-dot.active {

    background: #8a8f67;

    transform: scale(1.25);

}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1100px) {

    .depoimentos {

        padding: 100px 0;

    }

    .testimonial-card {

        flex: 0 0 calc(
            50% - 12px
        );

    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 768px) {

    .depoimentos {

        padding: 80px 0;

    }

    .depoimentos .container {

        width: calc(100% - 28px);

    }

    .depoimentos .section-header {

        margin-bottom: 42px;

    }

    .depoimentos .section-title {

        font-size: 2rem;

    }

    .depoimentos .section-description {

        font-size: 0.9rem;

    }

    .testimonial-track {

        gap: 16px;

    }

    .testimonial-card {

        flex: 0 0 100%;

        padding: 26px;

        border-radius: 18px;

    }

    .testimonial-prev,
    .testimonial-next {

        display: none;

    }

}


/* ==========================================================================
   MOBILE PEQUENO
   ========================================================================== */

@media (max-width: 480px) {

    .depoimentos {

        padding: 70px 0;

    }

    .depoimentos .section-title {

        font-size: 1.8rem;

    }

    .testimonial-card {

        padding: 24px;

    }

    .testimonial-text {

        font-size: 0.9rem;

    }

}


/* ==========================================================================
   REDUÇÃO DE MOVIMENTO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .testimonial-track {

        transition: none;

    }

    .testimonial-card {

        transition: none;

    }

    .testimonial-prev,
    .testimonial-next {

        transition: none;

    }

}


/* ==========================================================================
   CORREÇÃO — CABEÇALHO DA SEÇÃO NÃO DEVE FICAR OCULTO
   ========================================================================== */

.depoimentos .section-header.reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
