/* ===========================
   Design Tokens — cores da logomarca
   =========================== */
:root {
  --fonte: "Inter", sans-serif;
  --fonte-tamanho: 16px;

  /* Paleta extraída da logo */
  --laranja:        #F5A021;
  --laranja-escuro: #D4841A;
  --laranja-claro:  #FEF3E2;
  --azul:           #4BA3C7;
  --azul-escuro:    #2E7EA8;
  --azul-claro:     #E8F4FA;
  --vermelho:       #C0392B;

  /* Neutros */
  --texto:          #1C2B3A;
  --texto-suave:    #6B7A8D;
  --texto-branco:   #FFFFFF;

  /* Superfícies */
  --fundo:          #F4F6F9;
  --painel:         #FFFFFF;
  --borda:          #E2E8F0;
  --borda-forte:    #C8D3DF;

  /* Cabeçalho — branco com destaque laranja */
  --cabecalho-bg:      #FFFFFF;
  --cabecalho-borda:   var(--laranja);
  --cabecalho-texto:   var(--texto);

  /* Estados */
  --erro: #DC2626;

  /* Raios */
  --raio-campo:  10px;
  --raio-painel: 14px;
  --raio-botao:  40px;

  /* Sombras */
  --sombra-card:  0 2px 10px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  --sombra-topo:  0 2px 12px rgba(0,0,0,0.1);
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: var(--fonte-tamanho);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

a { color: var(--azul-escuro); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--laranja); }

/* ===========================
   Cabeçalho
   =========================== */
.topo {
  background: var(--cabecalho-bg);
  box-shadow: var(--sombra-topo);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--laranja);
}

.topo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.6rem 1.5rem;
  max-width: 95rem;
  margin: 0 auto;
}

.topo-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.topo-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}

.topo-divider {
  width: 1px;
  height: 40px;
  background: var(--borda-forte);
  flex-shrink: 0;
}

.topo-textos {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.topo-subtitulo {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azul);
  line-height: 1;
}

.topo h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--laranja-escuro);
  line-height: 1.2;
}

.topo-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #F0FAF4;
  border: 1px solid #A7D7B8;
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #166534;
  white-space: nowrap;
}

.topo-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulsar 2s ease-in-out infinite;
}

@keyframes pulsar {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,0.25); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0.08); }
}

/* ===========================
   Painel genérico
   =========================== */
.painel {
  background: var(--painel);
  border: 1px solid var(--borda);
  border-radius: var(--raio-painel);
  box-shadow: var(--sombra-card);
  overflow: hidden;
}

.painel > header {
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, var(--laranja-escuro), var(--laranja));
  color: var(--texto-branco);
  font-size: 0.9rem;
  font-weight: 600;
}

.painel > .corpo { padding: 1rem; }

/* ===========================
   Formulário
   =========================== */
label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--texto-suave);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input {
  width: 100%;
  height: 42px;
  padding: 0 0.85rem;
  border: 1.5px solid var(--borda);
  border-radius: var(--raio-campo);
  background: var(--painel);
  color: var(--texto);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder { color: #B0BEC5; }

input:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(75,163,199,0.15);
  outline: none;
}

input:hover:not(:focus) { border-color: var(--borda-forte); }
