/* ============================================
   OMNI LP Acelera — CSS Residual
   Apenas: @font-face, animações, estados JS, pseudo-elements
   Layout migrado para Tailwind CSS
   ============================================ */

/* --- AvertaCY Font Face --- */
@font-face {
  font-family: 'AvertaCY';
  src: url('../fonts/AvertaCY-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AvertaCY';
  src: url('../fonts/AvertaCY-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AvertaCY';
  src: url('../fonts/AvertaCY-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Base (Tailwind preflight não cobre) --- */
a { text-decoration: none; color: inherit; }
p { margin-bottom: 1rem; }

/* ============================================
   HERO
   GIF: 2000px de largura, 768px de altura
   Corta lateralmente em telas menores
   ============================================ */
.hero-section {
  margin-top: 82px; /* 72px nav + 10px gap */
  height: calc(100vh - 82px);
  min-height: 400px;
}
.hero-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ============================================
   HEADER
   Estado inicial: transparente, sem logo
   Após 50px scroll: branco, sombra, logo aparece
   ============================================ */
.header {
  background: transparent;
  box-shadow: none;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Links, hambúrguer e CTA: sempre visíveis (cor fixa) */
.header .header__nav-link {
  color: #333333;
}
.header .header__nav-link:hover {
  color: #002FA7;
}
.header .header__bar {
  background-color: #333333;
}
.header .header__cta {
  border-color: #F47920;
  color: #F47920;
}
.header .header__cta:hover {
  background: #F47920;
  color: #fff;
}

/* Logo: oculto inicialmente — só o logo some/aparece */
.header__logo {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* --- Estado scrollado: fundo branco + logo aparece --- */
.header--scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.header--scrolled .header__logo {
  opacity: 1;
  pointer-events: auto;
}

/* --- Header: underline hover (pseudo-element) --- */
.header__nav-link { position: relative; }
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #F47920;
  transition: width 0.3s ease;
}
.header__nav-link:hover::after { width: 100%; }

/* --- Mobile nav overlay --- */
@media (max-width: 767px) {
  .header__nav {
    position: fixed !important;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(8px);
    flex-direction: column !important;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem !important;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .header__nav--open { transform: translateX(0); }
  .header__nav a,
  .header__nav .header__nav-link { font-size: 1.125rem !important; color: #333 !important; }
  .header__toggle { display: flex !important; }
  .header__toggle--active .header__bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .header__toggle--active .header__bar:nth-child(2) { opacity: 0; }
  .header__toggle--active .header__bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* ============================================
   BENEFÍCIOS — Glassmorphism com profundidade
   ============================================ */
.beneficios-section {
  background-color: #000;
}

/* Background da seção benefícios */
.beneficios-section::before {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: 1;
  background-image: url('../img/beneficios-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 1;
  pointer-events: none;
}

/* Orbs acima de tudo, abaixo do conteúdo */
.beneficios-orb { z-index: 3; }

/* Conteúdo no topo */
.beneficios-section > .relative { z-index: 10; }

/* ============================================
   ETAPAS — Background parallax + multiply
   ============================================ */
.etapas-section {
  background-color: #002FA7;
}

.etapas-section::before {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: 1;
  background-image: url('../img/etapas-bg.webp');
  background-size: cover;
  background-position: center 10%;
  background-attachment: fixed;
  mix-blend-mode: multiply;
  opacity: 0.75;
  pointer-events: none;
}

.etapas-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Orbs coloridos que criam profundidade para o glass funcionar */
.beneficios-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.beneficios-orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(244,121,32,0.45) 0%, transparent 70%);
  top: -150px; right: -100px;
}
.beneficios-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(27,114,255,0.5) 0%, transparent 70%);
  bottom: -100px; left: -80px;
}
.beneficios-orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(230,73,37,0.3) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* --- Glass card (glassmorphism) --- */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 3px 1px rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

/* Reflexo horizontal no topo */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Reflexo vertical na lateral esquerda */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent, rgba(255,255,255,0.3));
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(-5px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 16px 8px rgba(255, 255, 255, 0.12);
}

/* --- Glass card sobre fundo claro --- */
.glass-card-light {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 47, 167, 0.1);
  transition: all 0.3s ease;
}
.glass-card-light:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(244, 121, 32, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 47, 167, 0.12);
}

/* --- Glow card (mantido para objetivos) --- */
.glow-card {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.glow-card__content {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  z-index: 1;
  position: relative;
  transition: all 0.3s ease;
}

.glow-card::before {
  opacity: 0;
  content: '';
  position: absolute;
  display: block;
  width: 80px;
  height: 360px;
  background: linear-gradient(#F47920, #E64925, #F47920);
  transition: opacity 300ms;
  animation: glowRotation 8s infinite linear;
  animation-play-state: paused;
}

.glow-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

.glow-card::after {
  position: absolute;
  content: '';
  display: block;
  width: 100%;
  height: 360px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(50px);
}

.glow-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

@keyframes glowRotation {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Reveal animation (JS Intersection Observer) --- */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Timeline: animações e estados JS --- */
.timeline__step.timeline__step--active .timeline__icon {
  color: #F47920 !important;
  transform: translateY(-6px) scale(1.08);
  filter: drop-shadow(0 0 8px rgba(244, 121, 32, 0.4));
}

.timeline__step:hover .timeline__icon {
  color: #F47920 !important;
  transform: translateY(-6px);
  filter: drop-shadow(0 0 8px rgba(244, 121, 32, 0.4));
}

.reveal--visible .timeline__arrow-line {
  animation: arrowGrow 9s ease-in-out infinite, arrowGradient 6s linear infinite;
}

@keyframes arrowGrow {
  0%   { width: 0%; opacity: 1; }
  60%  { width: 100%; opacity: 1; }
  80%  { width: 100%; opacity: 0; }
  81%  { width: 0%; opacity: 0; }
  100% { width: 0%; opacity: 0; }
}

@keyframes arrowGradient {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

