/*
 * base.css
 * Reset + tipografia + componentes genéricos do Portal FreteApp.
 * Depende de tokens.css (carregar tokens.css antes deste arquivo).
 *
 * Escopo do Checkpoint 1: só a base visual. Componentes de tela
 * (cards, tabelas, formulários específicos etc.) entram nos
 * checkpoints de cada página.
 */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--off-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 800;
  line-height: 0.95;
}

.mono {
  font-family: var(--font-mono);
}

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

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ---------- container padrão das páginas do portal ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- superfícies genéricas ---------- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* ---------- botões genéricos (mesma linguagem visual do site) ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background: #ffc62e;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--off-white);
  background: transparent;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-secondary:hover {
  border-color: var(--grey);
  background: rgba(255, 255, 255, 0.03);
}
