/* ============================================================
   Help Pragas — base.css
   Reset, tokens da marca, fontes e tipografia base.
   Paleta oficial extraída dos SVGs do kit de marca.
   ============================================================ */

/* ---------- Fontes da marca (Fira Sans) ---------- */
@font-face {
  font-family: 'Fira Sans';
  src: url('../assets/fonts/FiraSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src: url('../assets/fonts/FiraSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src: url('../assets/fonts/FiraSans-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Paleta oficial */
  --verde-principal: #78BA59;
  --verde-medio: #406F43;
  --verde-floresta: #2D431F;
  --verde-lima: #C1D56E;
  --cinza-neutro: #A2A5A4;
  --quase-preto: #1D1E1C;
  --branco: #FFFFFF;

  /* Derivados da paleta (tints/alphas para fundos, bordas e texto secundário).
     O cinza neutro puro reprova AA em corpo de texto; para texto secundário
     usamos o quase-preto com transparência, que mantém contraste AA. */
  --texto-secundario: rgba(29, 30, 28, 0.66);
  --verde-nevoa: #F3F8EF;
  --verde-nevoa-2: #E9F2E2;
  --verde-suave: #F7FAF3;
  --borda-suave: rgba(45, 67, 31, 0.12);
  --sombra-suave: 0 6px 24px rgba(29, 30, 28, 0.05);
  --sombra-media: 0 14px 44px rgba(29, 30, 28, 0.1);

  /* Layout */
  --altura-header: 84px;
  --raio-cartao: 20px;
  --fonte-marca: 'Fira Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--altura-header) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fonte-marca);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--quase-preto);
  background: var(--branco);
  overflow-x: hidden;
}

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

a {
  color: var(--verde-medio);
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

address {
  font-style: normal;
}

/* A Fira Sans do kit tem apenas os pesos 400/500/900:
   usamos 500 + cor para ênfase, evitando negrito sintético. */
b,
strong {
  font-weight: 500;
  color: var(--verde-floresta);
}

::selection {
  background: var(--verde-principal);
  color: var(--quase-preto);
}

/* ---------- Tipografia ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 900;
  line-height: 1.12;
  color: var(--verde-floresta);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

p {
  text-wrap: pretty;
}

/* ---------- Foco visível e acessibilidade ---------- */
:focus-visible {
  outline: 3px solid var(--verde-principal);
  outline-offset: 3px;
  border-radius: 4px;
}

.pular-conteudo {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 12px 22px;
  background: var(--verde-floresta);
  color: var(--branco);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  transition: top 0.25s ease;
}

.pular-conteudo:focus-visible {
  top: 0;
  outline-color: var(--verde-lima);
}

/* ---------- Utilitários ---------- */
.container {
  width: min(1180px, 100% - clamp(32px, 6vw, 48px));
  margin-inline: auto;
}

.secao {
  padding-block: clamp(64px, 9vw, 112px);
}

.secao-cabeca {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.secao-cabeca--central {
  margin-inline: auto;
  text-align: center;
}

.secao-lead {
  margin-top: 16px;
  font-size: 1.06rem;
  color: var(--texto-secundario);
  max-width: 62ch;
}

.secao-cabeca--central .secao-lead {
  margin-inline: auto;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--verde-medio);
}

.kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--verde-principal);
}

.secao-cabeca--central .kicker {
  justify-content: center;
}

.kicker--claro {
  color: var(--verde-lima);
}

.icone {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* Sprite de símbolos SVG fica invisível, mas disponível para <use> */
.sprite-oculto {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
