/* ================================================================
   RESET.CSS - Normalização de estilos do navegador
   ================================================================
   Remove estilos padrão inconsistentes entre navegadores.
   Você não precisa editar este arquivo normalmente.
   ================================================================ */

/* Box-sizing consistente em todos os elementos */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove margem padrão do body e define altura mínima */
html {
  scroll-behavior: smooth;       /* Scroll suave nos links âncora */
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
}

/* Imagens responsivas por padrão */
img,
picture,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Formulários herdam a fonte do body */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove estilo padrão de listas quando não precisamos */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Links sem sublinhado por padrão (adicionamos quando necessário) */
a {
  text-decoration: none;
  color: inherit;
}

/* Botões sem estilo padrão - vamos estilizar do zero */
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Títulos herdam peso normal - vamos controlar manualmente */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: inherit;
}

/* Remove outline azul chato - mas mantém acessibilidade no :focus-visible */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--cor-destaque);
  outline-offset: 2px;
}

/* Respeita preferência de usuário que desliga animações */
@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;
  }
}
