/* Custom styles for Mi Casa Grande Mexican Restaurant */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3d7a3d;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #faf8f5;
}

/* Reveal animation - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@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);
    }
    
    .reveal.delay-100 { transition-delay: 0.1s; }
    .reveal.delay-200 { transition-delay: 0.2s; }
    .reveal.delay-300 { transition-delay: 0.3s; }
    .reveal.delay-400 { transition-delay: 0.4s; }
    .reveal.delay-500 { transition-delay: 0.5s; }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(10, 31, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
.mobile-menu-open #mobile-menu {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-menu-open #mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open #mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open #mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Gold shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Floating particles */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Pulse glow for CTA elements */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 168, 67, 0.2); }
    50% { box-shadow: 0 0 40px rgba(212, 168, 67, 0.4); }
}

/* Image hover overlay */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

/* Form styles */
input, textarea {
    background: rgba(26, 58, 26, 0.5);
    border: 1px solid rgba(212, 168, 67, 0.2);
    color: #faf8f5;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: rgba(212, 168, 67, 0.5);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

input::placeholder, textarea::placeholder {
    color: rgba(250, 248, 245, 0.4);
}

/* Success message */
.success-message {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.2;
    }
}

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

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