/* ========================================
   El Kiosko Commercial Kitchen
   Custom Styles
======================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #d4a843;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e0b95e;
}

/* Selection color */
::selection {
    background: #d4a843;
    color: #0a1628;
}

/* ========================================
   Navbar Scroll State
======================================== */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Reveal Animations
======================================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Only animate when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal.animate-on-scroll {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.animate-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Button Hover Effects
======================================== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   Form Focus States
======================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ========================================
   Mobile Menu Animation
======================================== */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* ========================================
   Image Aspect Ratio Fallbacks
======================================== */
img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    nav, #contact-form, .reveal.animate-on-scroll {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
