/* ================= RESET GLOBAL ================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= VARIÁVEIS ================= */
:root {
  --container: 1240px;   /* largura padrão desktop */
  --gutter: 24px;        /* respiro lateral */
  
  --cor-primaria: #c70000;
  --cor-primaria-light: #ff4d4d;
  --texto-principal: #111111;
  --texto-secundario: #555555;
  --bg-branco: #ffffff;
}

/* ================= BODY ================= */
html, body {
  width: 100%;
  overflow-x: hidden; /* 🔥 evita empurrões laterais */
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg-branco);
  color: var(--texto-principal);
  line-height: 1.6;
}

/* ================= IMAGENS ================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================= CONTAINER PADRÃO ================= */
/* 🔥 ESSE É O CARA QUE CONTROLA TODO O SITE */
.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* ================= SECTIONS ================= */
/* Section nunca centraliza conteúdo */
section {
  width: 100%;
  position: relative;
}

/* ================= TEXTOS PADRÃO ================= */
h1, h2, h3, h4 {
  color: var(--texto-principal);
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  color: var(--texto-secundario);
  font-size: 16px;
}

/* ================= BOTÕES (base) ================= */
button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= TAGS (ex: "Como funciona") ================= */
.tag,
.cf-tag,
.pq-tag {
  display: inline-block;
  background: rgba(199, 0, 0, 0.12);
  color: var(--cor-primaria);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* ================= UTILITÁRIOS ================= */
.text-center {
  text-align: center;
}

.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mt-80 { margin-top: 80px; }

/* ================= RESPONSIVO GLOBAL ================= */
@media (max-width: 1024px) {
  :root {
    --container: 1100px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  p {
    font-size: 14.5px;
  }
}
