/* ============================================================
   BLUEPRINT ADVISORY — ANIMATIONS
   animations.css — Scroll reveals, hover effects, transitions
   ============================================================ */

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays for grid children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* ── Hero entrance ── */
.hero-fade-in {
  animation: heroBuild 0.9s ease both;
}

.hero-fade-in--delay-1 { animation-delay: 150ms; }
.hero-fade-in--delay-2 { animation-delay: 300ms; }
.hero-fade-in--delay-3 { animation-delay: 450ms; }
.hero-fade-in--delay-4 { animation-delay: 600ms; }

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

/* ── Gold accent line draw ── */
.gold-draw {
  position: relative;
}

.gold-draw::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--color-gold);
  transition: width 0.6s ease;
}

.gold-draw.visible::after {
  width: 100%;
}

/* ── Floating subtle animation for hero elements ── */
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

.float-subtle {
  animation: floatY 6s ease-in-out infinite;
}

/* ── Pulse gold dot ── */
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.5; }
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulseDot 2.5s ease-in-out infinite;
}

/* ── Number count-up placeholder (animated via JS) ── */
.count-up {
  display: inline-block;
}

/* ── Section line slide-in ── */
.line-slide {
  overflow: hidden;
}

.line-slide::before {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.8s ease 0.3s;
}

.line-slide.visible::before {
  width: 48px;
}

/* ── Card lift on hover (enhanced via CSS) ── */
.lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ── Smooth fade for page load ── */
body {
  animation: pageFade 0.4s ease both;
}

@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Active nav underline slide ── */
.navbar__link {
  position: relative;
}

/* ── Scroll progress bar (optional enhancement) ── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--color-gold);
  z-index: calc(var(--z-nav) + 1);
  width: 0%;
  transition: width 0.1s linear;
}
