body {
    font-family: 'Vazirmatn', Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* رنگ پس زمینه کمی روشن‌تر و گرم‌تر */
    background-color: #f7f9fb;
    color: #333;
    line-height: 1.6;
    /* ✅ اصلاح نهایی: جلوگیری از اسکرول افقی */
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر */
header {
    /* رنگ آبی تیره با کنتراست خوب */
    background-color: #1e3a8a;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    margin: 0;
    font-size: 26px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}

nav ul li a:hover {
    color: #3b82f6;
}

/* دکمه منوی موبایل */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
}

/* بخش هیرو */
.hero {
    text-align: center;
    padding: 90px 20px; /* از 100px به 90px تغییر یافت */
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%); /* تغییر از ef... به f0... */
}

.hero h1 { /* h2 به h1 در index.html تغییر یافته بود، اینجا هم اصلاح شد */
    font-size: 36px; /* از 38px به 36px تغییر یافت */
    margin-bottom: 20px;
    color: #1e3a8a;
    font-weight: 800;
}

.hero p {
    font-size: 18px; /* از 19px به 18px تغییر یافت */
    max-width: 850px; /* از 800px به 850px تغییر یافت */
    margin: 0 auto 35px; /* از 40px به 35px تغییر یافت */
    color: #4b5563;
}

.btn {
    padding: 14px 35px;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    margin: 0 10px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    border: none;
}

.btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-call {
    background-color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-call:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* بخش خدمات */
.services {
    padding: 80px 20px;
    text-align: center;
    background-color: #ffffff;
}

.services h2 {
    font-size: 34px;
    margin-bottom: 50px;
    color: #1e3a8a;
}

.services .subtitle { /* استایل ساب‌تایتل اضافه شد */
    color: #f59e0b;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

/* ✅ اصلاح: استایل‌دهی به گرید خدمات (Service Grid) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 4 ستون در دسکتاپ */
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #3b82f6;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: #1e3a8a;
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.service-card i {
    font-size: 36px;
    color: #f59e0b;
}

.service-card p {
    color: #555;
}


/* بخش مزایای ما (Advantages) */
.advantages {
    background-color: #fffefc;
    padding: 80px 20px;
    text-align: center;
}

.advantages .subtitle {
    color: #f59e0b;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.advantages h2 {
    font-size: 32px;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.advantages .intro {
    max-width: 700px;
    margin: 0 auto 50px;
    color: #4b5563;
    font-size: 17px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.adv-card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: right;
    position: relative;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.adv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.adv-card .number {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #f59e0b;
    font-size: 20px;
    font-weight: bold;
    opacity: 0.8;
}

.adv-card h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
    font-size: 18px;
}

.adv-card i {
    color: #f59e0b;
    margin-left: 8px;
}

.adv-card p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

/* ✅ جدید: استایل‌های منتقل شده بخش مناطق خدمات (Service Areas) */
.service-areas {
    padding: 80px 20px;
    background-color: #f7f9fb;
    text-align: center;
}

.service-areas h2 {
    font-size: 34px;
    margin-bottom: 30px;
    color: #1e3a8a;
}

.service-areas .intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #4b5563;
}

.area-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.area-list li {
    flex-basis: calc(33.33% - 15px); /* ۳ ستون در دسکتاپ */
    min-width: 280px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-right: 4px solid #f59e0b;
    text-align: right;
}

.area-list h3 {
    margin-top: 0;
    color: #1e3a8a;
}

.area-list p {
    margin-bottom: 5px;
    font-weight: 600;
}

.area-list ul {
    list-style: disc;
    padding-right: 20px;
    margin: 0;
    line-height: 1.8;
    color: #4b5563;
}


/* بخش تماس */
.contact {
    text-align: center;
    padding: 80px 20px;
    background-color: #1e3a8a;
    color: white;
}

.contact h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.contact p {
    font-size: 18px;
    margin-bottom: 30px;
}


/* فرم ثبت درخواست (اگرچه در index.html نیست، اما استایلش در css بود و نگه داشته شد) */
.request-form-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff;
}
/* ... بقیه استایل‌های فرم ... */


/* بخش درباره ما (اگرچه در index.html نیست، اما استایلش در css بود و نگه داشته شد) */
.about-section {
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: right;
}
/* ... بقیه استایل‌های درباره ما ... */


/* فوتر */
footer {
    background-color: #1e3a8a;
    color: white;
    text-align: center;
    padding: 25px 0;
    font-size: 15px;
}

footer p {
    margin: 5px 0;
}

/* دکمه تماس شناور */
.floating-call {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f59e0b;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: none; /* پیش فرض در دسکتاپ پنهان */
}


/* ==================================== */
/* REONSIVE MEDIA QUERY       */
/* ==================================== */

@media (max-width: 768px) {

    /* هدر */
    header .container {
        flex-direction: row;
        align-items: center;
    }

    h1 {
        font-size: 22px;
    }

    /* منو ناوبری در موبایل */
    nav {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        z-index: 10;
        background-color: #1e3a8a;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        display: none;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
    }

    nav ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 12px 20px;
        text-align: center;
    }

    /* نمایش منو */
    nav.active {
        display: block;
    }

    .menu-toggle {
        display: block;
        order: -1;
    }

    /* بخش هیرو */
    .hero {
        padding: 60px 20px;
    }

    .hero h1 { /* h2 به h1 اصلاح شد */
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn {
        display: block;
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    /* بخش خدمات */
    .services {
        padding: 50px 20px;
    }

    .services h2,
    .contact h2,
    .request-form-section h2 {
        font-size: 26px;
    }

    /* ✅ اصلاح حیاتی: تبدیل گرید خدمات به تک ستون */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }

    /* بخش مزایا */
    /* ✅ اصلاح حیاتی: تبدیل گرید مزایا به تک ستون */
    .advantage-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* بخش مناطق خدمات */
    .service-areas {
        padding: 50px 20px;
    }
    
    /* ✅ اصلاح حیاتی: تبدیل لیست مناطق به تک ستون */
    .area-list {
        flex-direction: column;
        gap: 15px;
        justify-content: flex-start;
    }

    .area-list li {
        /* تمام عرض را بگیرد و min-width را نادیده بگیرد */
        flex-basis: 100%;
        min-width: unset;
    }

    /* نمایش دکمه تماس شناور */
    .floating-call {
        display: block;
    }
}