/*--------------------------------------------------------------
# Comunidade no WhatsApp (#comunidade) e botão "Faça parte da comunidade"
--------------------------------------------------------------*/

/* Botão usado em vários pontos do site */
.btn-comunidade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background-color: #D61F69;
    color: #fff;
    font-family: var(--nav-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 6px 0 rgba(140, 12, 66, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-comunidade i {
    font-size: 1.1em;
}

.btn-comunidade:hover,
.btn-comunidade:focus-visible {
    background-color: #E5307A;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 rgba(140, 12, 66, 0.45);
}

.btn-comunidade:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 rgba(140, 12, 66, 0.45);
}

.btn-comunidade:focus-visible {
    outline: 3px solid #BBDF32;
    outline-offset: 3px;
}

/* No contato e no rodapé */
.btn-comunidade--contato {
    margin-top: 22px;
    font-size: 16px;
}

.btn-comunidade--rodape {
    margin-top: 18px;
    min-height: 42px;
    padding: 0 18px;
    font-size: 14px;
    box-shadow: none;
}

.btn-comunidade--rodape:hover,
.btn-comunidade--rodape:focus-visible {
    box-shadow: none;
}

/* ---------- Seção ---------- */
.comunidade {
    padding: 0 0 104px;
    background-color: #fff;
}

.comunidade .comunidade__card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
    padding: 64px 64px 64px 72px;
    border-radius: 36px;
    background-color: #BBDF32;
    color: #2B0645;
}

/* Pontilhado suave de "costura" no fundo */
.comunidade .comunidade__card::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 2px dashed rgba(43, 6, 69, 0.18);
    border-radius: 26px;
    pointer-events: none;
}

.comunidade .comunidade__text {
    position: relative;
}

.comunidade .comunidade__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px 0;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    background-color: #fff;
    color: #2B0645;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.comunidade .comunidade__eyebrow i {
    color: #25D366;
    font-size: 16px;
}

.comunidade .comunidade__title {
    margin: 0 0 16px 0;
    font-family: var(--heading-font);
    font-size: clamp(2.1rem, 4.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: #2B0645;
}

.comunidade .comunidade__title em {
    font-style: normal;
    color: #59058B;
}

.comunidade .comunidade__lead {
    max-width: 44ch;
    margin: 0 0 30px 0;
    font-size: 18px;
    line-height: 1.6;
    color: #3A1756;
}

/* Adesivos */
.comunidade .comunidade__stickers {
    position: relative;
    min-height: 320px;
}

.comunidade .comunidade__bubble,
.comunidade .comunidade__wa {
    position: absolute;
    border: 5px solid #fff;
    box-shadow: 0 10px 0 rgba(43, 6, 69, 0.16);
    animation: comunidade-flutua 5s ease-in-out infinite;
}

.comunidade .comunidade__bubble {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 28px 28px 28px 8px;
    font-family: var(--heading-font);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 800;
    white-space: nowrap;
}

.comunidade .comunidade__bubble i {
    font-size: 0.95em;
}

.comunidade .comunidade__bubble--roxo {
    top: 6%;
    left: 4%;
    background-color: #59058B;
    color: #fff;
    transform: rotate(-5deg);
    --giro: -5deg;
}

.comunidade .comunidade__bubble--branco {
    top: 40%;
    right: 2%;
    border-color: #59058B;
    border-radius: 28px 28px 8px 28px;
    background-color: #fff;
    color: #59058B;
    transform: rotate(4deg);
    --giro: 4deg;
    animation-delay: -1.6s;
}

.comunidade .comunidade__bubble--rosa {
    bottom: 6%;
    left: 12%;
    background-color: #D61F69;
    color: #fff;
    transform: rotate(-2deg);
    --giro: -2deg;
    animation-delay: -3.2s;
}

.comunidade .comunidade__wa {
    top: -2%;
    right: 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    font-size: 40px;
    transform: rotate(10deg);
    --giro: 10deg;
    animation-delay: -2.4s;
}

@keyframes comunidade-flutua {
    0%, 100% { transform: translateY(0) rotate(var(--giro, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--giro, 0deg)); }
}

.btn-comunidade--grande {
    min-height: 58px;
    padding: 0 34px;
    font-size: 18px;
    letter-spacing: 0.01em;
}

/* ---------- Tablet e celular ---------- */
@media (max-width: 991px) {
    .comunidade .comunidade__card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 56px 48px 48px;
    }

    .comunidade .comunidade__stickers {
        min-height: 260px;
    }
}

@media (max-width: 575px) {
    .comunidade {
        padding: 0 0 72px;
    }

    .comunidade .comunidade__card {
        padding: 44px 26px 32px;
        border-radius: 28px;
    }

    .comunidade .comunidade__card::before {
        inset: 10px;
        border-radius: 20px;
    }

    .comunidade .comunidade__lead {
        font-size: 16px;
    }

    .comunidade .comunidade__stickers {
        min-height: 230px;
    }

    .comunidade .comunidade__bubble {
        padding: 12px 18px;
        border-width: 4px;
        font-size: 1rem;
    }

    .comunidade .comunidade__wa {
        width: 64px;
        height: 64px;
        border-width: 4px;
        font-size: 30px;
    }

    .btn-comunidade--grande {
        width: 100%;
        min-height: 54px;
        padding: 0 20px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-comunidade {
        transition: none;
    }

    .comunidade .comunidade__bubble,
    .comunidade .comunidade__wa {
        animation: none;
    }
}

.btn-comunidade {
    white-space: nowrap;
}
