/* Custom styles for Paradise Stop Smoothie and Juice Bar */

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Reveal animations - progressive enhancement, content visible without JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Only apply animation when JS is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal.delay-1 { transition-delay: 0.1s; }
    .reveal.delay-2 { transition-delay: 0.2s; }
    .reveal.delay-3 { transition-delay: 0.3s; }
    .reveal.delay-4 { transition-delay: 0.4s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(59, 10, 18, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

#mobile-menu.collapsed {
    max-height: 0 !important;
    opacity: 0;
    overflow: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9f253b;
}

/* Selection color */
::selection {
    background: #dc4d68;
    color: white;
}

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

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

/* Button hover effects */
a[href^="tel:"]:hover {
    text-decoration: none;
}

/* Ensure hero text is always visible */
#hero h1,
#hero p,
#hero a {
    opacity: 1 !important;
}

/* Mobile menu link styles */
.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}
</style>
