/* ═══════════════════════════════════════════════════════════
   BRIAN'S DELI — Premium Dark Luxury Styles
   Emerald Green + Cream + Metallic Gold
   ═══════════════════════════════════════════════════════════ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
    background-color: #081C15;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #081C15;
}
::-webkit-scrollbar-thumb {
    background: #1A4D3A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4A843;
}

/* ─── Selection ─── */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #FBF9F3;
}

/* ─── Utility ─── */
.label-gold {
    color: #D4A843;
}

/* ─── Gold Divider ─── */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #D4A843;
    opacity: 0.5;
}
.divider .line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,168,67,0.6), transparent);
}
.divider .gold-dust {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ─── Card Glow ─── */
.card-glow {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 4px 30px rgba(0,0,0,0.3);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.card-glow:hover {
    box-shadow: 0 0 0 1px rgba(212,168,67,0.15), 0 8px 40px rgba(0,0,0,0.4), 0 0 60px rgba(212,168,67,0.05);
    transform: translateY(-2px);
}

/* ─── Navigation ─── */
#site-header {
    background: transparent;
}
#site-header.scrolled {
    background: rgba(8, 28, 21, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4A843;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ─── Mobile Menu Button ─── */
#menu-btn.active .menu-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn.active .menu-line:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

#mobile-menu.open {
    translate: 0;
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    display: block;
}

/* ─── HERO ─── */
#hero {
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        url('https://images.pexels.com/photos/13642135/pexels-photo-13642135.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    opacity: 0.35;
    will-change: transform;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    will-change: transform;
}
.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26,77,58,0.6) 0%, transparent 70%);
    top: -10%;
    right: -5%;
}
.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,168,67,0.12) 0%, transparent 70%);
    bottom: 5%;
    left: -5%;
}
.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(26,77,58,0.4) 0%, transparent 70%);
    top: 40%;
    left: 30%;
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    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-size: 128px 128px;
    pointer-events: none;
}

/* Scroll dot animation */
.scroll-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: #D4A843;
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
    0%, 100% { top: 0; opacity: 0.3; }
    50% { top: 100%; transform: translateX(-50%) translateY(-4px); opacity: 1; }
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Initial state — only applied when JS is available via the script */
.reveal.pending {
    opacity: 0;
    transform: translateY(30px);
}

/* ─── Gallery ─── */
.gallery-item {
    position: relative;
    cursor: pointer;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8,28,21,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal.pending {
        opacity: 1;
        transform: none;
    }
    .scroll-dot {
        animation: none;
        opacity: 0.5;
    }
}
