/* Custom styles for Calvillo's Comfort Mex Kitchen */

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

/* Base typography */
body {
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Navigation scroll effect */
.nav-scrolled {
    background: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(44, 44, 44, 0.1);
}

.nav-scrolled .nav-logo {
    color: #2C2C2C;
}

.nav-scrolled .nav-link {
    color: #2C2C2C;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

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

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

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

/* Input focus styles */
input:focus,
textarea:focus {
    border-color: #E87461 !important;
}

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

/* Subtle fade-in animation */
.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 effect */
img {
    transition: transform 0.7s ease;
}

/* Mobile menu button hover */
#mobile-menu-btn:hover span {
    background: #E87461;
}
