/* Custom styles for Cafe Rich */

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

/* Reveal animations - only for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback for no JS - ensure content is visible */
.no-js .reveal,
.js .reveal {
    opacity: 1;
    transform: none;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 5px;
}

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

/* Gold gradient text effect */
.text-gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #E5C158 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(10, 10, 10, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #1c1c1c 25%, #2a2a2a 50%, #1c1c1c 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}
