/* ==========================================================================
   فایل استایل اختصاصی صفحه اول (front-page.css)
   ========================================================================== */

/* وسط‌چین کردن عناوین h2 و متن زیر آن‌ها فقط در صفحه اول */
.hero-modern h2,
.features-section h2,
.about-section h2,
.benefits-section h2,
.services-section h2,
.process-section h2,
.faq-section h2,
.section-header h2 {
    text-align: center;
}

.features-section .subtitle,
.section-header p,
.about-text h2 + p {
    text-align: center;
}

.section-header {
    text-align: center;
}

/* بخش هیرو */
.hero-modern {
    background: #f5f7fa;
    padding: 4rem 2rem;
    direction: rtl;
}

.hero-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.text-section {
    flex: 1;
    min-width: 300px;
}

.image-section {
    flex: 1;
    min-width: 300px;
}

.image-section img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.badge {
    background-color: #d1e7dd;
    color: #0f5132;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
}

.text-section h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #1c1c1c;
}

.text-section p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 1.8rem;
    border-radius: 40px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn.dark {
    background-color: #2c3e50;
    color: white;
}

.btn.dark:hover {
    background-color: #1a252f;
}

.btn.light {
    background-color: #f1c40f;
    color: #000;
}

.btn.light:hover {
    background-color: #d4ac0d;
}

.trusted {
    color: #888;
}

.logos img {
    height: 30px;
    margin: 0 10px;
    vertical-align: middle;
}

/* بخش ویژگی‌ها */
.features-section {
    background-color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.features-section h2 {
    font-size: 2rem;
    color: #1c1c1c;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.features-section .subtitle {
    color: #666;
    margin-bottom: 3rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature {
    flex: 1 1 280px;
    max-width: 320px;
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature img {
    height: 110px;
    margin-bottom: 1rem;
}

.feature h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #555;
    line-height: 1.7;
}

/* بخش درباره ما */
.about-section {
    background-color: #f1f4f8;
    padding: 4rem 2rem;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.about-text {
    flex: 1 1 500px;
}

.about-text h2 {
    font-size: 2rem;
    color: #1c1c1c;
    margin-bottom: 1rem;
    font-weight: 800;
}

.about-text p {
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

.cta-btn {
    display: inline-block;
    background-color: #064e3b;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.6rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background-color: #046c4e;
}

.about-image {
    flex: 1 1 400px;
}

.about-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* بخش مزایا */
.benefits-section {
    background-color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    color: #1c1c1c;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-header p {
    color: #555;
    max-width: 600px;
    margin: auto;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.benefit-card .icon {
    font-size: 2rem;
    color: #047857;
    display: block;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: #1c1c1c;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.benefit-card p {
    color: #444;
    line-height: 1.7;
}

/* بخش خدمات */
.services-section {
    background-color: #f9f9ff;
    padding: 4rem 2rem;
    text-align: center;
}

.services-section .section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1c1c1c;
    margin-bottom: 0.5rem;
}

.services-section .section-header p {
    color: #555;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    font-weight: 600;
    color: #1f2937;
    transition: all 0.3s ease;
}

.service-card:hover {
    background-color: #f0fdf4;
    border-color: #6ee7b7;
    transform: translateY(-4px);
}

/* بخش مراحل همکاری */
.process-section {
    background-color: #ffffff;
    padding: 4rem 2rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    text-align: center;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: #2c3e50;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1c1c1c;
}

.process-step p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* بخش سوالات متداول */
.faq-section {
    background-color: #f5f7fa;
    padding: 4rem 2rem;
}

.faq-list {
    max-width: 900px;
    margin: 3rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: #2c3e50;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1c1c1c;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-left: 25px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: "+";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #2c3e50;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: "-";
}

.faq-answer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

.faq-answer p {
    font-size: 0.98rem;
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
}