/* Custom styles for The Covered Wagon Cafe */

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

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #99f6e4;
    color: #134e4a;
}

/* Subtle pattern for hero section background */
.hero-bg-pattern {
    background-image: radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.04) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.03) 0%, transparent 50%);
}

/* Image hover zoom wrapper */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom:hover img {
    transform: scale(1.05);
}

/* Form input focus glow */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .img-zoom img {
        transition: none;
    }
    * {
        transition-duration: 0s !important;
        animation-duration: 0s !important;
    }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success message animation */
#form-success.show {
    animation: fadeInUp 0.4s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button ripple-like hover effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Print styles */
@media print {
    nav, #contact-form, #form-success {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
