/* تنظیمات پایه */
:root {
    --primary-color: #0a2351; /* سرمه‌ای تیره صنعتی */
    --accent-color: #fdb813;  /* طلایی/زرد برند */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* هدر و منو */
header {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* بخش Hero (بنر اصلی) */
.hero {
    background: linear-gradient(rgba(10, 35, 81, 0.8), rgba(10, 35, 81, 0.8)), url('../images/hero-bg.jpg'); /* عکس محلی */
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.btn {
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* بخش محصولات */
.container {
    padding: 50px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.card:hover {
    border-bottom: 4px solid var(--accent-color);
    transform: translateY(-10px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* فوتر */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 5% 20px;
    margin-top: 50px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    font-size: 0.9rem;
}

/* اضافه شده به انتهای style.css */
/* اضافه شده به انتهای style.css */
.sidebar { background: var(--white); padding: 20px; border-radius: 12px; height: fit-content; }
.sidebar ul { list-style: none; }
.sidebar ul li { margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.sidebar ul li a { text-decoration: none; color: var(--text-dark); font-size: 0.9rem; transition: var(--transition); }
.sidebar ul li a:hover { color: var(--accent-color); padding-left: 5px; }

.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; outline: none;
}
.contact-form button {
    background: var(--primary-color); color: white; border: none; padding: 12px 30px; cursor: pointer; border-radius: 5px; transition: var(--transition);
}
.contact-form button:hover { background: var(--accent-color); color: var(--primary-color); }

.info-box { background: #eef2f7; padding: 20px; border-radius: 10px; margin-bottom: 20px; }

/* استایل‌های جدید برای صفحه اصلی */
.hero {
    background: linear-gradient(135deg, #0a2351 0%, #1a4a9e 100%) !important;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(253, 184, 19, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.card {
    border: none;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: linear-gradient(to bottom, #ffffff, #fdfbfb);
}

.card h3 {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}