/* Custom styles for Coffee Cave */

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

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

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

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

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

/* Selection color */
::selection {
    background: rgba(200, 169, 97, 0.3);
    color: #fff;
}

/* Reveal animations - progressive enhancement */
.reveal {
    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);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), pointer-events 0.4s;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile link transitions */
.mobile-link {
    transition: color 0.3s ease;
}

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Prevent layout shift */
img {
    object-fit: cover;
}

/* Tablet breakpoint adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    #navbar, #mobileMenu, button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-navy-900, .bg-navy-800 {
        background: white !important;
    }
    
    .text-white, .text-gold-400 {
        color: black !important;
    }
}
