/* ===================================
   RESET GLOBAL + MELHORIAS
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.6;
  color: var(--preto);
  background-color: var(--branco);
  -webkit-font-smoothing: antialiased;
}

/* ===================================
   VARIÁVEIS GLOBAIS
   =================================== */
:root {
  /* Cores */
  --azul: #0039c2;
  --laranja: #eb5e2a;
  --branco: #ffffff;
  --preto: #222222;
  --cinza: #d9d6d6;

  /* Tipografia */
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-sm: 0.875rem;

  /* Espaçamentos */
  --space-null: 0;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;

  /* Breakpoints */
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 992px;
  --bp-xl: 1200px;
}

/* ===================================
   CONTAINERS
   =================================== */
.container-ext {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-null);
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-null);
}

.row {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}

/* ===================================
   GRID FLEXBOX
   =================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-null);
  /* substitui margin negativa */
}

.column {
  flex-direction: column;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-null);
  /* substitui margin negativa */
}

.col {
  flex: 1 1 0;
  min-width: 0;
  /* previne overflow */
}

/* Colunas fixas */
.col-1 {
  flex-basis: 8.333%;
  max-width: 8.333%;
}

.col-2 {
  flex-basis: 16.666%;
  max-width: 16.666%;
}

.col-3 {
  flex-basis: 25%;
  max-width: 25%;
}

.col-4 {
  flex-basis: 33.333%;
  max-width: 33.333%;
}

.col-5 {
  flex-basis: 41.666%;
  max-width: 41.666%;
}

.col-6 {
  flex-basis: 50%;
  max-width: 50%;
}

.col-7 {
  flex-basis: 58.333%;
  max-width: 58.333%;
}

.col-8 {
  flex-basis: 66.666%;
  max-width: 66.666%;
}

.col-9 {
  flex-basis: 75%;
  max-width: 75%;
}

.col-10 {
  flex-basis: 83.333%;
  max-width: 83.333%;
}

.col-11 {
  flex-basis: 91.666%;
  max-width: 91.666%;
}

.col-12 {
  flex-basis: 100%;
  max-width: 100%;
}

/* ===================================
   RESPONSIVIDADE
   =================================== */
@media (min-width: var(--bp-sm)) {
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: var(--bp-md)) {
  .col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: var(--bp-lg)) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: var(--bp-xl)) {
  .col-xl-2 {
    flex: 0 0 16.666%;
    max-width: 16.666%;
  }

  .col-xl-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

/* ===================================
   MARCADORES DE DEBUG
   =================================== */
.mark-01 {
  background: rgba(255, 0, 0, 0.15);
  border: 1px dashed red;
}

.mark-02 {
  background: rgba(0, 255, 0, 0.15);
  border: 1px dashed green;
}

.mark-03 {
  background: rgba(0, 0, 255, 0.15);
  border: 1px dashed blue;
}

/* Debug global */
.debug .container,
.debug .row,
.debug .col {
  outline: 1px dashed rgba(0, 0, 0, 0.3);
}

/* ===================================
   TIPOGRAFIA (SEO + LEGIBILIDADE)
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-sm);
  max-width: 70ch;
}

/* ===================================
   LISTAS E TABELAS
   =================================== */
ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
}

th,
td {
  padding: var(--space-xs);
  border: 1px solid var(--color-border);
  text-align: left;
}

/* ===================================
   ANIMAÇÕES (ACESSIBILIDADE)
   =================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}