/* Custom styles for The Deli — Elmira */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
}

/* Scroll reveal — progressive enhancement, hidden by default for below-fold */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: content is always visible if JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar states */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-text-dark {
    color: #0f172a;
}

.navbar-scrolled .nav-link {
    color: #334155;
}

.navbar-scrolled .nav-link:hover {
    color: #0d9488;
}

.navbar-scrolled .nav-btn svg {
    stroke: #0f172a;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
}

.nav-link:hover {
    color: #2dd4bf;
}

.nav-btn svg {
    stroke: #0f172a;
}

.hero-scrolled .nav-btn svg {
    stroke: #0f172a;
}

/* Mobile menu */
.mobile-link {
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.mobile-link:hover {
    color: #0d9488;
}

/* Hero text contrast — explicit dark hero, light text */
#hero h1,
#hero p,
#hero .bg-white\/10 {
    color: #ffffff;
}

/* Button hover lift */
.group:hover .absolute {
    /* handled by group-hover utilities */
}

/* Selection color */
::selection {
    background: #2dd4bf;
    color: #0f172a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Map container responsive */
.iframe-container {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

/* Subtle pattern for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
}
