/* ============================================================
   Proleis — reset, tipografia e utilitários de layout
   ============================================================ */

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

* { margin: 0; }

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

body {
  font-family: var(--font-texto);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }

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

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-xl); font-weight: 700; }

p { text-wrap: pretty; }

a { color: var(--navy-500); text-decoration: none; transition: color var(--dur-rapida) var(--ease-suave); }
a:hover { color: var(--green-600); }

ul, ol { padding-left: 1.15rem; }
li::marker { color: var(--green-500); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

strong, b { font-weight: 700; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--green-300); color: var(--navy-900); }

/* --- acessibilidade ---------------------------------------- */
.pular-para-conteudo {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--r-md);
  transition: top var(--dur-media) var(--ease-saida);
}
.pular-para-conteudo:focus { top: 1rem; color: #fff; }

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

/* --- container e grid --------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--largura-container));
  margin-inline: auto;
}
.container-estreito { width: min(100% - 2.5rem, var(--largura-estreita)); margin-inline: auto; }

.secao { padding-block: var(--sp-secao); position: relative; }
.secao-compacta { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.grade { display: grid; gap: var(--sp-5); }
.grade-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grade-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grade-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.pilha { display: flex; flex-direction: column; gap: var(--sp-4); }
.linha { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

/* --- fundos ------------------------------------------------- */
.fundo-suave { background: var(--bg-soft); }
.fundo-tint { background: var(--bg-tint); }

.fundo-escuro {
  background: var(--grad-escuro);
  color: var(--dark-muted);
  position: relative;
  isolation: isolate;
}
.fundo-escuro h1,
.fundo-escuro h2,
.fundo-escuro h3,
.fundo-escuro h4,
.fundo-escuro strong { color: var(--dark-ink); }
.fundo-escuro a { color: var(--green-300); }
.fundo-escuro .subtitulo { color: var(--dark-muted); }
.fundo-escuro .eyebrow { color: var(--green-300); }

/* borda superior/inferior curva das seções escuras */
.borda-diagonal-topo { clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%); }
.borda-diagonal-base { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%); }

/* --- blocos de texto ---------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-titulo);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.subtitulo {
  font-size: var(--fs-lg);
  color: var(--muted);
  max-width: 62ch;
}

.cabecalho-secao { max-width: 760px; margin-bottom: var(--sp-8); }
.cabecalho-secao.centralizado { margin-inline: auto; text-align: center; }
.cabecalho-secao.centralizado .subtitulo { margin-inline: auto; }
.cabecalho-secao .eyebrow { margin-bottom: var(--sp-3); }
.cabecalho-secao h2 + .subtitulo { margin-top: var(--sp-4); }

.texto-gradiente {
  background: var(--grad-marca);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fundo-escuro .texto-gradiente { background: var(--grad-verde); -webkit-background-clip: text; background-clip: text; }

.destaque-verde { color: var(--green-600); }

/* --- utilitários -------------------------------------------- */
.centralizado { text-align: center; }
.sem-margem { margin: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-6 { margin-bottom: var(--sp-6); }
.largura-total { width: 100%; }

@media (max-width: 640px) {
  .esconder-mobile { display: none !important; }
}
@media (min-width: 981px) {
  .esconder-desktop { display: none !important; }
}
