/* =====================================================
   GLOBAL ANIMATIONS
===================================================== */

@keyframes arsFadeUp {
    from {
        opacity: 0;
        transform: translateY(34px);
    }

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

@keyframes arsFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes arsScaleIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes arsFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@keyframes arsPulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(240, 215, 159, 0.32);
    }

    70% {
        box-shadow:
            0 0 0 18px rgba(240, 215, 159, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(240, 215, 159, 0);
    }
}

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

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.reveal-left {
    transform: translateX(-38px);
}

.reveal.reveal-right {
    transform: translateX(38px);
}

.reveal.reveal-scale {
    transform: scale(0.94);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal-delay-4 {
    transition-delay: 0.32s;
}

.reveal-delay-5 {
    transition-delay: 0.4s;
}

/* =====================================================
   HERO ENTRANCE
===================================================== */

.hero-content {
    animation:
        arsFadeUp 0.95s ease both;
}

.hero-visual,
.hero-card,
.hero-image-wrapper {
    animation:
        arsScaleIn 1s ease 0.16s both;
}

.hero-badge,
.hero-floating-card {
    animation:
        arsFloat 4s ease-in-out infinite;
}

/* =====================================================
   INTERACTIVE ELEMENTS
===================================================== */

.btn,
.footer-book-button,
.contact-book-button,
.booking-cta-primary {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

.btn:hover,
.footer-book-button:hover,
.contact-book-button:hover,
.booking-cta-primary:hover {
    transform: translateY(-3px);
}

.room-card,
.amenity-card,
.gallery-item,
.attraction-card,
.testimonial-card,
.contact-info-card {
    will-change: transform;
}

.gallery-modal.is-open .gallery-modal-dialog {
    animation:
        arsScaleIn 0.3s ease both;
}

.gallery-modal.is-open .gallery-modal-backdrop {
    animation:
        arsFadeIn 0.25s ease both;
}

.contact-map-marker {
    animation:
        arsPulse 2.4s infinite;
}

/* =====================================================
   PAGE LOADER
===================================================== */

.site-loader {
    position: fixed;
    z-index: 20000;
    inset: 0;
    display: grid;
    place-items: center;
    background: #032f2d;
    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.site-loader-logo {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(240, 215, 159, 0.4);
    border-radius: 23px;
    color: #173936;
    background: #f0d79f;
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    animation:
        arsFloat 2s ease-in-out infinite;
}

.site-loader-content span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
