/* =====================================================
   پالت رنگی لوگو: کاربنی، آبی، آسمانی
===================================================== */
:root {
    --navy: #003366;       
    --blue: #0099CC;       
    --sky: #E6F6FC;        
    --text-dark: #1e293b;  
    --text-gray: #64748b;  
    --white: #ffffff;      
    --border-color: #e2e8f0; 
    --transition: all 0.3s ease; 
}

/* =====================================================
   تنظیمات پایه و ریست
===================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
	
}

/* =====================================================
   فونت‌ها
===================================================== */
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =====================================================
   دکمه‌ها
===================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--blue);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 153, 204, 0.3);
}

.btn-primary:hover {
    background-color: #0077a3;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--navy);
}

/* =====================================================
   هدر و ناوبری
===================================================== */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 51, 102, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo span { color: var(--blue); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--blue); }

/* =====================================================
   دکمه موبایل
===================================================== */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

/* =====================================================
   Hero
===================================================== */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    transition: background-image 3s ease-in-out;
}

.hero-content { position: relative; z-index: 2; }

.hero-tagline {
    display: inline-block;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #b3e5fc;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e1f5fe;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* =====================================================
   نوار آمار
===================================================== */
.stats-bar {
    background-color: var(--blue);
    color: white;
    padding: 40px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 153, 204, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 { font-size: 2.5rem; font-weight: 800; margin-bottom: 5px; }
.stat-item p { font-size: 0.95rem; opacity: 0.9; }
.stats-bar {
    margin-bottom: 50px; /* فاصله پایین نوار آمار */
}

/* =====================================================
   بخش‌ها و کارت‌ها
===================================================== */
.section { padding: 100px 0; }
.bg-sky { background-color: var(--sky); }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--blue);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p { color: var(--text-gray); max-width: 600px; margin: 0 auto; }

/* کارت خدمات */

#production {
    padding-top: 50px; /* فاصله بالا بخش بعدی */
}

.production-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.production {
    padding-bottom: 60px; /* فاصله پایین بخش خطوط تولید */
}


.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.08);
    border-color: var(--blue);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--sky);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--blue);
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--blue);
    color: white;
}

.icon-box svg { width: 30px; height: 30px; }

.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--navy); }
.service-card p { color: var(--text-gray); font-size: 0.95rem; }

/* =====================================================
   مواد اولیه
===================================================== */

.materials {
    padding-top: 60px;  /* فاصله بالای بخش مواد اولیه */
    padding-bottom: 80px; /* فاصله پایین تا بخش بعدی (گالری) */
	background-color: var(--sky); /* رنگ پس‌زمینه مشابه bg-sky */
}
.materials-wrapper { display: flex; flex-wrap: wrap; align-items: center; gap: 50px; }
.materials-image, .materials-content { flex: 1; min-width: 300px; }
.materials-image img { border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.material-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 30px; }
.material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff; /* سفید */
    padding: 12px 15px;
    border-radius: 6px;
    color: var(--navy);
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* اختیاری برای برجسته شدن */
}
#portfolio {
    padding-top: 80px; /* فاصله بالا */
	padding-bottom: 80px; /* فاصله بالا */
}

/* =====================================================
   تماس
===================================================== */
.contact-section {
    background-color: var(--navy);
    color: white;
    padding: 100px 0;
	padding-top: 80px; /* فاصله بالا */
}

.contact-container { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; }
.contact-info, .contact-form { flex: 1; min-width: 300px; }
.contact-info h2 { font-size: 2.5rem; margin-bottom: 20px; }

.contact-details div {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    color: var(--text-dark);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

/* =====================================================
   فوتر
===================================================== */
footer {
    background-color: #002244;
    color: #94a3b8;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 { color: white; font-size: 1.2rem; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--blue); }

.copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }

/* =====================================================
   مودال استعلام
===================================================== */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto; 
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.inquiry-options { display: flex; justify-content: space-around; flex-wrap: wrap; margin-top: 20px; }
.inquiry-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; padding: 10px; transition: transform 0.2s; }
.inquiry-item:hover { transform: scale(1.05); }
.inquiry-item .icon-box { width: 60px; height: 60px; margin-bottom: 10px; }

/* =====================================================
   ریسپانسیو
===================================================== */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }

    /* منوی موبایل پیشفرض */
    .nav-links { display: none; flex-direction: column; gap: 0; width: 100%; }
    .nav-links li { margin: 15px 0; }

    /* منوی موبایل وقتی باز است */
    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    /* دکمه موبایل */
    .mobile-menu-btn { display: block; }

    /* اندازه لوگو کوچک شود */
    .logo { font-size: 1.2rem; gap: 5px; }
    .logo img { width: 40px; height: 40px; }

    /* دکمه استعلام قیمت موبایل */
    .navbar .btn-primary {
        padding: 8px 14px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        order: 1;
    }

    /* هدر و navbar جمع و جور شوند */
    .navbar { flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }

    /* شبکه آمار موبایل */
    .stats-grid { grid-template-columns: 1fr 1fr; }

    /* فرم تماس موبایل */
    .contact-container { flex-direction: column; }
}

/* News and Events styles */
    .news-card {
      transition: all 0.3s ease;
      border-radius: 12px;
      overflow: hidden;
    }
    
    .news-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    }
    
    .news-date {
      position: absolute;
      top: 15px;
      left: 15px;
      background-color: rgba(0, 31, 63, 0.9);
      color: white;
      padding: 5px 10px;
      border-radius: 6px;
      font-size: 0.8rem;
    }
    
    .news-tag {
      display: inline-block;
      padding: 3px 8px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      margin-left: 8px;
    }
    
    .tag-event {
      background-color: #4299e1;
      color: white;
    }
    
    .tag-achievement {
      background-color: #48bb78;
      color: white;
    }
    
    .tag-news {
      background-color: #9f7aea;
      color: white;
    }
    
    .tag-partnership {
      background-color: #ed8936;
      color: white;
    }
    
    .news-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
      padding: 20px;
      color: white;
    }
    
    .news-section-bg {
      background-color: #f7fafc;
    }