/* Custom styles for Mountain Thyme Cafe */

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

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

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

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

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

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

/* Navbar transition */
#navbar {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(6, 15, 31, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(30, 64, 112, 0.3);
}

/* Mobile menu animations */
.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    transform: translateX(4px);
}

/* Hero card floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Apply floating to stat cards (only if JS adds class) */
.floating-card-1 {
    animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float 4s ease-in-out infinite 0.5s;
}

.floating-card-3 {
    animation: float 4s ease-in-out infinite 1s;
}

.floating-card-4 {
    animation: float 4s ease-in-out infinite 1.5s;
}

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

/* Fade-in animations for scroll reveal (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Card hover effects */
.group:hover .group-hover\:bg-gold-500\/20 {
    background-color: rgba(212, 168, 36, 0.2);
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0f2445 0%, #153058 100%);
}

/* Print styles */
@media print {
    #navbar,
    .mobile-menu,
    #contact-form button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
