/* ============================================ */
/* RESET.CSS                                    */
/* ============================================ */
/* Normaliza diferenças entre navegadores.      */
/* Versão moderna baseada nas melhores práticas */
/* de 2025-2026.                                 */
/* ============================================ */

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

/* Remover margens e paddings padrão */
* {
  margin: 0;
  padding: 0;
}

/* HTML e body base */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Mídia (imagens, vídeos, etc) responsiva por padrão */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Tipografia herda do body por padrão */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

/* Evita quebra ruim em palavras longas */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Headings sem peso bold automático */
h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
}

/* Listas sem marcadores por padrão */
ul, ol {
  list-style: none;
}

/* Links herdam cor e sem decoração */
a {
  color: inherit;
  text-decoration: none;
}

/* Botões reset */
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Inputs e textarea */
input, textarea {
  border: none;
  outline: none;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

/* Acessibilidade: respeita preferência por menos animação */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Foco visível pra acessibilidade (apenas teclado) */
:focus-visible {
  outline: 2px solid var(--cor-primaria);
  outline-offset: 2px;
}

/* Esconde outline quando clica com mouse */
:focus:not(:focus-visible) {
  outline: none;
}

/* Texto pra screen readers (esconde visualmente mas mantém pra acessibilidade) */
.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;
}
