/* Custom styles for Cafe miomio / Bar Mutsumi */

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

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

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

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

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

/* Selection color */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger children animations */
    .reveal-grid > * {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-grid.revealed > *:nth-child(1) { transition-delay: 0.1s; }
    .reveal-grid.revealed > *:nth-child(2) { transition-delay: 0.2s; }
    .reveal-grid.revealed > *:nth-child(3) { transition-delay: 0.3s; }
    .reveal-grid.revealed > *:nth-child(4) { transition-delay: 0.4s; }
    .reveal-grid.revealed > *:nth-child(5) { transition-delay: 0.5s; }
    .reveal-grid.revealed > *:nth-child(6) { transition-delay: 0.6s; }
    
    .reveal-grid.revealed > * {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Force reveal for reduced motion or no JS */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-grid > * {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 1px 3px rgba(6, 78, 59, 0.1);
}

/* Button hover effects */
button,
a[href^="tel:"],
a[href^="mailto:"] {
    cursor: pointer;
}

/* Image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Hover card lift effect */
.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rounded-2xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.1);
}
