/* ============================================================================
   BASE.CSS — variáveis, tipografia e componentes básicos do VeicFácil V2
   ============================================================================
   Este arquivo é a "base" de TODO o visual do site. Mudou aqui, muda no site
   inteiro. É o arquivo mais importante pra você mexer.

   Como usar:
   - Pra mudar CORES: edite os "custom properties" (variáveis) no bloco :root
   - Pra mudar FONTE: mude a linha "font-family" no seletor "body"
   - Pra mudar BOTÕES: procure ".btn" abaixo
   ============================================================================ */


/* ------------------------------------------------------------
   1) VARIÁVEIS DE COR (mude AQUI pra alterar o site todo)
   ------------------------------------------------------------ */

:root {
  /* ---- Cores principais ---- */
  --primary: #176b87;         /* Azul-petróleo — cor principal da marca */
  --primary-dark: #0f5369;    /* Azul-petróleo escuro (usado em hover de botão) */
  --primary-light: #e6f0f4;   /* Azul-petróleo bem clarinho (fundos suaves) */

  --accent: #c18b32;          /* Dourado — cor de destaque */
  --accent-dark: #9a6f28;

  /* ---- Cores de estado ---- */
  --success: #157347;         /* Verde — sucesso */
  --warning: #b7791f;         /* Amarelo escuro — atenção */
  --danger: #b91c1c;          /* Vermelho — erro */
  --info: #1e40af;            /* Azul — informação */

  /* ---- Cores de texto ---- */
  --text: #172033;            /* Texto principal (quase preto) */
  --text-muted: #657087;      /* Texto secundário (cinza) */
  --text-light: #ffffff;      /* Texto sobre fundos escuros */

  /* ---- Cores de fundo ---- */
  --page: #f4f7fb;            /* Fundo geral da página */
  --panel: #ffffff;           /* Fundo de cards/painéis */
  --line: #dbe3ef;            /* Linha divisória, borda */

  /* ---- Sombras ---- */
  --shadow-sm: 0 2px 8px rgba(28, 45, 74, 0.06);
  --shadow-md: 0 8px 22px rgba(28, 45, 74, 0.10);
  --shadow-lg: 0 18px 45px rgba(28, 45, 74, 0.14);

  /* ---- Arredondamentos ---- */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* ---- Tempos de animação ---- */
  --anim-fast: 0.15s;
  --anim-normal: 0.25s;
}


/* ------------------------------------------------------------
   2) MODO ESCURO (opcional — o navegador respeita o tema do usuário)
   ------------------------------------------------------------ */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0d1720;
    --panel: #142430;
    --line: #223243;
    --text: #eef3f8;
    --text-muted: #9fb0bf;
    --primary-light: #12303b;
  }
}


/* ------------------------------------------------------------
   3) RESET E DEFAULTS
   ------------------------------------------------------------ */

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(23, 107, 135, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(193, 139, 50, 0.14), transparent 30%),
    var(--page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}


/* ------------------------------------------------------------
   4) BOTÕES
   ------------------------------------------------------------ */

.btn,
button:not([class]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--anim-fast), transform var(--anim-fast),
              box-shadow var(--anim-fast);
}
.btn:hover,
button:not([class]):hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(23, 107, 135, 0.22);
  transform: translateY(-1px);
}

/* Variações */
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--page);
  border-color: var(--text-muted);
}

.btn-danger {
  background: var(--danger);
}
.btn-danger:hover {
  background: #991616;
}

.btn-link {
  background: transparent;
  color: var(--primary);
  min-height: auto;
  padding: 0;
  text-decoration: underline;
}

.btn-block {
  width: 100%;
}


/* ------------------------------------------------------------
   5) FORMULÁRIOS
   ------------------------------------------------------------ */

label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color var(--anim-fast), box-shadow var(--anim-fast);
}
textarea {
  resize: vertical;
  min-height: 100px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.14);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}


/* ------------------------------------------------------------
   6) CARDS / PAINÉIS
   ------------------------------------------------------------ */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}


/* ------------------------------------------------------------
   7) UTILITÁRIOS
   ------------------------------------------------------------ */

.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-success { background: rgba(21, 115, 71, 0.15); color: var(--success); }
.badge-danger  { background: rgba(185, 28, 28, 0.15); color: var(--danger); }
.badge-warning { background: rgba(183, 121, 31, 0.15); color: var(--warning); }


/* ------------------------------------------------------------
   8) BOTÃO WHATSAPP (componente reutilizável)
   ------------------------------------------------------------ */
.whats-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  background: #25D366;
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--anim-fast), transform var(--anim-fast),
              box-shadow var(--anim-fast);
}
.whats-btn:hover {
  background: #1FB855;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  color: #fff;
  text-decoration: none;
}
.whats-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}
.whats-btn--sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.9rem;
}
.whats-btn--block {
  width: 100%;
}


/* ------------------------------------------------------------
   9) BOTÃO E-MAIL (companheiro do WhatsApp)
   ------------------------------------------------------------ */
.email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--anim-fast), color var(--anim-fast);
}
.email-btn:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
.email-btn svg { width: 18px; height: 18px; fill: currentColor; }


/* Container para agrupar WhatsApp + E-mail lado a lado */
.contact-buttons {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.contact-buttons > * {
  flex: 1;
  min-width: 140px;
}


/* ------------------------------------------------------------
   10) UTILITÁRIOS EXTRAS (extraídos de inline styles - correcao da auditoria)
   ------------------------------------------------------------ */

/* Lista de benefícios no painel escuro do login/cadastro */
.brand-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-light);
}
.brand-benefits li {
  margin: 8px 0;
  font-size: 1rem;
}

/* Input de código OTP (2FA) */
.otp-input {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0.5em;
  font-weight: 700;
}

/* Texto claro com opacidade para overlays escuros */
.text-on-dark-muted {
  color: var(--text-light);
  opacity: 0.6;
  font-size: 0.85rem;
}


/* ------------------------------------------------------------
   11) MENSAGENS DE FEEDBACK (usadas pelo JavaScript)
   ------------------------------------------------------------ */
.msg-feedback {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.5;
  display: none;
}
.msg-feedback--erro {
  background: rgba(185, 28, 28, 0.10);
  color: #b91c1c;
  border-left: 4px solid #b91c1c;
}
.msg-feedback--sucesso {
  background: rgba(21, 115, 71, 0.10);
  color: #157347;
  border-left: 4px solid #157347;
}
.msg-feedback--info {
  background: rgba(23, 107, 135, 0.10);
  color: var(--primary-dark);
  border-left: 4px solid var(--primary);
}


/* ------------------------------------------------------------
   12) PÁGINAS "EM CONSTRUÇÃO" (stubs de páginas ainda não prontas)
   ------------------------------------------------------------ */
.em-construcao {
  max-width: 640px;
  margin: 40px auto;
  text-align: center;
}

.em-construcao-badge {
  color: var(--warning);
  background: rgba(183, 121, 31, 0.12);
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.em-construcao h2 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.em-construcao p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
