@font-face{
    font-family: 'Vazir';
    src: url("../fonts/Vazir.ttf");
}

:root {
    --green: #16a34a;
    --green-dark: #0f7a37;
    --green-light: #dcfce7;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #ffedd5;
    --bg: #fbfdf9;
    --text: #1f2937;
    --muted: #6b7280;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(0,0,0,.08);
    --shadow-hover: 0 12px 36px rgba(22,163,74,.18);
}

* { box-sizing: border-box;  font-family: Vazir;}
body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    direction: rtl;
}
a { color: var(--green-dark); text-decoration: none; transition: .2s; }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 🍽️ لودینگ غذایی */
#food-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(135deg, #16a34a, #f97316);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity .6s ease, visibility .6s;
}
#food-loader.hide { opacity: 0; visibility: hidden; }
.loader-plate {
    width: 130px; height: 130px; border-radius: 50%;
    background: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    animation: spin 2.4s linear infinite;
    position: relative;
}
.loader-plate::before {
    content: ''; position: absolute; inset: 10px;
    border-radius: 50%; border: 6px dashed var(--orange);
}
.plate-emoji { font-size: 56px; animation: bob 1s ease-in-out infinite alternate; }
.loader-dots {
    position: absolute; bottom: -40px; display: flex; gap: 8px;
}
.loader-dots span {
    width: 12px; height: 12px; border-radius: 50%;
    background: #fff; opacity: .4;
    animation: pulse 1.2s infinite;
}
.loader-dots span:nth-child(2) { animation-delay: .2s; }
.loader-dots span:nth-child(3) { animation-delay: .4s; }
.loader-text {
    color: #fff; margin-top: 80px; font-size: 16px; letter-spacing: 1px;
    animation: fade 1.5s infinite alternate;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob  { from { transform: translateY(0);} to { transform: translateY(-8px);} }
@keyframes pulse { 0%,100%{opacity:.4;} 50%{opacity:1;} }
@keyframes fade { from{opacity:.6;} to{opacity:1;} }

/* هدر */
.site-header {
    background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
}
.logo a { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--green-dark); }
.logo-icon { font-size: 28px; }
.main-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-weight: 600; color: var(--text); padding: 8px 4px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--orange); border-color: var(--orange); }
.menu-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--green-dark); }
.logo-icon img{
    background:transparent !important;
    width:200px !important;
}
/* هیرو */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #ecfdf5 0%, #fff7ed 100%);
    padding: 80px 0 100px;
}
.hero-bg-shapes .shape {
    position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55;
}
.shape-1 { width: 300px; height: 300px; background: var(--green); top: -80px; right: -60px; }
.shape-2 { width: 260px; height: 260px; background: var(--orange); bottom: -60px; left: -40px; }
.shape-3 { width: 180px; height: 180px; background: #fbbf24; top: 40%; left: 40%; opacity: .3; }

.hero-inner {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
    align-items: center; position: relative; z-index: 1;
}
.hero-badge {
    display: inline-block; background: var(--green-light); color: var(--green-dark);
    padding: 6px 16px; border-radius: 30px; font-weight: 700; margin-bottom: 20px;
    font-size: 14px;
}
.hero-text h1 { font-size: 46px; line-height: 1.3; margin: 0 0 20px; color: var(--text); }
.hero-text h1 span {
    background: linear-gradient(90deg, var(--green), var(--orange));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text p { font-size: 18px; color: var(--muted); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-block; padding: 14px 28px; border-radius: 40px;
    font-weight: 700; font-size: 16px; transition: .3s; border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: #fff !important; box-shadow: 0 8px 20px rgba(249,115,22,.35); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-3px); }
.btn-outline { border-color: var(--green); color: var(--green-dark) !important; background: #fff; }
.btn-outline:hover { background: var(--green); color: #fff !important; transform: translateY(-3px); }

.hero-visual { position: relative; height: 420px; }
.hero-card {
    position: absolute; border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center; font-size: 60px;
    background: #FBFBFB;
}
.card-big { inset: 30px 40px 30px 0; overflow: hidden; padding: 0; }
.card-big img { width: 100%; height: 100%; object-fit: cover; }
.card-orange {
    width: 120px; height: 120px; background: var(--orange-light); top: -10px; right: -20px;
    animation: float 4s ease-in-out infinite;
}
.card-green {
    width: 110px; height: 110px; background: var(--green-light); bottom: 0; left: -10px;
    animation: float 5s ease-in-out infinite reverse;
}
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-16px);} }

/* بخش آخرین مطالب */
.latest-posts { padding: 80px 20px; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 50px; }
.section-title span { position: relative; padding-bottom: 10px; }
.section-title span::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--green), var(--orange));
}

.posts-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.post-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: .3s;
    display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.post-card-thumb { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--green-light); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 60px; color: var(--green); }
.post-cat {
    position: absolute; bottom: 12px; right: 12px;
    background: var(--orange); color: #fff !important;
    padding: 5px 14px; border-radius: 30px; font-size: 12px; font-weight: 700;
}
.post-cat a { color: #fff !important; }
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-body h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.5; }
.post-card-body h3 a { color: var(--text); }
.post-card-body h3 a:hover { color: var(--orange); }
.post-card-body p { color: var(--muted); font-size: 14px; margin: 0 0 16px; flex: 1; }
.post-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.read-more { color: var(--green-dark) !important; font-weight: 700; }

/* تک پست */
.single-wrap { padding: 60px 20px; max-width: 900px; }
.post-header { text-align: center; margin-bottom: 40px; }
.post-cats a, .post-cats { color: var(--orange) !important; font-weight: 700; }
.post-header h1 { font-size: 38px; line-height: 1.4; margin: 20px 0; }
.post-meta-single { display: flex; justify-content: center; gap: 24px; color: var(--muted); font-size: 14px; }
.post-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow); }
.post-content { font-size: 17px; line-height: 2; }
.post-content h2, .post-content h3 { color: var(--green-dark); margin-top: 40px; }
.post-content blockquote {
    border-right: 4px solid var(--orange); background: var(--orange-light);
    padding: 16px 24px; margin: 24px 0; border-radius: 8px;
}
.post-nav { display: flex; justify-content: space-between; margin-top: 50px; gap: 20px; }
.post-nav a { background: var(--green-light); padding: 14px 22px; border-radius: 10px; font-weight: 700; }

/* آرشیو */
.archive-wrap { padding: 60px 20px; }
.archive-header { text-align: center; margin-bottom: 50px; }
.archive-header h1 { font-size: 34px; color: var(--green-dark); }

/* ۴۰۴ */
.error-404 { text-align: center; padding: 100px 20px; }
.err-emoji { font-size: 90px; margin-bottom: 20px; animation: bob 1.2s infinite alternate; }

/* فوتر */
.site-footer { background: #0f7a37; color: #e5f5ea; margin-top: 80px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 60px 20px; }
.footer-col h3, .footer-col h4 { color: #fff; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col a { color: #c8ecda; }
.footer-col a:hover { color: var(--orange-light); }
.footer-bottom { background: #0c5e2b; padding: 20px 0; text-align: center; font-size: 14px; }

/* واکنش‌گرایی */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { height: 320px; }
    .hero-text h1 { font-size: 34px; }
    .footer-inner { grid-template-columns: 1fr; }
    .main-nav ul { display: none; }
    .menu-toggle { display: block; }
    .main-nav.open ul {
        display: flex; flex-direction: column; position: absolute;
        top: 70px; right: 20px; left: 20px;
        background: #fff; padding: 20px; border-radius: 12px;
        box-shadow: var(--shadow); gap: 12px;
    }
}