/* ============================================
   HERO SECTION - LP TruScale IaaS
   ============================================
   
   Hero com background gradiente, imagem lateral,
   conteúdo à esquerda e formulário à direita
*/

.hero {
  position: relative;
  min-height: 952px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  background-color: var(--color-bg-white);
}

/* Background container */
.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

/* Background gradient */
.hero__background-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay gradiente */
.hero__background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(77, 20, 74, 0.3);
  z-index: 1;
}

/* Grafismo overlay */
.hero__grafismo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Container do conteúdo */
.hero__container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0 0 0 80px;
  min-height: 952px;
  max-width: 100%;
  margin: 0;
}

/* Conteúdo esquerda */
.hero__content {
  flex: 1;
  max-width: 65%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--gap-2xl);
  padding: 100px 60px 100px 0;
}

/* Imagem direita */
.hero__image-wrapper {
  flex-shrink: 0;
  width: 35%;
  height: 952px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 11;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  border-radius: 0;
}

/* Título */
.hero__title {
  font-family: var(--font-gotham-bold);
  font-size: var(--font-size-hero);
  line-height: var(--line-height-heading);
  color: var(--color-white);
  letter-spacing: -1.9px;
  margin: 0;
}

/* Descrição */
.hero__description {
  font-family: var(--font-gotham-book);
  font-size: 18px;
  font-style: normal;
  font-weight: 325;
  line-height: 27px;
  color: var(--color-white);
  margin: 0;
}

/* Logo Lenovo vertical */
.hero__logo-vertical {
  position: absolute;
  top: 100px;
  right: 0;
  width: 60px;
  height: 179px;
  z-index: 12;
}

.hero__logo-vertical img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Botão CTA no hero */
.hero__cta-button {
  margin-top: var(--margin-lg);
  padding: 18px 60px;
  font-size: var(--font-size-base);
  min-width: 300px;
  align-self: flex-start;
}

/* Responsive */
@media (max-width: 1440px) {
  .hero__container {
    padding: 80px 0 80px 40px;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
  }
  
  .hero__container {
    flex-direction: column;
    padding: 60px 24px;
    min-height: 600px;
  }
  
  .hero__content {
    max-width: 100%;
    gap: var(--gap-lg);
    text-align: center;
    align-items: center;
    padding: 0;
  }
  
  .hero__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    top: auto;
    right: auto;
  }
  
  .hero__title {
    font-size: 32px;
    line-height: 1.3;
  }
  
  .hero__logo-vertical {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 120px;
  }
  
  .hero__cta-button {
    min-width: 100%;
    max-width: 400px;
    align-self: center;
  }
}

@media (max-width: 768px) {
  .hero__container {
    padding: 40px 16px;
    /* permite que o container ajuste sua altura ao conteúdo (texto + imagem) */
    min-height: auto;
    padding-bottom: 0;
  }

  .hero__content {
    gap: var(--gap-md);
    padding: 0;
    /* Move conteúdo para baixo para não ficar atrás da logo vertical */
    padding-top: 40px;
  }

  .hero__image-wrapper {
    position: relative;
    /* deixa a altura natural da imagem para que o container seja apenas o necessário */
    height: auto;
    max-height: none;
    top: auto;
    right: auto;
    /* Faz a imagem cobrir a largura total da tela (compensa o padding do container) */
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    margin-bottom: 0;
  }

  .hero__title {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero__description {
    font-size: var(--font-size-base);
    line-height: 1.5;
  }

  .hero__logo-vertical {
    width: 35px;
    height: 105px;
    /* posiciona a logo encostada na direita (igual desktop) */
    right: 0;
    top: 20px;
  }

  .hero__cta-button {
    padding: 16px 40px;
    font-size: var(--font-size-small);
    /* Espaçamento inferior para não encostar na próxima seção/imagem */
    margin-bottom: var(--margin-lg);
  }

  /* Remove distância entre o hero e a próxima sessão */
  .hero {
    padding-bottom: 0;
  }

  .hero__image {
    /* garante que a imagem preencha seu wrapper e a parte inferior encoste no final do hero */
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
}
