/* 09-animations.css */
/* ============================================================
   20. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }


/* Scroll reveal — class toggled by JS */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

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

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   21. FOCUS & HIGH-CONTRAST (WCAG 2.1 AA)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__bg { transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (prefers-color-scheme: dark) {
  /* Opt-out: the site keeps a light theme unless DB overrides it.
     Add dark mode support here if needed. */
}

/* Text colour helpers */





/* -----------------------------------------------------------------------------
   28. REDUCED MOTION
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ds-card-place,
  .ds-card-event,
  .ds-card-itinerary,
  .ds-btn,
  .ds-card-place__img,
  .ds-card-itinerary__bg {
    transition: none;
    animation: none;
  }
  .ds-card-place:hover,
  .ds-card-event:hover,
  .ds-card-itinerary:hover { transform: none; }
}


