/* Custom styles for Buen Provecho */

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

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

::-webkit-scrollbar-track {
    background: #064e3b;
}

::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #047857;
    color: #fefdf8;
}

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

/* Animation for mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for cards */
.bg-emerald-900\/50:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: 2.5rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
