/* Custom styles for La Frontera Multiservicios */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0f2a0f;
}

/* Selection color */
::selection {
    background: #1f5c1f;
    color: #faf8f5;
}

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

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #1f5c1f;
    outline-offset: 2px;
}

/* Hover card lift effect */
.group:hover {
    transform: translateY(-2px);
}

/* Subtle pattern for background */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(31, 92, 31, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Nav scroll state */
.nav-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

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

.group:hover img {
    transform: scale(1.02);
}

/* Button press effect */
button, a {
    transition: all 0.3s ease;
}

button:active, a:active {
    transform: scale(0.98);
}
