/* Variables & Theme - Warm Muted Artisan */
:root {
    --bg-base: #FDFCF8; /* Soft Cream */
    --bg-secondary: #F4F2EB; /* Warm Grey/Sand */
    --bg-card: #FFFFFF;
    --bg-dark: #2C2C2C; /* Deep Charcoal for Footer */
    
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    
    --accent-gold: #C5A059;
    --accent-sage: #7D8E7E;
    --accent-terracotta: #D48166;
    
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.1);
    
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Scroll-Activated Navbar */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-nav.visible {
    transform: translateY(0);
}

.nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.brand {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Fullscreen Hero Section */
.featured-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-image-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-base) 0%, transparent 80%);
    z-index: 2;
}

.hero-text-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.special-tag {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: fadeInDown 1s ease both;
}

.hero-text-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease 0.2s both;
}

.featured-price {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--text-primary);
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* Menu Controls */
.menu-controls {
    max-width: 1400px;
    margin: 4rem auto 2rem;
    padding: 0 2rem;
}

.controls-wrapper {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: var(--shadow-soft);
}

.search-input {
    width: 100%;
    padding: 1.25rem 1rem 1.25rem 3.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.category-nav {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

/* Our Story */
.our-story {
    padding: 8rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.our-story h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.our-story p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Menu Grid */
.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.menu-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.menu-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.item-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.price-tag {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Badges */
.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}
.status-badge.accent { background: var(--accent-gold); color: #fff; }
.status-badge.error { background: #E74C3C; color: #fff; }

/* Social Proof */
.social-proof {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
}

.social-header {
    text-align: center;
    margin-bottom: 4rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.social-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #eee;
}

.social-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.social-item:hover img {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 6rem 2rem 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.footer-col a, .footer-col p {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.95rem;
}

.footer-col a:hover { color: #fff; }

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.newsletter-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
    background: var(--accent-gold);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.copyright {
    text-align: center;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--text-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: #fff;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-content { max-width: 90%; max-height: 90vh; border-radius: var(--radius-md); }
.close-lightbox { position: absolute; top: 2rem; right: 2rem; color: #fff; cursor: pointer; }

/* Skeleton */
.skeleton-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #eee;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
