:root {
    --verde-escuro: #0d4d24;
    --verde: #1c8a41;
    --verde-claro: #3fb96a;
    --verde-fundo: #0f5a33;
    --cinza-texto: #2b2f2e;
    --cinza-claro: #f4f7f5;
    --branco: #ffffff;
    --sombra: 0 8px 24px rgba(13, 77, 36, 0.15);
    --raio: 10px;
    --fonte: "Segoe UI", Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: var(--fonte);
    color: var(--cinza-texto);
    background: var(--cinza-claro);
    line-height: 1.6;
}

html.idioma-pendente body {
    visibility: hidden;
}

body.tema-escuro {
    --cinza-texto: #f3f3f3;
    --cinza-claro: #202020;
    --branco: #2c2c2c;
    --borda: rgba(255, 255, 255, 0.08);
    --sombra: 0 8px 24px rgba(0, 0, 0, 0.45);
    background: var(--cinza-claro);
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--verde-claro);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.faixa-topo {
    background: var(--verde-escuro);
    color: #e7f7ec;
    font-size: 0.85rem;
}

.faixa-topo-conteudo {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 6px 20px;
}

.faixa-topo a {
    text-decoration: none;
    color: #e7f7ec;
}

.faixa-topo a:hover {
    text-decoration: underline;
}

.cabecalho {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--branco);
    box-shadow: var(--sombra);
    border-bottom: 1px solid var(--borda, transparent);
}

#topo,
section[id] {
    scroll-margin-top: 130px;
}

.cabecalho .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo img {
    height: 48px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    font-weight: 600;
    color: var(--cinza-texto);
    transition: color 0.2s ease;
}

.menu a:hover {
    color: var(--verde);
}

.botao-tema {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 34px;
    height: 34px;
}

.botao-tema img {
    width: 100%;
    height: 100%;
}

.seletor-idioma {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--cinza-texto);
    font-size: 0.82rem;
    font-weight: 600;
}

.seletor-idioma select {
    border: 1px solid var(--borda, #cfd8d3);
    border-radius: 6px;
    padding: 5px 6px;
    background: var(--cinza-claro);
    color: var(--cinza-texto);
    font: inherit;
}

.botao-menu-mobile {
    display: none;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--verde-escuro);
}

/* Hero */
.hero {
    background: linear-gradient(180deg, rgba(13, 77, 36, 0.85), rgba(15, 90, 51, 0.9)), url("assets/img/digital_fundo_verde.png") center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 90px 20px;
}

.selo-anos {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.hero p {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 28px;
    opacity: 0.95;
}

.botao {
    display: inline-block;
    background: var(--verde-claro);
    color: #06280f;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.botao:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* Seções */
.secao {
    padding: 70px 0;
}

.secao-titulo {
    text-align: center;
    margin-bottom: 40px;
}

.secao-titulo h2 {
    color: var(--verde-escuro);
    font-size: 2rem;
    margin-bottom: 8px;
}

body.tema-escuro .secao-titulo h2 {
    color: var(--verde-claro);
}

.secao-titulo p {
    color: #5b6560;
}

body.tema-escuro .secao-titulo p {
    color: #c7c7c7;
}

.secao-alt {
    background: var(--branco);
}

/* Serviços */
.servicos-grade {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.servico-card {
    background: var(--branco);
    border-radius: var(--raio);
    padding: 30px 24px;
    box-shadow: var(--sombra);
    border-top: 4px solid var(--verde);
    text-align: center;
}

.servico-card .icone {
    font-size: 2.4rem;
    margin-bottom: 14px;
}

.servico-card h3 {
    color: var(--verde-escuro);
    margin-bottom: 10px;
}

body.tema-escuro .servico-card h3 {
    color: var(--verde-claro);
}

/* Sobre */
.sobre-grade {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.sobre-card {
    background: var(--branco);
    border-radius: var(--raio);
    padding: 24px;
    box-shadow: var(--sombra);
}

.sobre-card h3 {
    color: var(--verde);
    margin-top: 0;
}

/* Depoimentos */
.depoimentos-grade {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.depoimento-card {
    background: var(--branco);
    border-radius: var(--raio);
    padding: 26px;
    box-shadow: var(--sombra);
}

.depoimento-card p {
    font-style: italic;
    margin-top: 0;
}

.depoimento-card strong {
    color: var(--verde);
}

/* Contato */
.contato-grade {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contato-info h3 {
    color: var(--verde-escuro);
}

body.tema-escuro .contato-info h3 {
    color: var(--verde-claro);
}

.contato-info ul {
    list-style: none;
    padding: 0;
}

.contato-info li {
    margin-bottom: 12px;
}

.formulario {
    background: var(--branco);
    padding: 30px;
    border-radius: var(--raio);
    box-shadow: var(--sombra);
}

.campo {
    margin-bottom: 18px;
}

.campo label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--borda, #cfd8d3);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--cinza-claro);
    color: var(--cinza-texto);
}

.campo textarea {
    resize: vertical;
    min-height: 110px;
}

.campo-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.campo-consentimento label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 0.9rem;
}

.campo-consentimento input {
    width: auto;
    margin-top: 3px;
}

.mensagem-status {
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-weight: 600;
    display: none;
}

.mensagem-status.sucesso {
    display: block;
    background: #dff5e4;
    color: #14602f;
    border: 1px solid #9adcb2;
}

.mensagem-status.erro {
    display: block;
    background: #fde2e2;
    color: #9c2020;
    border: 1px solid #f3a6a6;
}

/* Localização */
.mapa-wrapper {
    border-radius: var(--raio);
    overflow: hidden;
    box-shadow: var(--sombra);
}

.mapa-wrapper iframe {
    width: 100%;
    display: block;
}

/* WhatsApp */
.contato-info a {
    color: var(--verde);
    font-weight: 600;
    text-decoration: none;
}

.contato-info a:hover {
    text-decoration: underline;
}

.botao-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    z-index: 200;
    transition: transform 0.2s ease;
}

.botao-whatsapp:hover {
    transform: scale(1.08);
}

/* Aviso de cookies */
.aviso-cookies {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    background: var(--verde-escuro);
    color: #eafaf0;
    padding: 18px 100px 18px 24px;
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.25);
}

.aviso-cookies.visivel {
    display: flex;
}

.aviso-cookies[hidden] {
    display: none;
}

.aviso-cookies-texto {
    flex: 1 1 320px;
}

.aviso-cookies-texto p {
    margin: 0;
    font-size: 0.9rem;
}

.aviso-cookies-botoes {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.botao-cookies-recusar {
    background: transparent;
    border: 1px solid #cdf5da;
    color: #cdf5da;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.botao-cookies-recusar:hover {
    background: #cdf5da;
    color: var(--verde-escuro);
}

/* Rodapé */
.rodape {
    background: var(--verde-escuro);
    color: #eafaf0;
    text-align: center;
    padding: 30px 20px;
}

.rodape a {
    color: #cdf5da;
}

.botao-topo {
    display: inline-block;
    margin-top: 14px;
    background: transparent;
    border: 1px solid #cdf5da;
    color: #cdf5da;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.botao-topo:hover {
    background: #cdf5da;
    color: var(--verde-escuro);
}

/* Responsivo */
@media (max-width: 780px) {
    .menu ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--branco);
        flex-direction: column;
        gap: 0;
        display: none;
        box-shadow: var(--sombra);
    }

    .menu ul.aberto {
        display: flex;
    }

    .menu ul li {
        border-top: 1px solid #eee;
    }

    .menu ul li a {
        display: block;
        padding: 14px 20px;
    }

    .botao-menu-mobile {
        display: block;
    }

    .seletor-idioma-rotulo {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .contato-grade {
        grid-template-columns: 1fr;
    }

    .contato-grade {
        gap: 24px;
    }

    .botao-whatsapp {
        right: 16px;
        bottom: 84px;
    }

    .faixa-topo-conteudo {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .aviso-cookies {
        padding: 18px 20px;
    }

    .aviso-cookies-botoes {
        width: 100%;
        justify-content: flex-end;
    }
}
