/* Scroll Reveal Classes */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

/* Cinematic Load (Hero) */
.hero-reveal {
  opacity: 0;
  transform: translateY(40px);
  animation: heroUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-delay-1 { animation-delay: 0.2s; }
.hero-delay-2 { animation-delay: 0.4s; }
.hero-delay-3 { animation-delay: 0.6s; }

/* 5 Gold Stars Signature Animation */
.star-icon {
  fill: transparent;
  stroke: var(--c-gold);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: all 0.5s ease;
}

.star-container.animate .star-icon {
  animation: drawStar 0.8s forwards, fillStar 0.5s forwards 0.8s;
}

.star-container.animate .star-1 { animation-delay: 0.1s, 0.9s; }
.star-container.animate .star-2 { animation-delay: 0.2s, 1.0s; }
.star-container.animate .star-3 { animation-delay: 0.3s, 1.1s; }
.star-container.animate .star-4 { animation-delay: 0.4s, 1.2s; }
.star-container.animate .star-5 { animation-delay: 0.5s, 1.3s; }

@keyframes drawStar {
  to { stroke-dashoffset: 0; }
}

@keyframes fillStar {
  to { fill: var(--c-gold); stroke-width: 0; }
}

/* Checkmarks */
.check-icon {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
}

.reveal.active .check-icon {
  animation: drawCheck 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* Parallax Background */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Card Image Zoom */
.card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.card-img-wrapper img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* Gallery Hover */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(17,24,39,0.85) 0%, transparent 100%);
  opacity: 1;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem 1rem;
  color: var(--c-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Accordion Smooth Height */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, padding 0.4s ease;
  opacity: 0;
  padding: 0 var(--space-4);
}

.faq-item.active .faq-content {
  max-height: 200px;
  opacity: 1;
  padding: var(--space-4);
}

.faq-icon {
  transition: transform 0.3s ease;
}

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

/* Prefers Reduced Motion */
@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;
  }
}
