/* =============================================================
   Le Diplomate Café — Hero section
   Requires base.css. Hero layout, logo sequence, reveal animations.

   ═══════════════════════════════════════════════════════════
   FUTURE VIDEO SWAP — when the real brand video is ready:

   1. In index.html, replace the two <img> tags inside
      #hero-logo-sequence with:
        <video id="hero-video" autoplay muted playsinline
               poster="assets/hero-poster.jpg">
          <source src="assets/brand-intro.mp4" type="video/mp4">
        </video>

   2. In js/hero.js:
      - Remove the "V1 CSS SEQUENCE" block.
      - Uncomment the "VIDEO VERSION" block.
   ═══════════════════════════════════════════════════════════ */


/* ── Hero layout ─────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/backgrounds/bg-2.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 32, 0.50);
}

/* Top gradient — nav legibility over bright backgrounds */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(16, 24, 32, 0.50) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}


/* ── Logo sequence ───────────────────────────────────────────── */
.hero-logo-sequence {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 280px;
  min-height: 110px;
  margin-bottom: 56px;
}

.logo-asset {
  grid-area: 1 / 1;
  opacity: 0;
}

.logo-mono {
  width: 88px;
  transform: scale(0.95);
  transition:
    opacity   var(--dur-fade, 0.8s) ease-out,
    transform var(--dur-fade, 0.8s) ease-out;
}
.logo-mono.is-visible {
  opacity: 1;
  transform: scale(1);
}
.logo-mono.is-out {
  opacity: 0;
  transform: scale(1);
  transition: opacity var(--dur-crossfade, 0.8s) ease-in-out;
}

.logo-full {
  width: 100%;
  max-width: 280px;
  transition: opacity var(--dur-crossfade, 0.8s) ease-in-out;
}
.logo-full.is-visible {
  opacity: 1;
}


/* ── Hero content ────────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  text-align: center;
  padding: 0 24px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity   0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
.hero-headline.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Hero-specific button states (animation) */
.hero-ctas .btn {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity          var(--dur-cta) ease-out,
    transform        var(--dur-cta) ease-out,
    color            0.25s ease,
    background-color 0.25s ease,
    border-color     0.25s ease;
}
.hero-ctas .btn.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Secondary CTA rests slightly recessed */
.hero-ctas .btn-secondary.is-visible {
  opacity: 0.72;
}
.hero-ctas .btn-secondary:hover {
  opacity: 1;
}


/* ── Scroll cue ──────────────────────────────────────────────── */
.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero-scroll-cue.is-visible {
  opacity: 1;
}
.hero-scroll-cue.is-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.scroll-cue-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-accent-gold) 40%,
    transparent 100%
  );
  animation: scrollLineDrop 2.6s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes scrollLineDrop {
  0%   { opacity: 0; transform: scaleY(0.2) translateY(-12px); }
  25%  { opacity: 0.9; }
  75%  { opacity: 0.9; }
  100% { opacity: 0; transform: scaleY(1) translateY(14px); }
}


/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .logo-mono,
  .logo-full,
  .hero-headline,
  .hero-ctas .btn {
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
  .scroll-cue-line {
    animation: none;
  }
}


/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-logo-sequence {
    width: 220px;
    min-height: 86px;
    margin-bottom: 44px;
  }

  .logo-mono { width: 68px; }
  .logo-full { max-width: 220px; }

  .hero-headline {
    font-size: clamp(36px, 11vw, 56px);
  }

  .hero-ctas {
    flex-direction: column;
    gap: 14px;
  }

  .hero-ctas .btn {
    min-width: 190px;
    text-align: center;
    padding: 15px 36px;
  }
}
