/* Custom styles for Lake Time Coffee & Cones */

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

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

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(93, 45, 65, 0.08);
}

#navbar.scrolled .font-display {
    color: #5d2d41 !important;
}

#navbar.scrolled a:not(.bg-amber-500) {
    color: #75364f !important;
}

#navbar.scrolled a:not(.bg-amber-500):hover {
    color: #b45309 !important;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating card animations */
@media (prefers-reduced-motion: no-preference) {
    .floating-card-1 {
        animation: float1 4s ease-in-out infinite;
    }
    .floating-card-2 {
        animation: float2 5s ease-in-out infinite;
    }
    .floating-card-3 {
        animation: float3 4.5s ease-in-out infinite;
    }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(93, 45, 65, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Card hover effects */
.bg-plum-50:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid #f5a623;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f9f5f7;
}
::-webkit-scrollbar-thumb {
    background: #d4b0c0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #be859e;
}
