/* Custom styles for Delicia y Antojitos */

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

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

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

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

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu animations */
.mobile-menu-link {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Menu lines animation */
.menu-line {
    display: block;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(254, 252, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(161, 29, 66, 0.1);
}

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Custom focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #dc4468;
    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;
    }
}

/* Print styles */
@media print {
    nav,
    #back-to-top,
    .scroll-reveal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Accessibility: Ensure all text has sufficient contrast */
.text-burgundy-600 {
    color: #c2274c;
}

.text-burgundy-700 {
    color: #a11d42;
}

.text-burgundy-800 {
    color: #841c3d;
}

.text-burgundy-950 {
    color: #3d0a1a;
}

/* Ensure interactive elements are clearly visible */
button, a {
    cursor: pointer;
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Loading state for images */
img {
    background: linear-gradient(90deg, #fce7eb 25%, #fad0d9 50%, #fce7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Ensure hero is fully visible */
#hero {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Mobile menu backdrop */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Ensure all sections have proper spacing */
section {
    position: relative;
}

/* Card hover effects */
.bg-white.rounded-3xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-3xl:hover {
    transform: translateY(-4px);
}
