/* Custom styles for Crown Inn */

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

/* Navbar transition */
#navbar {
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(16, 42, 67, 0.1);
}

#navbar.scrolled .nav-text {
    color: #102a43;
}

#navbar.scrolled .nav-link {
    color: #243b53;
}

#navbar.scrolled .mobile-link {
    color: #243b53;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: content always visible */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

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

/* Button hover effects */
a:hover {
    transition: all 0.2s ease;
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: #627d98;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #486581;
}

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

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

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

/* Ensure all text has proper contrast */
.text-navy-900 { color: #102a43; }
.text-navy-800 { color: #243b53; }
.text-navy-700 { color: #334e68; }
.text-navy-600 { color: #486581; }
.text-navy-500 { color: #627d98; }
.text-navy-400 { color: #829ab1; }
.text-navy-300 { color: #9fb3c8; }
.text-navy-200 { color: #bcccdc; }
.text-navy-100 { color: #d9e2ec; }
.text-navy-50 { color: #f0f4f8; }

.text-gold-900 { color: #442c04; }
.text-gold-800 { color: #6b4506; }
.text-gold-700 { color: #926008; }
.text-gold-600 { color: #b8860b; }
.text-gold-500 { color: #d4a017; }
.text-gold-400 { color: #f9db63; }
.text-gold-300 { color: #fbe89a; }
.text-gold-200 { color: #fdf3d0; }
.text-gold-100 { color: #fef9e8; }
.text-gold-50 { color: #fef9e8; }

.text-white { color: #ffffff; }

/* Background colors */
.bg-navy-950 { background-color: #0a1a2e; }
.bg-navy-900 { background-color: #102a43; }
.bg-navy-800 { background-color: #243b53; }
.bg-navy-700 { background-color: #334e68; }
.bg-navy-600 { background-color: #486581; }
.bg-navy-500 { background-color: #627d98; }
.bg-navy-200 { background-color: #bcccdc; }
.bg-navy-100 { background-color: #d9e2ec; }
.bg-navy-50 { background-color: #f0f4f8; }

.bg-gold-900 { background-color: #442c04; }
.bg-gold-800 { background-color: #6b4506; }
.bg-gold-700 { background-color: #926008; }
.bg-gold-600 { background-color: #b8860b; }
.bg-gold-500 { background-color: #d4a017; }
.bg-gold-400 { background-color: #f9db63; }
.bg-gold-300 { background-color: #fbe89a; }
.bg-gold-200 { background-color: #fdf3d0; }
.bg-gold-100 { background-color: #fef9e8; }
.bg-gold-50 { background-color: #fef9e8; }

.bg-white { background-color: #ffffff; }
