:root {
  --floresta: #1a4332;
  --floresta-fundo: #123528;
  --floresta-profunda: #0f2c21;
  --esmeralda: #2e7d5b;
  --esmeralda-escura: #256848;
  --creme: #f4f1e8;
  --creme-cartao: #fffcf7;
  --areia: #e7e1d4;
  --tinta: #1c241f;
  --muted: #4e5c55;
  --linha: rgba(26, 67, 50, 0.14);
  --sombra: 0 16px 40px rgba(15, 44, 33, 0.08);
  --fonte-titulo: Fraunces, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --fonte-texto: Outfit, "Segoe UI", sans-serif;
  --header: 4.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinta);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
}

body.nav-aberta { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--esmeralda);
  outline-offset: 3px;
}

::selection {
  background: var(--esmeralda);
  color: #fff;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--floresta);
  color: var(--creme);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
}

.skip:focus { top: 0.6rem; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--creme);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck { border-bottom-color: var(--linha); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--floresta);
}

.logo-mark { width: 36px; height: 36px; flex: none; }

.logo strong { display: block; font-size: 1rem; line-height: 1.1; }
.logo small { display: block; margin-top: 0.12rem; color: var(--muted); font-size: 0.75rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}

.nav a:not(.btn) {
  color: var(--floresta);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:not(.btn):hover { color: var(--esmeralda); }

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--linha);
  background: transparent;
  color: var(--floresta);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.btn-primary { background: var(--esmeralda); color: #fff; }
.btn-primary:hover { background: var(--esmeralda-escura); }

.btn-ghost {
  background: transparent;
  color: var(--creme);
  border-color: rgba(244, 241, 232, 0.5);
}

.btn-ghost:hover { background: rgba(244, 241, 232, 0.08); }

.btn-luz { background: var(--creme); color: var(--floresta); }
.btn-luz:hover { background: #fff; }

.hero {
  background-color: var(--floresta);
  background-image:
    linear-gradient(105deg, rgba(15, 44, 33, 0.94) 0%, rgba(18, 53, 40, 0.86) 46%, rgba(18, 53, 40, 0.72) 100%),
    url("../assets/img/hero.jpg"),
    url("../assets/mapa-campo.svg");
  background-size: cover, cover, 280px;
  background-position: center;
  color: var(--creme);
}

.hero :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible { outline-color: #d7efe3; }

.hero-corpo {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
  gap: 2.5rem;
  align-items: end;
  padding: 4.25rem 0 3.25rem;
}

.eyebrow,
.indice {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow { color: #b7d8c8; }

.indice { display: flex; align-items: center; gap: 0.7rem; color: var(--esmeralda); }
.indice span { color: var(--floresta); }

h1 {
  margin: 0;
  max-width: 12em;
  color: var(--creme);
  font-size: clamp(2.35rem, 4.6vw, 4.15rem);
}

.subtitulo {
  max-width: 42rem;
  margin: 1.15rem 0 0;
  color: rgba(244, 241, 232, 0.9);
  font-size: 1.125rem;
}

.hero-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-ficha {
  margin: 0;
  padding: 1.35rem 1.25rem 1.15rem;
  border: 1px solid rgba(244, 241, 232, 0.18);
  border-radius: 18px;
  background: rgba(8, 28, 20, 0.28);
}

.hero-ficha-titulo {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b7d8c8;
}

.hero-ficha ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-ficha li {
  padding: 0.72rem 0;
  border-top: 1px solid rgba(244, 241, 232, 0.14);
}

.autoridade { background: var(--floresta-fundo); }

.autoridade ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 1rem 0;
}

.autoridade li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--creme);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  text-wrap: balance;
}

.autoridade svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 0.05rem;
  fill: none;
  stroke: #8dceb0;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.barra-mobile { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0;
    padding: 0.4rem 1rem 1rem;
    z-index: 2;
    background: var(--creme);
    border-bottom: 1px solid var(--linha);
    box-shadow: 0 18px 32px rgba(15, 44, 33, 0.12);
  }

  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 0.7rem 0.2rem; }
  .nav .btn { width: 100%; }

  .hero-corpo,
  .autoridade ul { grid-template-columns: 1fr; }

  .hero-corpo { padding: 2.4rem 0 2rem; }
  h1 { max-width: none; }
}

@media (max-width: 720px) {
  body { padding-bottom: 4.75rem; }

  .barra-mobile {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--creme);
    border-top: 1px solid var(--linha);
  }

  .barra-mobile .btn { width: 100%; }
}

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