/* styles/sections/hero.css */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
}

.hero__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../images/paisagismo/hero-paisagismo-fundo.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.hero__green-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 60, 0, 0.98) 0%,
    rgba(20, 69, 24, 0.9) 20%,
    rgba(27, 94, 32, 0.75) 40%,
    rgba(46, 125, 50, 0.5) 60%,
    rgba(76, 175, 80, 0.3) 80%,
    rgba(46, 125, 50, 0.25) 100%
  );
  z-index: 3;
}

.hero .container {
  position: relative;
  z-index: 4;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-white);
  padding: 0 var(--space-lg);
}

.hero__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-family: var(--font-secondary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  margin-bottom: var(--space-2xl);
  line-height: 1.4;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  opacity: 0.98;
}

.hero__ctas {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-top: var(--space-2xl);
}

.hero__cta {
  min-width: 180px;
  font-size: var(--font-size-lg);
  padding: var(--space-lg) var(--space-2xl);
}

.hero__cta.btn--secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: var(--color-white);
  backdrop-filter: blur(10px);
}

.hero__cta.btn--secondary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

/* Animações */
.hero__title,
.hero__subtitle,
.hero__cta {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero__title {
  animation-delay: 0.2s;
}

.hero__subtitle {
  animation-delay: 0.4s;
}

.hero__cta:nth-child(1) {
  animation-delay: 0.6s;
}
.hero__cta:nth-child(2) {
  animation-delay: 0.7s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 767px) {
  .hero .container {
    height: 100vh;
    padding-top: 70px;
    padding-bottom: 0;
  }

  .hero__content {
    padding: 0 var(--space-lg);
  }

  .hero__title {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--space-lg);
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
  }

  .hero__subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-2xl);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  }

  .hero__ctas {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    margin-top: var(--space-2xl);
  }

  .hero__cta {
    width: 100%;
    max-width: 300px;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

/* Telas muito pequenas */
@media (max-width: 480px) and (max-height: 700px) {
  .hero .container {
    padding-top: 70px;
  }

  .hero__content {
    padding: 0 var(--space-lg);
  }

  .hero__title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-md);
  }

  .hero__subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
  }

  .hero__ctas {
    margin-top: var(--space-xl);
    gap: var(--space-md);
  }

  .hero__cta {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-base);
  }
}

@media (min-width: 1200px) {
  .hero__title {
    font-size: 4.5rem;
  }

  .hero__subtitle {
    font-size: var(--font-size-2xl);
  }
}

/* Parallax effect */
@media (prefers-reduced-motion: no-preference) {
  .hero__bg-image {
    will-change: transform;
  }
}
