/* =========================================
   1. تنظیمات پایه و پالت رنگی (آبی روشن)
   ========================================= */
:root {
    --primary: #2563eb;   /* آبی رویال */
    --primary-dark: #1e40af; /* آبی تیره */
    --secondary: #f59e0b; /* طلایی */
    --text: #334155;      /* طوسی تیره */
    --light-bg: #f1f5f9;  /* پس‌زمینه روشن */
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Vazirmatn', sans-serif; }
body { direction: rtl; background: var(--white); color: var(--text); line-height: 1.8; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 5rem 0; }
.section-title { text-align: center; font-size: 2.2rem; color: var(--primary-dark); margin-bottom: 3.5rem; position: relative; font-weight: 800; }
.section-title::after { content: ''; display: block; width: 80px; height: 5px; background: var(--secondary); margin: 15px auto 0; border-radius: 10px; }

/* =========================================
   2. هدر
   ========================================= */
.top-bar { background: var(--light-bg); color: var(--text); padding: 10px 0; font-size: 0.9rem; font-weight: bold; border-bottom: 1px solid #e2e8f0; }
.top-bar .container { display: flex; justify-content: flex-end; gap: 25px; }
.top-bar i { margin-left: 8px; color: var(--primary); }

header { background: var(--white); box-shadow: 0 4px 20px rgba(0,0,0,0.04); position: sticky; top: 0; z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo img { height: 60px; }
.logo h2 { font-size: 1.3rem; color: var(--primary-dark); font-weight: 900; }
.nav-menu ul { display: flex; gap: 30px; }
.nav-menu ul li a { font-weight: 600; color: var(--text); }
.nav-menu ul li a:hover, .active-link { color: var(--primary); }
.hamburger-menu { display: none; font-size: 1.8rem; cursor: pointer; color: var(--primary); }

/* =========================================
   3. اسلایدر (Hero)
   ========================================= */
.hero {
    background: linear-gradient(rgba(37, 99, 235, 0.6), rgba(30, 64, 175, 0.6)), url('../../assets/images/hero-bg.jpg');
    background-size: cover; background-position: center; height: 70vh;
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
}
.hero h1 { font-size: 2.8rem; margin-bottom: 1.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.btn-primary { background: var(--secondary); color: #fff; padding: 14px 40px; border-radius: 50px; font-weight: bold; box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4); }
.btn-primary:hover { background: #d97706; transform: translateY(-3px); }

/* =========================================
   4. درباره ما
   ========================================= */
.about-section { background: var(--white); }
.about-text-box {
    max-width: 1000px; margin: 0 auto; background: var(--light-bg); padding: 3rem;
    border-right: 5px solid var(--primary); border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.about-text-box p { text-align: justify; line-height: 2.4; margin-bottom: 20px; color: var(--text); }
.about-text-box strong { color: var(--primary); }

/* =========================================
   5. آمار (زمینه آبی)
   ========================================= */
.stats { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; text-align: center; }
.stat-item i { font-size: 3.5rem; color: var(--secondary); margin-bottom: 15px; }
.stat-item h3 { font-size: 3rem; font-weight: 800; margin-bottom: 5px; }

/* =========================================
   6. خدمات (صفحه اصلی)
   ========================================= */
.bg-light { background: #f8fafc; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.service-box {
    background: var(--white); padding: 3rem 2rem; border-radius: 20px; text-align: center; transition: 0.4s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.service-box:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15); }
.service-box i { font-size: 3.5rem; color: var(--primary); margin-bottom: 1.5rem; }
.service-box h3 { margin-bottom: 1rem; color: var(--primary-dark); font-size: 1.5rem; }
.service-box p { text-align: justify; line-height: 2.2; color: #64748b; }

/* =========================================
   7. فراتر از مرزها (روشن)
   ========================================= */
.international-section { background: var(--white); padding: 5rem 0; }
.international-section .content-box {
    border: 3px solid var(--secondary); padding: 3.5rem; max-width: 900px; margin: 0 auto;
    background: var(--white); border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}
.international-section h2 { color: var(--primary); margin-bottom: 2rem; text-align: center; font-size: 2.2rem; }
.international-section p { text-align: justify; text-justify: inter-word; line-height: 2.4; margin-bottom: 1.5rem; color: #475569; direction: rtl; }

/* =========================================
   8. اسلایدر لوگوها (همیشه رنگی)
   ========================================= */
.partners { background: var(--light-bg); overflow: hidden; }
.slider-wrapper { width: 100%; overflow: hidden; position: relative; padding: 20px 0; direction: ltr; }
.slider-track { display: flex; width: max-content; gap: 40px; animation: scroll 40s linear infinite; }
.slider-track:hover { animation-play-state: paused; }

.slide {
    width: 200px; background: #fff; border-radius: 15px; padding: 20px; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: 0.4s;
}
.slide:hover {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1); /* سایه آبی ملایم هنگام هاور */
}

.slide .img-box { height: 100px; width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* filter: grayscale(100%);  <-- این خط حذف شد تا همیشه رنگی باشد */
    transition: 0.4s;
    opacity: 1; /* <-- شفافیت کامل برای دیده شدن رنگ‌ها */
}

.slide:hover img {
    /* filter: grayscale(0%); <-- این هم دیگر نیاز نیست */
    transform: scale(1.1); /* فقط کمی بزرگ شود */
}

.partner-name { font-size: 0.85rem; font-weight: bold; color: #64748b; margin-top: 5px; }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-100% / 2)); } }
/* =========================================
   9. فوتر
   ========================================= */
footer {
    background: var(--primary-dark); color: #e2e8f0; padding-top: 4rem; margin-top: auto; border-top: 6px solid var(--secondary);
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding-bottom: 2rem; text-align: center; }
.footer-col h3 {
    color: var(--white); margin-bottom: 1.5rem; border-bottom: 2px solid var(--secondary);
    display: inline-block; padding-bottom: 8px; font-size: 1.3rem;
}

/* لوگوی پایانی */
.footer-end-logo { text-align: center; padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.final-logo { width: 100%; max-width: 250px; height: auto; display: inline-block; }

.footer-bottom-info { text-align: center; padding: 10px; color: var(--white); }
.copyright { text-align: center; padding: 1.5rem; background: #172554; font-size: 0.9rem; color: #94a3b8; }

/* =========================================
   10. استایل‌های صفحه خدمات (جدید)
   ========================================= */
.services-top-banner { padding: 3rem 0; background: var(--light-bg); text-align: center; }
.services-top-banner img { max-width: 100%; height: auto; display: block; margin: 0 auto; max-height: 250px; object-fit: contain; }

.services-bottom-banner { width: 100%; overflow: hidden; line-height: 0; }
.services-bottom-banner img { width: 100%; height: auto; display: block; }

.service-row { display: flex; align-items: center; gap: 40px; margin-top: 20px; }
.service-text { flex: 2; }
.service-img { flex: 1; text-align: center; }
.service-img img { width: 100%; max-width: 350px; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.service-row.reverse { flex-direction: row-reverse; }
.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* دیگر استایل‌های خدمات */
.service-head { font-size: 1.6rem; color: var(--primary); border-bottom: 2px solid var(--secondary); padding-bottom: 15px; margin-bottom: 20px; }
.service-detail { background: #fff; padding: 2.5rem; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); margin-bottom: 2rem; }
.check-list li { list-style: none; position: relative; padding-right: 25px; margin-bottom: 12px; }
.check-list li::before { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; right: 0; color: var(--secondary); }

/* =========================================
   11. ریسپانسیو
   ========================================= */
@media (max-width: 768px) {
    .hamburger-menu { display: block; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--white); box-shadow: -5px 0 20px rgba(0,0,0,0.1); padding-top: 80px; transition: 0.4s; z-index: 999;
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; padding-right: 30px; gap: 25px; }
    .header-container { padding: 1rem 0; }
    .hero h1 { font-size: 1.8rem; }
    .top-bar .container { justify-content: center; flex-direction: column; align-items: center; gap: 5px; }

    /* فوتر موبایل */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .final-logo { max-width: 200px; }
    
    /* خدمات موبایل */
    .service-row, .service-row.reverse { flex-direction: column-reverse; gap: 20px; }
    .service-img img { max-width: 100%; }
    .two-col-list { grid-template-columns: 1fr; }
    .services-top-banner img { max-height: 150px; }
}
/* =========================================
   استایل‌های صفحه تماس با ما
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #e2e8f0;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.icon-circle {
    width: 80px; height: 80px; background: var(--light-bg); color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 2rem;
}

/* کارت شخصی (هایلایت شده) */
.contact-card.personal-card {
    border: 2px solid var(--secondary); /* کادر طلایی */
    background: #fffbeb; /* پس زمینه خیلی کم رنگ طلایی */
}
.personal-icon {
    background: var(--secondary); color: #fff;
}
.role-text {
    font-size: 0.9rem; color: #64748b; margin-top: -15px; margin-bottom: 20px;
}

/* دکمه‌های تماس */
.contact-details {
    display: flex; flex-direction: column; gap: 15px; margin-top: 20px;
}

.btn-contact {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 10px 15px; border-radius: 10px; font-weight: bold; font-size: 0.95rem;
    transition: 0.3s; text-decoration: none;
}

.phone-btn { background: #e0f2fe; color: #0369a1; }
.phone-btn:hover { background: #0369a1; color: #fff; }

.email-btn { background: #f1f5f9; color: #475569; }
.email-btn:hover { background: #475569; color: #fff; }

/* دکمه واتساپ (سبز) */
.whatsapp-btn {
    background: #dcfce7; color: #15803d; /* سبز واتساپی */
    border: 1px solid #bbf7d0;
}
.whatsapp-btn:hover {
    background: #25d366; color: #fff; border-color: #25d366;
}
.whatsapp-btn i { font-size: 1.2rem; }

/* نقشه */
.map-section { margin-top: 3rem; filter: grayscale(100%); transition: 0.5s; }
.map-section:hover { filter: grayscale(0%); }
