/* Ajustes finais carregados após todo o design responsivo. */

/* Benefícios compactos, sem card principal. */
.benefits {
    padding: 42px 0 46px;
}

.benefits .middle-section-heading {
    margin-bottom: 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 8px;
}

.benefit-item {
    display: grid;
    min-height: 0;
    padding: 14px 15px;
    grid-template-columns: 32px 1fr;
    column-gap: 11px;
    align-items: center;
    border-radius: 13px;
}

.benefit-item i {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
    margin: 0;
}

.benefit-item h4 {
    grid-column: 2;
    margin: 0 20px 2px 0;
    font-size: .9rem;
}

.benefit-item p {
    grid-column: 2;
    font-size: .62rem;
    line-height: 1.35;
}

.benefit-number {
    top: 10px;
    right: 10px;
    font-size: .5rem;
}

/* Esteira limpa de produtos, sem molduras. */
.flavors {
    padding: 72px 0 66px;
    color: #173621;
    background: #fff;
}

.flavors-heading h2,
.flavors-heading h2 em {
    color: #173621;
}

.flavors-heading h2 em {
    color: #6d8c74;
}

.flavors-heading .middle-kicker {
    color: #54725c;
}

.flavors-heading > p {
    color: #68736b;
}

.flavors-marquee {
    width: 100%;
    overflow: hidden;
}

.flavors-grid {
    width: max-content;
    gap: 42px;
    padding: 4px 0 12px;
    overflow: visible;
    will-change: transform;
}

.flavors-grid.is-moving {
    animation: flavorMarquee var(--flavor-duration) linear infinite;
}

@keyframes flavorMarquee {
    to {
        transform: translate3d(calc(var(--flavor-loop-width) * -1), 0, 0);
    }
}

@keyframes testimonialBrake {
    0% { transform: translateX(0) rotate(0); }
    16% { transform: translateX(-8px) rotate(-.55deg); }
    42% { transform: translateX(4px) rotate(.28deg); }
    66% { transform: translateX(-2px) rotate(-.14deg); }
    84% { transform: translateX(1px) rotate(.06deg); }
    100% { transform: translateX(0) rotate(0); }
}

.flavors .carousel-controls {
    display: none;
}

.flavor-card,
.flavor-card:nth-child(even) {
    flex: 0 0 205px;
    min-width: 205px;
    max-width: 205px;
    height: auto;
    min-height: 0;
    padding: 11px 11px 14px;
    overflow: hidden;
    border: 1px solid #dfe9e2;
    border-radius: 22px;
    color: #173621;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 54, 32, .09);
    transform: none;
}

/* Neutraliza as antigas cores individuais e mantém originais e clones iguais. */
.flavors-grid .flavor-card,
.flavors-grid .flavor-card:nth-child(n) {
    color: #173621;
    background: #fff;
}

.flavor-card:hover,
.flavor-card:nth-child(even):hover {
    border-color: #bfd3c4;
    box-shadow: 0 15px 34px rgba(20, 54, 32, .14);
    transform: translateY(-4px);
}

.flavor-img {
    width: 100%;
    height: 205px;
    margin: 0 0 10px;
    border-radius: 15px;
    background-color: #fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: none;
    mix-blend-mode: normal;
    transform: none;
}

.flavor-card:hover .flavor-img {
    transform: scale(1.025);
}

.flavor-index,
.flavor-arrow {
    display: none;
}

.flavor-name {
    min-height: 42px;
    padding: 0 5px;
    color: #173621;
    font-size: .92rem;
    text-align: center;
}

.flavor-name small {
    font-size: .5rem;
}

/* Avaliações em blocos de três no desktop e uma por vez no mobile. */
.testimonials {
    padding: 62px 0;
}

.testimonials-heading-row .carousel-controls {
    display: flex;
}

.testimonials-grid {
    display: flex;
    gap: 10px;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: auto;
}

.testimonials-grid.is-programmatic {
    scroll-snap-type: none;
}

.testimonial-card.is-braking {
    animation: testimonialBrake .88s cubic-bezier(.22, .68, .28, 1);
    transform-origin: center bottom;
}

.testimonial-card,
.testimonial-card:nth-child(2) {
    flex: 0 0 calc((100% - 20px) / 3);
    min-width: calc((100% - 20px) / 3);
    max-width: calc((100% - 20px) / 3);
    min-height: 0;
    padding: 18px 20px;
}

/* Todos os depoimentos preservam a mesma paleta dos cards originais. */
.testimonials-grid .testimonial-card:nth-child(n) {
    color: #173621;
    background: #fff;
}

.testimonials-grid .testimonial-card:nth-child(n) .quote,
.testimonials-grid .testimonial-card:nth-child(n) .author-info h5 {
    color: #173621;
}

.testimonials-grid .testimonial-card:nth-child(n) .author-info span {
    color: var(--text-gray);
}

.testimonials-grid .review-source {
    display: block;
    color: var(--text-gray);
    font-size: .7rem;
    text-decoration: none;
}

.testimonials-grid .review-source:hover {
    color: #173621;
    text-decoration: underline;
}

.testimonials-grid .avatar-initials {
    display: grid;
    flex: 0 0 35px;
    place-items: center;
    color: #fff;
    background-color: #396448;
    background-image: none;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.testimonial-card .quote {
    margin: 11px 0 15px;
    font-size: .9rem;
    line-height: 1.35;
}

/* A foto tem 700px: nunca é ampliada acima da resolução original. */
.lifestyle {
    background: #153522;
}

.lifestyle-backdrop {
    left: auto;
    right: 0;
    width: min(49vw, 700px);
    max-width: 700px;
    object-fit: contain;
    object-position: right center;
}

.lifestyle-overlay {
    background: linear-gradient(90deg, #102d1b 0%, rgba(16,45,27,.96) 38%, rgba(16,45,27,.55) 68%, rgba(16,45,27,.08) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .flavors-grid.is-moving {
        animation: none;
    }

    .testimonial-card.is-braking {
        animation: none;
    }
}

@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .benefit-item {
        min-width: 0;
        padding: 13px;
    }

    .flavor-card,
    .flavor-card:nth-child(even) {
        flex-basis: 180px;
        min-width: 180px;
        max-width: 180px;
    }

    .flavor-img {
        height: 175px;
    }

    .lifestyle-backdrop {
        width: 100%;
        max-width: 700px;
        object-fit: cover;
        object-position: center;
    }

    .testimonials-grid {
        gap: 12px;
    }

    .testimonial-card,
    .testimonial-card:nth-child(2) {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .benefits {
        padding: 38px 0 42px;
    }

    .benefits .middle-section-heading h2 {
        font-size: 2.15rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        grid-template-columns: 30px 1fr;
        padding: 11px 13px;
    }

    .benefit-item i {
        width: 30px;
        height: 30px;
    }

    .flavors {
        padding: 58px 0 52px;
    }

    .testimonials {
        padding: 50px 0;
    }
}
