/* ==================== متغیرها ==================== */
:root {
    --bg-primary: #1E1510;
    --bg-secondary: #2E1C0E;
    --bg-card: #3A2A1C;
    --text-primary: #F3E8DD;
    --text-secondary: #D6C0B3;
    --accent: #E3D0B8;
    --accent-hover: #F0E2D0;
    --brown: #B68B5C;
    --border: #4A3525;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: 0.3s ease;
    --font: 'Vazirmatn', sans-serif;
    --max-width: 1200px;
    --header-height: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); font-size: 16px; }
body {
    font-family: var(--font); font-weight: 400; line-height: 1.8;
    color: var(--text-primary); background: var(--bg-primary);
    direction: rtl; text-align: right; overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 800; color: var(--accent); }
h1 { font-size: 2.6rem; } h2 { font-size: 2rem; } h3 { font-size: 1.4rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 5rem 0; }
.section-title {
    text-align: center; margin-bottom: 3rem; position: relative; color: var(--text-primary);
}
.section-title::after {
    content: ''; position: absolute; bottom: -0.5rem; right: 50%; transform: translateX(50%);
    width: 60px; height: 3px; background: var(--accent); border-radius: 3px;
}

.btn {
    display: inline-block; padding: 0.85rem 2.2rem; font-weight: 700; font-size: 1rem;
    border-radius: 50px; cursor: pointer; border: none; transition: var(--transition);
    text-align: center; background: var(--accent); color: var(--bg-primary);
    box-shadow: 0 4px 16px rgba(227,208,184,0.35);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(227,208,184,0.45); }

.header {
    position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
    background: rgba(30,21,16,0.95); backdrop-filter: blur(16px);
    height: var(--header-height); display: flex; align-items: center;
    border-bottom: 1px solid var(--border); transition: var(--transition);
}
.header.scrolled { background: rgba(46,28,14,0.98); box-shadow: var(--shadow-md); }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 900; font-size: 1.6rem; color: var(--text-primary); white-space: nowrap; z-index: 1001; }
.logo-img { width: 48px; height: 48px; object-fit: contain; }
.logo-text span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav a { padding: 0.55rem 1.1rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); }
.nav a:hover, .nav a.active { color: var(--accent); background: rgba(180,140,100,0.15); }

.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; width: 44px; height: 44px; cursor: pointer; z-index: 1001; background: none; border: none; gap: 6px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--text-primary); border-radius: 3px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.mobile-overlay.active { opacity: 1; pointer-events: auto; }

.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: url('https://images.unsplash.com/photo-1501339847302-acf0530a6a4d?w=1920&q=80') center/cover no-repeat;
    background-attachment: fixed;
}
.hero .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.75); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; max-width: 700px; padding: 2rem; }
.hero-content h1 { color: var(--accent); font-size: 3.2rem; margin-bottom: 1.2rem; text-shadow: 0 3px 18px rgba(0,0,0,0.6); }
.hero-content p { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 2rem; }
.hero-content .btn { background: var(--accent); color: var(--bg-primary); }
.scroll-indicator { position: absolute; bottom: 30px; right: 50%; transform: translateX(50%); z-index: 2; animation: bounceDown 2s infinite; color: var(--accent); font-size: 1.6rem; opacity: 0.8; }
@keyframes bounceDown { 0%,100%{ transform: translateX(50%) translateY(0); } 50%{ transform: translateX(50%) translateY(14px); } }

.about { background: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text h2 { text-align: right; margin-bottom: 1.2rem; color: var(--accent); }
.about-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.about-image img { width: 100%; height: 550px; object-fit: cover; }
.about-image::before { content: ''; position: absolute; inset: -12px; border: 3px solid var(--border); border-radius: var(--radius-lg); z-index: -1; }

.menu-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
    padding: 0.55rem 1.5rem; border-radius: 50px; background: var(--bg-card);
    border: 2px solid var(--border); color: var(--text-secondary); font-weight: 600;
    font-size: 0.9rem; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active { background: var(--brown); border-color: var(--brown); color: #fff; }

.menu-category { margin-bottom: 3rem; scroll-margin-top: calc(var(--header-height) + 20px); }
.menu-category h3 { font-size: 1.4rem; margin-bottom: 0.8rem; border-bottom: 2px solid var(--border); padding-bottom: 0.3rem; color: var(--accent); }

.menu-table-container { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.menu-table { width: 100%; border-collapse: collapse; min-width: 500px; font-size: 0.9rem; background: var(--bg-secondary); }
.menu-table th, .menu-table td { padding: 0.7rem 0.8rem; text-align: center; border-bottom: 1px solid var(--border); color: var(--text-primary); }
.menu-table th { background: var(--brown); color: #fff; font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.menu-table td:first-child, .menu-table th:first-child { text-align: right; font-weight: 600; }
.menu-table tr:last-child td { border-bottom: none; }

.menu-cards { display: none; }
.menu-card-item { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 1.2rem; box-shadow: var(--shadow-sm); margin-bottom: 0.8rem; }
.menu-card-item .item-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; color: var(--text-primary); }
.size-options { display: flex; justify-content: space-around; text-align: center; margin-top: 0.5rem; }
.size-option { flex: 1; }
.size-option small { display: block; color: var(--brown); margin-bottom: 0.2rem; }
.size-option .menu-icon { width: 32px; height: 32px; object-fit: contain; margin: 0 auto 0.2rem; display: block; }  /* آیکون‌های سفارشی */
.size-option span { display: block; margin-top: 0.2rem; font-weight: 600; color: var(--text-primary); }

/* آیکون‌های ستون جدول */
.menu-col-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    margin: 0 0.2rem;
}

/* استایل توضیحات */
.item-note {
    display: block;
    font-size: 0.75rem;
    color: var(--brown);
    margin-top: 0.2rem;
    font-weight: 400;
    line-height: 1.5;
}

.back-to-menu-top {
    position: fixed; bottom: 30px; left: 30px; width: 48px; height: 48px;
    border-radius: 50%; background: var(--accent); color: var(--bg-primary);
    border: none; box-shadow: 0 4px 16px rgba(0,0,0,0.4); font-size: 1.2rem;
    cursor: pointer; z-index: 50; opacity: 0; visibility: hidden;
    transform: translateY(20px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.back-to-menu-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-menu-top:hover { background: var(--accent-hover); }

.gallery { background: var(--bg-secondary); }
.slider-container { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.slider-track { display: flex; transition: transform 0.55s ease; }
.slider-slide { min-width: 100%; flex-shrink: 0; }
.slider-slide img { width: 100%; height: 600px; object-fit:cover; }
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: var(--bg-card);
    border: none; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    font-size: 1.3rem; color: var(--text-primary); display: flex; align-items: center;
    justify-content: center; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.slider-btn:hover { background: var(--brown); color: #fff; }
.slider-btn.prev { right: 16px; } .slider-btn.next { left: 16px; }
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 1.5rem; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border); cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: var(--accent); transform: scale(1.3); }

.contact { background: var(--bg-primary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; }
.contact-info, .contact-form { background: var(--bg-secondary); padding: 2.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.contact-info h3, .contact-form h3 { margin-bottom: 1.5rem; color: var(--accent); }
.info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.3rem; color: var(--text-primary); }
.info-item i { font-size: 1.3rem; color: var(--brown); width: 24px; margin-top: 3px; }
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; color: var(--text-primary); }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-family: var(--font); background: var(--bg-card);
    color: var(--text-primary); transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(227,208,184,0.2); background: var(--bg-secondary); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-message { display: none; margin-top: 1rem; padding: 0.8rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; text-align: center; }
.form-message.success { display: block; background: #1e3a1e; color: #a5d6a7; border: 1px solid #2e7d32; }
.form-message.error { display: block; background: #3a1e1e; color: #ef9a9a; border: 1px solid #c62828; }

.footer { background: #0d0a07; color: var(--text-secondary); padding: 2.5rem 0; text-align: center; }
.footer .social-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer .social-links a { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-card); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 1.3rem; transition: var(--transition); }
.footer .social-links a:hover { background: var(--accent); color: #000; }
.footer .copyright { font-size: 0.9rem; opacity: 0.7; margin: 0; }

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; } .about-image { order: -1; } .about-image img { height: 500px; }
    .contact-grid { grid-template-columns: 1fr; } .slider-slide img { height: 340px; }
}
@media (max-width: 768px) {
    :root { --header-height: 62px; } h1 { font-size: 2rem; } h2 { font-size: 1.6rem; }
    .hamburger { display: flex; }
    .nav { position: fixed; top: 0; right: 0; width: 75vw; height: 100vh; background: var(--bg-secondary); flex-direction: column; align-items: stretch; padding: 5rem 1.5rem 2rem; transform: translateX(100%); transition: 0.4s; box-shadow: -8px 0 30px rgba(0,0,0,0.3); z-index: 1000; }
    .nav.active { transform: translateX(0); }
    .nav a { padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); border-radius: 0; color: var(--text-primary); }
    .hero { background-attachment: scroll; }
    .menu-table-container { display: none; } .menu-cards { display: block; }
    .back-to-menu-top { left: 20px; bottom: 20px; width: 42px; height: 42px; }
    .slider-slide img { height: 350px; }
    .contact-info, .contact-form { padding: 1.8rem; }
}
.menu-table td:empty, .menu-table td:contains("-") { display: none; }
