/* ============================================================
   GRUPO VOITA — voita.css
   Sistema de design completo — header, footer, utilitários
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* ── Paleta fiel à identidade Grupo Voita ── */
  --noir:   #3D0000;   /* bg mais escuro — barra stats / footer */
  --dark:   #7A0000;   /* bg hero escuro / seções escuras       */
  --deep:   #8B0000;   /* vermelho escuro da marca              */
  --red:    #AA1111;   /* vermelho médio                        */
  --brand:  #CC1111;   /* vermelho principal — hero top         */
  --crimson:#DD2020;   /* vermelho brilhante — hover            */

  --gold:   #B8860B;   /* dourado sóbrio                        */
  --amber:  #D4A020;   /* dourado principal — ícones / badges   */
  --honey:  #E8B030;   /* dourado claro — hover                 */

  --cream:  #FAF6EE;   /* fundo principal claro                 */
  --sand:   #F2ECD8;   /* seções alternadas                     */
  --linen:  #E8DCC8;   /* bordas / separadores                  */
  --stone:  #7A6A5A;   /* texto secundário                      */
  --ink:    #3D0000;   /* texto principal nos fundos claros     */

  --scroll: 0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[x-cloak] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }


/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition:
    padding         .4s ease,
    background      .4s ease,
    backdrop-filter .4s ease,
    border-color    .4s ease,
    box-shadow      .4s ease;
  border-bottom: 1px solid transparent;
}

/* Transparente: homepage com hero escuro */
.hdr-transparent { padding: 20px 0; background: transparent; }

/* Sólido: demais páginas (hero colorido ou sem hero) */
.hdr-solid {
  padding: 12px 0;
  background: rgba(122,0,0,0.97);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: rgba(212,160,32,0.25);
  box-shadow: 0 4px 32px rgba(0,0,0,0.30);
}

/* Glassmorphism — ativa ao rolar (ambos os estados) */
.hdr-glass {
  padding: 10px 0 !important;
  background: rgba(100,0,0,0.82) !important;
  backdrop-filter: blur(28px) saturate(160%) brightness(0.85) !important;
  -webkit-backdrop-filter: blur(28px) saturate(160%) brightness(0.85) !important;
  border-bottom-color: rgba(212,160,32,0.30) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 8px 40px rgba(0,0,0,0.35) !important;
}

.hdr-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ── Logo ─────────────────────────────────────────────────── */
.hdr-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.hdr-logo-img {
  height: 36px;
  width: auto;
}
.hdr-logo-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  color: var(--noir);
  font-size: 11px;
  letter-spacing: -0.5px;
  box-shadow: 0 0 0 5px rgba(212,148,10,0.18);
}
.hdr-logo-text { line-height: 1.15; }
.hdr-logo-name {
  display: block;
  font-weight: 600;
  color: white;
  font-size: 15px;
  letter-spacing: -0.3px;
  line-height: 1;
}
.hdr-logo-brand {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--amber);
  font-size: 14px;
  line-height: 1;
  margin-top: 2px;
}

/* ── Nav desktop ──────────────────────────────────────────── */
.hdr-nav {
  display: none;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
@media (min-width: 1024px) { .hdr-nav { display: flex; } }

.hdr-nav-link {
  display: inline-block;
  padding: 9px 15px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color .2s, background .2s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hdr-nav-link:hover,
.hdr-nav-link.is-active {
  color: white;
  background: rgba(255,255,255,0.09);
}
.hdr-nav-link.is-active {
  color: var(--amber);
}
.hdr-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Sans', sans-serif;
}

/* ── Dropdown Marcas ──────────────────────────────────────── */
.hdr-dropdown { position: relative; }
.hdr-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  background: rgba(100,0,0,0.97);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 1px 0 rgba(212,148,10,0.1) inset;
}
.hdr-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: rgba(255,255,255,0.7);
  font-size: 13.5px;
  text-decoration: none;
  border-radius: 9px;
  transition: color .15s, background .15s;
}
.hdr-dropdown-link:hover {
  color: white;
  background: rgba(255,255,255,0.07);
}
.hdr-dropdown-icon { font-size: 1rem; line-height: 1; }

/* ── Ações header ─────────────────────────────────────────── */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.hdr-cta {
  display: none;
  align-items: center;
  gap: 7px;
  background: var(--amber);
  color: var(--noir);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.hdr-cta:hover {
  background: var(--honey);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212,148,10,0.28);
}
@media (min-width: 540px) { .hdr-cta { display: inline-flex; } }

/* Hambúrguer */
.hdr-hamburger {
  width: 42px; height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.hdr-hamburger span {
  width: 18px; height: 1.5px;
  background: white;
  border-radius: 2px;
  display: block;
  transition: transform .3s ease, opacity .3s ease;
}
.hdr-hamburger .bar-open-1 { transform: rotate(45deg) translate(0, 7px); }
.hdr-hamburger .bar-open-2 { opacity: 0; transform: scaleX(0); }
.hdr-hamburger .bar-open-3 { transform: rotate(-45deg) translate(0, -7px); }
@media (min-width: 1024px) { .hdr-hamburger { display: none; } }

/* ── Menu mobile ──────────────────────────────────────────── */
.hdr-mobile {
  background: rgba(100,0,0,0.97);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 20px 20px;
}
.mob-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color .15s, background .15s;
}
.mob-item:last-of-type { border-bottom: none; }
.mob-item:hover, .mob-item.mob-item-active { color: white; background: rgba(255,255,255,0.07); }
.mob-item.mob-item-active { color: var(--amber); }
.mob-item-brand { color: rgba(255,255,255,0.6); font-size: 14px; }
.mob-separator {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 14px 14px 6px;
}
.mob-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  background: var(--amber);
  color: var(--noir);
  font-weight: 700;
  font-size: 14px;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s;
}
.mob-cta-btn:hover { background: var(--honey); }


/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--noir); /* #3D0000 — dark maroon */
  color: rgba(255,255,255,0.65);
  font-family: 'DM Sans', sans-serif;
}
.footer-newsletter {
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 28px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.22);
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
.footer-bottom .bkf { color: var(--amber); opacity: 0.6; }
.footer-bottom .bkf:hover { opacity: 1; }

/* ── Footer links ─────────────────────────────────────────── */
.footer-title {
  color: white;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-link {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 13.5px;
  text-decoration: none;
  padding: 4px 0;
  transition: color .2s;
}
.footer-link:hover { color: rgba(255,255,255,0.85); }

/* ── Footer social icons ──────────────────────────────────── */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.footer-social a:hover {
  color: white;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
}

/* ── Newsletter form ──────────────────────────────────────── */
.nl-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.nl-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 100px;
  padding: 10px 18px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}
.nl-input::placeholder { color: rgba(255,255,255,0.28); }
.nl-input:focus { border-color: rgba(212,148,10,0.55); }
.nl-btn {
  background: var(--amber);
  color: var(--noir);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.nl-btn:hover { background: var(--honey); }


/* ════════════════════════════════════════════════════════════
   HERO — Homepage
   ════════════════════════════════════════════════════════════ */
.hero-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

/* Camada de imagem com parallax */
.hero-img-layer {
  position: absolute;
  inset: -14% -4%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Fallback: gradiente vermelho da marca quando sem imagem */
  background: linear-gradient(155deg, #CC1111 0%, #8B0000 40%, #5C0000 80%, #3D0000 100%);
  transform: translateY(calc(var(--scroll) * 0.28));
  will-change: transform;
  transition: opacity .6s ease;
}
/* Desktop → hero-desktop.jpg (sobrescreve o gradiente quando tiver imagem) */
.hero-img-layer[style*="--hero-img-desktop"] {
  background-image: var(--hero-img-desktop);
}
.hero-img-layer {
  background-image: var(--hero-img-desktop, none);
}
/* Mobile → hero-mobile.jpg, foco no topo */
@media (max-width: 767px) {
  .hero-img-layer {
    background-image: var(--hero-img-mobile, var(--hero-img-desktop, none));
    background-position: center top;
    inset: -8% -4%;
    transform: translateY(calc(var(--scroll) * 0.16));
  }
}

/* Overlay de legibilidade — gradiente lateral no desktop */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,0,0,0.82)  0%,
    rgba(10,0,0,0.68)  38%,
    rgba(10,0,0,0.32)  65%,
    rgba(10,0,0,0.18) 100%
  );
}
@media (max-width: 767px) {
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10,0,0,0.50)  0%,
      rgba(10,0,0,0.72) 55%,
      rgba(10,0,0,0.90) 100%
    );
  }
}

/* Vinheta nas bordas — profundidade cinematográfica */
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 100% at 50% 50%, transparent 48%, rgba(0,0,0,0.42) 100%);
  pointer-events: none;
}

/* Glows da marca */
.hero-glow-amber {
  position: absolute; top: -5%; right: 5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,160,32,0.09) 0%, transparent 65%);
  pointer-events: none; mix-blend-mode: screen;
}
.hero-glow-red {
  position: absolute; bottom: 0; left: -5%;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(255,60,60,0.10) 0%, transparent 65%);
  pointer-events: none; mix-blend-mode: screen;
}
.hero-line {
  position: absolute; top: 0; right: 22%;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(212,148,10,0.14), transparent);
  transform: rotate(12deg);
  pointer-events: none;
}


/* ════════════════════════════════════════════════════════════
   UTILITÁRIOS GLOBAIS
   ════════════════════════════════════════════════════════════ */

/* Grain texture */
.grain::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1;
}

/* Section label (pílula de contexto) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(212,148,10,0.28);
  background: rgba(212,148,10,0.07);
  border-radius: 100px;
  padding: 5px 14px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-r { transform: translateX(30px); }
.reveal-r.visible { transform: translateX(0); }

/* Botões */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: var(--noir);
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 14px;
  padding: 13px 26px; border-radius: 100px; border: none;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn-primary:hover {
  background: var(--honey); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212,148,10,0.30);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,0.75);
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 14px;
  padding: 12px 24px; border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.22);
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: border-color .25s, color .25s, background .25s;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.52); color: white;
  background: rgba(255,255,255,0.06);
}
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: white;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 14px;
  padding: 13px 26px; border-radius: 100px; border: none;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: background .25s, transform .25s;
}
.btn-dark:hover { background: var(--deep); transform: translateY(-2px); }

/* Ticker */
.ticker-outer { overflow: hidden; white-space: nowrap; }
.ticker-inner {
  display: inline-flex;
  animation: ticker-run 30s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Section H2 */
.sh2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.2px;
}

/* Counter numbers */
.count-num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--deep);
  line-height: 1;
  display: block;
}

/* Brand cards */
.bcard {
  position: relative; overflow: hidden; border-radius: 20px;
  text-decoration: none; display: flex; flex-direction: column;
  justify-content: space-between; min-height: 220px; padding: 28px;
  border: 1px solid rgba(212,148,10,0.1);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
}
.bcard:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 28px 72px rgba(0,0,0,0.45); }
.bcard-cta {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--amber); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: all .3s;
}
.bcard:hover .bcard-cta { opacity: 1; transform: translateY(0); }

/* Entry animations */
@keyframes fadeUp { from{opacity:0;transform:translateY(32px)}to{opacity:1;transform:translateY(0)} }
@keyframes fadeR  { from{opacity:0;transform:translateX(48px)}to{opacity:1;transform:translateX(0)} }
.a-up { opacity:0; animation: fadeUp .7s ease forwards; }
.a-r  { opacity:0; animation: fadeR  .75s ease forwards; }
.d1{animation-delay:.1s} .d2{animation-delay:.2s} .d3{animation-delay:.3s}
.d4{animation-delay:.4s} .d5{animation-delay:.5s} .d6{animation-delay:.6s} .d7{animation-delay:.7s}

/* Video player */
.video-wrap {
  position: relative; aspect-ratio: 16/9; border-radius: 18px;
  overflow: hidden; background: #000; cursor: pointer;
  box-shadow:
    0 0 0 1.5px rgba(212,148,10,0.35),
    0 0 0 6px rgba(212,148,10,0.06),
    0 50px 120px rgba(0,0,0,0.70);
}
.video-wrap iframe { position:absolute;inset:0;width:100%;height:100%;border:none; }
.video-overlay {
  position:absolute;inset:0;z-index:3;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,rgba(10,0,0,.75),rgba(30,5,5,.55));
  transition:opacity .5s;
}
.video-overlay.gone { opacity:0;pointer-events:none; }
.play-ring {
  width:76px;height:76px;border-radius:50%;
  background:var(--amber);display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 14px rgba(212,148,10,.15),0 0 0 28px rgba(212,148,10,.06);
  transition:transform .3s;
  animation:pulse-play 2.5s infinite;
}
@keyframes pulse-play {
  0%  {box-shadow:0 0 0 0 rgba(212,148,10,.5),0 0 0 0 rgba(212,148,10,.2)}
  70% {box-shadow:0 0 0 20px rgba(212,148,10,0),0 0 0 40px rgba(212,148,10,0)}
  100%{box-shadow:0 0 0 0 rgba(212,148,10,0),0 0 0 0 rgba(212,148,10,0)}
}
.play-ring:hover{transform:scale(1.1)}
.play-ring svg{fill:var(--noir);width:28px;height:28px;margin-left:4px}

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--linen); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone); }

/* Form inputs */
.form-input {
  width: 100%; background: white;
  border: 1.5px solid var(--linen); border-radius: 10px;
  padding: 11px 15px; font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(212,148,10,0.1); }
.form-input::placeholder { color: var(--stone); opacity: 0.6; }
.form-label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--ink); margin-bottom: 5px; letter-spacing: 0.02em;
}

/* Responsive grid helpers */
@media (min-width: 768px)  { .md\:grid-2 { grid-template-columns: 1fr 1fr !important; } }
@media (min-width: 1024px) { .lg\:grid-2 { grid-template-columns: 1fr 1fr !important; } }
