/* Custom styles for Toledo's Courthouse Cafe */

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 252, 249, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(90, 34, 34, 0.06);
}

.nav-scrolled .nav-logo-text {
    color: #5a2222 !important;
}

.nav-scrolled .nav-link {
    color: rgba(61, 43, 43, 0.7) !important;
}

/* Mobile menu link transitions */
.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c44d4d;
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::after {
    width: 60%;
}

/* Hero image floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

/* Scroll reveal base - content is visible by default */
/* JS adds .revealed class for animation */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    .group img,
    .rounded-2xl img,
    .rounded-3xl img {
        transition: none;
    }
    .group:hover img,
    .rounded-2xl:hover img,
    .rounded-3xl:hover img {
        transform: none;
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fffcf9;
}
::-webkit-scrollbar-thumb {
    background: #d4a0a0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c44d4d;
}
