/* نام فایل: style.css */

/*
 * CSS متغیرها (برای تم گیاهی)
 */
 :root {
    --primary-green: #3A5A40;
    --secondary-green: #588157;
    --bg-light: #F8F6F2;
    --text-dark: #2F2F2F;
    --accent-brown: #8B5E3C;
    --border-color: #E0E0E0;
    --font-body: 'Vazirmatn', sans-serif;
    --font-heading: 'Vazirmatn', serif;
}

/*
 * ریست کلی و تنظیمات پایه
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    direction: rtl; /* ضروری برای فارسی */
}

/*
 * هدر و ناوبری
 */
.header {
    background-color: #fff;
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-green);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header h1 {
    font-family: var(--font-heading);
    color: var(--primary-green);
    font-size: 2.5rem;
    font-weight: 700;
}

/*
 * بخش Hero (تصویر اصلی)
 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.0)), url('./header.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.3); */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
/*
 * بخش اصلی منو
 */
.menu-container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.menu-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-green);
    position: relative;
}

.menu-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-brown);
    margin: 0.5rem auto 0;
}

.menu-section {
    /*margin-bottom: 3rem;*/
}

.menu-section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-green);
    border-bottom: 2px solid var(--secondary-green);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    /*margin-bottom: 2rem;*/
}

.menu-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    /*margin-bottom: 0.5rem;*/
}

.menu-item-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.menu-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-brown);
    white-space: nowrap;
    margin-right: 1rem;
}

.menu-item-description {
    font-size: 0.95rem;
    color: #555;
    font-weight: 300;
}

/*
 * فوتر
 */
.footer {
    background-color: var(--primary-green);
    color: var(--bg-light);
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer .social-links a {
    color: var(--bg-light);
    text-decoration: none;
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color 0.3s;
}

.footer .social-links a:hover {
    color: var(--secondary-green);
}

/*
 * کدهای ریسپانسیو (Responsive)
 */
@media (max-width: 992px) {
    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .menu-container {
        margin-top: 2rem;
    }
    .header h1 {
        font-size: 2rem;
    }
}