*{
    direction:rtl;
}
/* === متغیرهای CSS (Custom Properties) === */
:root {
    --primary-color: #FF6347; /* رنگ اصلی (مثلاً قرمز گوجه‌ای) */
    --secondary-color: #FFD700; /* رنگ ثانویه (مثلاً طلایی) */
    --text-color: #333;
    --bg-color: rgb(240, 240, 240);
    --footer-bg: #333;
    --footer-text-color: #eee;
    --font-family-primary: 'Vazirmatn', sans-serif; /* یا هر فونت فارسی دیگه */
    --font-family-secondary: 'Arial', sans-serif;
    --border-radius: 10px;
    --transition-speed: 0.3s;
}
html {
  scroll-padding-top: 230px; /* ارتفاع هدر خود را اینجا وارد کنید */
}

/* === تنظیمات عمومی (Reset/Normalize & Body) === */
body {
    margin: 0;
    font-family: var(--font-family-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    direction: rtl; /* مهم برای فارسی */
}

h1, h2, h3, h4 {
    font-family: var(--font-family-secondary); /* فونت متفاوت برای عناوین */
    color: var(--primary-color);
    margin-bottom: 15px;
}

h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* برای حذف فاصلهٔ اضافی زیر عکس */
}

/* === Header & Navigation === */
header {
    background-color: rgb(250, 250, 250);
    background-image: 
        linear-gradient(rgba(100, 100, 100, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 100, 100, 0.15) 1px, transparent 1px);
    background-size: 30px 30px; /* اندازه شبکه نویز */
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid #eee;
    position: sticky; /* هدر چسبان */
    top: 0;
    z-index: 1000;
}
.header-logo{
    height:70px;
    background-color: rgb(250, 250, 250);
}
.logo h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--primary-color);
    background-color: rgb(250, 250, 250);
    padding:5px;
}

nav{
    background-color: rgb(250, 250, 250);
    padding:10px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 15px; /* فاصله بین آیتم‌های منو */
    padding-left:15px;
    border-left:1px solid #eee ;
}
nav ul li:last-child{
    border-left:0;
}
nav ul li a {
    font-weight: bold;
    font-size: 1.1rem;
}

nav ul li a:hover {
    border-bottom: 2px solid var(--primary-color);
}

/* === Main Content Sections === */
main {
    padding: 40px 5%; /* فاصله از بالا/پایین و چپ/راست */
}

section {
    margin-bottom: 60px;
    background-color: rgb(247, 247, 247);
    padding: 40px;
    border:1px solid rgb(220, 220, 220);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

section:last-child{
    margin-bottom:0px;
}

/* === Hero Section === */
#hero {
    display:flex;
    justify-content: space-between;
    padding:0;
    background-color: var(--secondary-color); /* یه بک‌گراند رنگی برای بخش اول */
    color: var(--footer-bg);
    margin-bottom:30px;
}
#hero article{
    text-align: center;
    padding: 60px 5%;
    margin-left:5%;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--footer-bg);
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

#hero img {
    height:400px;
    border-radius: var(--border-radius);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.cta-button:hover {
    background-color: #e5583d; /* یه درجه تیره‌تر */
    transform: translateY(-3px);
}

/* === Slider Section === */
/*#slider{
    width:100%;
    height:500px;
    background-color:var(--primary-color);
    margin-bottom:30px;
    padding:0;
}*/
.slider-container {
    position: relative; /* برای قرارگیری دکمه‌ها و نقاط */
    height:500px;
    width: 100%; /* یا هر عرض دلخواه */
    overflow: hidden; /* برای اینکه عکس‌ها بیرون نزنن */
    margin: 30px auto; /* وسط‌چین کردن */
    border: 1px solid #ccc; /* حاشیه برای دیدن کانتینر */
    border-radius: var(--border-radius);
}

.slider {
  display: flex; /* چیدن اسلایدها کنار هم */
  width: 300%; /* عرض کل برای ۳ اسلاید (۱۰۰% * ۳) */
  transition: transform 0.5s ease-in-out; /* انیمیشن حرکت */
}

.slide {
  width: 100% / 3; /* هر اسلاید یک سوم عرض کل رو بگیره */
  flex-shrink: 0; /* جلوگیری از کوچک شدن اسلایدها */
  display: none; /* فعلا همه اسلایدها رو مخفی می‌کنیم، جز فعال */
}

.slide.active {
    display: block; /* نمایش اسلاید فعال */
}

.imgs {
    height:100%;
    width:1750px;
    display: block; /* حذف فضای اضافی زیر عکس */
}

/* استایل دکمه‌ها */
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10; /* روی عکس‌ها قرار بگیره */
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* استایل نقاط */
.dots-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.dot {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  cursor: pointer;
}

.dot.active {
  background-color: white;
}



/* === Menu Section === */
#menu{
    border-top:50px solid var(--primary-color);
}
#menu h2 {
    text-align: center;
}

.menu-category {
    margin-bottom: 40px;
}

.menu-category h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.menu-category img {
    height:60px;
    padding-left:20px;
    border-left:1px solid #333;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* ترازبندی به بالا */
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item h4 {
    margin: 0 10px 10px 10px;
    color: var(--text-color);
    font-size: 1.5rem;
}

.menu-item p {
    margin: 0;
    flex-basis: 70%; /* توضیحات 70% فضا را بگیرد */
    color: #555;
}

.menu-item .price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0; /* جلوی فشرده شدن قیمت را بگیرد */
    margin-left: 15px; /* فاصله از متن */
}

/* === About & Contact Section === */
#about{
    display:flex;
    justify-content: space-between;
    gap:20px;
    border-top:20px solid var(--primary-color);
}
#contact{
    border-top:20px solid var(--primary-color);
}
#about p, #contact p {
    font-size: 1.1rem;
}
#about img {
    height:350px;
    width:auto;
    border-radius: var(--border-radius);
}

#about article h2, #contact h2{
    border-bottom:2px solid var(--primary-color);
}

.contact-info {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* چیدمان گرید برای اطلاعات تماس */
    gap: 20px;
}

.contact-info p {
    margin-bottom: 5px;
    font-size: 1.1rem;
}
.contact-info p strong {
    color: var(--primary-color);
    margin-left: 10px;
}


.social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 2rem; /* اندازه آیکون‌ها */
    color: #aaa;
    transition: color var(--transition-speed);
}

.social-links a:hover {
    color: var(--primary-color);
}

.map {
    margin-top: 30px;
    text-align: center;
}

/* === Footer === */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    text-align: center;
    padding: 30px 5%;
    margin-top: 50px;
}

footer p {
    margin: 0;
}

/* === Responsive Design (Mobile First) === */
@media (max-width: 956px) {
    header {
        flex-direction: column; /* در موبایل، هدر عمودی شود */
        padding: 1rem;
    }
    
    .logo h1 {
        margin-bottom: 15px;
    }
    .logo{
        display:flex;
        flex-direction:column;
        flex-shrink:0;
        justify-content: center;
        align-items: center;
    }
    nav ul {
        flex-wrap: wrap; /* آیتم‌های منو در صورت نیاز به خط بعدی بروند */
        justify-content: center;
        border-top: 1px solid #eee;
    }

    nav ul li {
        margin: 10px 15px; /* تنظیم فاصله در حالت عمودی */
        border:0;
    }

    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    #hero {
        padding: 50px 5%;
    }
    #hero h2 {
        font-size: 2.5rem;
    }
    #hero img {
        height:0;
    }
    .menu-category img {
        padding-left:0px;
        padding-bottom:10px;
        border:0px;
    }

    .menu-category article{
        border-bottom:1px solid #eee;
    }

    .menu-item {
        flex-direction: column; /* آیتم‌های منو عمودی شوند */
        align-items: center;
        text-align: center;
    }
    .menu-item p {
        flex-basis: auto;
        margin-bottom: 10px;
    }
    .menu-item .price {
        margin-left: 0;
        margin-top: 15px;
    }
    #about{
        flex-direction:column;
    }
    #about img {
        height:auto;
    }
    .contact-info {
        grid-template-columns: 1fr; /* در موبایل، ستون‌ها یکی شوند */
        gap:10px;
    }
}
@media (max-width: 1800px){
    #hero img {
        height:480px;
    }
}
@media (max-width: 1402px){
    #hero {
        justify-content: center;
    }
    #hero img {
        height:0;
    }
    #hero article{
        margin-left:0;
    }
}