/* Custom styles for Olmos Deli & Grocery */

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

/* Navbar transitions */
.nav-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e09d00;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu transitions */
.menu-line {
    transition: all 0.3s ease;
}

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

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

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

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Hero text animation - only for below-fold content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content > *:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.5s;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #851c38;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #3d0a18;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal.hidden {
        opacity: 1;
        transform: none;
    }
    
    .hero-content > * {
        animation: none;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* Mobile menu active state */
#mobile-menu.open {
    transform: translateX(0);
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image hover zoom */
.group:hover img {
    transition: transform 0.6s ease;
}

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

/* Print styles */
@media print {
    header,
    footer,
    .no-print {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
