/* ============================================
   ANIMATIONS & TRANSITIONS
   Scroll Reveal, Lightbox, FAQ Accordion
   ============================================ */

/* ===== SCROLL REVEAL ANIMATIONS ===== */

/* Base state: hidden */
[data-reveal] {
  opacity: 0;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

/* Fade up (default) */
[data-reveal="fade-up"] {
  transform: translateY(40px);
}

/* Fade in (no movement) */
[data-reveal="fade-in"] {
  transform: none;
}

/* Fade from left */
[data-reveal="fade-left"] {
  transform: translateX(-40px);
}

/* Fade from right */
[data-reveal="fade-right"] {
  transform: translateX(40px);
}

/* Revealed state */
[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }

/* Accessibility: disable all animations when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.is-open { display: flex; }

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lightbox-img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
}

.lightbox-caption {
  position: absolute;
  bottom: -2.5rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
}

.lightbox-counter {
  position: absolute;
  top: -2.5rem;
  left: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ===== FAQ ACCORDION CSS ===== */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  gap: var(--space-sm);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-accent-red);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: var(--space-md);
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: 0.9375rem;
}
