﻿/* تنظیمات عمومی و روت */
:root {
    --primary-color: #d4af37; /* طلایی اصلی */
    --secondary-color: #6c757d; /* خاکستری */
    --accent-color: #b8962e; /* طلایی تیره‌تر */
    --light-color: #ffffff;
    --dark-color: #1a1a1a;
    --background-color: #ffffff; /* رنگ پس‌زمینه کلی سایت */
    --text-color: #333; /* رنگ متن اصلی */
    --muted-text-color: #666; /* رنگ متن کم‌رنگ‌تر */
    --border-color: #e0e0e0; /* رنگ حاشیه فیلدها */
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --card-shadow-hover: 0 15px 40px rgba(212, 175, 55, 0.15);
    --gold-gradient: linear-gradient(135deg, #d4af37, #b8962e);
}

/* عمومی */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', sans-serif !important; /* اطمینان از فونت وزیرمتن */
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    direction: rtl; /* تنظیم جهت راست به چپ برای کل صفحه */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--accent-color);
    }

.w-full {
    width: 100%;
}

/*======================= بخش ها =======================*/

/* تیتر سکشن */
.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0; /* برای راست به چپ */
        width: 50px;
        height: 3px;
        background: var(--accent-color);
        border-radius: 2px;
    }

/* کارت های عمومی */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        box-shadow: var(--card-shadow-hover);
        transform: translateY(-5px);
    }

/*======================= ABOUT SECTION =======================*/
.content-section {
    padding: 60px 0;
}

.about-card {
    background: #fdfdfd;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid #f0f0f0;
}

.about-text-content {
    font-size: 1.3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 2.2;
    color: var(--muted-text-color);
}

/* کارت ویژگی‌ها */
.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #eee;
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--muted-text-color);
}

/*======================= بخش شعبه ها =======================*/
.contact-info-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    border-top: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center; /* برای وسط قرار گرفتن محتوا */
    align-items: center; /* برای وسط قرار گرفتن محتوا */
}

.contact-icon-small {
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: white;
}

.contact-info-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--muted-text-color);
}


/*======================= CONTACT SECTION =======================*/
.contact-section {
    padding: 60px 0;
    background-color: #fdfdfd; /* کمی رنگ متفاوت برای بخش تماس */
}

.contact-form {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    border: 1px solid #f5f5f5;
}

    .contact-form h4 {
        color: var(--primary-color);
        font-weight: 700;
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

/* فیلدها و دکمه‌ها */
.form-control {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px; /* کم کردن فاصله نسبت به قبل */
    font-size: 0.95rem;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.15);
    }

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.gold-btn {
    background: var(--gold-gradient);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex; /* برای تراز کردن آیکون و متن */
    align-items: center;
    justify-content: center;
}

    .gold-btn:hover {
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
        transform: translateY(-3px);
        color: white;
    }

/* اطلاعات ارتباطی VIP */
.contact-info-card-right { /* برای ستون سمت راست */
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    height: 100%;
    border-top: 5px solid var(--primary-color);
}

.contact-item {
    margin-bottom: 25px;
}

    .contact-item p {
        margin-bottom: 8px;
        font-size: 0.9rem;
        color: var(--muted-text-color);
    }

    .contact-item h4, .contact-item h5 {
        font-weight: 700;
        font-size: 1.3rem;
        margin-bottom: 0;
    }

.gold-text-contact {
    color: var(--primary-color);
    font-size: 1.4rem;
}

hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

/* شبکه اجتماعی */
.social-links-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon-box {
    width: 45px;
    height: 45px;
    background: #f8f8f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

    .social-icon-box:hover {
        background: var(--gold-gradient);
        color: white;
        transform: scale(1.1);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    }

/* کادر دور متن پاسخگویی */
.border-gold {
    border: 1px dashed var(--primary-color);
    background: rgba(212, 175, 55, 0.05);
    padding: 15px;
    border-radius: 10px;
}

/* پیام های اعتبارسنجی */
.field-validation-error {
    color: #dc3545; /* قرمز */
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.validation-summary-errors {
    color: #dc3545;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 5px;
}

/*======================= Responsive =======================*/
@media (max-width: 992px) {
    .section-title {
        font-size: 1.8rem;
    }

    .about-text-content {
        font-size: 1.1rem;
    }

    .contact-form, .contact-info-card-right {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .feature-card, .contact-info-card {
        margin-bottom: 20px;
    }

    .social-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
    }

    .gold-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .contact-item h4, .contact-item h5 {
        font-size: 1.1rem;
    }
}
/* ===== Developer Section - Optimized Spacing ===== */

.dev-wrapper {
    padding: 40px 0 60px 0; /* فاصله از بالا و پایین خیلی کم شد */
    background: #fff;
    direction: rtl;
}

.dev-title-main {
    text-align: center;
    font-weight: 800;
    margin-bottom: 40px; /* فاصله تیتر تا کارت‌ها کم شد */
    font-size: 1.8rem;
    color: #222;
    position: relative;
}

    /* خط زیر تیتر برای زیبایی بیشتر (اختیاری) */
    .dev-title-main::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: #d4af37;
        border-radius: 2px;
    }

.dev-grid {
    display: flex;
    justify-content: center;
    gap: 25px; /* فاصله بین دو کارت */
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* کارت اصلی */
.dev-card-slim {
    flex: 0 0 auto;
    width: 420px; /* عرض کمی بهینه شد */
    height: 95px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #fff;
    border-radius: 100px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .dev-card-slim:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
        border-color: #d4af37;
    }

/* آیکون */
.dev-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: #fff9e6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

    .dev-icon i {
        font-size: 20px;
        color: #d4af37;
    }

/* بخش متن */
.dev-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    min-width: 130px;
}

    .dev-info h4 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
        color: #333;
    }

.en-subtitle {
    font-size: 0.7rem;
    color: #999;
    font-family: 'Segoe UI', sans-serif;
    margin-top: 2px;
}

/* دکمه شماره تلفن */
.dev-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 20px;
    background: #fdfaf0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #d4af37;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: 0.3s;
}

    .dev-phone:hover {
        background: #d4af37;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    }

/* ریسپانسیو */
@media (max-width: 992px) {
    .dev-card-slim {
        width: 100%;
        max-width: 400px;
    }
}

/* ===== Trade-in Section Styles ===== */
.trade-in-section {
    padding: 20px 0;
}

.trade-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdfaf0 100%);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

    /* افکت نوری گوشه کارت */
    .trade-card::before {
        content: '';
        position: absolute;
        top: -50px;
        left: -50px;
        width: 150px;
        height: 150px;
        background: rgba(212, 175, 55, 0.1);
        border-radius: 50%;
        filter: blur(40px);
    }

.trade-title {
    color: #222;
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
}

.trade-desc {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

    .trade-desc .highlight {
        color: #d4af37;
        font-weight: 700;
        border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    }

.trade-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .trade-features span {
        background: #fff;
        padding: 5px 15px;
        border-radius: 50px;
        font-size: 0.9rem;
        color: #666;
        border: 1px solid #eee;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .trade-features i {
        color: #d4af37;
        font-size: 1.1rem;
    }

/* باکس دکمه و قیمت */
.trade-action-box {
    background: #fff;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #f1f1f1;
}

.price-tag {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

    .price-tag .small-text {
        font-size: 0.9rem;
        color: #999;
    }

    .price-tag .big-text {
        font-size: 1.6rem;
        font-weight: 900;
        color: #d4af37;
    }

.trade-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366; /* رنگ واتس‌اپ برای اعتماد بیشتر */
    color: #fff;
    padding: 15px;
    border-radius: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

    .trade-btn:hover {
        background: #128c7e;
        color: #fff;
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    }

/* ریسپانسیو */
@media (max-width: 991px) {
    .trade-card {
        text-align: center;
        padding: 30px 20px;
    }

    .trade-features {
        justify-content: center;
        margin-bottom: 30px;
    }

    .trade-title {
        font-size: 1.5rem;
    }
}
