/* =====================================================================
   Craft Index · base.css
   Tokens BRQ, reset, tipografia, utilitários e componentes compartilhados
   entre index.html (landing) e formulario.html (formulário).
   ===================================================================== */

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

:root {
  /* ===== Cores BRQ ===== */
  --preto: #000000;
  --branco: #FFFFFF;

  --verde-brq: #1DA669;
  --verde-escuro: #0D5C3D;
  --verde-claro: #7CDDB5;
  --verde-pastel: #C4F0DD;
  --creme-verde: #E8F5E9;

  --roxo-escuro: #3D1B5D;
  --roxo-medio: #6B3FA0;
  --violeta: #B794F6;
  --lilas-claro: #E5D4FF;
  --lilas: #D5B8FF;

  --azul-marinho: #1E3A5F;
  --azul-medio: #4A7BA7;
  --azul-celeste: #A8C8E6;
  --azul-pastel: #C5DDEF;

  --navy: #0F1E2E;
  --laranja: #FF8551;
  --coral: #FFB088;
  --creme: #FFF8E7;

  --cinza-escuro: #4A4A4A;
  --cinza-medio: #808080;
  --cinza-claro: #B8B8B8;
  --cinza-suave: #E5E5E5;
  --off-white: #F5F5F5;

  /* ===== Fontes ===== */
  --font-display: 'Aspekta', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', monospace;

  /* ===== Espaçamentos BRQ ===== */
  --space-xs: 16px;
  --space-sm: 24px;
  --space-md: 32px;
  --space-lg: 48px;
  --space-xl: 68px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  /* ===== Alturas de navs fixas ===== */
  --nav-h: 64px;
  --subnav-h: 56px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--preto);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background-color: var(--verde-brq); color: var(--branco); }
img { max-width: 100%; display: block; }

/* ===== Tipografia BRQ (utilitários) ===== */
.display    { font-family: var(--font-display); font-size: clamp(64px, 9vw, 128px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; }
.title      { font-family: var(--font-display); font-size: clamp(40px, 5.2vw, 76px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; }
.h1         { font-family: var(--font-display); font-size: clamp(40px, 5.5vw, 80px); line-height: 1.1;  letter-spacing: -0.03em; font-weight: 500; }
.h2         { font-family: var(--font-display); font-size: clamp(32px, 4vw,   56px); line-height: 1.1;  letter-spacing: -0.025em; font-weight: 500; }
.h3         { font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 36px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.subtitle   { font-family: var(--font-display); font-size: clamp(20px, 2vw,   28px); line-height: 1.2;  letter-spacing: -0.015em; font-weight: 500; }
.body-1     { font-family: var(--font-body);    font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; font-weight: 400; }
.body-2     { font-family: var(--font-body);    font-size: 17px; line-height: 1.55; font-weight: 400; }
.body-3     { font-family: var(--font-body);    font-size: 15px; line-height: 1.55; font-weight: 400; }
.tag        { font-family: var(--font-mono);    font-size: 12px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.big-number { font-family: var(--font-display); font-size: clamp(80px, 10vw, 160px); line-height: 1; letter-spacing: -0.05em; font-weight: 500; }

/* ===== Layout: containers ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-lg); }
.narrow    { max-width: 880px;  margin: 0 auto; padding: 0 var(--space-lg); }
.form-wrap { max-width: 900px;  margin: 0 auto; }

/* ===== Brand (logo + pill) ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--preto);
  text-decoration: none;
}
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
.brand-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--verde-brq);
  color: var(--branco);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

/* ===== Botões compartilhados ===== */
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--verde-brq);
  color: var(--branco);
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: var(--verde-escuro); transform: translateY(-1px); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--preto);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.nav-link:hover { border-bottom-color: var(--verde-brq); }

.btn-primary {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--verde-brq);
  color: var(--branco);
  padding: 18px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s, transform .15s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--verde-escuro); transform: translateY(-2px); }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--preto);
  padding: 18px 28px;
  text-decoration: none;
  font-weight: 500;
  border: 1.5px solid var(--preto);
  border-radius: 4px;
  transition: background .15s, color .15s;
  display: inline-block;
  background: transparent;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--preto); color: var(--branco); }

/* ===== Responsive base (aplicável a tokens, brand, nav-cta) ===== */

/* TV / ultrawide */
@media (min-width: 1600px) {
  :root {
    --space-3xl: 160px;
    --space-2xl: 96px;
  }
  .container { max-width: 1440px; }
  .narrow    { max-width: 960px; }
  .form-wrap { max-width: 1040px; }
}

/* Mobile — até 768px */
@media (max-width: 768px) {
  :root { --space-3xl: 64px; --space-2xl: 48px; }
  .container, .narrow { padding: 0 var(--space-md); }
  .nav-cta { padding: 8px 12px; font-size: 11px; }
  .nav-links { gap: 10px; }
  .nav-link { font-size: 11px; }
}

/* Mobile pequeno — até 420px */
@media (max-width: 420px) {
  :root { --space-md: 20px; --space-lg: 32px; --nav-h: 56px; }
  .brand-pill { font-size: 10px; padding: 3px 8px; }
  .brand-logo { height: 28px; }
  .nav-cta { padding: 7px 10px; font-size: 10px; }
  .nav-link { display: none; } /* Esconde em ultra-mobile; usuário chega via /minhas direto */
}
