/* ==========================================================
   HERÓIS DE TATUÍ - style.css

   ÍNDICE
   1. Variáveis
   2. Base
   3. Utilitários
   4. Layout
   5. Componentes
   6. Seções
   7. Responsivo
   ========================================================== */


/* ==========================================
   VARIÁVEIS (cores, fontes e medidas)
   ========================================== */


:root {
  /* Cores */
  --navy: #171a45;
  --navy-2: #1f2358;
  --navy-3: #0f1235;
  --line: #3a3f86;
  --orange: #ffb066;
  --cream: #f4f0e1;
  --ink: #14173f;
  --green: #6bd36b;
  --red: #4a2438;
  --pink: #ff6b8b;
  --text: #c9cdf5;
  --text-dim: #5b5f87;

  /* Fontes */
  --font-title: 'Press Start 2P', monospace;
  --font-label: 'Silkscreen', monospace;
  --font-body: 'VT323', monospace;

  /* Borda e sombra estilo pixel */
  --border: 4px solid var(--line);
  --shadow-dark: 8px 8px 0 #0b0d28;
  --shadow-ink: 6px 6px 0 var(--ink);
}


/* ==========================================
   BASE (reset e estilos dos elementos)
   ========================================== */

html {
  font-size: 112.5%;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1.3;
  background: var(--navy);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
  image-rendering: pixelated;
  /* mantém o pixel art nítido */
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Títulos */
h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 400;
  color: #fff;
  line-height: 1.35;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 3.1rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.1rem, 2.4vw, 1.rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Parágrafo de destaque */
.lead {
  max-width: 56ch;
  margin: 1rem 0;
  font-size: 1.4rem;
}

.lead.dim {
  color: var(--text-dim);
}

/* Barra de rolagem estilo pixel */
html {
  scrollbar-width: auto;
  /* Firefox */
  scrollbar-color: var(--orange) var(--navy-3);
  /* cor do botão e do fundo */
}

::-webkit-scrollbar {
  /* Chrome, Edge, Safari */
  width: 16px;
}

::-webkit-scrollbar-track {
  background: var(--navy-3);
  border-left: 3px solid var(--line);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border: 3px solid var(--navy-3);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-d, #e8903a);
}

/* ==========================================
   UTILITÁRIOS (classes pequenas, uma função só)
   ========================================== */
.wrap {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.accent {
  color: var(--orange);
}

.small {
  font-size: 1.1rem;
}

.small-strong {
  font-size: 1.25rem;
  line-height: 1.15;
}

.micro {
  margin-top: 0.8rem;
  font-size: 1rem;
  opacity: 0.7;
}

/* Rótulo pequeno em cima dos títulos */
.tag {
  margin-bottom: 1rem;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}

.tag.dark {
  color: var(--ink);
}


/* ==========================================
   LAYOUT (seções e grades)
   ========================================== */

/* Seções: espaçamento + cor de fundo separados */
.sec {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.sec-dark {
  background: var(--navy);
}

.sec-dark.alt {
  background: var(--navy-3);
}

.sec-light {
  background: var(--cream);
  color: #4a4d70;
}

.sec-orange {
  background: var(--orange);
  color: var(--ink);
}

/* Títulos em fundo claro */
.sec-light h2,
.sec-light h3,
.sec-orange h2 {
  color: var(--ink);
}

.on-orange-p {
  color: var(--ink);
}

/* Grades */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2rem;
}

.health {
  align-items: stretch;
  margin-top: 2rem;
}

.contacts {
  align-items: start;
  margin-top: 2rem;
}

.stack {
  display: grid;
  gap: 1.5rem;
}


/* ==========================================
   COMPONENTES (peças reutilizáveis)
   ========================================== */

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: inherit;
  background: none;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-primary,
.btn-orange {
  background: var(--orange);
  color: var(--ink);
}

.btn-ghost {
  color: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--navy-2);
  transform: none;
}

/* ---------- Moldura de "tela de jogo" ---------- */
.screen {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy-2);
  border: var(--border);
  box-shadow: var(--shadow-dark);
}

.screen.flat {
  aspect-ratio: 1 / 1;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-label {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  padding: 0.35rem 0.6rem;
  font-family: var(--font-label);
  font-size: 0.7rem;
  text-transform: uppercase;
  background: var(--navy-3);
  border: 3px solid var(--line);
}

.screen-label.orange {
  color: var(--orange);
  border-color: var(--orange);
}

/* Placeholder enquanto a imagem não existe */
.ph {
  width: 100%;
  min-height: 140px;
  background: repeating-conic-gradient(#242a6b 0 25%, #1b1f58 0 50%) 0 0 / 24px 24px;
}

/* ---------- Card branco (missões) ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-ink);
  transition: transform 0.1s;
}

.card:hover {
  transform: translate(-2px, -2px);
}

.card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 4px solid var(--ink);
}

.card-body {
  padding: 1.1rem;
}

.card-body small {
  font-family: var(--font-label);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #7b7ea3;
}

.card-body h3 {
  margin: 0.5rem 0 0.8rem;
}

/* ---------- Painéis ---------- */
.panel {
  padding: 1.4rem;
  background: var(--navy-2);
  border: var(--border);
}

.panel h3 {
  margin-bottom: 1rem;
}

.panel-light {
  color: #4a4d70;
  background: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-ink);
}

.panel-alert {
  color: #f3d6df;
  background: var(--red);
  border-color: var(--ink);
  box-shadow: var(--shadow-ink);
}

.panel-alert h3 {
  color: var(--orange);
}

/* ---------- Caixas de aviso ---------- */
.callout {
  margin-top: 1.2rem;
  padding: 1rem;
  background: var(--cream);
}

.callout strong {
  display: block;
  font-size: 1.3rem;
  color: var(--ink);
}

.callout.alert {
  background: #3a1b2c;
  border-left: 6px solid var(--orange);
}

.callout.alert strong {
  color: var(--orange);
}

.callout.warn {
  color: var(--orange);
  background: #3a1b2c;
  border: 3px solid var(--orange);
}

/* ---------- Listas ---------- */
.checks li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #3aa04a;
}

.bullets li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
}

.bullets li::before {
  content: '■';
  position: absolute;
  top: 0.3rem;
  left: 0;
  font-size: 0.6rem;
  color: #9a9dc0;
}

.bullets.plus li::before {
  content: '+';
  top: 0;
  font-size: 1.1rem;
  color: var(--orange);
}

/* Lista com ícone quadrado */
.info-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.info-list li {
  display: flex;
  gap: 1rem;
}

.info-list h3 {
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}

.info-list.slim h3 {
  font-size: 0.7rem;
}

.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.2rem;
  color: var(--orange);
  background: var(--navy-2);
  border: 3px solid var(--line);
}

/* Passos numerados */
.steps {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.steps li {
  display: flex;
  gap: 1rem;
}

.steps li>span {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--orange);
}

.steps strong {
  font-size: 1.4rem;
  color: #fff;
}

/* Nota de rodapé de seção */
.note {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--text-dim);
}

.note.light {
  color: var(--text);
}


/* ==========================================
   SEÇÕES (estilos de cada parte da página)
   ========================================== */

/* ---------- Topo / menu ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: var(--navy-3);
  border-bottom: 3px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-label);
  /* Silkscreen */
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  color: #fff;
}

.logo.big {
  font-size: 1rem;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  color: var(--ink);
  background: var(--orange);
}

#nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-family: var(--font-label);
  font-size: 0.8rem;
}

#nav a {
  text-decoration: none;
}

#nav a:not(.btn):hover {
  color: var(--orange);
}

.menu-btn {
  display: none;
  /* só aparece no celular */
  padding: 0.1rem 0.6rem;
  font-size: 1.6rem;
  color: #fff;
  background: none;
  border: 3px solid var(--line);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 70% 20%, #262b6d, transparent 55%), var(--navy);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0;
}

.hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-label);
  font-size: 0.85rem;
  background: var(--navy-2);
  border-block: 3px solid var(--line);
}

.mission-box {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.9rem;
  background: var(--navy-3);
  border: 3px solid var(--line);
}

.mission-box small {
  display: block;
  font-family: var(--font-label);
  font-size: 0.6rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.mission-box strong {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 400;
  color: #fff;
}

/* Efeito de "falha de vídeo" no título */
.glitch {
  animation: flicker 5s steps(1) infinite;
}

@keyframes flicker {

  0%,
  94%,
  100% {
    text-shadow: none;
  }

  95% {
    text-shadow: 3px 0 var(--pink), -3px 0 #5ad7ff;
  }

  97% {
    text-shadow: -2px 0 var(--pink), 2px 0 #5ad7ff;
  }
}

/* ---------- Boss (Aedes) ---------- */
.boss-card {
  background: var(--navy-2);
  border: var(--border);
  box-shadow: var(--shadow-dark);
}

.boss-card header {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  font-family: var(--font-label);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--orange);
  border-bottom: 3px solid var(--line);
}

.boss-card header span:last-child {
  color: var(--text);
}

.boss-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.boss-card footer {
  padding: 1rem;
}

.boss-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
}

.boss-card small {
  font-family: var(--font-label);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--orange);
}

/* ---------- Rotina (10 min) + checklist ---------- */
.big-number {
  margin-bottom: 1rem;
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  line-height: 1;
  color: var(--ink);
}

.big-number span {
  font-size: 1.4rem;
}

.dashed {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  font-size: 1.2rem;
  border: 3px dashed var(--ink);
}

.checklist {
  padding: 1.4rem;
  color: var(--text);
  background: var(--navy);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.checklist header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.checklist li {
  border-bottom: 2px solid var(--line);
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0;
  cursor: pointer;
}

.checklist input {
  position: absolute;
  opacity: 0;
  /* esconde o checkbox nativo */
}

.checklist strong {
  display: block;
  font-size: 1.3rem;
  color: #fff;
}

.checklist small {
  display: block;
  font-size: 1.05rem;
  opacity: 0.8;
}

.checklist-foot {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--orange);
}

#progress {
  font-family: var(--font-label);
  color: var(--orange);
}

/* Checkbox customizado */
.box {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.2rem;
  border: 3px solid var(--orange);
}

input:checked+.box {
  background: var(--orange);
}

input:checked+.box::after {
  content: '✓';
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

input:focus-visible+.box {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

input:checked~span strong {
  text-decoration: line-through;
  opacity: 0.6;
}

/* ---------- Quiz ---------- */
.qbox {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--ink);
  background: var(--orange);
}

.quiz {
  padding: 1.4rem;
  background: var(--navy-2);
  border: var(--border);
  box-shadow: var(--shadow-dark);
}

.quiz header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: var(--font-label);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--orange);
}

.quiz h3 {
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.opt {
  display: block;
  width: 100%;
  margin-bottom: 0.8rem;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 1.3rem;
  text-align: left;
  color: var(--text);
  background: var(--navy);
  border: 3px solid var(--line);
  cursor: pointer;
}

.opt:hover:not(:disabled) {
  border-color: var(--orange);
}

.opt:disabled {
  cursor: default;
}

.opt.correct {
  color: #fff;
  background: #1f3d2a;
  border-color: var(--green);
}

.opt.wrong {
  color: #fff;
  background: var(--red);
  border-color: var(--pink);
}

.quiz-result {
  margin-top: 1rem;
}

.quiz-result strong {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: var(--orange);
}

.quiz-result .btn {
  margin-top: 1rem;
}

/* ---------- Contatos ---------- */
.phone {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0.5rem 0;
  font-family: var(--font-title);
  font-size: clamp(1rem, 3vw, 1.7rem);
  color: var(--orange);
}

.phone a {
  text-decoration: none;
}

.ouv-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.ouv-row small {
  display: block;
  font-family: var(--font-label);
  font-size: 0.65rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.ouv-row a:not(.btn) {
  color: var(--orange);
  word-break: break-all;
}

/* ---------- Rodapé ---------- */
.footer {
  padding: 3rem 0 2rem;
  background: var(--navy-3);
  border-top: 3px solid var(--line);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.foot-grid .accent {
  margin: 1rem 0;
}

.src {
  margin-bottom: 1rem;
}

.src a {
  font-size: 1.05rem;
  color: var(--text);
  opacity: 0.7;
  word-break: break-all;
}

.foot-bottom {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 1.05rem;
  border-top: 2px solid var(--line);
}

.foot-bottom p:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}


/* ==========================================
   RESPONSIVO (tablet e celular)
   ========================================== */

/* Tablet e celular: tudo em uma coluna */
@media (max-width: 900px) {

  .hero-grid,
  .two-col,
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .strip {
    justify-content: flex-start;
  }

  /* Menu vira botão ☰ */
  .menu-btn {
    display: block;
  }

  #nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-3);
    border-bottom: 3px solid var(--line);
  }

  #nav.open {
    display: flex;
  }

  #nav a {
    padding: 1rem 1.5rem;
    border-top: 2px solid var(--line);
  }

  #nav .nav-cta {
    margin: 1rem 1.5rem;
    text-align: center;
  }
}

/* Celulares pequenos */
@media (max-width: 480px) {
  body {
    font-size: 1.2rem;
  }

  .logo {
    font-size: 0.6rem;
  }

  .mission-box strong {
    font-size: 0.55rem;
  }

  .phone {
    font-size: 1rem;
  }
}

/* Respeita quem prefere menos animação */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}