/* CondoLog v23.1.8 — avaliações aprovadas na landing page — v1.3.6 */
.section-testimonials {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 0%, rgba(31, 136, 255, .10), transparent 32rem),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.section-testimonials[hidden] { display: none !important; }

.testimonials-container { position: relative; z-index: 1; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.testimonials-grid[data-count="1"] {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}

.testimonials-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 520px));
    justify-content: center;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 230px;
    padding: 1.65rem;
    border: 1px solid rgba(11, 42, 75, .10);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 46px rgba(7, 35, 66, .09);
}

.testimonial-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: 1.15rem;
}

.testimonial-stars {
    display: inline-flex;
    gap: .15rem;
    font-size: 1.12rem;
    line-height: 1;
    letter-spacing: .01em;
}

.testimonial-stars span { color: #d8e0e8; }
.testimonial-stars span.is-active { color: #f3a712; }

.testimonial-label {
    flex: 0 0 auto;
    padding: .36rem .62rem;
    border-radius: 999px;
    background: #edf7f2;
    color: #15704c;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.testimonial-card blockquote {
    position: relative;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
    color: #17324d;
    font-size: 1.02rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.testimonial-card blockquote::before {
    content: "“";
    display: block;
    height: 1.2rem;
    margin-bottom: .45rem;
    color: #1f88ff;
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1;
}

.testimonial-card footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .8rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(11, 42, 75, .08);
}

.testimonial-author {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .22rem;
}

.testimonial-card footer strong {
    min-width: 0;
    color: #071f38;
    font-size: .96rem;
    overflow-wrap: anywhere;
}

.testimonial-condominio {
    color: #49657f;
    font-size: .80rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.testimonial-date {
    flex: 0 0 auto;
    color: #6b7f92;
    font-size: .78rem;
    text-transform: capitalize;
}

@media (max-width: 980px) {
    .testimonials-grid,
    .testimonials-grid[data-count="2"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .testimonials-grid,
    .testimonials-grid[data-count="1"],
    .testimonials-grid[data-count="2"] {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        min-height: 0;
        padding: 1.25rem;
        border-radius: 20px;
    }

    .testimonial-top,
    .testimonial-card footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* CondoLog v23.1.8 — paginação visual de avaliações — v1.3.6 */
.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .9rem 1.15rem;
    margin-top: 2rem;
    text-align: center;
}

.testimonials-count {
    color: #60758a;
    font-size: .88rem;
    font-weight: 700;
}

.testimonials-more-button {
    appearance: none;
    min-height: 46px;
    padding: .78rem 1.25rem;
    border: 1px solid rgba(31, 136, 255, .22);
    border-radius: 999px;
    background: #0b76e0;
    color: #fff;
    box-shadow: 0 12px 28px rgba(31, 136, 255, .18);
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.testimonials-more-button:hover {
    background: #0969c7;
    box-shadow: 0 14px 32px rgba(31, 136, 255, .24);
    transform: translateY(-1px);
}

.testimonials-more-button:focus-visible {
    outline: 3px solid rgba(31, 136, 255, .28);
    outline-offset: 3px;
}

.testimonials-more-button[hidden] { display: none !important; }

.testimonials-controls.is-complete .testimonials-count {
    color: #49657f;
}

@media (max-width: 680px) {
    .testimonials-controls {
        flex-direction: column;
        margin-top: 1.5rem;
    }

    .testimonials-more-button {
        width: 100%;
        max-width: 320px;
    }
}
