/*
 * RESET & BASE
 * Reset moderno (inspirado em Josh Comeau's CSS Reset) + estilos base do projeto.
 */

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

/* Remove margens padrão */
* {
  margin: 0;
  padding: 0;
}

/* Comportamento de scroll suave */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Base do body */
body {
  font-family: var(--fonte-corpo);
  font-size: var(--texto-base);
  line-height: var(--linha-normal);
  color: var(--cor-texto);
  background-color: var(--cor-fundo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Imagens e mídias responsivas */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Herança de fonte para inputs */
input, button, textarea, select {
  font: inherit;
}

/* Previne overflow em textos longos */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Remove decoração de links por padrão */
a {
  color: inherit;
  text-decoration: none;
}

/* Remove estilo de listas */
ul, ol {
  list-style: none;
}

/* Botões sem estilo padrão */
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Acessibilidade: foco visível para navegação por teclado */
:focus-visible {
  outline: 2px solid var(--cor-primaria);
  outline-offset: 3px;
  border-radius: var(--raio-sm);
}

/* Ocultar visualmente mas manter para leitores de tela */
.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;
}

/* Container principal */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--secao-padding-x);
}

.container--estreito {
  max-width: var(--container-estreito);
}

.container--largo {
  max-width: var(--container-largo);
}

/* Utilitários de texto */
.texto-centro  { text-align: center; }
.texto-direita { text-align: right; }

/* Utilitário de visibilidade */
.oculto { display: none !important; }
