* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: #ffffff;
    color: #18201c;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}


/* =========================================================
   TOPO
========================================================= */

.topo {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e8eee9;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topo-conteudo {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 18px;
    font-weight: 600;
}

.logo strong {
    color: #16a765;
}

.logo-icone {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #16a765;
    color: white;
    font-weight: 900;
    font-size: 21px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
    font-weight: 600;
}

.menu > a:not(.botao-topo):hover {
    color: #16a765;
}

.botao-topo {
    background: #16a765;
    color: white;
    padding: 11px 18px;
    border-radius: 10px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(34, 197, 112, 0.15),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f3fff8,
            #ffffff
        );

    padding: 85px 0 75px;
    border-bottom: 1px solid #edf2ee;
}

.hero-conteudo {
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: #dcf8e8;
    color: #087443;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0 auto;
    max-width: 850px;
    font-size: clamp(40px, 7vw, 68px);
    line-height: 1.03;
    letter-spacing: -3px;
}

.hero h1 span {
    color: #16a765;
}

.hero-texto {
    max-width: 640px;
    margin: 24px auto;
    color: #657069;
    line-height: 1.7;
    font-size: 18px;
}

.busca {
    max-width: 720px;
    margin: 35px auto 20px;
    padding: 7px;
    display: flex;
    gap: 8px;
    background: white;
    border: 1px solid #dce5df;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(27, 65, 45, 0.08);
}

.busca input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 14px 16px;
    font-size: 16px;
    background: transparent;
}

.busca button {
    border: 0;
    cursor: pointer;
    background: #16a765;
    color: white;
    font-weight: 700;
    border-radius: 10px;
    padding: 0 27px;
}

.hero-acoes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.botao-principal,
.botao-secundario {
    padding: 13px 20px;
    border-radius: 10px;
    font-weight: 700;
}

.botao-principal {
    background: #16a765;
    color: white;
}

.botao-secundario {
    border: 1px solid #d8e1db;
    background: white;
}

.estatisticas {
    margin: 48px auto 0;
    max-width: 700px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #e3ebe6;
    padding-top: 28px;
}

.estatisticas > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.estatisticas strong {
    font-size: 23px;
    color: #087443;
}

.estatisticas span {
    font-size: 13px;
    color: #7a847e;
}


/* =========================================================
   SEÇÕES
========================================================= */

.secao {
    padding: 75px 0;
}

.secao-cinza {
    background: #f7f9f7;
}

.titulo-secao {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.titulo-secao h2 {
    margin: 5px 0 0;
    font-size: 31px;
    letter-spacing: -1px;
}

.titulo-secao p {
    color: #737d77;
    max-width: 420px;
    margin: 0;
    line-height: 1.6;
}

.mini-titulo {
    color: #16a765;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}


/* =========================================================
   CATEGORIAS
========================================================= */

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.categoria-card {
    padding: 19px;
    border: 1px solid #e2e8e4;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: 0.2s;
    background: white;
}

.categoria-card:hover {
    transform: translateY(-3px);
    border-color: #9ddfbc;
    box-shadow: 0 12px 30px rgba(20, 60, 38, 0.08);
}

.categoria-icone {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: #effbf4;
}

.categoria-card strong,
.categoria-card span {
    display: block;
}

.categoria-card span {
    margin-top: 4px;
    font-size: 12px;
    color: #849087;
}


/* =========================================================
   GRUPOS
========================================================= */

.grupos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.grupo-card {
    background: #ffffff;
    border: 1px solid #e1e8e3;
    border-radius: 18px;
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.grupo-card:hover {
    transform: translateY(-5px);
    border-color: #b9dfc9;
    box-shadow:
        0 18px 45px
        rgba(20, 50, 34, 0.10);
}


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

.grupo-capa {
    height: 190px;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            #f7fff9,
            #e2f6e9
        );
}


/* Fundo desfocado usando a própria imagem */

.grupo-capa::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.05),
            rgba(5, 50, 28, 0.08)
        );

    z-index: 1;
}


/* Foto real do grupo */

.grupo-capa img {
    width: 145px;
    height: 145px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #ffffff;

    box-shadow:
        0 10px 30px
        rgba(20, 70, 43, 0.18);

    position: relative;
    z-index: 2;

    transition:
        transform 0.25s ease;
}

.grupo-card:hover .grupo-capa img {
    transform: scale(1.04);
}


/* =========================================================
   GRUPO SEM FOTO
========================================================= */

.grupo-sem-imagem {
    width: 145px;
    height: 145px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    font-size: 58px;
    font-weight: 900;

    color: #16a765;

    background:
        radial-gradient(
            circle at center,
            #ffffff,
            #dcf6e6
        );

    border: 5px solid #ffffff;

    box-shadow:
        0 10px 30px
        rgba(20, 70, 43, 0.13);

    position: relative;
    z-index: 2;
}


/* =========================================================
   CATEGORIA
========================================================= */

.categoria-tag {
    position: absolute;

    left: 14px;
    bottom: 13px;

    z-index: 3;

    background:
        rgba(255, 255, 255, 0.96);

    padding: 7px 11px;

    border-radius: 100px;

    font-size: 11px;
    font-weight: 800;

    color: #087443;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.06);
}


/* =========================================================
   CONTEÚDO
========================================================= */

.grupo-conteudo {
    padding: 20px;
}

.grupo-conteudo h3 {
    margin: 0 0 10px;

    font-size: 18px;
    line-height: 1.35;

    color: #17211b;

    min-height: 49px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   DESCRIÇÃO
========================================================= */

.grupo-descricao {
    margin: 0 0 17px;

    color: #737d77;

    font-size: 14px;
    line-height: 1.55;

    min-height: 65px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   INFORMAÇÕES
========================================================= */

.grupo-info {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 12px 0;

    border-top: 1px solid #edf1ee;

    color: #6d7871;

    font-size: 12px;

    margin-bottom: 15px;
}

.grupo-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* =========================================================
   BOTÃO
========================================================= */

.abrir-grupo {
    display: block;

    width: 100%;

    text-align: center;

    background: #16a765;
    color: #ffffff;

    padding: 12px 15px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.abrir-grupo:hover {
    background: #108c54;
    transform: translateY(-1px);
}


/* =========================================================
   LISTA VAZIA
========================================================= */

.vazio {
    grid-column: 1 / -1;

    text-align: center;

    padding: 45px;

    color: #7b857f;

    background: #ffffff;

    border: 1px dashed #d9e2dc;

    border-radius: 15px;
}


/* =========================================================
   CTA
========================================================= */

.cta {
    padding: 70px 0;
    background: #087443;
    color: white;
}

.cta-conteudo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.cta span {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.7;
}

.cta h2 {
    margin: 7px 0 10px;
    font-size: 34px;
}

.cta p {
    margin: 0;
    opacity: 0.8;
}

.cta-botao {
    background: white;
    color: #087443;
    font-weight: 800;
    padding: 15px 23px;
    border-radius: 11px;
    white-space: nowrap;
}


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

footer {
    background: #101813;
    color: #b9c3bc;
    padding: 38px 0;
}

.rodape {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.rodape strong {
    color: white;
}

.rodape p {
    margin: 6px 0 0;
    font-size: 13px;
}


/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 900px) {

    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grupos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .titulo-secao {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

}


@media (max-width: 650px) {

    .menu > a:not(.botao-topo) {
        display: none;
    }

    .logo {
        font-size: 15px;
    }

    .logo-icone {
        width: 38px;
        height: 38px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .busca {
        flex-direction: column;
    }

    .busca button {
        padding: 14px;
    }

    .estatisticas {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .categorias-grid,
    .grupos-grid {
        grid-template-columns: 1fr;
    }

    .cta-conteudo {
        align-items: start;
        flex-direction: column;
    }

    .rodape {
        align-items: start;
        flex-direction: column;
    }

}
/* =========================================================
   CATÁLOGO - FILTROS
========================================================= */

.filtros-grupos {
    display: flex;
    align-items: end;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
}

.filtro-campo {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 210px;
    flex: 1;
}

.filtro-campo label {
    font-size: 13px;
    font-weight: 700;
}

.filtro-campo select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #ffffff;
    font: inherit;
    outline: none;
}

.filtro-campo select:focus {
    border-color: #25d366;
}

.aplicar-filtros {
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: #25d366;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.limpar-filtros {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 10px;
    text-decoration: none;
    color: #555555;
    background: #f1f1f1;
}


/* =========================================================
   PAGINAÇÃO
========================================================= */

.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.pagina-link {
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
    font-weight: 700;
}

.pagina-link:hover {
    border-color: #25d366;
    color: #25d366;
}

.pagina-atual {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
}

.pagina-atual:hover {
    color: #ffffff;
}

.pagina-reticencias {
    padding: 0 5px;
}


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

@media (max-width: 700px) {

    .filtros-grupos {
        align-items: stretch;
    }

    .filtro-campo {
        min-width: 100%;
    }

    .aplicar-filtros,
    .limpar-filtros {
        width: 100%;
    }

}
/* =========================================================
   LINK VER TODOS
========================================================= */

.titulo-secao-acoes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.titulo-secao-acoes p {
    margin: 0;
}

.ver-todos {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #25d366;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ver-todos:hover {
    transform: translateX(3px);
    opacity: 0.8;
}

@media (max-width: 700px) {

    .titulo-secao-acoes {
        align-items: flex-start;
    }

}