/* ===== CUSTOM STYLES FOR MAINSTAYS ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d4a87c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c2351c;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .logo-text {
    color: #564231;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Hover effects for cards */
.room-card:hover .room-img {
    transform: scale(1.05);
}

/* Button press effect */
.btn-press:active {
    transform: scale(0.97);
}

/* Selection color */
::selection {
    background: #f9dace;
    color: #6a1f16;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d44a28;
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@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;
    }

    html {
        scroll-behavior: auto;
    }

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

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Subtle gradient overlay for hero text area */
.hero-text-gradient {
    background: linear-gradient(to right, rgba(250, 248, 245, 1) 0%, rgba(250, 248, 245, 0.95) 80%, transparent 100%);
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* Pulse animation for CTA */
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 74, 40, 0.3); }
    50% { box-shadow: 0 0 0 12px rgba(212, 74, 40, 0); }
}

.cta-pulse {
    animation: pulse-soft 2.5s ease-in-out infinite;
}
