:root {
    --preto: #080b09;
    --grafite: #151a17;
    --verde-preto: #0b1a10;
    --verde-profundo: #123d24;
    --verde-primario: #1b5e20;
    --verde-medio: #2e7d32;
    --verde-vivo: #4caf50;
    --verde-musgo: #668b58;
    --verde-salvia: #a7c7a1;
    --verde-claro: #e8f5e9;
    --branco: #ffffff;
    --fundo: #f6f8f6;
    --texto: #243029;
    --texto-suave: #667169;
    --borda: #dfe7e1;
    --perigo: #b42318;
    --sombra: 0 18px 50px rgba(8, 26, 16, .08);
    --sombra-suave: 0 8px 24px rgba(8, 26, 16, .06);
    --raio: 18px;
    --largura: 1240px;
    --fonte-base: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: var(--fonte-base); }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--texto);
    background: var(--fundo);
    line-height: 1.6;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sme-container { width: min(calc(100% - 40px), var(--largura)); margin-inline: auto; }
.sme-skip-link {
    position: fixed; left: 16px; top: -80px; z-index: 10000;
    padding: 10px 16px; border-radius: 0 0 10px 10px; background: var(--branco);
    color: var(--preto); font-weight: 700; transition: top .2s;
}
.sme-skip-link:focus { top: 0; }

.sme-utility { background: var(--preto); color: #e8efe9; font-size: .75rem; }
.sme-utility__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sme-utility__inner b { color: var(--verde-vivo); margin-inline: 8px; }
.sme-utility__tools { display: flex; align-items: center; gap: 3px; }
.sme-utility__tools button {
    border: 0; background: transparent; color: inherit; padding: 5px 7px; border-radius: 6px; cursor: pointer;
}
.sme-utility__tools button:hover, .sme-utility__tools button:focus-visible { background: #243029; outline: none; }

.sme-header {
    position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--borda); box-shadow: 0 5px 20px rgba(8, 26, 16, .04);
    backdrop-filter: blur(14px);
}
.sme-header__inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sme-brand { display: inline-flex; align-items: center; text-decoration: none; min-width: max-content; }
.sme-brand img { width: 285px; height: auto; max-height: 78px; object-fit: contain; }
.sme-brand span { display: none; gap: 2px; }
.sme-brand strong { color: var(--preto); font-size: 1.08rem; line-height: 1.2; }
.sme-brand small { color: var(--verde-primario); font-weight: 600; }
.sme-nav { display: flex; align-items: center; gap: 28px; }
.sme-nav a { position: relative; color: var(--grafite); text-decoration: none; font-size: .94rem; font-weight: 600; }
.sme-nav > a:not(.sme-nav__admin)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px;
    background: var(--verde-medio); transition: right .22s ease;
}
.sme-nav > a:hover::after, .sme-nav > a.active::after { right: 0; }
.sme-nav > a.active { color: var(--verde-primario); }
.sme-nav__admin {
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--verde-primario);
    border-radius: 10px; padding: 10px 14px; color: var(--verde-primario) !important;
}
.sme-nav__admin:hover { background: var(--verde-claro); }
.sme-menu-button {
    display: none; align-items: center; gap: 8px; border: 1px solid var(--borda); background: var(--branco);
    border-radius: 10px; padding: 10px 13px; color: var(--grafite); font-weight: 700;
}

.sme-page-hero {
    position: relative; overflow: hidden; background: var(--verde-preto); color: var(--branco);
    padding: 64px 0; border-bottom: 1px solid rgba(76,175,80,.25);
}
.sme-page-hero::before, .sme-page-hero::after {
    content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(76,175,80,.32); pointer-events: none;
}
.sme-page-hero::before { width: 420px; height: 420px; right: -120px; top: -230px; }
.sme-page-hero::after { width: 260px; height: 260px; left: -130px; bottom: -180px; }
.sme-page-hero__content { position: relative; z-index: 1; max-width: 760px; }
.sme-eyebrow { color: #7fd584; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sme-page-hero h1 { margin: 8px 0 12px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -.04em; }
.sme-page-hero p { max-width: 650px; margin: 0; color: #c8d4cb; font-size: 1.05rem; }

.sme-section { padding: 62px 0; }
.sme-section--compact { padding: 42px 0; }
.sme-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.sme-section__head h2 { margin: 0; color: var(--preto); font-size: clamp(1.55rem, 2.4vw, 2.15rem); letter-spacing: -.035em; }
.sme-section__head p { margin: 6px 0 0; color: var(--texto-suave); }
.sme-section__link { color: var(--verde-primario); text-decoration: none; font-weight: 700; white-space: nowrap; }
.sme-section__link:hover { text-decoration: underline; }

.sme-card { background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra-suave); }
.sme-empty { padding: 34px; text-align: center; color: var(--texto-suave); background: var(--branco); border: 1px dashed var(--borda); border-radius: var(--raio); }
.sme-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 10px;
    padding: 12px 18px; background: var(--verde-medio); color: var(--branco); text-decoration: none; font-weight: 700;
    cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s;
}
.sme-button:hover { transform: translateY(-2px); background: var(--verde-primario); box-shadow: 0 10px 24px rgba(27,94,32,.2); }
.sme-button--outline { background: transparent; color: var(--verde-primario); border: 1px solid var(--verde-primario); }
.sme-button--outline:hover { color: var(--branco); }

.sme-footer { margin-top: auto; background: var(--preto); color: #aebbb1; padding: 56px 0 0; }
.sme-footer__grid { display: grid; grid-template-columns: 1.65fr repeat(3, 1fr); gap: 44px; padding-bottom: 44px; }
.sme-footer h2, .sme-footer h3 { margin-top: 0; color: var(--branco); }
.sme-footer h2 { font-size: 1.2rem; margin-bottom: 7px; }
.sme-footer h3 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.sme-footer p { margin: 0 0 9px; }
.sme-footer a { display: block; margin-bottom: 9px; color: #b8c4ba; text-decoration: none; }
.sme-footer a:hover { color: #7fd584; }
.sme-footer__brand { display: flex; align-items: flex-start; gap: 16px; }
.sme-footer__brand img { width: 210px; height: auto; background: var(--branco); border-radius: 12px; padding: 6px; }
.sme-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; border-top: 1px solid #243029; font-size: .82rem; }
.sme-footer__bottom a { display: inline-flex; gap: 8px; margin: 0; }

@media (max-width: 980px) {
    .sme-menu-button { display: inline-flex; }
    .sme-nav {
        position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column;
        gap: 0; padding: 12px 20px 22px; background: var(--branco); border-top: 1px solid var(--borda); box-shadow: var(--sombra);
    }
    .sme-nav.open { display: flex; }
    .sme-nav a { padding: 12px 4px; }
    .sme-nav > a::after { display: none; }
    .sme-nav__admin { margin-top: 8px; justify-content: center; }
    .sme-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .sme-container { width: min(calc(100% - 28px), var(--largura)); }
    .sme-utility__inner > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sme-utility__tools { display: none; }
    .sme-header__inner { min-height: 76px; }
    .sme-brand img { width: 205px; height: auto; max-height: 58px; }
    .sme-menu-button span { display: none; }
    .sme-page-hero { padding: 46px 0; }
    .sme-section { padding: 44px 0; }
    .sme-section__head { align-items: flex-start; flex-direction: column; }
    .sme-footer__grid { grid-template-columns: 1fr; gap: 30px; }
    .sme-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
