/* ============================================================
   hero.css — Hero section plein écran (index.html)
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-void);
}

/* True parallax background — moves at 40% of scroll speed via JS transform */
.hero__bg {
  position: absolute;
  inset: -25% 0;
  background-image: url('../assets/images/gallery/02-peking-duck-sliced-crispy.jpeg');
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

/* Dark veil — covers dragon + particles but not the content text */
.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--color-void);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  will-change: opacity;
}

/* Gradient overlay — sits above .hero__bg (z:0), below content */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 7, 9, 0.25) 0%,
    rgba(7, 7, 9, 0.55) 50%,
    rgba(7, 7, 9, 0.90) 100%
  );
  z-index: 1;
}

/* Vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(7,7,9,0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ── Particles canvas ── */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ── Dragon SVG ── */
.hero__dragon {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.hero__dragon img {
  width: 110%;
  max-width: 1400px;
  height: auto;
  opacity: 0.10;
  animation: dragonBreath 8s ease-in-out infinite;
  transform-origin: center;
  filter: blur(0.3px);
  will-change: transform, opacity;
}

/* ── Content ── */
.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-20) var(--space-6);
  max-width: 800px;
  padding-top: calc(var(--nav-height) + var(--space-20));
  will-change: transform, opacity;
}

.hero__chinese {
  display: block;
  font-family: var(--font-chinese);
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: 0.35em;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeInUp var(--dur-slow) var(--ease-out) 0.2s forwards;
}

.hero__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 1;
  color: var(--color-smoke);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeInUp var(--dur-slow) var(--ease-out) 0.4s forwards;
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--color-gold-pale);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: fadeInUp var(--dur-slow) var(--ease-out) 0.6s forwards;
}

.hero__description {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.75);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp var(--dur-slow) var(--ease-out) 0.8s forwards;
}

/* ── CTAs ── */
.hero__ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp var(--dur-slow) var(--ease-out) 1s forwards;
}

.hero__ctas .btn {
  min-width: 180px;
}

/* ── Gold line sweep on load (cinematic bar) ── */
.hero::before {
  z-index: 1;
}

/* ── Decorative gold rule below hero content ── */
.hero__content::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: var(--space-8) auto 0;
  opacity: 0;
  animation: fadeIn var(--dur-slow) var(--ease-out) 1.2s forwards;
}

/* ── Scroll indicator ── */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: fadeIn var(--dur-slow) var(--ease-out) 1.4s forwards;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .hero__content {
    padding-top: calc(var(--nav-height) + var(--space-12));
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero__ctas .btn {
    width: 100%;
    max-width: 280px;
  }
}
