/* Custom styles for Kalani's Hawaiian Food Truck and Catering */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #D44A2A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C2351F;
}

/* Selection color */
::selection {
    background: #F3B9A3;
    color: #3D2B1F;
}

/* Navbar styles */
.nav-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(61, 43, 31, 0.08);
}

/* Mobile menu animations */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
    width: 5rem;
    margin-left: 0;
    margin-right: 0;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Default state for reveal elements (visible when JS disabled) */
.reveal {
    opacity: 1;
    transform: none;
}

/* Only apply hidden state when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Parallax-like subtle effects */
@supports (background: linear-gradient(to bottom, #FDFBF7, #FDFBF7)) {
    .bg-cream {
        background-attachment: scroll;
    }
}

/* Image hover transitions */
img {
    transition: transform 0.5s ease;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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

/* Print styles */
@media print {
    nav, #contactForm, .reveal:not(.revealed) {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

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