/* Custom styles for Laura's Country Diner */

/* Scroll reveal base states */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal="true"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal="true"] {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.1);
}

nav.scrolled a.text-emerald-800 {
    color: #065F46;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menu-toggle.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active #bar2 {
    opacity: 0;
}

#menu-toggle.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Smooth focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #A7F3D0;
    color: #065F46;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6EE7B7;
}

/* Image hover effects */
img {
    transition: opacity 0.3s ease;
}

/* Ensure hero content is immediately visible */
#hero h1,
#hero p,
#hero a {
    opacity: 1;
    animation: none;
}

/* Subtle line animations */
@keyframes line-grow {
    from { width: 0; }
    to { width: 3rem; }
}

div.flex.items-center.gap-4.mb-8 > div:first-child {
    animation: line-grow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Button ripple effect on hover */
button, a {
    position: relative;
    overflow: visible;
}

/* Print styles */
@media print {
    nav, #mobile-menu, .reveal[data-reveal="true"] {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
