/* ========================================== */
/* ===== استایل حرفه‌ای صفحه سرویس‌ها ===== */
/* ========================================== */

/* ===== متغیرهای رنگ ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
    --secondary: #053a96;
    --secondary-light: #d1fae5;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ========================================== */
/* ===== استایل کلی صفحه ===== */
/* ========================================== */
.services-page {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 1rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* دکوراسیون پس‌زمینه */
.services-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ========================================== */
/* ===== بخش هدر (کاهش ارتفاع) ===== */
/* ========================================== */
.services-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 1.5rem 0;
}

.services-header .badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.services-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.services-header h1 .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-header p {
    font-size: 1rem;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-header p br {
    display: none; /* حذف بریک در دسکتاپ */
}

/* خط تزیینی زیر هدر */
.services-header .divider {
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* ===== ریسپانسیو برای موبایل ===== */
@media (max-width: 768px) {
    .services-header {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }

    .services-header h1 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .services-header p br {
        display: block; /* نمایش بریک در موبایل */
    }

    .services-header p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .services-header .divider {
        width: 40px;
        height: 2px;
        margin: 0.5rem auto 0;
    }
}


/* ========================================== */
/* ===== کارت‌های سرویس ===== */
/* ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.1);
}

/* نوار رنگی بالای کارت */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

/* نشان ویژه برای سرویس‌ها */
.service-card .ribbon {
    position: absolute;
    top: 1rem;
    right: -0.5rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.service-card .ribbon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 6px;
    height: 6px;
    background: var(--primary-dark);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* آیکون سرویس */
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.service-card:hover .service-icon svg {
    color: white;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    transition: var(--transition);
}

/* عنوان سرویس */
.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* توضیحات */
.service-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* لیست ویژگی‌ها */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--dark-light);
}

.service-features li svg {
    width: 18px;
    height: 18px;
    color: var(--secondary);
    flex-shrink: 0;
}

/* بخش قیمت */
.service-price {
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.service-card:hover .service-price {
    background: var(--primary-light);
    border-color: rgba(37, 99, 235, 0.1);
}

.service-price .amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.service-price .amount .currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    margin-right: 0.25rem;
}

.service-price .period {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* دکمه‌ها */
.service-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-top: auto;
}

.service-btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.service-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.service-btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.service-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.4);
}

.service-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.service-btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ========================================== */
/* ===== کارت خالی ===== */
/* ========================================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px dashed #e2e8f0;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--gray);
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}


/* ========================================== */
/* ===== ریسپانسیو ===== */
/* ========================================== */

/* تبلت */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .services-header h1 {
        font-size: 2.5rem;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .services-page {
        padding: 2rem 0 4rem;
    }

    .container-custom {
        padding: 0 1.25rem;
    }

    .services-header {
        margin-bottom: 2.5rem;
    }

    .services-header h1 {
        font-size: 2rem;
    }

    .services-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card .ribbon {
        font-size: 0.65rem;
        padding: 0.2rem 0.8rem;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-price .amount {
        font-size: 1.6rem;
    }

    .service-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .services-page {
        padding: 1.5rem 0 3rem;
    }

    .container-custom {
        padding: 0 1rem;
    }

    .services-header h1 {
        font-size: 1.6rem;
    }

    .services-header .badge {
        font-size: 0.7rem;
        padding: 0.3rem 1rem;
    }

    .service-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .service-price {
        padding: 0.75rem 1rem;
    }

    .service-price .amount {
        font-size: 1.4rem;
    }

    .service-btn {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
}


/* ========================================== */
/* ===== دارک مود ===== */
/* ========================================== */
@media (prefers-color-scheme: dark) {
    .services-page {
        background: var(--dark);
    }

    .services-page::before,
    .services-page::after {
        opacity: 0.5;
    }

    .services-header h1 {
        color: #f1f5f9;
    }

    .services-header p {
        color: #94a3b8;
    }

    .service-card {
        background: var(--dark-light);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .service-card:hover {
        border-color: rgba(37, 99, 235, 0.2);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    }

    .service-title {
        color: #f1f5f9;
    }

    .service-desc {
        color: #94a3b8;
    }

    .service-features li {
        color: #cbd5e0;
    }

    .service-price {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .service-card:hover .service-price {
        background: rgba(37, 99, 235, 0.1);
    }

    .service-price .amount {
        color: #f1f5f9;
    }

    .service-price .period {
        color: #94a3b8;
    }

    .service-icon {
        background: rgba(37, 99, 235, 0.2);
    }

    .service-icon svg {
        color: #60a5fa;
    }

    .service-card:hover .service-icon {
        background: var(--primary-gradient);
    }

    .service-card:hover .service-icon svg {
        color: white;
    }

    .empty-state {
        background: var(--dark-light);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .empty-state h3 {
        color: #f1f5f9;
    }

    .empty-state p {
        color: #94a3b8;
    }

    .services-header .badge {
        background: rgba(37, 99, 235, 0.2);
        color: #60a5fa;
        border-color: rgba(37, 99, 235, 0.2);
    }

    .services-header .divider {
        background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    }
}


/* ========================================== */
/* ===== انیمیشن‌ها ===== */
/* ========================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.2s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6) { animation-delay: 0.3s; }
