/* Hero Section Styles */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.4)
  ), url('../../images/originals/hero/hero-desktop.jpg') center/cover no-repeat;
  /* Fallback gradient if image fails */
  background-color: var(--color-background-alt);
  overflow: hidden;
  /* Ensure hero content is below sticky navigation */
  z-index: 1;
}

/* Hero background image - will be applied when image is available */
.hero--with-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Hero visibility state for intersection observer */
.hero--visible .hero__content {
  animation-play-state: running;
}

/* Responsive background attachment for mobile */
@media (max-width: 768px) {
  .hero--with-image {
    background-attachment: scroll;
  }
}

.hero__content {
  text-align: center;
  max-width: 800px;
  padding: var(--space-2xl) var(--space-md);
  z-index: 2;
  position: relative;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-white);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero__cta {
  display: inline-block;
  padding: var(--space-lg) var(--space-2xl);
  background: linear-gradient(
    135deg,
    var(--color-highlight) 0%,
    var(--color-highlight-alt) 100%
  );
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.9s forwards;
  text-decoration: none;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  background: linear-gradient(
    135deg,
    var(--color-highlight-alt) 0%,
    var(--color-highlight) 100%
  );
}

.hero__cta:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.hero__cta:active {
  transform: translateY(0);
}

/* Responsive background images */
@media (max-width: 768px) {
  .hero {
    background-image: linear-gradient(
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.4)
    ), url('../../images/originals/hero/hero-mobile.jpg');
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    background-image: linear-gradient(
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.4)
    ), url('../../images/originals/hero/hero-tablet.jpg');
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: var(--space-xl) 0;
  }
  
  .hero__content {
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
  }
  
  .hero__subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
  }
  
  .hero__cta {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
  }
  
  .hero__title {
    font-size: var(--text-3xl);
  }
  
  .hero__subtitle {
    font-size: var(--text-base);
  }
  
  .hero__cta {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-sm);
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .hero__title {
    font-size: var(--text-6xl);
  }
  
  .hero__subtitle {
    font-size: var(--text-2xl);
  }
}

/* Loading state */
.hero--loading {
  background: linear-gradient(
    135deg,
    var(--color-background-alt) 0%,
    var(--color-accent) 100%
  );
}

/* Fallback state when images fail to load */
.hero--fallback {
  background: linear-gradient(
    135deg,
    var(--color-background-alt) 0%,
    var(--color-accent) 100%
  ) !important;
}

.hero--loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
  z-index: 1;
}

/* Animation keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__subtitle,
  .hero__cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .hero__cta:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero {
    background: var(--color-white);
  }
  
  .hero__title {
    color: var(--color-text);
  }
  
  .hero__subtitle {
    color: var(--color-text);
  }
  
  .hero__cta {
    background: var(--color-text);
    color: var(--color-white);
    border: 2px solid var(--color-text);
  }
}