/* Custom styles for Las Delicias de Lucy */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: white;
}

/* Navbar transition */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Hero animations - only for below-fold progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .hero-badge {
        animation: fadeSlideUp 0.8s ease-out 0.2s both;
    }
    .hero-headline {
        animation: fadeSlideUp 0.8s ease-out 0.4s both;
    }
    .hero-subtext {
        animation: fadeSlideUp 0.8s ease-out 0.6s both;
    }
    .hero-ctas {
        animation: fadeSlideUp 0.8s ease-out 0.8s both;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobile-menu.open {
    max-height: 400px;
    padding: 0;
}

/* Menu item hover effect */
#menu ul li {
    transition: padding-left 0.2s ease;
}
#menu ul li:hover {
    padding-left: 8px;
}

/* Image hover container */
.rounded-2xl.overflow-hidden {
    will-change: transform;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

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

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

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