/* Custom styles for The Mallard Inn */

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

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 2s;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2d6a56;
}

/* Selection color */
::selection {
    background-color: #d1e7dc;
    color: #0f2922;
}

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

/* Remove default outline for mouse users */
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .animate-float,
    .animate-float-delayed {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .font-serif {
        color: black !important;
    }
}

/* Reduced motion */
@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;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .border {
        border-width: 2px !important;
    }
    
    .text-forest-600 {
        color: #1a3f34 !important;
    }
    
    .text-forest-500 {
        color: #0f2922 !important;
    }
}

/* Utility classes */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 41, 34, 0.1);
}

/* Glass morphism for cards */
.glass-card {
    background: rgba(252, 251, 249, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
