/* ========== RESET & BASE ========== */
:root {
    --primary: #0d7c3b;
    --primary-dark: #065a28;
    --primary-light: #e8f5e9;
    --accent: #ff8f00;
    --gold: #c8a84e;
    --dark: #1a1a2e;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --text-muted: #7a7a7a;
    --white: #ffffff;
    --gray-50: #f8faf8;
    --gray-100: #f0f5f1;
    --gray-200: #e2e8e4;
    --gray-400: #9aab9e;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s ease;
    --font-main: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
    --max-width: 1280px;
    --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== PRELOADER ========== */
.preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader .spinner {
    width: 56px; height: 56px;
    border: 5px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== HEADER ========== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-height);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.header.scrolled {
    box-shadow: var(--shadow);
    border-bottom-color: var(--gray-200);
    background: rgba(255,255,255,0.96);
}
.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo-group {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), #0a9e4a);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: 800;
    box-shadow: 0 4px 14px rgba(13,124,59,0.3);
    transition: transform var(--transition);
}
.logo-group:hover .logo-icon { transform: scale(1.06) rotate(-5deg); }
.logo-text { font-size: 1.25rem; font-weight: 800; color: var(--dark); }
.logo-text span { color: var(--primary); }
.logo-sub { font-size: 0.65rem; font-weight: 500; color: var(--text-muted); display: block; }

.nav { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav a {
    text-decoration: none; color: var(--text); font-weight: 500;
    font-size: 0.9rem; padding: 8px 15px; border-radius: 25px;
    transition: all var(--transition); white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-light); }
.nav a.active { font-weight: 600; }
.btn-header {
    background: var(--primary) !important; color: #fff !important;
    padding: 10px 22px !important; border-radius: 25px !important;
    font-weight: 600 !important; box-shadow: 0 4px 14px rgba(13,124,59,0.28);
}
.btn-header:hover { background: var(--primary-dark) !important; transform: translateY(-2px); }

.mobile-menu-btn {
    display: none; background: none; border: none;
    font-size: 1.6rem; cursor: pointer; color: var(--text); z-index: 1001;
}
.overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 999;
}
@media (max-width: 1024px) {
    .nav {
        position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
        background: #fff; flex-direction: column; padding: 90px 24px 30px;
        box-shadow: var(--shadow-xl); transition: right 0.4s ease;
        border-radius: 0 0 0 var(--radius-lg); z-index: 1000;
    }
    .nav.open { right: 0; }
    .nav a { width: 100%; padding: 12px 18px; font-size: 1rem; border-radius: var(--radius-sm); }
    .mobile-menu-btn { display: block; }
    .overlay.show { display: block; }
}

/* ========== HERO ========== */
.hero {
    padding: calc(var(--header-height) + 50px) 24px 80px;
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
    min-height: 85vh;
}
.hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900;
    line-height: 1.25; color: var(--dark); margin-bottom: 20px;
}
.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary), #0aa84d);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.highlight-gold {
    background: linear-gradient(135deg, #c8a84e, #e8c865);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 30px; font-weight: 600;
    font-size: 1rem; cursor: pointer; text-decoration: none;
    transition: all var(--transition); font-family: inherit; border: none;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 28px rgba(13,124,59,0.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); transform: translateY(-3px); }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-img-wrapper { position: relative; width: 100%; max-width: 500px; }
.hero-svg-placeholder {
    width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl); overflow: hidden;
    background: linear-gradient(160deg, #1b5e20, #2e7d32, #388e3c);
}
.hero-svg-placeholder svg { width: 100%; height: 100%; display: block; }

.floating-card {
    position: absolute; background: #fff; border-radius: var(--radius);
    padding: 16px 20px; box-shadow: var(--shadow-lg);
    font-weight: 600; font-size: 0.85rem;
    display: flex; align-items: center; gap: 10px;
    animation: floatCard 5s ease-in-out infinite; z-index: 2;
}
.card-1 { top: 8%; left: -8%; animation-delay: 0s; }
.card-2 { bottom: 12%; right: -6%; animation-delay: 2.5s; }
.fc-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.fc-icon.green { background: #e8f5e9; color: #2e7d32; }
.fc-icon.blue { background: #e3f2fd; color: #1565c0; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; }
    .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
    .floating-card { display: none; }
}

/* ========== FOOTER ========== */
.footer { background: var(--dark); color: #ccc; padding: 60px 24px 30px; margin-top: 40px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; }
.footer h4 { color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer p, .footer li { font-size: 0.85rem; line-height: 2; }
.footer ul { list-style: none; }
.footer a { color: #bbb; text-decoration: none; transition: color var(--transition); }
.footer a:hover { color: #4caf50; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: #888; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed; bottom: 28px; left: 28px;
    width: 48px; height: 48px; background: var(--primary); color: #fff;
    border: none; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
    z-index: 900; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all var(--transition); display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ========== کلاس‌های کمکی ========== */
.hidden { display: none !important; }
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
/* ========== استایل‌های تایم‌لاین (صفحه نقشه راه) ========== */
.timeline {
    position: relative;
    padding: 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* خط عمودی وسط */
.timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gray-200);
    transform: translateX(50%);
    border-radius: 3px;
}

/* هر آیتم تایم‌لاین */
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

/* آیتم‌های فرد: محتوا سمت راست */
.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

/* محتوای هر آیتم */
.timeline-content {
    width: 44%;
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* دایره وسط */
.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    right: 50%;
    top: 28px;
    transform: translateX(50%);
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(13, 124, 59, 0.15);
    border: 3px solid #fff;
}

/* فضای خالی در آیتم‌های تایم‌لاین */
.timeline-spacer {
    width: 44%;
}

/* عنوان داخل محتوا */
.timeline-content h4 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    font-size: 1.1rem;
}

/* برچسب تاریخ */
.time-badge {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 15px;
}

/* متن توضیح */
.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========== ریسپانسیو تایم‌لاین (موبایل و تبلت) ========== */
@media (max-width: 768px) {
    /* خط عمودی به سمت راست منتقل می‌شود */
    .timeline::before {
        right: 20px;
        transform: none;
    }

    /* همه آیتم‌ها به صورت ستونی نمایش داده می‌شوند */
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        padding-right: 50px;
    }

    /* محتوا تمام عرض */
    .timeline-content {
        width: 100%;
    }

    /* فضای خالی حذف می‌شود */
    .timeline-spacer {
        display: none;
    }

    /* دایره به سمت راست منتقل می‌شود */
    .timeline-dot {
        right: 20px;
        transform: none;
    }
}

/* ========== استایل‌های عمومی صفحات (بخش‌ها، هدرها و ...) ========== */
/* اگر فایل CSS کامل را می‌خواهید، کد زیر را جایگزین کل style.css کنید */

/* ========== RESET & BASE ========== */
:root {
    --primary: #0d7c3b;
    --primary-dark: #065a28;
    --primary-light: #e8f5e9;
    --accent: #ff8f00;
    --gold: #c8a84e;
    --dark: #1a1a2e;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --text-muted: #7a7a7a;
    --white: #ffffff;
    --gray-50: #f8faf8;
    --gray-100: #f0f5f1;
    --gray-200: #e2e8e4;
    --gray-400: #9aab9e;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s ease;
    --font-main: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
    --max-width: 1280px;
    --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== PRELOADER ========== */
.preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader .spinner {
    width: 56px; height: 56px;
    border: 5px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== HEADER ========== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-height);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.header.scrolled {
    box-shadow: var(--shadow);
    border-bottom-color: var(--gray-200);
    background: rgba(255,255,255,0.96);
}
.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo-group {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), #0a9e4a);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: 800;
    box-shadow: 0 4px 14px rgba(13,124,59,0.3);
    transition: transform var(--transition);
}
.logo-group:hover .logo-icon { transform: scale(1.06) rotate(-5deg); }
.logo-text { font-size: 1.25rem; font-weight: 800; color: var(--dark); }
.logo-text span { color: var(--primary); }
.logo-sub { font-size: 0.65rem; font-weight: 500; color: var(--text-muted); display: block; }

.nav { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav a {
    text-decoration: none; color: var(--text); font-weight: 500;
    font-size: 0.9rem; padding: 8px 15px; border-radius: 25px;
    transition: all var(--transition); white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-light); }
.nav a.active { font-weight: 600; }
.btn-header {
    background: var(--primary) !important; color: #fff !important;
    padding: 10px 22px !important; border-radius: 25px !important;
    font-weight: 600 !important; box-shadow: 0 4px 14px rgba(13,124,59,0.28);
}
.btn-header:hover { background: var(--primary-dark) !important; transform: translateY(-2px); }

.mobile-menu-btn {
    display: none; background: none; border: none;
    font-size: 1.6rem; cursor: pointer; color: var(--text); z-index: 1001;
}
.overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 999;
}
@media (max-width: 1024px) {
    .nav {
        position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
        background: #fff; flex-direction: column; padding: 90px 24px 30px;
        box-shadow: var(--shadow-xl); transition: right 0.4s ease;
        border-radius: 0 0 0 var(--radius-lg); z-index: 1000;
    }
    .nav.open { right: 0; }
    .nav a { width: 100%; padding: 12px 18px; font-size: 1rem; border-radius: var(--radius-sm); }
    .mobile-menu-btn { display: block; }
    .overlay.show { display: block; }
}

/* ========== بخش‌های عمومی ========== */
.section { padding: 100px 24px 80px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}
.bg-gray { background: var(--gray-50); }

/* ========== FOOTER ========== */
.footer { background: var(--dark); color: #ccc; padding: 60px 24px 30px; margin-top: 40px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; }
.footer h4 { color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer p, .footer li { font-size: 0.85rem; line-height: 2; }
.footer ul { list-style: none; }
.footer a { color: #bbb; text-decoration: none; transition: color var(--transition); }
.footer a:hover { color: #4caf50; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: #888; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed; bottom: 28px; left: 28px;
    width: 48px; height: 48px; background: var(--primary); color: #fff;
    border: none; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
    z-index: 900; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all var(--transition); display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ========== کلاس‌های کمکی ========== */
.hidden { display: none !important; }
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ========== استایل‌های تایم‌لاین (بالا) ========== */
/* قبلاً در همین فایل اضافه شده است */