/* ==================================================
   HERO – Josimar Soares
   Altura reduzida para 95dvh em todas as telas
================================================== */

#hero {
  position: relative;
  width: 100%;
  height: 95vh;
  height: 95dvh;
  background: black;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  min-height: auto;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  #hero {
    align-items: flex-start;
    padding-top: 220px;
  }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/images/BannerAtualizado.png") center / cover no-repeat;
  filter: brightness(0.85);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

/* === CONTEÚDO PRINCIPAL (SLIDE) === */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#hero-title {
  color: #FF5E00;
  font-weight: 900;
  font-size: 3.3rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow:
    0 4px 16px rgba(0,0,0,0.8),
    0 0 20px rgba(255,94,0,0.55);
  transition: text-shadow 0.9s ease;
  margin: 0;
}

/* ✅ Impede quebra só em desktop */
@media (min-width: 768px) {
  #hero-title {
    white-space: nowrap;
  }
}

#hero-title:hover {
  text-shadow:
    0 6px 22px rgba(0,0,0,0.9),
    0 0 28px rgba(255,94,0,0.7);
}

#hero-subtitle {
  font-size: 1.35rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
  margin-top: 12px;
  margin-bottom: 24px;
  text-align: center;
}

/* === IMAGEM DO SLIDE === */
.hero-product {
  margin: 12px 0; /* ↓ reduzido para compensar imagem maior */
  display: flex;
  justify-content: center;
}

.hero-product img {
  max-height: 200px; /* ↑ aumentado para melhor aproveitamento visual */
  height: auto;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.6));
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* === BOTÃO === */
.hero-button {
  padding: 14px 28px;
  background: transparent;
  color: #FF5E00;
  font-weight: bold;
  border: 2px solid #FF5E00;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.4s ease;
  font-size: 1.1rem;
  display: inline-block;
  max-width: 280px;
  width: auto;
  margin: 0 auto;
}

.hero-button:hover {
  background: #FF5E00;
  color: white;
  box-shadow: 0 0 40px rgba(255,94,0,0.6);
  transform: translateY(-4px) scale(1.03);
}

/* === IMAGEM DE ROSTO === */
.hero-face {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  animation: faceIn 1s ease forwards;
}

.hero-face img {
  height: clamp(100px, 30vh, 420px);
  width: auto;
  filter: brightness(0.75) drop-shadow(0 16px 32px rgba(0,0,0,0.9));
  border-radius: 14px;
  object-fit: cover;
}

@keyframes faceIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === AJUSTES PARA MOBILE === */
@media (max-width: 767px) {
  .hero-content {
    padding: 0 1.25rem;
  }

  #hero-title {
    font-size: 2.3rem;
    line-height: 1.25;
  }

  #hero-subtitle {
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .hero-product {
    margin: 10px 0;
  }

  .hero-product img {
    max-height: 160px; /* ↑ ajustado para mobile */
  }

  .hero-button {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .hero-face {
    bottom: 6px;
    left: 6px;
  }

  .hero-face img {
    height: clamp(80px, 25vh, 320px);
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  #hero-title {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  #hero-subtitle {
    font-size: 0.9rem;
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .hero-product img {
    max-height: 140px;
  }

  .hero-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* === PAISAGEM EM TELAS BAIXAS === */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    height: 95dvh;
    align-items: center;
    padding-top: 0;
  }

  #hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  #hero-subtitle {
    font-size: 0.95rem;
    margin-top: 6px;
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .hero-product {
    margin: 8px 0;
  }

  .hero-product img {
    max-height: 130px;
    max-width: 85%;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
  }

  .hero-button {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 12px;
    max-width: 240px;
  }

  .hero-content {
    padding: 0 0.8rem;
  }
}

/* === ANIMAÇÕES DE SLIDE === */
@keyframes slideOutToLeft {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-20%); opacity: 0; }
}
@keyframes slideInFromRight {
  from { transform: translateX(20%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.slide-out {
  animation: slideOutToLeft 0.6s ease forwards;
}
.slide-in {
  animation: slideInFromRight 0.6s ease forwards;
}