/* Custom styles for Don Carnitas Estilo Michoacan */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFCF9;
}
::-webkit-scrollbar-thumb {
    background: #d44056;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* Mobile menu animations */
.mobile-menu-line {
    transition: all 0.3s ease;
}

#mobile-menu.open .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.open .mobile-menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu.open .mobile-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Mobile menu open state */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(255, 252, 249, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* Hero image hover effect */
#hero .rounded-3xl {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#hero .rounded-3xl:hover {
    transform: scale(1.01);
}

/* Menu card hover */
.group:hover .group-hover\\:bg-burgundy-600 {
    transition: background-color 0.3s ease;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.absolute.-bottom-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

/* Decorative elements animation */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}
.absolute.top-20.-left-20,
.absolute.bottom-20.-right-10 {
    animation: pulse-slow 6s ease-in-out infinite;
}
.absolute.bottom-20.-right-10 {
    animation-delay: 3s;
}

/* Button ripple effect */
a[href="tel:+18643497123"] {
    position: relative;
    overflow: hidden;
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Gallery hover overlay */
.group .group-hover\\:scale-110 {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Testimonial card hover */
.bg-gradient-to-br {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bg-gradient-to-br:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(123, 45, 59, 0.12);
}

/* CTA section decorative elements */
.bg-burgundy-600 .absolute {
    animation: pulse-slow 8s ease-in-out infinite;
}
