/* Custom styles for La Cuata Mexican Restaurant */

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

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #0f2a0f;
}

#navbar.scrolled .nav-link {
    color: #1a4a1a;
}

/* Mobile menu */
.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #E07B5C;
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::after {
    width: 80%;
}

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

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

/* Hero animations */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.8s ease forwards;
}

.animate-slide-up {
    animation: slide-up 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slide-up 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slide-up 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* Geometric hover effects on cards */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1f5c1f;
}

/* Selection color */
::selection {
    background-color: #F2C94C;
    color: #0f2a0f;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Menu lines animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#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) {
    width: 24px;
    margin-left: 0;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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