/* Custom styles for Courtyard Cafe */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6B3F6B;
}

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

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects for links */
a {
    text-decoration: none;
}

/* Focus styles */
button:focus,
input:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Image hover zoom effect */
img {
    transition: transform 0.5s ease;
}

/* Button hover effects */
button,
a[href] {
    transition: all 0.3s ease;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset;
    transition: background-color 0.5s ease-in-out 0s;
}

/* Loading state for buttons */
button:active {
    transform: scale(0.98);
}
