/* Corrida do Servidor 2026 — Jogos dos Servidores da Prefeitura de Boa Vista
   Tokens e estilos conforme o handoff de design (alta fidelidade). */

:root {
  --bg: #FAF6EE;
  --surface: #FFFFFF;
  --ink: #16202E;
  --ink-2: #43526A;
  --ink-3: #7A879B;
  --azul: #1B4FA8;
  --azul-escuro: #123A7C;
  --azul-claro: #2E7BE0;
  --laranja: #F5821F;
  --laranja-hover: #FF9436;
  --amarelo: #FFC81E;

  --linha-08: rgba(22, 32, 46, 0.08);
  --linha-09: rgba(22, 32, 46, 0.09);
  --linha-13: rgba(22, 32, 46, 0.13);
  --linha-16: rgba(22, 32, 46, 0.16);

  --container: 1160px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { max-width: 100%; }

/* O espaçamento do layout vem de gap/margens explícitas, não das margens
   padrão de parágrafo. */
p { margin: 0; }

h1, h2 {
  font-family: "Archivo Black", Figtree, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 { font-size: clamp(28px, 3.6vw, 42px); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.secao { padding-block: 72px; }

/* Âncoras precisam limpar o header fixo */
[id] { scroll-margin-top: 84px; }

.pular {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--azul);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}
.pular:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Elementos recorrentes ---------- */

.eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow--laranja { color: var(--laranja); }
.eyebrow--azul { color: var(--azul); }
.eyebrow--amarelo { color: var(--amarelo); }

/* Selo "em breve": informativo, não interativo. */
.selo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 32, 46, 0.06);
  color: var(--ink-2);
  font-weight: 800;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px dashed rgba(22, 32, 46, 0.22);
  white-space: nowrap;
}

.selo--grande {
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
  padding: 17px 30px;
  border: 2px dashed rgba(22, 32, 46, 0.18);
}

.selo--grande::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--laranja);
  flex: none;
}

.selo--claro {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
  padding: 18px 38px;
  border: 2px dashed rgba(255, 255, 255, 0.45);
}

.selo--regulamento {
  background: rgba(22, 32, 46, 0.05);
  padding: 16px 28px;
  border: 2px dashed rgba(22, 32, 46, 0.2);
}

.btn-secundario {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  padding: 17px 26px;
  border-radius: 999px;
  border: 2px solid rgba(22, 32, 46, 0.14);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.btn-secundario:hover { border-color: var(--azul); color: var(--azul); }

/* ---------- Header ---------- */

.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linha-08);
}

.topo__linha {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.topo__logo { height: 40px; width: auto; display: block; }

.topo__painel {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.topo__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}
.topo__nav a { color: var(--ink); }
.topo__nav a:hover { color: var(--azul); }

/* Hambúrguer: só existe no mobile (ver media query). */
.topo__menu { display: none; }

/* ---------- Hero ---------- */

.hero { padding: 40px var(--gutter) 64px; }

.hero__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 40px;
  align-items: center;
}

.hero__texto { display: flex; flex-direction: column; gap: 22px; }

.hero__badge {
  align-self: flex-start;
  background: var(--azul);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
}

.hero__data { display: flex; align-items: flex-end; gap: 16px; }

.hero__dia {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(76px, 13vw, 148px);
  line-height: 0.78;
  letter-spacing: -0.05em;
}

.hero__mes-bloco { padding-bottom: 10px; }

.hero__mes {
  display: block;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1;
  color: var(--laranja);
}

.hero__ano {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  text-wrap: balance;
}
.hero h1 span { color: var(--azul); }

.hero__lead {
  max-width: 520px;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Contagem regressiva */
.contagem {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contagem li {
  background: var(--surface);
  border: 1px solid var(--linha-08);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.contagem__valor {
  font-family: "Archivo Black", sans-serif;
  font-size: 22px;
  color: var(--azul);
  font-variant-numeric: tabular-nums;
}

.contagem__rotulo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero__arte {
  position: relative;
  background: linear-gradient(160deg, #FFF6DC, #EAF1FF);
  border-radius: 40px;
  padding: 44px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  overflow: hidden;
}

.hero__arte::before,
.hero__arte::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero__arte::before {
  top: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  background: rgba(255, 200, 30, 0.5);
}
.hero__arte::after {
  bottom: -40px;
  left: -20px;
  width: 140px;
  height: 140px;
  background: rgba(46, 123, 224, 0.18);
}

.hero__logo {
  position: relative;
  width: 100%;
  /* A animação `floaty` rotaciona o logo, o que alarga a caixa dele em ~3%.
     Os 90% deixam essa folga: sem isso o `overflow: hidden` do card corta os
     cantos quando o logo ocupa a largura toda (acontecia no celular). */
  max-width: min(460px, 90%);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 28px rgba(22, 32, 46, 0.18));
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* ---------- Percursos ---------- */

.percursos {
  background: var(--surface);
  border-top: 1px solid rgba(22, 32, 46, 0.07);
  border-bottom: 1px solid rgba(22, 32, 46, 0.07);
}

.percursos__cabecalho {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.percursos__nota {
  max-width: 380px;
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
}

.percursos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.pelotao {
  border-radius: 28px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pelotao--5k {
  background: linear-gradient(150deg, #1B4FA8, #2E7BE0);
  color: #fff;
  box-shadow: 0 18px 40px rgba(27, 79, 168, 0.24);
}

.pelotao--25k {
  background: linear-gradient(150deg, #F5821F, #FFC81E);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(245, 130, 31, 0.22);
}

.pelotao__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}
.pelotao--25k .pelotao__eyebrow { opacity: 0.7; }

.pelotao__distancia {
  font-family: "Archivo Black", sans-serif;
  font-size: 62px;
  line-height: 0.9;
}

.pelotao__largada { font-size: 17px; font-weight: 700; }

.pelotao__texto {
  margin: 0;
  opacity: 0.86;
  line-height: 1.55;
  font-size: 15px;
}
.pelotao--25k .pelotao__texto { opacity: 0.78; }

.bom-saber {
  border-radius: 28px;
  padding: 30px;
  background: var(--bg);
  border: 2px dashed var(--linha-16);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bom-saber__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.bom-saber ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bom-saber li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

.bom-saber li::before {
  content: "\203A";
  color: var(--azul);
  font-weight: 900;
  flex: none;
}

/* ---------- Cronograma ---------- */

.cronograma__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: etapa;
}

.etapa {
  background: var(--surface);
  border-radius: 24px;
  padding: 26px;
  border: 1px solid var(--linha-08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.etapa::before {
  counter-increment: etapa;
  content: counter(etapa);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--amarelo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo Black", sans-serif;
  font-size: 18px;
}

.etapa__titulo {
  font-family: "Archivo Black", sans-serif;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.etapa__quando {
  font-size: 14px;
  font-weight: 800;
  color: var(--laranja);
  letter-spacing: 0.04em;
}

.etapa p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Kit ---------- */

.kit { background: var(--ink); color: #fff; }

.kit__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
  align-items: center;
}

.kit__texto { display: flex; flex-direction: column; gap: 18px; }

.kit__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 460px;
}

.kit__aviso {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.kit__lista {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kit__item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.kit__icone { font-size: 28px; flex: none; line-height: 1; }

.kit__item strong {
  display: block;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: 18px;
}

.kit__item span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14.5px;
  line-height: 1.45;
  margin-top: 4px;
}

/* ---------- Premiação ---------- */

.premiacao { background: var(--surface); }

.premiacao__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.premio {
  border-radius: 24px;
  padding: 26px;
  background: var(--bg);
  border: 1px solid var(--linha-08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premio strong {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: 19px;
  color: var(--azul);
}

.premio span {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}

.regulamento {
  margin-top: 26px;
  border-radius: 28px;
  padding: 30px;
  background: linear-gradient(120deg, #EAF1FF, #FFF6DC);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.regulamento__texto { max-width: 560px; }

.regulamento__titulo {
  font-family: "Archivo Black", sans-serif;
  font-size: 22px;
  margin: 0 0 8px;
}

.regulamento__desc {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */

.faq__container {
  max-width: 820px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.faq__lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--linha-09);
  border-radius: 20px;
  overflow: hidden;
}

.faq__item h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq__pergunta {
  width: 100%;
  background: none;
  border: 0;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

/* Só o texto da pergunta ocupa a sobra — o sinal fica encostado à direita.
   Precisa ser mais específico que `.faq__sinal { flex: none }` não vencer. */
.faq__pergunta > span:first-child { flex: 1; }

.faq__sinal {
  font-family: "Archivo Black", sans-serif;
  color: var(--laranja);
  font-size: 20px;
  line-height: 1;
  flex: none;
}
.faq__pergunta[aria-expanded="true"] .faq__sinal::before { content: "\2013"; }
.faq__pergunta[aria-expanded="false"] .faq__sinal::before { content: "+"; }

.faq__resposta[hidden] { display: none; }

.faq__resposta p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---------- Chamada final ---------- */

.chamada { padding: 0 var(--gutter) 72px; }

.chamada__card {
  max-width: var(--container);
  margin: 0 auto;
  border-radius: 36px;
  background: linear-gradient(140deg, #1B4FA8, #2E7BE0);
  color: #fff;
  padding: 56px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.chamada h2 {
  font-size: clamp(28px, 4.2vw, 48px);
  text-wrap: balance;
}

.chamada p {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.55;
}

/* ---------- Rodapé ---------- */

.rodape {
  border-top: 1px solid rgba(22, 32, 46, 0.1);
  padding: 36px var(--gutter) 48px;
}

.rodape__linha {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.rodape__logo { height: 56px; width: auto; display: block; }

.rodape__credito {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 520px;
}

.rodape__pdf {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-3);
}

/* ---------- Responsivo ---------- */

/* O protótipo não resolvia a nav no celular. Abaixo de 860px o logo e o selo não
   cabem lado a lado, então a navegação vai para um painel com hambúrguer. */
@media (max-width: 860px) {
  .topo__linha { gap: 12px; }

  .topo__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--ink);
  }

  /* Barra do meio + as duas de fora em ::before/::after. */
  .topo__menu-barras,
  .topo__menu-barras::before,
  .topo__menu-barras::after {
    display: block;
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .topo__menu-barras { position: relative; }
  .topo__menu-barras::before,
  .topo__menu-barras::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .topo__menu-barras::before { top: -8px; }
  .topo__menu-barras::after { top: 8px; }

  .topo__menu[aria-expanded="true"] .topo__menu-barras { background: transparent; }
  .topo__menu[aria-expanded="true"] .topo__menu-barras::before { transform: translateY(8px) rotate(45deg); }
  .topo__menu[aria-expanded="true"] .topo__menu-barras::after { transform: translateY(-8px) rotate(-45deg); }

  .topo__painel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--linha-08);
    box-shadow: 0 18px 30px rgba(22, 32, 46, 0.08);
  }
  .topo--aberto .topo__painel { display: flex; }

  .topo__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 16px;
  }

  .topo__nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--linha-08);
  }
  .topo__nav a:last-child { border-bottom: 0; }

  .topo__selo {
    align-self: flex-start;
    margin-top: 10px;
  }

  [id] { scroll-margin-top: 80px; }
}

@media (max-width: 560px) {
  .secao { padding-block: 56px; }
  .hero { padding-bottom: 48px; }
  .hero__arte { padding: 32px 22px; min-height: 300px; border-radius: 32px; }
  .pelotao, .bom-saber { padding: 26px; }
  .chamada__card { padding: 44px 24px; border-radius: 28px; }
  .regulamento { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__logo { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
