/* ==========================================================================
   GRUPO CONCEITO FISCAL - RESET E REGRAS BASE DE PERFORMANCE
   Documento: reset.css
   Descrição: Normalização limpa, eliminação de scroll-hijacking, suavização
              de fontes e garantia de renderização ágil sem travamentos.
   ========================================================================== */

/* 1. Box Sizing e Margens Universais */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Suporte a Scroll Nativo Fluido (Sem bibliotecas invasivas) */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: clip;
}

/* 3. Base do Corpo do Documento */
body {
  font-family: var(--font-body);
  color: var(--gcf-text);
  background-color: var(--gcf-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
  position: relative;
}

/* 4. Mídia e Imagens Responsivas */
img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 5. Tipografia Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gcf-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--gcf-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* 6. Links e Botões */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

/* 7. Listas e Tabelas */
ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* 8. Foco Acessível */
:focus-visible {
  outline: 2px solid var(--gcf-accent);
  outline-offset: 3px;
}

/* 9. Classes Utilitárias Globais */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--gcf-accent);
}

.text-primary {
  color: var(--gcf-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
