/* ============================================
   2nd Chance Eats & Drinks — Custom Styles
   Classic & Elegant | Plum + Amber Palette
   ============================================ */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2a1119;
}
::-webkit-scrollbar-thumb {
    background: #8b3a5a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a85574;
}

/* --- Selection --- */
::selection {
    background: #f5a623;
    color: #2a1119;
}

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

/* --- Base Typography --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Reveal Animations (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navbar Transition --- */
#navbar.scrolled {
    background: rgba(42, 17, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(139, 58, 90, 0.2);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-plum-100 {
    color: #faf5f7;
}

/* --- Hero Image Parallax --- */
#hero .absolute.inset-0 img {
    will-change: transform;
}

/* --- Card Hover Effects --- */
.reveal.group:hover img {
    transform: scale(1.05);
}

/* --- Button Focus States --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f5a623;
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- Mobile Menu Transitions --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* --- Decorative Line Animation --- */
@keyframes expandWidth {
    from { width: 0; }
    to { width: 3rem; }
}

/* --- Image Loading --- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* --- Subtle Grain Texture Overlay --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Map Inversion Fix --- */
iframe[title*="Map"] {
    border-radius: 4px;
}

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

/* --- Print Styles --- */
@media print {
    body {
        background: white;
        color: black;
    }
    
    nav, footer, .reveal {
        display: none;
    }
}
