/* Custom styles for Cove Cafe */

:root {
    --nav-bg: transparent;
    --nav-text: #fff8f6;
    --nav-link: #fff8f6;
    --nav-border: rgba(253, 240, 246, 0.3);
}

html {
    scroll-behavior: smooth;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(59, 14, 14, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-logo-fill {
    fill: #fff8f6;
}

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

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

#navbar.scrolled .nav-link:hover {
    color: #ffdcd3;
}

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

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

#menu-toggle.active #menu-line-1 {
    transform: translateY(8px) rotate(45deg);
}

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

#menu-toggle.active #menu-line-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

::-webkit-scrollbar-track {
    background: #3b0e0e;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a12d2d;
}

/* Selection */
::selection {
    background: rgba(130, 38, 38, 0.3);
    color: #fff8f6;
}

/* Image hover effects */
img {
    display: block;
    max-width: 100%;
}

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

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Mobile menu link hover */
.mobile-link:hover {
    transform: scale(1.02);
}

/* Card hover */
.group:hover .group-hover\:bg-burgundy-700 {
    background-color: #822626;
}

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