/* Custom Styles for Avondale Hotel */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #a3b8d6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7695c4;
}

/* Navbar styles */
.navbar-scrolled #navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(10, 24, 38, 0.08);
}

.navbar-scrolled .nav-text {
    color: #1a3652;
}

.navbar-scrolled .nav-link {
    color: #2d5a8a;
}

.navbar-scrolled .nav-link:hover {
    color: #1e8060;
}

/* Mobile menu */
.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open #bar1 {
    transform: translateY(4px) rotate(45deg);
}

.mobile-menu-open #bar2 {
    opacity: 0;
}

.mobile-menu-open #bar3 {
    transform: translateY(-4px) rotate(-45deg);
}

/* Room cards */
.room-card {
    will-change: transform;
}

/* Amenity items */
.amenity-item {
    border-radius: 16px;
}

/* Hero floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

.hero-floating {
    animation: float 6s ease-in-out infinite;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .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; }
}

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #34a07d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #c3ebd8;
    color: #0a1826;
}
