﻿/* ============================================
   Success Stories Page - Saysan Accounting
   Palette: Velvet Burgundy + Gold Accent + Warm Cream
   ============================================ */

:root {
    /* زرشکی مخملی */
    --burgundy: #8B2942;
    --burgundy-dark: #6D1F33;
    --burgundy-light: #A63652;
    --burgundy-soft: #F5EBEE;
    /* طلایی لوکس */
    --gold: #C9A961;
    --gold-light: #E0C88F;
    /* خاکستری‌های گرم */
    --text-dark: #2E2E2E;
    --text-medium: #3D3D3D;
    --text-soft: #7A7A7A;
    /* پس‌زمینه‌های روشن */
    --bg-cream: #FEFEFE;
    --bg-warm: #FAF7F8;
    --bg-hover: #F5EBEE;
    --border-soft: #EBE6E5;
    --white: #FFFFFF;
}

/* ===== کانتینر اصلی ===== */
.stories-container {
    max-width: 900px;
    width: 100%;
    background: var(--bg-cream);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(139, 41, 66, 0.08);
    overflow: hidden;
    margin: 30px auto 50px;
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    direction: rtl;
}

/* ===== هدر ===== */
.stories-header {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    color: var(--white);
    padding: 45px 30px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    /* نور ملایم در گوشه (افکت مخملی) */
    .stories-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(201, 169, 97, 0.25), transparent 70%);
        border-radius: 50%;
    }

    .stories-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    }

    .stories-header h1 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: var(--white);
        position: relative;
        z-index: 1;
    }

    .stories-header p {
        font-size: 1rem;
        opacity: 0.92;
        color: #F5E8EC;
        position: relative;
        z-index: 1;
    }

/* ===== تب‌ها ===== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-soft);
    background: var(--bg-warm);
}

.tab-btn {
    flex: 1;
    padding: 18px 10px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

    .tab-btn:hover {
        color: var(--burgundy);
        background: var(--bg-hover);
    }

    .tab-btn.active {
        color: var(--burgundy);
        background: var(--bg-cream);
        font-weight: 700;
    }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--burgundy), var(--burgundy-light), var(--burgundy));
            border-radius: 3px 3px 0 0;
        }

/* ===== محتوای تب ===== */
.tab-content {
    display: none;
    padding: 30px 35px 40px;
    animation: fadeIn 0.5s ease;
}

    .tab-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== عنوان‌های مطالعه موردی ===== */
.case-title {
    font-size: 1.6rem;
    color: var(--burgundy-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.case-subtitle {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-bottom: 25px;
    font-weight: 500;
    border-right: 4px solid var(--gold);
    padding-right: 15px;
}

/* ===== بخش‌ها ===== */
.section {
    margin-bottom: 25px;
}

    .section h4 {
        font-size: 1.1rem;
        color: var(--burgundy);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
    }

        .section h4::before {
            content: '';
            display: inline-block;
            width: 8px;
            height: 8px;
            background: var(--gold);
            border-radius: 50%;
        }

    .section ul {
        list-style: none;
        padding-right: 20px;
        margin: 0;
    }

        .section ul li {
            position: relative;
            padding-right: 25px;
            margin-bottom: 8px;
            color: var(--text-medium);
        }

            .section ul li::before {
                content: '✔';
                position: absolute;
                right: 0;
                color: var(--burgundy-light);
                font-weight: bold;
            }

/* ===== شبکه اطلاعات ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    background: var(--bg-warm);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-soft);
    border-right: 4px solid var(--burgundy);
}

.info-item {
    font-size: 0.95rem;
    color: var(--text-medium);
}

    .info-item strong {
        color: var(--burgundy-dark);
    }

/* ===== نقل قول ===== */
.stories-container blockquote {
    background: var(--burgundy-soft);
    border-right: 5px solid var(--burgundy);
    padding: 18px 22px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-medium);
    position: relative;
}

    .stories-container blockquote::before {
        content: '“';
        font-size: 3rem;
        color: var(--burgundy);
        opacity: 0.2;
        position: absolute;
        top: -10px;
        right: 10px;
        font-family: serif;
    }

    .stories-container blockquote footer {
        margin-top: 10px;
        font-style: normal;
        font-weight: 600;
        color: var(--burgundy-dark);
        font-size: 0.9rem;
    }

/* ===== جعبه دعوت به اقدام ===== */
.cta-box {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    color: var(--white);
    padding: 28px 30px;
    border-radius: 16px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(139, 41, 66, 0.2);
    position: relative;
    overflow: hidden;
}

    .cta-box::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -20%;
        width: 250px;
        height: 250px;
        background: radial-gradient(circle, rgba(201, 169, 97, 0.2), transparent 70%);
        border-radius: 50%;
    }

    .cta-box p {
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: var(--white);
        position: relative;
        z-index: 1;
    }

.phone-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--burgundy-dark);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

    .phone-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        background: var(--gold-light);
        color: var(--burgundy-dark);
        text-decoration: none;
    }

/* ===== ریسپانسیو ===== */
@media (max-width: 600px) {
    .stories-header h1 {
        font-size: 1.5rem;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 14px 6px;
    }

    .tab-content {
        padding: 20px 18px 30px;
    }

    .case-title {
        font-size: 1.3rem;
    }

    .case-subtitle {
        font-size: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .phone-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .cta-box {
        padding: 20px 15px;
    }
}
