/* ============================================================
   Elite LUX Realty — Keyframe Animations & Motion
   ============================================================ */

/* ── Keyframes ────────────────────────────────────── */

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0);  }
}

@keyframes rotate {
  from { transform: translate(-50%,-50%) rotate(0deg);   }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

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

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

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

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0);     }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1);    }
}

/* ── Hero Entry ───────────────────────────────────── */

.hero__content {
  animation: fadeUp 1.2s cubic-bezier(0.25,0.46,0.45,0.94) 0.35s both;
}

/* ── Scroll-reveal (via JS IntersectionObserver) ─── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

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

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

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

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

/* ── Stagger delay helpers ────────────────────────── */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* ── Page transition fade ─────────────────────────── */
body {
  animation: fadeIn 0.5s ease-out both;
}

/* ── Hover lift shared ────────────────────────────── */
.hover-lift {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* ── Underline grow ───────────────────────────────── */
.underline-grow {
  position: relative;
  display: inline-block;
}

.underline-grow::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--champagne);
  transition: width 0.35s ease;
}

.underline-grow:hover::after { width: 100%; }

/* ── Spinner (for form submission) ───────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ── Reduce motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
