/* Custom styles for Moondogs Coney Cafe */

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

/* Base typography refinements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero animations */
.hero-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.hero-desc {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal animations - progressive enhancement, only with JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

/* Navbar transitions */
#navbar.scrolled {
    background-color: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 39, 68, 0.06);
}

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

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #d4a853;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 4px;
    border-radius: 4px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1a2744/20;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a2744/40;
}

/* Selection color */
::selection {
    background-color: rgba(212, 168, 83, 0.2);
    color: #1a2744;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
    
    .nav-link::after {
        transition: none;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title span {
        font-size: 2.5rem;
    }
    
    #navbar.scrolled {
        background-color: rgba(250, 248, 244, 0.98);
    }
}

/* Ensure all images have consistent loading behavior */
img {
    max-width: 100%;
    height: auto;
}

/* Card hover lift effect */
.bg-white {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(26, 39, 68, 0.08);
}
