/**
 * @file reset.css
 * @description Reset minimalista pré-camadas. Normaliza box, margens e mídia.
 *
 * Responsabilidade: zerar comportamentos default de browser para o
 * brandbook ter controle total sobre tipografia, layout e motion.
 * Camada: web
 */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /*
    NÃO usar scroll-behavior: smooth aqui — ele briga com o Lenis e
    causa scroll travado/duplicado. Lenis controla todo o smooth.
  */
}

body {
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--verde-territorio);
  color: var(--creme);
}

/* Suaviza barra de rolagem em browsers compatíveis */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Acessibilidade: respeita preferência por movimento reduzido */
@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;
  }
}
