:root {
  /* Conceito: quadro de pit de equipe FRC. Chão de arena verde-floresta com malha de fita, tipografia stencil como no logo, paragolpe vermelho como acento e o ícone dos bodes sobre anéis concêntricos que lembram as espirais dos chifres. */
  --forest-950: #08190f;
  --forest-900: #0c2418;
  --forest-800: #123222;
  --forest-700: #1a4430;
  --moss: #316b43;
  --leaf: #8fcfa3;
  --red: #e30713;
  --red-hot: #ff2a36;
  --red-text: #ff7a7f;
  --paper: #f4f7f2;
  --muted: #a8c4b2;
  --line: rgba(244, 247, 242, 0.13);
  --grid: rgba(244, 247, 242, 0.035);
  --font-display: 'Big Shoulders Stencil Display', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --photo-equipe: url("../assets/frc_tech_sepei.webp");
  --photo-equipe-sozinha: url("../assets/premio_sepei.webp");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--forest-900); scroll-behavior: auto; }
body {
  margin: 0;
  background-color: var(--forest-900);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--paper);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--forest-950);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--forest-950);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  padding-block: 0.6rem;
}
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.tabs {
  display: flex;
  gap: 0.25rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0.15rem;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  flex: none;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  color: var(--muted);
  font: 600 0.84rem/1 var(--font-body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.tab:hover { color: var(--paper); }
.tab[aria-current="page"] { color: var(--paper); }
.tab[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 4px;
  border-radius: 2px;
  background: var(--red);
}
.tab-help { background: var(--red); color: var(--paper); margin-left: 0.35rem; }
.tab-help:hover { background: var(--red-hot); }
.tab-help[aria-current="page"]::after { background: var(--paper); }
@media (max-width: 860px) {
  .tabs { flex: 1 1 100%; }
}

/* ---------- Blocos comuns ---------- */
.panel { padding-block: clamp(2rem, 5vw, 4.25rem); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 500 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}
.kicker::before {
  content: "";
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
  flex: none;
}
h1, h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  text-wrap: balance;
}
h1 { font-weight: 900; font-size: clamp(2.9rem, 8.6vw, 6.4rem); line-height: 0.92; letter-spacing: 0.005em; }
h2 { font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 0.98; }
h3 { font: 700 1.25rem/1.25 var(--font-body); text-wrap: balance; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.6; color: #dce9df; max-width: 38rem; }
.page-head { display: grid; gap: 0.9rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.page-head p { color: var(--muted); max-width: 40rem; }
.section { margin-top: clamp(3rem, 6vw, 5rem); }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 1.75rem; max-width: 40rem; }
.section-head p { color: var(--muted); }
.tier-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
  font: 500 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}
.tier-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font: 700 0.92rem/1 var(--font-body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: var(--red);
  color: var(--paper);
}
.btn:hover { background: var(--red-hot); }
.btn-ghost { background: transparent; border-color: rgba(244, 247, 242, 0.45); }
.btn-ghost:hover { background: rgba(244, 247, 242, 0.08); border-color: var(--paper); }
.btn-sm { padding: 0.55rem 0.85rem; font-size: 0.78rem; background: transparent; border-color: rgba(244, 247, 242, 0.4); font-family: var(--font-body); color: var(--paper); }
.btn-sm:hover { background: rgba(244, 247, 242, 0.1); border-color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Marcação de texto a preencher */
.fill {
  display: inline-block;
  padding: 0.05em 0.5em;
  border: 1px dashed rgba(244, 247, 242, 0.4);
  border-radius: 4px;
  background: rgba(244, 247, 242, 0.05);
  color: var(--muted);
  font: 400 0.88em/1.5 var(--font-mono);
}
.fill-block {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.75rem 1.25rem;
  border: 1.5px dashed rgba(244, 247, 242, 0.3);
  border-radius: 12px;
  background: rgba(244, 247, 242, 0.03);
  color: var(--muted);
  font: 400 0.9rem/1.6 var(--font-mono);
}
.fill-block strong { color: var(--paper); font: 600 0.78rem/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }

.card {
  padding: 1.5rem;
  background: var(--forest-800);
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* ---------- Blocos compartilhados entre abas ---------- */
.slot {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.75rem;
  border: 1.5px dashed rgba(244, 247, 242, 0.25);
  border-radius: 10px;
  color: var(--muted);
  font: 400 0.78rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; }
.two-col p { color: var(--muted); }
.two-col p + p { margin-top: 0.9rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.robots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.robots .slot { aspect-ratio: 4 / 3; }
@media (max-width: 640px) { .robots { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Fotos ---------- */
.photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 640px;
  background: var(--forest-800) var(--photo-equipe) center 38% / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 14px;
  
}
/* Segunda foto (troféu): só troca a imagem; tamanho e borda vêm do .photo */
.photo-sozinha { background-image: var(--photo-equipe-sozinha); }
.photo-img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--forest-800); }
figcaption { margin-top: 0.75rem; font: 400 0.78rem/1.5 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 560px) { .photo { aspect-ratio: 4 / 3; } }

/* ---------- Rodapé ---------- */
.tape { height: 12px; margin-top: clamp(3rem, 7vw, 5rem); background: repeating-linear-gradient(-45deg, var(--red) 0 12px, var(--paper) 12px 24px); }
.site-footer { background: var(--forest-950); padding-block: 2.25rem; }
.foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem 3rem; align-items: start; }
.foot img { height: 44px; width: auto; }
.foot p { margin-top: 0.8rem; color: var(--muted); font-size: 0.95rem; max-width: 22rem; }
.foot h4 { margin: 0 0 0.6rem; font: 500 0.72rem/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf); }
.foot li { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.4rem; overflow-wrap: anywhere; }
@media (max-width: 760px) { .foot { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: no-preference) {
  .btn, .btn-sm, .tab { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
}