/* Estilos específicos da LP "Painéis Elétricos Industriais".
   O visual comum fica em base.css e components.css. Use este arquivo só para ajustes desta página. */

/* ─── Hero como banner: foto de fundo com o texto sobreposto à esquerda ─── */
.hero--banner {
  background: #0f1a1f; /* mesma cor do céu da foto, para a emenda não aparecer */
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
}

.hero--banner .hero__grid {
  grid-template-columns: minmax(0, 640px);
  width: 100%;
}

.hero--banner::before { z-index: -1; }
.hero--banner::after { display: none; }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
}

/* Escurece o lado do texto para manter a leitura */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 26, 31, 0.92) 0%, rgba(15, 26, 31, 0.75) 38%, rgba(15, 26, 31, 0.15) 70%, rgba(15, 26, 31, 0) 100%);
}

@media (max-width: 960px) {
  .hero__bg::after {
    background: linear-gradient(90deg, rgba(15, 26, 31, 0.9) 0%, rgba(15, 26, 31, 0.6) 100%);
  }
}

@media (max-width: 760px) {
  .hero--banner { min-height: 0; }
  .hero__bg img { object-position: center bottom; }
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(15, 26, 31, 0.88) 0%, rgba(15, 26, 31, 0.78) 60%, rgba(15, 26, 31, 0.55) 100%);
  }
}
