/* ============================================
   HERO SECTION
   Brain & Mind Foundation WordPress Theme
   ============================================
   Full-viewport hero with background image,
   gradient overlay, animated content, scroll
   indicator, and keyframe animations.
   ============================================ */

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

/* ============================================
   HERO BACKGROUND IMAGE
   ============================================ */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Gradient overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(17, 24, 50, 0.88) 0%,
    rgba(17, 24, 50, 0.65) 40%,
    rgba(17, 24, 50, 0.75) 100%
  );
}

/* ============================================
   HERO CONTENT
   ============================================ */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  /* Wide enough for the headline to sit on 3 lines at desktop sizes. */
  max-width: 1040px;
  padding: 0 24px;
}

/* Tagline — uppercase coral label */
.hero-tagline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.3s var(--ease-out-expo) forwards;
}

/* Main heading — sized so the default headline holds 3 lines on desktop
   (wider container + slightly lower cap), balanced by text-wrap. */
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.1s 0.5s var(--ease-out-expo) forwards;
}
.hero-heading em {
  font-style: italic;
  color: var(--coral);
}

/* Subtitle */
.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-light-muted);
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.7s var(--ease-out-expo) forwards;
}

/* Button group */
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.9s var(--ease-out-expo) forwards;
}

/* ============================================
   HERO SCROLL INDICATOR
   ============================================ */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s 1.3s var(--ease-out-expo) forwards;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  font-weight: 500;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--coral), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  .hero {
    /* Fixed nav (large logo) needs explicit clearance — flex centering
       alone let the eyebrow/heading slide underneath it. */
    min-height: 100svh;
    padding: 150px 0 64px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    margin-bottom: 18px;
  }

  .hero-heading {
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 18px;
  }

  .hero-sub {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 32px;
  }

  .hero-buttons {
    gap: 12px;
  }

  /* Overlaps the stacked CTAs on small screens — the page scrolls
     obviously enough on mobile without the cue. */
  .hero-scroll {
    display: none;
  }
}
