/* ========================================
   AN NHIÊN HOMESTAY — Hero Section
   ======================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Video / Image Background ── */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video,
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 23, 18, 0.35) 0%,
    rgba(28, 23, 18, 0.20) 40%,
    rgba(28, 23, 18, 0.50) 100%
  );
  z-index: 1;
}

/* ── Content ── */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-md);
  max-width: 800px;
}

.hero__logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  animation: heroLogoFadeIn 1.2s var(--ease-out) 0.3s both;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-sm);
  animation: heroTextFadeUp 1s var(--ease-out) 0.6s both;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-light);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
  max-width: 550px;
  margin-inline: auto;
  animation: heroTextFadeUp 1s var(--ease-out) 0.9s both;
}

.hero__leaf {
  display: inline-block;
  animation: heroLeafFloat 3s ease-in-out infinite;
}

/* ── CTA Buttons ── */
.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: heroTextFadeUp 1s var(--ease-out) 1.2s both;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.hero__btn--primary {
  color: var(--color-white);
  background: var(--color-green);
}

.hero__btn--primary:hover {
  background: var(--color-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(92, 122, 92, 0.35);
}

.hero__btn--secondary {
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero__btn--secondary:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ── Scroll Indicator ── */
.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  animation: heroScrollPulse 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}

/* ── Animations ── */
@keyframes heroLogoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroTextFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroLeafFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

@keyframes heroScrollPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(5px); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero__logo {
    width: 80px;
    height: 80px;
  }

  .hero__subtitle {
    font-size: var(--fs-body);
  }

  .hero__btn {
    padding: 12px 24px;
    font-size: var(--fs-caption);
  }

  .hero__scroll {
    display: none;
  }
}
