/* Base styles and custom utilities */
* { box-sizing: border-box; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth card hover effects */
.card-flavor {
    will-change: transform;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
    background: #E06B45;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C0603A;
}

/* Selection color */
::selection {
    background: #F5B8A0;
    color: #542517;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: fadeIn 0.3s ease;
}
#mobileMenu.hidden {
    animation: fadeOut 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Mobile link transitions */
.mobile-link {
    transition: transform 0.2s ease;
}
.mobile-link:active {
    transform: scale(0.97);
}

/* Nav link underline on hover */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #C0603A;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 60%;
}

/* Map container responsive */
#visit .rounded-3xl {
    min-height: 400px;
}
@media (max-width: 1023px) {
    #visit .rounded-3xl {
        min-height: 350px;
    }
}

/* Ensure hero is always visible */
#hero {
    background: linear-gradient(135deg, #FDF9F3 0%, #FAF0E0 50%, #F5E0C8 100%);
}

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