/* Landpage Artvel Chevrolet
   Cores tiradas da própria fachada: azul do painel, branco do corrimão,
   azul-noite para contraste e o dourado da gravata como único destaque. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  --azul-noite: #0b2545;
  --azul-fachada: #1b6ec2;
  --azul-claro: #e6f0fa;
  --dourado: #f4bd18;
  --branco: #ffffff;
  --cinza-texto: #4a5a6d;
  --cinza-linha: #c9d4e0;
  --fundo: #f3f6fa;
  --vermelho: #b3261e;
  --vermelho-fundo: #fdecea;

  --titulo: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --texto: "Barlow", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--azul-noite);
  background: var(--fundo);
}
h1, h2, p, ul, fieldset { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: var(--azul-fachada); }
:focus-visible { outline: 3px solid var(--dourado); outline-offset: 2px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Marca ---------- */
.marca {
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marca-bandeira { font-weight: 600; color: var(--dourado); }
.marca-com-logo { display: inline-flex; align-items: center; gap: 0.5em; }
.marca-com-logo .marca-bandeira { padding-left: 0.5em; border-left: 2px solid rgba(255, 255, 255, 0.35); color: var(--branco); line-height: 1.15; }
.marca-logo { height: 1.15em; width: auto; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.5rem;
  font: 600 1.0625rem var(--texto);
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 6px;
}
.botao-cheio { background: var(--azul-fachada); color: var(--branco); }
.botao-cheio:hover { background: #155a9f; }
.botao-cheio:disabled { background: var(--cinza-texto); cursor: progress; }
.botao-contorno { background: var(--branco); color: var(--azul-noite); border-color: var(--azul-noite); }
.botao-contorno:hover { background: var(--azul-claro); }
.botao-claro { background: var(--branco); color: var(--azul-noite); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--azul-fachada); text-decoration: underline; cursor: pointer; }
.link-perigo { color: var(--vermelho); }

/* =====================================================================
   Página do QR code (laptop em campo)
   ===================================================================== */
.tela-qr { background: var(--azul-noite); color: var(--branco); }
.palco {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 4rem);
  overflow: hidden;
}
.palco-foto {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
}
.palco-sombra {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 37, 69, 0.94) 0%, rgba(11, 37, 69, 0.82) 30%, rgba(11, 37, 69, 0) 58%),
    linear-gradient(0deg, rgba(11, 37, 69, 0.75) 0%, rgba(11, 37, 69, 0) 45%);
}
.chamada, .cartao-qr { position: relative; }
.chamada { max-width: 34rem; align-self: end; padding-bottom: clamp(0.5rem, 3vh, 2rem); }
.chamada .marca { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.chamada-cidade {
  margin-top: 0.4rem;
  font-size: clamp(1rem, 1.4vw, 1.375rem);
  color: #c5d6ea;
}
.chamada-titulo {
  margin-top: clamp(1.25rem, 3vh, 2.25rem);
  font-family: var(--titulo);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.chamada-apoio {
  margin-top: 1.25rem;
  max-width: 26rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.5rem);
  line-height: 1.4;
  color: #dbe6f3;
}
.cartao-qr {
  align-self: center;
  width: clamp(260px, 30vw, 460px);
  padding: clamp(0.75rem, 1.2vw, 1.25rem);
  background: var(--branco);
  color: var(--azul-noite);
  border-radius: 10px;
  border-bottom: 8px solid var(--dourado);
  box-shadow: 0 24px 60px rgba(4, 16, 33, 0.55);
  text-align: center;
}
.qr-svg { display: block; width: 100%; height: auto; }
.cartao-qr-endereco { padding: 0.25rem 0 0.5rem; font-size: clamp(0.875rem, 1.1vw, 1.125rem); color: var(--cinza-texto); }
.cartao-qr-endereco strong { color: var(--azul-noite); font-weight: 600; }
.tela-cheia {
  position: absolute; right: 1rem; bottom: 1rem;
  padding: 0.4rem 0.8rem;
  font: 400 0.875rem var(--texto);
  color: var(--branco); background: rgba(11, 37, 69, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 4px; cursor: pointer;
}
.tela-cheia:hover { background: rgba(11, 37, 69, 0.9); }
.so-celular { display: none; }

@media (max-width: 760px) {
  .palco { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; padding: 1.5rem 1.25rem 2rem; }
  .palco-sombra { background: linear-gradient(180deg, rgba(11, 37, 69, 0.92) 0%, rgba(11, 37, 69, 0.8) 100%); }
  .chamada { align-self: start; }
  .so-celular { display: inline-flex; margin-top: 1.5rem; width: 100%; }
  .cartao-qr { width: min(100%, 300px); justify-self: center; }
  .tela-cheia { display: none; }
}

/* =====================================================================
   Formulário no celular
   ===================================================================== */
.topo { position: relative; height: 148px; background: var(--azul-noite); color: var(--branco); overflow: hidden; }
.topo-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.topo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11, 37, 69, 0.95) 0%, rgba(11, 37, 69, 0.55) 55%, rgba(11, 37, 69, 0.2) 100%);
}
.topo-conteudo {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  max-width: 34rem; margin: 0 auto; padding: 0 1.25rem 0.9rem;
}
.topo-cidade { margin-top: 0.15rem; font-size: 0.9375rem; color: #c5d6ea; }

.folha { max-width: 34rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.folha-titulo { font-family: var(--titulo); font-weight: 700; font-size: 2.25rem; line-height: 1.05; }
.folha-apoio { margin-top: 0.5rem; color: var(--cinza-texto); }
.folha form { margin-top: 1.5rem; }

.campo { margin-bottom: 1.1rem; }
.campo label, .opcoes legend { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.campo input, .campo select {
  width: 100%; min-height: 52px; padding: 0 0.9rem;
  font: 400 1.0625rem var(--texto); color: var(--azul-noite);
  background: var(--branco);
  border: 1.5px solid var(--cinza-linha); border-radius: 6px;
}
.campo input::placeholder { color: #8a99ab; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--azul-fachada); box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.22); }
.com-erro input:not([type="radio"]):not([type="checkbox"]) { border-color: var(--vermelho); }
.erro { margin-top: 0.35rem; font-size: 0.9375rem; color: var(--vermelho); }
.aviso { margin-top: 1rem; padding: 0.8rem 1rem; color: var(--vermelho); background: var(--vermelho-fundo); border-left: 4px solid var(--vermelho); border-radius: 4px; }

.opcoes { border: 0; margin: 1.6rem 0 1.4rem; }
.opcoes legend { padding: 0; font-family: var(--titulo); font-weight: 700; font-size: 1.5rem; line-height: 1.15; margin-bottom: 0.75rem; }
.opcao {
  position: relative;
  display: flex; align-items: center; gap: 0.8rem;
  min-height: 56px; padding: 0.6rem 0.9rem; margin-bottom: 0.5rem;
  background: var(--branco);
  border: 1.5px solid var(--cinza-linha); border-radius: 6px;
  cursor: pointer;
}
.opcao input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.opcao-marca {
  flex: none; width: 22px; height: 22px;
  border: 2px solid var(--cinza-texto); border-radius: 50%;
  background: var(--branco);
}
.opcao:has(input:checked) { border-color: var(--azul-fachada); background: var(--azul-claro); box-shadow: inset 4px 0 0 var(--azul-fachada); }
.opcao:has(input:checked) .opcao-marca { border-color: var(--azul-fachada); background: radial-gradient(circle, var(--azul-fachada) 0 45%, var(--branco) 50%); }
.opcao:has(input:checked) .opcao-texto { font-weight: 600; }
.opcao:has(input:focus-visible) { outline: 3px solid var(--dourado); outline-offset: 2px; }

.aceite { margin-bottom: 1.5rem; }
.aceite-linha { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; line-height: 1.45; color: var(--cinza-texto); cursor: pointer; }
.aceite-linha input { flex: none; width: 24px; height: 24px; margin: 0.1rem 0 0; accent-color: var(--azul-fachada); }
.folha .botao-cheio { width: 100%; }

.armadilha { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.folha-final { padding-top: 2.5rem; text-align: center; }
.folha-final .botao { margin-top: 1.5rem; }
.confere { width: 72px; height: 72px; margin: 0 auto 1.25rem; }
.confere circle { fill: var(--azul-fachada); }
.confere path { fill: none; stroke: var(--branco); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 34; animation: riscar 0.45s 0.15s ease-out forwards; }
@keyframes riscar { to { stroke-dashoffset: 0; } }

.texto-longo h2 { margin-top: 1.5rem; font-family: var(--titulo); font-weight: 700; font-size: 1.375rem; }
.texto-longo p { margin-top: 0.5rem; }

/* =====================================================================
   Painel administrativo
   ===================================================================== */
.tela-admin { background: var(--fundo); }
.tela-login { background: var(--azul-noite); }
.login { max-width: 25rem; margin: 0 auto; padding: 10vh 1.25rem 3rem; color: var(--branco); }
.login form { padding: 1.5rem; background: var(--branco); color: var(--azul-noite); border-radius: 8px; }
.login .aviso { margin: 0 0 1rem; }
.login-titulo { margin: 1.5rem 0 1rem; font-family: var(--titulo); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.login .botao { width: 100%; margin-top: 0.5rem; }

.barra {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem;
  padding: 0.9rem clamp(1rem, 3vw, 2.5rem);
  background: var(--azul-noite); color: var(--branco);
}
.barra-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; font-size: 0.9375rem; }
.barra-acoes a, .barra-acoes .link { color: var(--branco); }
.barra-acoes form { margin: 0; }

.painel { max-width: 82rem; margin: 0 auto; padding: 1.75rem clamp(1rem, 3vw, 2.5rem) 4rem; }
.painel-titulo { font-family: var(--titulo); font-weight: 700; font-size: 2.25rem; line-height: 1.05; }

.resumo { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-top: 1.25rem; background: var(--branco); border: 1px solid var(--cinza-linha); border-radius: 8px; overflow: hidden; }
.resumo li + li { border-left: 1px solid var(--cinza-linha); }
.resumo a { display: block; height: 100%; padding: 0.9rem 1rem; color: var(--azul-noite); text-decoration: none; border-bottom: 4px solid transparent; }
.resumo a:hover { background: var(--azul-claro); }
.resumo a.ativo { border-bottom-color: var(--azul-fachada); background: var(--azul-claro); }
.resumo strong { display: block; font-family: var(--titulo); font-weight: 700; font-size: 2.25rem; line-height: 1; font-variant-numeric: tabular-nums; }
.resumo span { display: block; margin-top: 0.25rem; font-size: 0.9375rem; color: var(--cinza-texto); }

.filtros { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.filtros .campo { margin: 0; }
.filtros .campo:first-of-type { flex: 1 1 16rem; }
.filtros .campo label { font-size: 0.9375rem; }
.filtros .campo input, .filtros .campo select, .filtros .botao { min-height: 44px; }
.limpar { align-self: center; font-size: 0.9375rem; }

.exportar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 1.5rem 0 0.75rem; }
.exportar p { font-weight: 600; }
.exportar div { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.exportar .botao { min-height: 44px; padding: 0 1.1rem; font-size: 1rem; }

.tabela-rolagem { overflow-x: auto; background: var(--branco); border: 1px solid var(--cinza-linha); border-radius: 8px; }
.tabela { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tabela th, .tabela td { padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; }
.tabela th { font-weight: 600; font-size: 0.9375rem; color: var(--cinza-texto); background: var(--fundo); border-bottom: 1px solid var(--cinza-linha); white-space: nowrap; }
.tabela tbody tr + tr td { border-top: 1px solid #e3e9f0; }
.tabela tbody tr:hover td { background: #f8fafc; }
.sem-quebra { white-space: nowrap; }
.etiqueta { display: inline-block; padding: 0 0.4rem; font-size: 0.8125rem; color: #7a5a00; background: #fbf0cf; border-radius: 3px; }
.intencao { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.9375rem; white-space: nowrap; background: #e9eef4; color: var(--cinza-texto); }
.intencao-imediato { background: var(--azul-noite); color: var(--branco); font-weight: 600; }
.intencao-3meses { background: var(--azul-fachada); color: var(--branco); }
.intencao-1ano { background: var(--azul-claro); color: var(--azul-noite); }
.form-excluir { margin: 0; }
.paginacao { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1.25rem; }
.vazio { margin-top: 1rem; padding: 2.5rem 1.5rem; text-align: center; color: var(--cinza-texto); background: var(--branco); border: 1px dashed var(--cinza-linha); border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  .confere path { animation: none; stroke-dashoffset: 0; }
}
