/* ==========================================================================
   Hero Section
   Full-viewport hero with dark gradient background, parallax effect,
   and staggered text animations on page load.
   Requirements: 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 16.6
   ========================================================================== */

/* ---- Hero Base ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: calc(-1 * var(--navbar-height));
  padding-top: var(--navbar-height);
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ---- Hero Overlay ---- */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}

/* ---- Hero Content ---- */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl) var(--container-padding);
  max-width: 800px;
  width: 100%;
}

/* ---- Hero Title ---- */
.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  line-height: var(--lh-heading);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero__title-name {
  display: block;
  white-space: nowrap;
}

.hero__title-rest {
  display: block;
}

/* ---- Hero Tagline ---- */
.hero__tagline {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* ---- Hero Subtitle ---- */
.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ---- Hero CTA Button ---- */
.hero__content .btn {
  text-decoration: none;
}

/* ==========================================================================
   Responsive - Tablet (above 768px)
   ========================================================================== */
@media screen and (min-width: 769px) {
  .hero__content {
    padding: var(--space-3xl) var(--container-padding);
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }
}

/* ==========================================================================
   Responsive - Desktop (above 1024px)
   ========================================================================== */
@media screen and (min-width: 1025px) {
  .hero__content {
    max-width: 900px;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Reduced Motion & Mobile Parallax
   Disable parallax on mobile for performance and respect user preferences.
   Requirements: 17.6
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero {
    background-attachment: scroll;
  }

  .animate-fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}
