/* Custom styles for La Costa Restaurant */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 251, 240, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(4, 78, 59, 0.08);
}

.nav-scrolled .nav-link {
    color: #047857;
}

.nav-scrolled #navbar .font-display {
    color: #047857;
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

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

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #34d399;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #d1fae5 0%, #fef7e0 100%);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    
    .animate-float-1,
    .animate-float-2,
    .animate-float-3 {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav,
    .animate-float-1,
    .animate-float-2,
    .animate-float-3 {
        display: none;
    }
}

/* Large screen adjustments */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
