/* ==========================================================================
   F4F — Fight4Freedom
   Estilo: minimalista, tom escuro, texto claro.
   Paleta em variáveis CSS, cor de destaque (--accent) tirada da borda
   ferrugem/bronze da logo oficial do clã.
   ========================================================================== */

:root {
  --bg:            #0a0b0d;
  --bg-elevated:   #131519;
  --bg-elevated-2: #1b1e24;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text:          #f3f4f6;
  --text-dim:      #a3a8b3;
  --text-faint:    #6b7078;

  --accent:        #e2542f; /* tom ferrugem da borda da logo (Fight4Freedom) */
  --accent-hover:  #ff7048;
  --accent-text:   #1e0800;

  /* Segunda cor, usada nas páginas de Pelotão/Medalhas (destaques, pontuação) */
  --accent-2:       #3da9ff;
  --accent-2-hover: #62bbff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-dim); margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { border-color: var(--text-dim); transform: translateY(-1px); }

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--ghost { border-color: var(--border); color: var(--text-dim); }
.btn--block { width: 100%; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__logo { width: 36px; height: 36px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* Botão hambúrguer */
.menu-toggle {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle__box {
  width: 20px; height: 14px;
  position: relative;
}
.menu-toggle__line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.menu-toggle__line:nth-child(1) { top: 0; }
.menu-toggle__line:nth-child(2) { top: 6px; }
.menu-toggle__line:nth-child(3) { top: 12px; }

/* ---------- Menu off-canvas ---------- */
/* Fechado por padrão: fora da tela à direita, não ocupa espaço no layout. */

.offcanvas-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(340px, 86vw);
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 22px 26px 30px;
  overflow-y: auto;
}
.offcanvas-nav.is-open { transform: translateX(0); }

.offcanvas-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.offcanvas-nav__label {
  font-family: var(--font-display);
  color: var(--text-faint);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.menu-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.offcanvas-nav__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.offcanvas-nav__list a {
  display: block;
  padding: 13px 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.offcanvas-nav__list a:hover,
.offcanvas-nav__list a.is-active {
  color: var(--text);
  background: var(--bg-elevated-2);
}

.offcanvas-nav__cta { margin-bottom: 28px; }

.offcanvas-nav__social {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.offcanvas-nav__social a {
  font-size: 0.9rem;
  color: var(--text-faint);
}
.offcanvas-nav__social a:hover { color: var(--text-dim); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Enquanto o menu está aberto, trava o scroll da página por trás */
body.nav-open { overflow: hidden; }

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

.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Variante que exibe a logo/emblema em destaque (enquanto não há foto/arte de ação) */
.hero__media--badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(226, 84, 47, 0.16) 0%, transparent 68%),
    var(--bg-elevated);
  padding: 10%;
}
.hero__media--badge .hero__badge {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

/* ---------- Placeholder de imagem genérico ---------- */

.placeholder-img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, var(--bg-elevated-2) 0 12px, var(--bg-elevated) 12px 24px);
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

/* ---------- Seções genéricas ---------- */

.section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }
.section__head { max-width: 620px; margin-bottom: 40px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.stat {
  text-align: center;
  padding: 22px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}
.stat span { color: var(--text-faint); font-size: 0.85rem; }

.cta-band {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin-bottom: 0; }

/* ---------- Grade de vídeos ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.video-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: var(--text);
  font: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.video-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated-2);
  overflow: hidden;
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card__play span {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(10, 11, 13, 0.72);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card__play svg { width: 18px; height: 18px; fill: var(--text); margin-left: 2px; }

.video-card__info { padding: 14px 16px 18px; }
.video-card__info h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card__info span {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* Lightbox de vídeo em tela cheia */

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 7, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-lightbox.is-open { display: flex; }

.video-lightbox__frame {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.video-lightbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.video-lightbox__close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Formulário ---------- */

.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-hint { font-size: 0.8rem; color: var(--text-faint); margin-top: 6px; }

/* Honeypot — invisível para humanos, visível para bots que preenchem tudo */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 0.95rem;
}
.form-alert--success {
  background: rgba(64, 200, 130, 0.12);
  border: 1px solid rgba(64, 200, 130, 0.4);
  color: #7be0ab;
}
.form-alert--error {
  background: rgba(255, 90, 54, 0.1);
  border: 1px solid rgba(255, 90, 54, 0.4);
  color: #ff8f70;
}

/* ---------- Páginas com dados externos (Pelotão / Medalhas) ---------- */

.data-page-notice {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.site-footer__logo { width: 34px; height: 34px; margin-bottom: 12px; }
.site-footer__brand p { max-width: 320px; font-size: 0.9rem; }

.site-footer__links,
.site-footer__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__links a,
.site-footer__social a {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.site-footer__links a:hover,
.site-footer__social a:hover { color: var(--text); }

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.site-footer__bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-faint);
}

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

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16/9; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-card { padding: 26px; }
  .cta-band { padding: 30px; }
}

/* ---------- Vídeos incorporados (2 por linha) ---------- */

.video-embed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.video-embed {
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-embed__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-embed__title {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 700px) {
  .video-embed-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Logo do rodapé maior */
.site-footer__logo { width: 88px; height: 88px; margin-bottom: 16px; }

@media (max-width: 900px) {
  .site-footer__brand { text-align: center; }
  .site-footer__logo { width: 160px; height: 160px; margin: 0 auto 18px; }
  .site-footer__brand p { max-width: none; margin-left: auto; margin-right: auto; }
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
}
.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  padding: 0;
  background: none;
  border: none;
  accent-color: var(--accent);
  cursor: pointer;
}