/* style.css - نسخه نهایی با عکس هوایی کارخانه */

:root {
    --primary-color: #0a2540; /* Navy Blue */
    --secondary-color: #505c6e; /* Steel Grey */
    --accent-color: #e67e22; /* Safety Orange */
    --light-bg: #f4f6f8;
    --text-color: #333;
    --white: #ffffff;
    --table-header: #eef2f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}
.btn-primary:hover { background-color: #d35400; }
.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 10px;
}
.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* --- Header --- */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}
.logo span { color: var(--accent-color); }
.nav-links { display: flex; gap: 20px; margin: 0; }
.nav-links a:hover { color: var(--accent-color); }

/* --- Language Selector --- */
.lang-selector {
    position: relative;
    margin-left: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
}
.lang-selector:hover .lang-dropdown { display: block; }
.current-lang {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: 0.3s;
}
.current-lang:hover { background-color: rgba(255,255,255,0.1); }
.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 130px;
    z-index: 2000;
    margin-top: 5px;
}
.lang-dropdown a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}
.lang-dropdown a:hover {
    background-color: var(--light-bg);
    color: var(--accent-color);
}
.lang-dropdown a:last-child { border-bottom: none; }

/* --- Hero Section (با عکس کارخانه جدید) --- */
.hero {
    /* عکس هوایی کارخانه صنعتی */
    background: linear-gradient(rgba(10, 37, 64, 0.75), rgba(10, 37, 64, 0.75)), url(images/background.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* افکت ثابت ماندن عکس */
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}
.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6); /* سایه متن برای خوانایی */
}
.hero p { 
    font-size: 1.5rem; 
    margin-bottom: 40px; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

/* --- Products Styles --- */
.products { padding: 60px 0; background-color: var(--light-bg); }
.category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 50px 0 30px 0;
    border-left: 6px solid var(--accent-color);
    padding-left: 15px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.product-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
    padding: 0;
    padding-bottom: 25px;
    border-top: 5px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); border-top-color: var(--accent-color); }

/* Images & Tables */
.product-img-container {
    width: 100%;
    height: 220px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}
.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img-container img { transform: scale(1.1); }

.product-card h3 { margin-top: 20px; color: var(--primary-color); margin-bottom: 10px; padding: 0 20px; }
.product-desc { font-size: 0.95rem; color: #666; margin-bottom: 20px; flex-grow: 1; padding: 0 20px; }
.bs-tag { font-size: 0.8rem; color: #1976d2; font-weight: bold; display: block; margin-bottom: 5px; padding: 0 20px; }

.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
}
.tech-table th, .tech-table td { padding: 8px 20px; text-align: left; border-bottom: 1px solid #eee; }
.tech-table th { background-color: var(--table-header); color: var(--primary-color); font-weight: 600; width: 40%; }
.tech-table tr:nth-child(even) { background-color: #fcfcfc; }

/* --- About & Features --- */
.about-content { padding: 60px 0; text-align: center; max-width: 800px; margin: 0 auto; }
.features { padding: 60px 0; background-color: var(--white); }
.features-grid { display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; }
.feature-item { flex: 1; min-width: 200px; padding: 20px; }
.feature-item i { font-size: 3rem; color: var(--accent-color); margin-bottom: 20px; }

/* --- Contact Form --- */
.contact-section { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-details i { color: var(--accent-color); margin-right: 10px; width: 25px; }
.contact-details p { font-size: 1.1rem; margin-bottom: 20px; }
.contact-form-container {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--primary-color); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-color); outline: none; }
.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.3s;
    width: 100%;
}
.submit-btn:hover { background-color: var(--accent-color); }

/* --- Footer --- */
.footer { background-color: #061a2e; color: #ccc; padding: 60px 0 20px 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h3 { color: var(--white); border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; display: inline-block; }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 0.9rem; }

/* --- WhatsApp Float --- */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 3px #999; z-index: 100; display: flex; align-items: center; justify-content: center; }
.whatsapp-float:hover { background-color: #128C7E; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-content { flex-direction: column; }
    .nav-links { margin-top: 15px; flex-wrap: wrap; justify-content: center; gap: 15px;}
    .contact-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .lang-selector { margin-left: 0; margin-top: 15px; }
}
