/* Custom styles for R&R Bar and Grill */

/* Ensure all text has proper contrast */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@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;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, button {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary, .btn-secondary {
        border: 2px solid currentColor !important;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Improve tap targets on mobile */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Custom selection color */
::selection {
    background-color: #059669;
    color: #fefce8;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 6px;
}

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

/* Loading state for form submission */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error states for form inputs */
input:invalid, textarea:invalid {
    border-color: #ef4444 !important;
}

input:valid, textarea:valid {
    border-color: #10b981 !important;
}

/* Animation for reveal elements */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Ensure reveal animations only apply when JS is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible even without JS */
.no-js .reveal {
    opacity: 1;
    transform: translateY(0);
}
