/* Custom Styles for Wild Joe's Coffee At The Library */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll Reveal Animation */
.scroll-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);
}

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

/* Navbar Scroll State */
#navbar.scrolled {
    background: rgba(61, 33, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-logo-text {
    color: #fdf8ee !important;
}

#navbar.scrolled .nav-link {
    color: rgba(253, 248, 238, 0.85) !important;
}

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

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

/* Back to Top Button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:not(.visible) {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hover Effects for Cards */
.bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Smooth Image Loading */
img {
    transition: opacity 0.5s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Selection Color */
::selection {
    background: #c45a38;
    color: #fdf8ee;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c45a38;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    img {
        transition: none;
    }
    
    .group:hover img,
    img.group-hover\:scale-110 {
        transform: none;
    }
    
    button, a {
        transition: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #back-to-top,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
