/* ══════════════════════════════════════════════
   RESET.CSS — Compra Turbo
   Reset moderno + estilos base
   Dependencias: nenhuma (deve ser carregado primeiro)
   ══════════════════════════════════════════════ */

/* ── RESET BOX MODEL ───────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── RESET HTML + BODY ─────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-white);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── TIPOGRAFIA BASE ───────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ── LINKS ─────────────────────────────────── */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* ── IMAGENS ───────────────────────────────── */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  cursor: pointer;
}

/* ── LISTAS ────────────────────────────────── */
ul,
ol {
  list-style: none;
}

/* ── TABELAS ───────────────────────────────── */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ── ACESSIBILIDADE ────────────────────────── */

/* Skip to content — visivel apenas com Tab */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-orange);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Focus visible para navegacao por teclado */
:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 3px;
}

/* Remover focus ring em clique de mouse */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── REDUCED MOTION ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── SELECTION ─────────────────────────────── */
::selection {
  background: rgba(212, 80, 10, 0.3);
  color: var(--text-white);
}

/* ── SCROLLBAR CUSTOMIZADA ─────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted-4);
}

/* ── CURSOR CUSTOMIZADO (via JS) ────────────── */
/* JS adiciona .custom-cursor ao html quando cursor esta ativo */
.custom-cursor,
.custom-cursor a,
.custom-cursor button,
.custom-cursor input,
.custom-cursor select,
.custom-cursor textarea,
.custom-cursor label {
  cursor: none;
}

/* ── HIDDEN UTILITIES ──────────────────────── */

/* Visualmente oculto, acessivel 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;
}
