/* Base & Variables */
:root {
    --color-primary: #D4AF37; /* Premium Gold */
    --color-primary-dark: #b5952f;
    --color-bg-dark: #121212;
    --color-bg-light: #1e1e1e;
    --color-text: #f5f5f5;
    --color-text-muted: #a0a0a0;
    --color-border: #333;
    
    --font-heading: 'Cinzel', 'Playfair Display', serif; /* Medieval vibe */
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    background-image: url('images/bg_wood.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Overlay întunecat semitransparent peste textura de lemn */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(8, 5, 2, 0.72);
    z-index: 0;
    pointer-events: none;
}

/* Asigurăm că tot conținutul este deasupra overlay-ului */
body > * {
    position: relative;
    z-index: 1;
}


h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #000;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-primary);
}



/* =========================================
   MOBILE NAV RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    .navbar.scrolled {
        padding: 8px 0;
    }
    .nav-container {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 10px;
    }
    .nav-menu {
        display: none;
    }
    .header-actions {
        order: 2;
        gap: 8px !important;
        flex-wrap: nowrap;
    }
    .header-actions .btn-outline {
        padding: 5px 10px !important;
        font-size: 0.72rem !important;
    }
    .header-actions .lang-switcher {
        gap: 6px;
        margin-right: 5px;
    }
    .header-actions .lang-switcher a {
        font-size: 0.78rem;
    }
    .header-actions .cart-btn {
        font-size: 1rem;
    }
    /* Logo scaling on mobile */
    .nav-container > div:first-child {
        gap: 10px !important;
    }
    .nav-container > div:first-child .logo img {
        height: 42px !important;
        max-width: 160px !important;
    }
    .nav-container > div:first-child .logo {
        margin-left: 5px !important;
    }
    #toggle-sidebar {
        padding: 4px 8px !important;
        font-size: 0.85rem !important;
    }
    /* Cart modal mobile */
    .cart-modal-content {
        width: 95%;
        padding: 18px;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 8px;
    }
    .nav-container > div:first-child .logo img {
        height: 36px !important;
        max-width: 130px !important;
    }
    .header-actions .btn-outline {
        padding: 4px 8px !important;
        font-size: 0.68rem !important;
    }
    .header-actions .lang-switcher a {
        font-size: 0.72rem;
    }
    #toggle-sidebar {
        padding: 3px 6px !important;
        font-size: 0.8rem !important;
    }
    #toggle-sidebar span:first-child {
        font-size: 1.1rem !important;
    }
    /* Product grid single column on very small screens */
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('images/restaurant_hero_bg.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: 0; /* Left align for desktop */
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--color-text-muted);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--color-bg-dark);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--color-bg-light);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.feature-card p {
    color: var(--color-text-muted);
}

/* Menu Section */
.menu-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Modern Sidebar Menu Layout */
.menu-layout {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    align-items: flex-start;
}

/* Sidebar Slide Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}
.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar Slide */
.menu-sidebar.slide-sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 320px;
    height: 100vh;
    background: #0a0a0a;
    z-index: 999;
    padding: 115px 30px 30px 30px;
    border-right: 1px solid var(--color-primary);
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.9);
    overflow-y: auto;
    margin: 0;
    flex: none;
}

.menu-sidebar.slide-sidebar.open {
    left: 0;
}

.close-sidebar {
    position: absolute;
    top: 115px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-sidebar:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.sidebar-title {
    margin-top: 20px;
    color: var(--color-primary);
    font-size: 1.8rem;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    font-family: var(--font-heading);
}

.category-link {
    display: block;
    padding: 12px 15px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 1.1rem;
}

.category-link:hover, .category-link.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-primary);
    border-left: 4px solid var(--color-primary);
}

.menu-content {
    width: 100%;
    flex: 1;
}

.menu-layout {
    display: block; /* Remove flex config for standard full-width */
}

.menu-category-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.category-section-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 5px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    flex: 1;
    padding-right: 15px;
}

.product-price {
    font-weight: bold;
    color: var(--color-primary);
    white-space: nowrap;
}

.product-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.qty-control {
    display: flex;
    align-items: center;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 2px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.qty-btn:hover {
    color: var(--color-primary);
}

.qty-val {
    width: 30px;
    text-align: center;
    font-weight: bold;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Cart Modal Styles */
.cart-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.cart-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.cart-modal-content {
    background: #111;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    border: 1px solid var(--color-primary);
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.close-cart {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
}
.close-cart:hover {
    color: var(--color-primary);
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    padding: 10px 0;
}
.cart-item-info {
    flex: 1;
}
.cart-item-title {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}
.cart-item-price {
    color: var(--color-primary);
    font-size: 0.9rem;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-item-btn {
    background: #222;
    border: 1px solid #444;
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
}
.cart-item-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.cart-remove-btn {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
}
.cart-remove-btn:hover {
    background: #cc0000;
}
.cart-summary {
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a; 
}
::-webkit-scrollbar-thumb {
    background: #444; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4af37; 
}


/* =========================================
   FOOTER STYLES
   ========================================= */
.footer {
    background: #111 url('images/bg_wood.jpg') center/cover;
    border-top: 1px solid #332b11;
    padding: 60px 0 20px 0;
    color: #ccc;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 0;
}
.footer > * {
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3.logo {
    margin: 0;
}
.footer-col h3.logo img {
    max-width: 180px;
    margin-bottom: 15px;
}
.footer-col h4 {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #d4af37;
}
.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 0.95rem;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #888;
}


/* =========================================
   QUOTES SLIDER
   ========================================= */
.quotes-banner {
    position: relative;
    padding: 60px 0;
    background: #0d0a08 url('images/bg_wood.jpg') center/cover;
    border-top: 1px solid #332b11;
    border-bottom: 1px solid #332b11;
    text-align: center;
    overflow: hidden;
}
.quotes-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,6,4,1) 0%, rgba(20,16,10,0.7) 50%, rgba(8,6,4,1) 100%);
    z-index: 0;
}
.quotes-container {
    position: relative;
    z-index: 1;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}
.quote-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}
.quote-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    position: relative;
}
.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: #f7ecd5;
    margin-bottom: 20px;
    line-height: 1.5;
    text-shadow: 0 3px 6px rgba(0,0,0,0.9);
}
.quote-author {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: #d4af37;
    letter-spacing: 2px;
    font-weight: 600;
}
@media (max-width: 600px) {
    .quote-text { font-size: 1.2rem; }
    .quotes-container { min-height: 160px; }
}

@media (max-width: 768px) {
    .d-none-mobile { display: none !important; }
}

/* Cart badge styling */
.cart-badge {
    background: var(--color-primary);
    color: #000;
    border-radius: 50%;
    padding: 1px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 3px;
    min-width: 18px;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}
