/* ============================================================
   ANIMATIONS.CSS — micro-interactions, transitions, keyframes
   ============================================================ */

/* ---- Keyframes ---- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(238,169,101,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(238,169,101,0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(2deg); }
}

@keyframes spin-timer {
  from { stroke-dashoffset: 283; }
  to   { stroke-dashoffset: 70; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes bounce-in {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes star-pop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ---- Utility animation classes ---- */
.animate-float      { animation: float 3s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 5s ease-in-out infinite; }
.animate-fade-up    { animation: fade-up 0.5s ease forwards; }
.animate-bounce-in  { animation: bounce-in 0.4s ease forwards; }

/* ---- Pulse CTA ---- */
.btn--pulse {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ---- Shimmer loading skeleton (for future use) ---- */
.shimmer {
  background: linear-gradient(90deg, #f0e8df 25%, #faf5f0 50%, #f0e8df 75%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
}

/* ---- Wave section divider ---- */
.wave-divider {
  position: relative;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.wave-divider--flip svg {
  transform: scaleY(-1);
}

/* ---- Scroll fade-in (applied via JS) ---- */
[data-fade] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

[data-fade].visible {
  opacity: 1;
  transform: none;
}

/* Above-the-fold content should not blank out on page load */
.page-hero [data-fade],
.hero [data-fade],
.how__header[data-fade],
.reviews__header[data-fade] {
  opacity: 1;
  transform: none;
}

[data-fade]:nth-child(2) { transition-delay: 0.04s; }
[data-fade]:nth-child(3) { transition-delay: 0.08s; }
[data-fade]:nth-child(4) { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  [data-fade] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Card warm hover tint ---- */
/* Only interactive cards get hover — see clickable components */

/* ---- Star rating ---- */
.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: var(--color-accent-orange);
  font-size: 16px;
  animation: star-pop 0.3s ease backwards;
}
.star:nth-child(2) { animation-delay: 0.05s; }
.star:nth-child(3) { animation-delay: 0.10s; }
.star:nth-child(4) { animation-delay: 0.15s; }
.star:nth-child(5) { animation-delay: 0.20s; }
