/* ==========================================================================
   base.css — Reset, tipografia base, container, utilitários
   Depende de: variables.css (deve ser carregado antes)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: var(--font-primary);
  font-size: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* --------------------------------------------------------------------------
   Tipografia — headings
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  color: var(--color-black);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

p {
  line-height: var(--line-height-base);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Eyebrow — label de seção em caps acima do título
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   Section header — bloco eyebrow + título + subtítulo
   -------------------------------------------------------------------------- */

.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--font-size-lead);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Section — padding vertical padrão
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-padding);
}

.section--surface {
  background-color: var(--color-surface);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark .eyebrow {
  color: var(--color-secondary);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   Grid de cards
   -------------------------------------------------------------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* --------------------------------------------------------------------------
   Placeholder de dados pendentes
   -------------------------------------------------------------------------- */

.placeholder-data {
  background: #FFF3CD;
  color: #856404;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.85em;
}

/* --------------------------------------------------------------------------
   Utilitários
   -------------------------------------------------------------------------- */

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

.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.text-hint   { color: var(--color-text-hint); }
.text-small  { font-size: var(--font-size-small); }

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-2        { gap: var(--space-2); }
.gap-4        { gap: var(--space-4); }
.gap-6        { gap: var(--space-6); }
