/* استایل اصلی - style.css */
@font-face {
    font-family: 'IRANSansWeb';
    src: url('./fonts/IRANSansWeb.eot');
    src: url('./fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
         url('./fonts/IRANSansWeb.woff2') format('woff2'),
         url('./fonts/IRANSansWeb.woff') format('woff'),
         url('./fonts/IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset و تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSansWeb', Tahoma, Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    line-height: 1.8;
    direction: rtl;
    text-align: right;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.main-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Navigation */
.main-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d6efd;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-right: 0;
    margin-left: 30px;
}

.nav-menu a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    padding: 20px 0;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #0d6efd;
}

.nav-menu a.active {
    color: #0d6efd;
    font-weight: 700;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: #0d6efd;
    border-radius: 3px 3px 0 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #444;
    cursor: pointer;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section h2 {
    color: #0d6efd;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 70px;
    height: 2px;
    background: #0d6efd;
}

.section h3 {
    color: #444;
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

/* Lists - بهینه‌سازی برای تیک‌ها */
.feature-list, .service-list, .specialty-list {
    list-style: none;
    margin: 20px 0;
    padding-right: 0;
}

.feature-list li, .service-list li, .specialty-list li {
    padding: 12px 45px 12px 15px; /* 45px سمت راست برای تیک، 15px سمت چپ */
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
    text-align: right;
    line-height: 1.6;
    min-height: 40px; /* ارتفاع حداقل برای آیتم‌ها */
}

.feature-list li:last-child, .service-list li:last-child, .specialty-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.feature-list li::before, .service-list li::before, .specialty-list li::before {
    content: '✓';
    position: absolute;
    right: 10px; /* فاصله از راست */
    top: 50%;
    transform: translateY(-50%);
    color: #0d6efd;
    font-weight: bold;
    font-size: 1.1rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f8ff;
    border-radius: 50%;
    border: 2px solid #0d6efd;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
    margin: 5px; /* فاصله بین دکمه‌ها */
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Container for buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* فاصله استاندارد بین دکمه‌ها */
    margin-top: 30px;
}

@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* Form */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'IRANSansWeb', sans-serif;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    color: #0d6efd;
    font-size: 1.2rem;
    margin-left: 15px;
    width: 24px;
    text-align: center;
}

/* Footer */
.main-footer {
    background: #212529;
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: #0d6efd;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0d6efd;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #343a40;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .main-header h1 {
        font-size: 2.3rem;
    }
    
    .section {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 80%;
        height: calc(100vh - 70px);
        padding: 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0 0 15px 0;
    }
    
    .nav-menu a {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .main-header {
        padding: 40px 0 30px;
    }
    
    .main-header h1 {
        font-size: 1.9rem;
    }
    
    .section {
        padding: 25px;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .main-header h1 {
        font-size: 1.7rem;
    }
    
    .main-header p {
        font-size: 1.1rem;
    }
}