/* Custom styles for Sal y Limon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #e8a8b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c2264c;
}

/* Navbar scroll state */
header.scrolled {
    background: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(161, 22, 56, 0.08);
}

header.scrolled .font-serif {
    color: #3d0715;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .mobile-link {
        opacity: 1;
        transform: none;
    }
    img { transition: none; }
    .hover\\:scale-105:hover { transform: none; }
}

/* Hero image subtle float */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .floating { animation: none; }
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid #a11638;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #3d0715;
}
