/* Public website motion (js/motion.js): sections glide in as they scroll into
   view, cards lift on hover, the hero eases in and a plane flies the dotted
   route. Everything is skipped for visitors who ask for reduced motion. */

/* Scroll-in: js/motion.js adds .mo-reveal (hidden) and then .mo-in (shown). */
.mo-reveal { opacity: 0; transform: translateY(18px); }
.mo-reveal.mo-in {
    opacity: 1; transform: none;
    transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--mo-i, 0) * 70ms);
}

/* Hero: words, trust points and the booking card ease in on arrival. */
.mo-ready .tw2-hero-copy > *, .mo-ready .ap-hero-in > * { animation: mo-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.mo-ready .tw2-hero-copy > :nth-child(2), .mo-ready .ap-hero-in > :nth-child(2) { animation-delay: .08s; }
.mo-ready .tw2-hero-copy > :nth-child(3), .mo-ready .ap-hero-in > :nth-child(3) { animation-delay: .16s; }
.mo-ready .tw2-hero-copy > :nth-child(4), .mo-ready .ap-hero-in > :nth-child(4) { animation-delay: .24s; }
.mo-ready .ap-hero-in > :nth-child(5) { animation-delay: .32s; }
.mo-ready .tw2-card { animation: mo-rise .8s .18s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes mo-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* The plane on the hero's dotted route (index.php). */
.mo-plane { color: var(--tw2-gold); }
.tw2-b .mo-plane { color: var(--tw2-blue); }

/* Gentle lift on cards that open something. */
.tw2-fl { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.tw2-fl:hover { transform: translateY(-4px); border-color: var(--tw2-gold); box-shadow: 0 10px 28px rgba(15, 27, 45, .10); }
.tw2-fl .car svg { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.tw2-fl:hover .car svg { transform: translateX(6px); }
.tw2-place { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.tw2-place:hover { box-shadow: 0 10px 28px rgba(15, 27, 45, .10); }
.tw2-place .go .tw2-i { transition: transform .25s ease; }
.tw2-place:hover .go .tw2-i { transform: translateX(4px); }
.tw2-btn:active { transform: translateY(0) scale(.98); }

@media (prefers-reduced-motion: reduce) {
    .mo-reveal { opacity: 1; transform: none; }
    .mo-plane { display: none; }
    .tw2-fl:hover, .tw2-fl:hover .car svg, .tw2-place:hover .go .tw2-i { transform: none; }
}
