/* =============================================================
   HM Wedding & Event Planners — Animations
   Premium, restrained motion. Content is never delayed long.
   ============================================================= */

/* ---------- Hero cinematic zoom ---------- */
@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.05); }
}

/* ---------- Hero text entrance ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-slide.is-active .hero-kicker   { animation: fadeUp .8s .15s var(--ease) both; }
.hero-slide.is-active .hero-title    { animation: fadeUp .9s .3s var(--ease) both; }
.hero-slide.is-active .hero-desc     { animation: fadeUp .9s .45s var(--ease) both; }
.hero-slide.is-active .hero-actions  { animation: fadeUp .9s .6s var(--ease) both; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .85s var(--ease), transform .85s var(--ease);
    will-change: opacity, transform;
}
.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js .reveal--left   { transform: translateX(-36px); }
.js .reveal--right  { transform: translateX(36px); }
.js .reveal--left.is-visible,
.js .reveal--right.is-visible { transform: translateX(0); }

/* Staggered children (cards, grid items) */
.js .reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.js .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .13s; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .21s; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .29s; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .37s; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .45s; }
.js .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .53s; }
.js .reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .61s; }

/* ---------- Gold line reveal ---------- */
.js .gold-divider {
    transform: scaleX(0);
    transition: transform .9s .2s var(--ease);
}
.js .is-visible .gold-divider,
.js .gold-divider.is-visible { transform: scaleX(1); }

/* ---------- Journey line draw ---------- */
@keyframes drawLine {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}
.journey::before { animation: drawLine 1.6s .3s var(--ease) both; }

/* ---------- Floating buttons gentle pulse ---------- */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 16px 34px -16px rgba(31, 175, 84, .85), 0 0 0 0 rgba(31, 175, 84, .5); }
    50%      { box-shadow: 0 16px 34px -16px rgba(31, 175, 84, .85), 0 0 0 12px rgba(31, 175, 84, 0); }
}
.float-wa { animation: softPulse 2.8s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .float-wa { animation: none; }
}

/* ---------- Button arrow nudge ---------- */
.btn::after {
    content: "›";
    font-size: 1.15em;
    line-height: 1;
    transition: transform .35s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }

/* Buttons where the arrow does not suit */
.form-actions .btn-gold::after,
.mobile-menu-actions .btn::after,
.hero-actions .btn::after { content: none; }

/* ---------- Accordion ----------
   Collapsed state only applies when JS is present, so answers
   remain visible (and indexable) without JavaScript. */
.js .faq-a {
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height .45s var(--ease), opacity .35s var(--ease), padding-bottom .45s var(--ease);
}
.js .faq-item.is-open .faq-a {
    opacity: 1;
    max-height: 800px;
    padding-bottom: 22px;
}

/* ---------- Gallery item hover glow ---------- */
.gallery-item {
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

/* ---------- Process connector shimmer ---------- */
.process-step::after {
    content: "";
    position: absolute;
    top: 43px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width .5s var(--ease);
}
.process-step:hover::after { width: 100%; }

/* ---------- Image reveal on load ---------- */
img {
    animation: imageIn .7s var(--ease) both;
}
@keyframes imageIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
