/* =============================================
   Kingston's Grill — Custom Styles
   Premium Dark Luxury | Plum + Amber
   ============================================= */

/* Base reset & typography */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
    margin: 0;
    background-color: #1d0040;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth focus outlines for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* =============================================
   Navigation
   ============================================= */
#nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#nav.scrolled {
    background: rgba(29, 0, 64, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(180, 83, 9, 0.15);
    padding: 0;
}

/* =============================================
   Scroll Reveal (progressive enhancement)
   Content is visible by default; JS adds animation */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* =============================================
   Menu item hover effects
   ============================================= */
#menu ul li {
    transition: transform 0.2s ease;
}
#menu ul li:hover {
    transform: translateX(4px);
}

/* =============================================
   Button focus & active states
   ============================================= */
button, a {
    transition: all 0.3s ease;
}

/* =============================================
   Mobile menu transitions
   ============================================= */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* =============================================
   Form inputs
   ============================================= */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
}

select option {
    background: #1d0040;
    color: #ffffff;
}

/* =============================================
   Responsive adjustments
   ============================================= */
@media (max-width: 768px) {
    .font-serif {
        word-break: break-word;
    }
}
