/* ============================================
   Avondale Hotel — Custom Styles
   Classic & Elegant | Deep Navy + Warm Gold
   ============================================ */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1823;
}
::-webkit-scrollbar-thumb {
    background: #4168af;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d49a24;
}

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

/* --- Floating Card Animations --- */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-gentle-alt {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-gentle-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

.floating-card-2 {
    animation: float-gentle-alt 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float-gentle-slow 4.5s 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 cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .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; }
}

/* --- Gold accent underline for headings --- */
h2 .italic {
    font-style: italic;
}

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d49a24;
    outline-offset: 2px;
}

/* --- Image loading placeholder --- */
img {
    background-color: #d9e0ef;
}

/* --- Mobile menu transition --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
    padding-bottom: 0;
}

/* --- Navbar scroll state --- */
#navbar.scrolled {
    background: rgba(13, 24, 35, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Print styles --- */
@media print {
    nav, #mobile-menu-btn, .floating-card, .floating-card-2, .floating-card-3,
    .reveal { display: none; }
    body { color: #000; background: #fff; }
}
