/* =========================================================
   HERO VIDEO HOME
   ========================================================= */

.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 5px;
}

.video-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.video-background iframe,
.video-background video {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translateX(-50%);
  object-fit: cover;
  pointer-events: none;
}


.video-notafiscal {
  position: relative;
  width: 100%;
  max-width: var(--largura-maxima);
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background-color: #000;
  aspect-ratio: 16 / 9;
}

.video-notafiscal iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 48, 80, 0.4);
}

.hero-video-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-surface);
  padding: 0 var(--space-lg);
}

.hero-video-content h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  color: var(--color-surface);
}

.hero-video-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  font-weight: var(--font-weight-light);
}

.hero {
  --hero-gradient: var(--gradient-primary);
  --hero-color-text: var(--surface-base);
  --hero-color-subtext: var(--color-primary-100);

  background: var(--hero-gradient);
  color: var(--hero-color-text);
  padding: clamp(var(--space-lg), 5vw, var(--space-xl)) var(--space-md);
  text-align: center;
  min-height: clamp(160px, 24vh, 260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md2);
  margin-bottom: var(--space-lg);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  gap: var(--space-sm);
}

.hero.carisma {
  --hero-gradient: var(--color-primary-50);

}

.hero__content {
  max-width: var(--largura-texto);
  margin: 0 auto;
  position: relative;
  z-index: var(--z-base);
}


.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.08)"/></svg>');
  opacity: 0.25;
}

/* ===== Tipografia ===== */
.hero h1 {
  font-family: var(--font-primary);
  color: var(--hero-color-text);
  margin-bottom: var(--space-xs);
  font-size: var(--h1);
  font-weight: var(--peso-bold);
  line-height: 1.2;
}

.hero__subtitle {
  font-family: var(--font-secondary);
  color: var(--hero-color-subtext);
  font-size: var(--text-lg);
  font-weight: var(--peso-light);
  max-width: clamp(300px, 80%, 700px);
  margin: 0 auto;
  opacity: var(--opacity-subtle);
  line-height: 1.6;
}

/* ===== Variações de cor ===== */
.hero--ajudar {
  --hero-gradient: var(--gradient-primary);
}

.hero--fiscal {
  --hero-gradient: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-primary-300) 100%);
}

.hero--social {
  --hero-gradient: none;
  background-color: var(--color-primary-300);
  color: var(--color-text-secondary);
  box-shadow: none;
}

.hero--social h1 {
  color: var(--color-text-secondary);
}

.hero--social .hero__subtitle {
  color: var(--color-primary-300);
}

/* =========================================================
   HERO SECTIONS
   ========================================================= */

/* ===== Classe base ===== */
.hero {
  --hero-gradient: var(--color-primary-100);
  --hero-color-text: var(--color-primary-700);
  --hero-color-subtext: var(--color-primary-300);

  background: var(--hero-gradient);
  color: var(--hero-color-text);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
  text-align: center;
  min-height: clamp(120px, 18vh, 180px);

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: clamp(0.5rem, 1.5vw, 0.875rem);

  border-radius: var(--radius-lg);
  box-shadow: 0 6px 16px rgba(12, 29, 52, 0.1);
  margin-bottom: var(--space-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero:hover {
  box-shadow: 0 8px 22px rgba(12, 29, 52, 0.15);
}


.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 60%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/ .hero__content {
  max-width: 90%;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(0.375rem, 1vw, 0.625rem);
}

/* ===== Tipografia ===== */
.hero h1,
.hero__title {
  font-family: var(--font-display);
  color: var(--hero-color-text);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: var(--peso-bold);
  line-height: 1.1;
  letter-spacing: var(--letter-tight);
  margin: 0;
  text-wrap: balance;
}

.hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.9;
  text-align: justify;
  margin-bottom: 20px;
  opacity: 1;
  color: var(--color-primary-900);
  font-family: var(--font-primary);
  font-style: bold;
}

.texto-hero {
  font-size: 1.05rem;
  line-height: 1.9;
  text-align: justify;
  margin-bottom: 20px;
  opacity: 1;
  color: var(--color-primary-900);
  font-family: var(--font-secundary);
  font-style: bold;
}

/* =========================================================
   VARIAÇÕES
   ========================================================= */

.hero--ajudar {
  --hero-gradient: linear-gradient(135deg,
      var(--color-primary-900) 0%,
      var(--color-primary-700) 100%);
  --hero-color-text: var(--surface-base);
  --hero-color-subtext: var(--color-primary-50);
}


.hero--fiscal {
  --hero-gradient: linear-gradient(135deg,
      var(--color-primary-100) 0%,
      var(--color-primary-50) 100%);
  --hero-color-text: var(--color-primary-900);
  --hero-color-subtext: var(--color-primary-700);
  box-shadow: 0 4px 12px rgba(25, 48, 80, 0.1);
}

.hero--fiscal h1,
.hero--fiscal .hero__title {
  color: var(--color-primary-900);
}

.hero--fiscal .hero__subtitle,
.hero--fiscal p {
  color: var(--color-primary-700);
}


.hero--social {
  background-color: var(--color-primary-700);
  --hero-color-text: var(--surface-base);
  --hero-color-subtext: var(--color-primary-100);
  box-shadow: 0 6px 18px rgba(12, 29, 52, 0.15);
}


.hero--mini {
  min-height: clamp(100px, 15vh, 140px);
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 3vw, 1.5rem);
  margin-bottom: var(--space-md);
  gap: clamp(0.25rem, 0.75vw, 0.5rem);
  background: linear-gradient(135deg,
      var(--color-primary-900) 0%,
      var(--color-primary-700) 100%);
  color: var(--surface-base);
}

/* =========================================================
   CTA
   ========================================================= */
.hero__cta {
  margin-top: clamp(0.75rem, 2vw, 1rem);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.625rem, 1.5vw, 0.875rem);
  justify-content: center;
  align-items: center;
}

.hero__cta .btn {
  min-width: clamp(130px, 18vw, 160px);
  padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  border-radius: var(--radius-md);
  background-color: var(--color-primary-900);
  color: var(--surface-base);
  border: 1px solid var(--color-primary-700);
  transition: all 0.3s ease;
}

.hero__cta .btn:hover {
  background-color: var(--color-primary-700);
  border-color: var(--color-primary-900);
  color: var(--color-primary-50);
}


/* =========================================================
   ACESSIBILIDADE
   ========================================================= */
.hero:focus-within {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  .hero--fiscal {
    --hero-gradient: linear-gradient(135deg,
        var(--color-primary-700) 0%,
        var(--color-primary-900) 100%);
    --hero-color-text: var(--surface-base);
    --hero-color-subtext: var(--color-primary-100);
  }
}