/* Custom styles for DeVille Coffee House and Creperie */

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

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

/* Reveal animations - progressive enhancement */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-up.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger delays for child elements */
    .reveal-up:nth-child(2) { transition-delay: 0.1s; }
    .reveal-up:nth-child(3) { transition-delay: 0.2s; }
    .reveal-up:nth-child(4) { transition-delay: 0.3s; }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(-100%);
}

/* Hover effects for menu items */
.group:hover .group-hover\:text-mint-400 {
    color: #8fd9c7;
}

/* Image loading placeholder */
img {
    background-color: #1a2e4a;
}

/* Selection color */
::selection {
    background-color: rgba(42, 157, 143, 0.3);
    color: #f0f4f8;
}

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

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

::-webkit-scrollbar-thumb {
    background: #243b53;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a9d8f;
}

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

/* Map container */
iframe {
    filter: saturate(0.8) brightness(0.9);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) brightness(1);
}
