/* ==========================================================================
   APROMUS – base: tokens, reset, tipografia, botões e utilitários
   Paleta extraída do mockup homologado e do logotipo Modelo C.
   ========================================================================== */

:root {
  /* Verdes institucionais */
  --verde-950: #001909;   /* fundo do hero */
  --verde-900: #022910;   /* chamada / rodapé */
  --verde-850: #0a3317;
  --verde-800: #0b3e19;   /* títulos */
  --verde-700: #0d4a1c;   /* botão escuro, sublinhado do menu */
  --verde-logo: #004b01;  /* verde do logotipo */
  --verde-600: #2a6b0c;   /* botão verde (base) */
  --verde-500: #4a8c0a;   /* botão verde (realce) */
  --verde-400: #629e0d;   /* sublinhado dos títulos */
  --lima: #bdd10a;        /* traço do hero */
  --lima-suave: #8dc63f;
  --verde-claro: #e3efdf; /* selo de data */
  --verde-claro-2: #cfe3ca;

  --dourado: #c9a43f;     /* marca OSEA */

  /* Neutros */
  --texto: #15181c;
  --texto-2: #48515b;
  --texto-3: #6b737c;
  --linha: #e2e5e3;
  --fundo: #ffffff;
  --fundo-suave: #f7f8f7;
  --branco: #ffffff;

  /* Tipografia */
  --fonte-titulo: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --fonte-texto: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --raio: 12px;
  --raio-sm: 8px;
  --sombra: 0 2px 6px rgba(16, 32, 20, .06), 0 10px 28px rgba(16, 32, 20, .08);
  --sombra-suave: 0 1px 3px rgba(16, 32, 20, .06), 0 6px 18px rgba(16, 32, 20, .06);
  --transicao: .2s ease;
}

/* Reset enxuto */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lima-suave); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.quebra-larga { display: none; }
@media (min-width: 480px) { .quebra-larga { display: inline; } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.pular-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--verde-700); color: #fff; padding: 10px 16px; border-radius: var(--raio-sm);
  font-weight: 600; transition: top var(--transicao);
}
.pular-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .6em 1.25em;
  border-radius: 10px;
  font-family: var(--fonte-texto); font-weight: 700; font-size: .95rem; line-height: 1.2;
  transition: background-color var(--transicao), color var(--transicao), box-shadow var(--transicao), transform var(--transicao);
  white-space: nowrap;
}
.botao .icone { width: 1.05em; height: 1.05em; transition: transform var(--transicao); }
.botao:hover .icone[href], .botao:hover .icone { transform: none; }
.botao:hover > .icone:last-child { transform: translateX(3px); }
.botao--apoie:hover > .icone:last-child { transform: none; }

.botao--escuro { background: var(--verde-700); color: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.botao--escuro:hover { background: var(--verde-800); }

.botao--verde {
  background: linear-gradient(180deg, var(--verde-500) 0%, var(--verde-600) 100%);
  color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.botao--verde:hover { background: linear-gradient(180deg, #56a00d 0%, #2f780e 100%); }

.botao--grande { font-size: 1.05rem; padding: .8em 1.6em; border-radius: 12px; }

.botao--contorno {
  border: 2px solid var(--verde-700); color: var(--verde-700); background: #fff;
  border-radius: 14px; min-height: 40px; padding: .45em 1.1em; font-size: .92rem;
}
.botao--contorno:hover { background: var(--verde-700); color: #fff; }

.link-seta {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; font-size: .85rem; color: var(--verde-700);
}
.link-seta:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-seta--sublinhado { color: var(--texto); text-decoration: underline; text-decoration-color: #9aa39d; text-underline-offset: 4px; font-size: .92rem; }
.link-seta--sublinhado .icone { width: 1.25em; height: 1.25em; }

/* ---------- Título de seção (com sublinhado verde + filete cinza) ---------- */
.titulo-secao { display: flex; align-items: flex-end; gap: 14px; margin-bottom: clamp(14px, 2vw, 20px); }
.titulo-secao::after { content: ""; flex: 1; height: 1px; background: var(--linha); margin-bottom: 9px; }
.titulo-secao__texto {
  position: relative; flex: none;
  font-family: var(--fonte-titulo); font-weight: 700; color: var(--verde-800);
  font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1.15; letter-spacing: -.01em;
  padding-bottom: 10px;
}
.titulo-secao__texto::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 2px; background: var(--verde-400);
}

/* ---------- Estados de conteúdo ---------- */
.estado-carregando, .estado-vazio { color: var(--texto-3); font-size: .95rem; padding: 12px 0; }

/* ---------- Marcadores de homologação (provisórios) ---------- */
.aviso-homologacao {
  background: #fff8dc; color: #5c4a00; border-bottom: 1px solid #f0dd95;
  font-size: .82rem; text-align: center; padding: 6px var(--gutter); line-height: 1.4;
}
.selo-exemplo {
  display: inline-block; vertical-align: middle;
  background: #ffe58a; color: #4d3d00; border: 1px solid #e0c34d;
  font: 700 .66rem/1 var(--fonte-texto); text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 6px; border-radius: 4px;
}
[data-link-provisorio] { outline: 1px dashed rgba(201, 150, 0, .55); outline-offset: 2px; }
.sem-marcas [data-link-provisorio] { outline: none; }
.sem-marcas .selo-exemplo, .sem-marcas [data-somente-dev] { display: none !important; }

.aviso-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: var(--texto); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-size: .9rem; box-shadow: var(--sombra);
}
.aviso-noscript { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; padding: 10px; text-align: center; background: #fff8dc; color: #5c4a00; }

/* Link discreto à direita do filete do título (ex.: "Todos os projetos" na Home) */
.titulo-secao::after { order: 1; }
.titulo-secao__link { order: 2; flex: none; margin-bottom: 2px; font-size: .85rem; }
