/* Base copiada do site bombeiros.avibedigital.com.br (D:/Vibe sites/site-bombeiros/css/style.css, linhas 1-272 e 1141-1170). Não editar aqui o que é do site original. */
/* ===== Vibe Emergência Digital · identidade do manual da marca ===== */
/* Fontes hospedadas no próprio site (mais rápido que buscar no Google) */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/bebas-neue-latin.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../assets/fonts/raleway-latin-var.woff2") format("woff2"); }

:root {
  --red: #E50914;
  --red-deep: #8f0710;
  --orange: #FF5A00;
  --navy: #0D1B2A;
  --black: #0a0a0a;
  --ink: #111111;
  --white: #ffffff;
  --gray: #8A8A8A;
  --font-title: "Bebas Neue", Impact, sans-serif;
  --font-body: "Raleway", "Montserrat", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== NAV ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .4s, padding .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-block: 12px;
  border-color: rgba(229, 9, 20, .25);
}
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .04em;
  opacity: .78; position: relative; padding: 6px 0; transition: opacity .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 14px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
  transition: background .25s, border-color .25s;
}
.nav__cta:hover { background: var(--red); border-color: var(--red); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #25D366;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 70% 110%, #3a0306 0%, #120203 45%, var(--black) 75%);
}
.hero__fire, .hero__embers {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3;
}
.hero__embers { z-index: -2; pointer-events: none; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -4;
  object-fit: cover; object-position: 65% 50%;
  opacity: 0; transition: opacity 1.2s ease;
  filter: saturate(1.1) contrast(1.05);
}
.hero__video.is-on { opacity: 1; }
/* Com vídeo, o fogo em código vira uma camada de brilho por cima */
.hero.has-video .hero__fire { mix-blend-mode: screen; opacity: .3; }
@media (min-width: 961px) {
  .hero__video {
    left: 26%; width: 74%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  }
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.5) 38%, rgba(10,10,10,0) 58%),
    linear-gradient(180deg, rgba(10,10,10,.7) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,0) 70%, var(--black) 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -37px 23px; } 40% { background-position: 29px -41px; }
  60% { background-position: -18px -12px; } 80% { background-position: 44px 35px; } 100% { background-position: 0 0; }
}

.hero__inner {
  width: 100%; max-width: 1360px; margin: 0 auto;
  padding: 104px var(--gutter) 150px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center; gap: 40px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(229, 9, 20, .12); border: 1px solid rgba(229, 9, 20, .45);
}
.eyebrow__siren {
  width: 10px; height: 10px; border-radius: 50%; background: var(--red);
  animation: siren 1.2s infinite;
}
@keyframes siren {
  0%, 100% { background: var(--red); box-shadow: 0 0 12px 2px var(--red); }
  50% { background: #3b8bff; box-shadow: 0 0 12px 2px #3b8bff; }
}

.hero__title {
  font-family: var(--font-title); font-weight: 400; text-transform: uppercase;
  font-size: clamp(46px, 6.3vw, 100px); line-height: .92; letter-spacing: .005em;
  margin: 0 0 26px;
}
.hero__title .line { display: block; overflow: hidden; padding: .1em 0 .04em; margin-top: -.1em; }
.hero__title .word { display: inline-block; will-change: transform; }
.hero__title .hl { color: var(--red); }
.hero__title .line--big { font-size: 1.32em; margin-top: .02em; }
.fire-text {
  background: linear-gradient(180deg, #fff3c4 0%, #ffb000 22%, var(--orange) 48%, var(--red) 78%, var(--red-deep) 100%);
  background-size: 100% 220%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fireText 3.5s ease-in-out infinite alternate;
}
@keyframes fireText { from { background-position: 0 0; } to { background-position: 0 100%; } }

.hero__sub {
  max-width: 560px; margin: 0 0 36px;
  font-size: clamp(16px, 1.35vw, 19px); color: rgba(255, 255, 255, .78);
}
.hero__sub strong { color: #fff; font-weight: 700; }
.hero__sub .red { color: var(--orange); }

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

/* Botão gelatina */
.btn-jelly {
  --sx: 1; --sy: 1;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 30px 20px 34px; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: 17px; letter-spacing: .01em;
  color: #fff;
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 60%, #b5050f 100%);
  box-shadow: 0 14px 40px -10px rgba(229, 9, 20, .8), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .2);
  transform: scale(var(--sx), var(--sy));
  transition: box-shadow .3s;
}
.btn-jelly::before {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--ang, 0deg), var(--red), var(--orange), #ffd27a, var(--red));
  filter: blur(14px); opacity: .55; animation: spin 4s linear infinite;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.btn-jelly:hover { box-shadow: 0 18px 50px -8px rgba(255, 90, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .2); }
.btn-jelly__icon { width: 22px; height: 22px; transition: transform .35s var(--ease-out); }
.btn-jelly:hover .btn-jelly__icon { transform: translateX(5px); }
.btn-jelly.is-wobbling { animation: jelly .7s both; }
@keyframes jelly {
  0% { transform: scale(1, 1); } 30% { transform: scale(1.18, .82); } 40% { transform: scale(.86, 1.14); }
  50% { transform: scale(1.1, .9); } 65% { transform: scale(.96, 1.04); } 75% { transform: scale(1.03, .97); } 100% { transform: scale(1, 1); }
}

.btn-ghost {
  font-weight: 700; font-size: 15px; text-decoration: none; color: rgba(255, 255, 255, .85);
  padding: 8px 2px; border-bottom: 1.5px solid rgba(255, 255, 255, .3);
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: #fff; border-color: var(--red); }

/* Marcadores sobre a cena dos bombeiros */
.hero__hud { position: relative; align-self: stretch; min-height: 420px; }
.hud-frame { position: absolute; inset: 6% 4% 8% 4%; pointer-events: none; }
.hud-frame i {
  position: absolute; width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.55);
  animation: hudPulse 2.4s ease-in-out infinite;
}
.hud-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
@keyframes hudPulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.hud-tags { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.hud-tag {
  position: absolute; left: var(--x); top: var(--y);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 14px 9px 9px; border-radius: 999px;
  background: rgba(10, 10, 10, .55); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}
.hud-tag:nth-child(2) { animation-delay: -2s; }
.hud-tag:nth-child(3) { animation-delay: -4s; }
.hud-tag b {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); font-size: 11px; letter-spacing: 0; box-shadow: 0 0 14px rgba(229,9,20,.8);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Faixa inferior */
.hero__bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.ecg { display: block; width: 100%; height: 60px; margin-bottom: -6px; }
.ecg path {
  fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--red));
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: ecg 3.2s linear infinite;
  vector-effect: non-scaling-stroke;
}
@keyframes ecg { 0% { stroke-dashoffset: 1400; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

.ticker {
  overflow: hidden; border-block: 1px solid rgba(229, 9, 20, .35);
  background: linear-gradient(90deg, rgba(229, 9, 20, .9), rgba(255, 90, 0, .9));
  transform: rotate(-1.2deg) scale(1.02); transform-origin: center;
}
.ticker__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  padding: 12px 0; animation: marquee 32s linear infinite;
  font-family: var(--font-title); font-size: clamp(20px, 2vw, 28px); letter-spacing: .04em; text-transform: uppercase;
}
.ticker__track b { font-weight: 400; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.ticker__track span { color: rgba(255, 255, 255, .88); white-space: nowrap; }
.ticker__track i { font-style: normal; color: #ffd8bf; }
@keyframes marquee { to { transform: translateX(-50%); } }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 90px;
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .5);
  display: grid; justify-items: center;
}
.scroll-cue__wheel { width: 3px; height: 8px; border-radius: 2px; background: #fff; margin-top: 8px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Revelação inicial (JS adiciona .is-ready) */
.reveal-up { opacity: 0; transform: translateY(24px); }
.no-js .reveal-up, .reduced .reveal-up { opacity: 1; transform: none; }

/* ===== RESPONSIVO ===== */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: 100px; padding-bottom: 180px; gap: 10px; }
  .hero__hud { display: none; }
  .hero__inner { padding-top: 38vh !important; }
  .hud-tag { font-size: 10px; padding: 7px 12px 7px 7px; }
  .hud-tag b { width: 22px; height: 22px; }
  .hud-tag:nth-child(2) { --x: 34% !important; --y: 42% !important; }
  .hud-tag:nth-child(3) { --x: 6% !important; --y: 74% !important; }
  .hero__vignette {
    background: linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,0) 18%, rgba(10,10,10,.55) 45%, rgba(10,10,10,.85) 75%, var(--black) 100%);
  }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .nav { padding-block: 14px; }
  .nav__logo img { height: 26px; }
  .nav__cta { padding: 9px 14px; font-size: 13px; }
  .hero__title { font-size: clamp(42px, 12.5vw, 64px); }
  .btn-jelly { width: 100%; justify-content: center; padding: 18px 24px; font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .eyebrow { font-size: 10.5px; letter-spacing: .16em; }
  .btn-ghost { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
