/* Custom styles for Panini Grill Waikiki */

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scroll reveal base — content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal enhanced with JS — only applies when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.is-revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .scroll-reveal:not(.is-revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(249, 245, 252, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(91, 44, 111, 0.08);
}

.navbar-scrolled .font-serif,
.navbar-scrolled .text-plum-900 {
    color: #5B2C6F !important;
}

.navbar-scrolled .text-plum-700,
.navbar-scrolled .text-plum-600 {
    color: #7D3C98 !important;
}

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

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

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

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

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

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

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

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

/* Date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(230deg);
    cursor: pointer;
}

/* Subtle hover glow on cards */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Floating card hover effects */
.absolute.transform {
    will-change: transform;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #D4B5EC;
    color: #381A46;
}
