/* Custom styles for Monarca Alta Cocina */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fafaf9;
}
::-webkit-scrollbar-thumb {
    background: #d4a0a0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #943636;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

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

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image hover zoom */
.group:hover img {
    transform: scale(1.05);
}

/* Button ripple effect */
button::after, a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

/* Selection color */
::selection {
    background: #d4a0a0;
    color: #552121;
}

/* 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: 1rem 0;
}

/* Menu item hover line */
.group h4 {
    position: relative;
}

.group h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #b54949;
    transition: width 0.3s ease;
}

.group:hover h4::after {
    width: 100%;
}

/* Input focus animation */
input:focus, textarea:focus {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Gallery image transitions */
.rounded-2xl.overflow-hidden {
    overflow: hidden;
}

.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Parallax-like subtle movement */
@media (prefers-reduced-motion: no-preference) {
    .bg-gradient-to-br {
        animation: subtleShift 20s ease-in-out infinite alternate;
    }
}

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

/* Decorative line animation */
h2 .italic {
    position: relative;
}

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