/**
 * Hero Section — Bird Capital Website
 * Full viewport height with logo, headline, CTA, and animation placeholder
 */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding-top: calc(var(--space-xl) + 60px); /* Account for header */
  padding-bottom: var(--space-xl);
  background-color: var(--color-background-dark);
  color: var(--color-text-light);
}

.hero__container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-inline: auto;
  padding-inline: var(--page-margin);
}

.hero__content {
  max-width: 600px;
}

/* Headline */
.hero__headline {
  margin-bottom: var(--space-md);
  font-family: var(--font-primary);
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-background-white);
}

/* Subheadline */
.hero__subheadline {
  margin-bottom: var(--space-lg);
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2vw + 0.5rem, 1.375rem);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--color-gaivota);
  max-width: 480px;
}

/* CTA Button */
.hero__cta {
  margin-bottom: var(--space-xl);
}

/* Animation placeholder */
.hero__animation {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 200px;
  margin-top: var(--space-xl);
  overflow: hidden;
  /* Filter to make animation white - remove if using white PNG */
  filter: brightness(0) invert(1);
}

/* CSS fallback pseudo-elements hidden - Lottie animation is active */

/* Additional decorative lines */
.hero__animation-lines {
  position: absolute;
  inset: 0;
}

.hero__animation-lines span {
  position: absolute;
  background-color: var(--color-garca);
  opacity: 0.2;
}

.hero__animation-lines span:nth-child(1) {
  top: 25%;
  left: 10%;
  width: 60%;
  height: 1px;
  animation: hero-line-fade 6s ease-in-out infinite;
}

.hero__animation-lines span:nth-child(2) {
  top: 75%;
  right: 10%;
  width: 40%;
  height: 1px;
  animation: hero-line-fade 6s ease-in-out infinite;
  animation-delay: 1s;
}

.hero__animation-lines span:nth-child(3) {
  top: 10%;
  left: 30%;
  width: 1px;
  height: 50%;
  animation: hero-line-fade 6s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes hero-line-horizontal {
  0%, 100% {
    transform: translateY(-50%) scaleX(0.5);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-50%) scaleX(1);
    opacity: 0.4;
  }
}

@keyframes hero-line-vertical {
  0%, 100% {
    transform: translateX(-50%) scaleY(0.5);
    opacity: 0.2;
  }
  50% {
    transform: translateX(-50%) scaleY(1);
    opacity: 0.4;
  }
}

@keyframes hero-line-fade {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (min-width: 768px) {
  .hero__content {
    max-width: 700px;
  }

  .hero__animation {
    max-width: 500px;
    height: 250px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
  }

  .hero__content {
    max-width: none;
  }

  .hero__animation {
    max-width: none;
    height: 350px;
    margin-top: 0;
  }
}

/* Large desktop */
@media (min-width: 1440px) {
  .hero__animation {
    height: 400px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__animation::before,
  .hero__animation::after,
  .hero__animation-lines span {
    animation: none;
    opacity: 0.2;
  }
}
