/* --- Variables and Base --- */
:root {
    --primary-color: #0b3c5d; /* Dark Professional Blue */
    --primary-light: #eef5f9; 
    --secondary-color: #d9534f; /* Emergency Red */
    --accent-color: #f0ad4e; /* Warning/Gold Accent */
    --dark-grey: #2b2b2b;
    --light-grey: #f8f9fa;
    --text-color: #333333;
    --white-color: #ffffff;
    --border-radius: 6px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    line-height: 1.8;
    background-color: var(--white-color);
    color: var(--text-color);
    text-align: right;
    direction: rtl;
}

/* --- Utility --- */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

section {
    padding: 70px 0;
}

/* پایه برای بخش‌های زوج */
section:nth-of-type(even) {
    background-color: var(--light-grey);
}

/* --- Header --- */
.main-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.contact-btn {
    background-color: var(--secondary-color);
    color: var(--white-color) !important;
}

.contact-btn:hover {
    background-color: #c9302c !important;
}

/* --- Hero Section --- */
section.hero-section {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: var(--white-color);
    text-align: center;
    padding: 100px 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-grey);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #ec971f;
    transform: translateY(-2px);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.service-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.service-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    margin-top: auto;
}

.feature-list li {
    padding-right: 20px;
    position: relative;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    right: 0;
    font-weight: bold;
}

/* --- Methodology --- */
section.methodology-section {
    text-align: center;
    background-color: var(--primary-light);
}

.methodology-section p {
    max-width: 850px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
}

/* --- Detailed Services (Migrated from Inline) --- */
section.detailed-services-section {
    background-color: var(--light-grey);
}

.detailed-services-section .text-content {
    line-height: 1.8;
    text-align: justify;
    margin-top: 30px;
}

.detailed-services-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.detailed-services-section p {
    margin-bottom: 25px;
}

/* --- Supported Software (Migrated from Inline) --- */
section.supported-software-section {
    background-color: var(--primary-light);
}

.supported-software-section h2 {
    margin-bottom: 20px;
}

.supported-software-section > .content-wrapper > p {
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.software-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.software-tag {
    background-color: var(--white-color);
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.software-tag:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* --- Why Us Section --- */
section.why-us-section {
    background-color: var(--white-color);
}

.why-us-section .tech-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.why-us-section .tech-list li {
    background: var(--white-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-right: 5px solid var(--accent-color);
}

/* --- CTA Section --- */
/* افزودن نام تگ section برای بالا بردن اولویت نسبت به کلاس زوج/فرد */
section.cta-section {
    background-color: var(--dark-grey);
    color: var(--white-color);
    text-align: center;
}

section.cta-section h2 {
    color: var(--white-color);
}

section.cta-section p {
    margin-bottom: 15px;
}

.phone-display {
    font-size: 1.8rem;
    margin-top: 15px;
}

section.cta-section a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

/* --- Footer --- */
.main-footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 0;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
}

.footer-info, .footer-contact {
    flex: 1;
    min-width: 280px;
}

.footer-info h4, .footer-contact h4 {
    color: var(--white-color);
    margin-bottom: 15px;
}

.footer-info p, .footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background-color: #111;
    color: #777;
    font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .main-header .content-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .footer-content {
        flex-direction: column;
    }
}

