/* ========================================
   Silver Moon Restaurant — Custom Styles
   ======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(255, 99, 36, 0.2);
    color: #252529;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #252529;
}
::-webkit-scrollbar-thumb {
    background: #5a5a62;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff6324;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 250, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.05);
}

#navbar.scrolled .font-serif {
    color: #141417 !important;
}

#navbar.scrolled a:not(.bg-coral-600) {
    color: #48484f !important;
}

#navbar.scrolled a:not(.bg-coral-600):hover {
    color: #f04509 !important;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
    font-size: 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
}

/* ========================================
   Hero
   ======================================== */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #faf8f5, transparent);
    pointer-events: none;
}

/* ========================================
   Section Transitions
   ======================================== */
section {
    position: relative;
}

/* ========================================
   Buttons & Links
   ======================================== */
a {
    text-decoration: none;
}

/* ========================================
   Form Styles
   ======================================== */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    #hero::after {
        height: 60px;
    }
    
    .font-serif {
        letter-spacing: -0.01em;
    }
}

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