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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--color-primary);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }

p { max-width: 65ch; }

main { display: block; }

.container {
  width: var(--container-width);
  margin-inline: auto;
}

.section {
  padding: var(--space-6) 0;
}
.section-tight { padding: var(--space-4) 0; }
.section-alt { background: var(--c-branco-suave); }
.section-dark {
  background: var(--grad-hero);
  color: var(--c-branco-suave);
}
.section-dark h2, .section-dark h3 { color: var(--c-branco); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-verde-marca);
  margin-bottom: var(--space-2);
}
.section-dark .eyebrow { color: var(--c-verde-lima); }
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--c-sol-amarelo);
}

.section-head {
  max-width: 42rem;
  margin-bottom: var(--space-4);
}
.section-head.center { margin-inline: auto; text-align: center; }

.text-soft { color: var(--color-text-soft); }
.text-center { text-align: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: .8rem 1.4rem;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--c-sol-amarelo);
  outline-offset: 2px;
}

.placeholder-note {
  display: inline-block;
  margin-top: .4rem;
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--color-danger);
  background: rgba(179, 38, 30, .08);
  border: 1px dashed rgba(179, 38, 30, .35);
  border-radius: var(--radius-sm);
  padding: .3rem .6rem;
}

/* Progressive enhancement: por padrão o conteúdo já nasce visível (nunca depende de JS para
   aparecer). Só entra em animação se .js-reveal-ready for adicionada ao <html> por main.js —
   assim uma falha/atraso do JavaScript nunca deixa uma seção permanentemente invisível. */
.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--transition-base), transform .7s var(--transition-base);
}
.js-reveal-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

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