/* ==========================================================================
   Base: reset, tipografia, acessibilidade e utilitários
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--papel);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: var(--t-m);
  line-height: var(--entrelinha);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

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

h1, h2, h3, h4 {
  margin: 0 0 var(--e-4);
  font-family: var(--fonte-titulo);
  font-weight: 500;
  line-height: var(--entrelinha-titulo);
  color: var(--nogueira);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  text-wrap: balance;
}

h1 { font-size: var(--t-3xl); font-weight: 400; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-l); font-weight: 600; font-variation-settings: "opsz" 24; }

p { margin: 0 0 var(--e-4); text-wrap: pretty; }

a {
  color: var(--queimado);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--rapido) var(--curva);
}
a:hover { color: var(--queimado-2); }

strong { font-weight: 600; }

ul, ol { margin: 0 0 var(--e-4); padding-left: 1.2em; }

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

button { cursor: pointer; }

hr {
  border: 0;
  border-top: var(--borda);
  margin: var(--e-6) 0;
}

/* Foco visível e consistente (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--queimado);
  outline-offset: 3px;
}
.faixa-escura :focus-visible,
.rodape :focus-visible {
  outline-color: var(--sobre-escuro);
}

::selection {
  background: var(--nogueira);
  color: var(--papel);
}

/* Utilitários ------------------------------------------------------------ */
.visualmente-oculto {
  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-conteudo {
  position: absolute;
  left: var(--e-4);
  top: -100px;
  z-index: 100;
  padding: var(--e-3) var(--e-4);
  background: var(--nogueira);
  color: var(--papel);
  text-decoration: none;
}
.pular-conteudo:focus { top: var(--e-4); color: var(--papel); }

.sobretitulo {
  display: inline-block;
  margin-bottom: var(--e-3);
  font-family: var(--fonte-texto);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--queimado);
}

.texto-suave { color: var(--texto-suave); }
.texto-pequeno { font-size: var(--t-s); }
.centro { text-align: center; }

/* Marcador de dado a confirmar com o cliente — fácil de achar no site e no código */
.a-confirmar {
  display: inline-block;
  padding: 0 0.4em;
  border: 1px dashed var(--queimado);
  color: var(--queimado);
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
}

/* Entrada suave ao rolar (só com JS ativo e sem "reduzir movimento") */
.js .revelar {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--lento) var(--curva), transform var(--lento) var(--curva);
}
.js .revelar.visivel {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .revelar { opacity: 1; transform: none; }
}

/* garante que [hidden] vence qualquer display definido nos componentes */
[hidden] { display: none !important; }

.lista-limpa {
  list-style: none;
  margin: 0;
  padding: 0;
}
