/* ============================================
   تک‌پارت - Homepage Styles
   Modern, responsive, RTL, fast-loading
   All assets local (no external CDN)
   ============================================ */

/* ----- Font Face (Vazirmatn, local) ----- */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ----- CSS Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Vazirmatn', -apple-system, 'Segoe UI', sans-serif;
    background: #F8FAFC;
    color: #1E293B;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid #6366F1; outline-offset: 2px; }

/* ----- Container ----- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ----- Buttons ----- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}
.btn-light { background: #fff; color: #4F46E5; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.25); }
.btn-ghost-light { background: rgba(255,255,255,0.1); color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); border-color: #fff; }
.btn-login {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); }
.btn-user {
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.btn-user:hover { background: rgba(99, 102, 241, 0.15); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px -5px rgba(0,0,0,0.08); }
.header-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

/* Nav menu (right side in RTL) */
.main-nav { display: flex; align-items: center; gap: 12px; }
.nav-list { display: flex; gap: 8px; align-items: center; }
.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
    position: relative;
}
.nav-link:hover { color: #6366F1; background: rgba(99, 102, 241, 0.08); }
.nav-link.active { color: #6366F1; background: rgba(99, 102, 241, 0.12); }
.nav-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    padding: 6px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: #1E293B; border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logo (center) */
.logo-wrap { display: flex; justify-content: center; }
.logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 900; font-size: 1.5rem;
    color: #1E293B;
    letter-spacing: -0.5px;
}
.logo-icon { width: 36px; height: 36px; }
.logo-text { line-height: 1; }
.logo-accent { color: #6366F1; }

/* Header actions (left side) */
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    margin-top: 0;
    height: 580px;
    overflow: hidden;
    padding-top: 72px; /* Offset for fixed header - background extends to top */
}
.slides-track {
    position: relative;
    width: 100%; height: 100%;
}
.slide {
    position: absolute; inset: 0;
    background: var(--slide-bg);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 64px;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    visibility: hidden;
    display: none; /* Hidden by default, JS shows active slide */
}
.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    visibility: visible;
    display: flex; /* Show active slide */
}
.slide-content {
    flex: 1; max-width: 600px;
    color: #fff;
    z-index: 2;
}
.slide-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}
.slide-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.slide-title .highlight { color: #FBBF24; }
.slide-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 500px;
}
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.slide-graphic {
    flex: 0 0 400px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.9;
    z-index: 1;
}
.hero-svg { width: 100%; max-width: 400px; }

/* Slider controls */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: all 0.25s ease;
    z-index: 3;
}
.slider-arrow:hover { background: rgba(255, 255, 255, 0.35); transform: translateY(-50%) scale(1.1); }
.slider-arrow.prev { right: 24px; }
.slider-arrow.next { left: 24px; }
.slider-dots {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
    z-index: 3;
}
.slider-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
}
.slider-dot.active { background: #fff; width: 32px; border-radius: 5px; }

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 64px 0;
    background: #F8FAFC;
    position: relative;
    margin-top: -40px;
    z-index: 5;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: #fff;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.1);
}
.stat-card {
    display: flex; align-items: center; gap: 20px;
    padding: 16px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon-blue { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); color: #2563EB; }
.stat-icon-purple { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); color: #7C3AED; }
.stat-icon-orange { background: linear-gradient(135deg, #FED7AA, #FDBA74); color: #EA580C; }
.stat-info { flex: 1; }
.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1E293B;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 0.95rem;
    color: #64748B;
    font-weight: 500;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1E293B;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #64748B;
    line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 96px 0;
    background: #fff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}
.feature-card {
    padding: 36px 28px;
    background: linear-gradient(180deg, #FAFBFF 0%, #fff 100%);
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
    border-color: #C7D2FE;
}
.feature-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    color: #6366F1;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon {
    transform: rotate(-5deg) scale(1.05);
}
.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 12px;
}
.feature-desc {
    color: #64748B;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Work method (نقد و عرف) */
.work-method {
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    border-radius: 28px;
    padding: 48px 40px;
}
.work-method-header { text-align: center; margin-bottom: 40px; }
.work-method-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 12px;
}
.work-method-subtitle { color: #64748B; font-size: 1.05rem; }
.method-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}
.method-card {
    background: #fff;
    padding: 36px 32px;
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.method-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 6px; height: 100%;
}
.method-cash::before { background: linear-gradient(180deg, #10B981, #059669); }
.method-credit::before { background: linear-gradient(180deg, #6366F1, #8B5CF6); }
.method-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); }
.method-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.method-cash .method-icon-wrap { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.method-credit .method-icon-wrap { background: rgba(99, 102, 241, 0.1); color: #6366F1; }
.method-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 12px;
}
.method-desc {
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 20px;
}
.method-features { display: flex; flex-direction: column; gap: 10px; }
.method-features li {
    position: relative;
    padding-right: 28px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}
.method-features li::before {
    content: '';
    position: absolute;
    right: 0; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.15;
}
.method-features li::after {
    content: '✓';
    position: absolute;
    right: 4px; top: 50%; transform: translateY(-50%);
    color: inherit;
    font-size: 11px;
    font-weight: 900;
}
.method-cash .method-features li { color: #10B981; }
.method-credit .method-features li { color: #6366F1; }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 96px 0;
    background: linear-gradient(180deg, #fff 0%, #F8FAFC 100%);
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.contact-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.12);
    border-color: #C7D2FE;
}
.contact-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    color: #6366F1;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
}
.contact-label {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 8px;
    font-weight: 500;
}
.contact-value {
    font-size: 1.05rem;
    color: #1E293B;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}
a.contact-value:hover { color: #6366F1; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0F172A;
    color: #CBD5E1;
    padding: 64px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-about { max-width: 360px; text-align: center; }
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
    justify-content: center;
}
.footer-logo .logo-icon { width: 36px; height: 36px; }
.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}
.footer-desc {
    color: #94A3B8;
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: center;
}
.footer-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.footer-links a {
    color: #94A3B8;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    text-align: center;
}
.footer-links a:hover { color: #fff; }
.badges-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.badge-item {
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    transition: transform 0.25s ease;
}
.badge-item:hover { transform: scale(1.05); }
.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 24px;
    text-align: center;
}
.copyright {
    color: #CBD5E1;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.copyright-sub {
    color: #64748B;
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
    .header-inner { padding: 12px 20px; gap: 16px; }
    .hero-slider { height: 500px; }
    .slide { padding: 0 32px; }
    .slide-title { font-size: 2.4rem; }
    .slide-graphic { flex: 0 0 280px; }
    .hero-svg { max-width: 280px; }
    .stats-grid { padding: 24px; }
    .stat-number { font-size: 2rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    /* Header - show mobile menu */
    .header-inner {
        grid-template-columns: auto 1fr auto;
        padding: 12px 16px;
    }
    .main-nav { order: 1; }
    .logo-wrap { order: 2; justify-content: center; }
    .header-actions { order: 3; }
    .nav-toggle { display: flex; }
    .nav-list {
        position: fixed;
        top: 64px; right: -100%;
        flex-direction: column;
        width: 75%; max-width: 320px;
        height: calc(100vh - 64px);
        background: #fff;
        padding: 24px;
        gap: 8px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 99;
    }
    .nav-list.open { right: 0; }
    .nav-link { display: block; padding: 14px 16px; font-size: 1.05rem; }
    .logo { font-size: 1.2rem; }
    .logo-icon { width: 30px; height: 30px; }
    .btn-login span, .btn-user span { display: none; }
    .btn-login, .btn-user { padding: 10px; }

    /* Hero */
    .hero-slider { height: auto; min-height: auto; padding-top: 64px; }
    .slides-track { position: relative; min-height: auto; }
    .slide {
        position: relative;
        flex-direction: column;
        padding: 24px 20px 32px;
        text-align: center;
        gap: 16px;
        min-height: auto;
        justify-content: center;
        display: none; /* Hidden by default, .active shows it */
    }
    .slide.active { display: flex; }
    .slide-graphic { flex: 0 0 auto; order: -1; }
    .hero-svg { max-width: 140px; }
    .slide-badge { font-size: 0.75rem; margin-bottom: 12px; padding: 4px 12px; }
    .slide-title { font-size: 1.5rem; margin-bottom: 12px; }
    .slide-desc { font-size: 0.9rem; max-width: 100%; margin-bottom: 20px; line-height: 1.6; }
    .slide-actions { justify-content: center; gap: 8px; }
    .slide-actions .btn { padding: 10px 18px; font-size: 0.85rem; }
    .slider-arrow { width: 36px; height: 36px; }
    .slider-arrow svg { width: 18px; height: 18px; }
    .slider-arrow.prev { right: 8px; }
    .slider-arrow.next { left: 8px; }
    .slider-dots { bottom: 16px; }

    /* Stats - reduce gap to slider */
    .stats-section { padding: 24px 0; margin-top: 0; }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    .stat-card { padding: 12px; gap: 16px; }
    .stat-icon { width: 52px; height: 52px; }
    .stat-number { font-size: 1.8rem; }

    /* Sections */
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; }
    .about-section, .contact-section { padding: 56px 0; }
    .features-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
    .feature-card { padding: 28px 20px; }

    /* Work method */
    .work-method { padding: 32px 20px; }
    .method-cards { grid-template-columns: 1fr; }
    .method-card { padding: 28px 24px; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-card { padding: 24px 20px; }

    /* Footer */
    .site-footer { padding: 48px 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-about { max-width: 100%; }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .slide-title { font-size: 1.6rem; }
    .section-title { font-size: 1.5rem; }
    .stat-number { font-size: 1.6rem; }
    .btn { padding: 10px 18px; font-size: 0.9rem; }
    .method-features li { font-size: 0.9rem; }
    .badges-row { justify-content: center; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .slide { transition: opacity 0.2s ease; }
}

/* Print */
@media print {
    .site-header, .hero-slider, .slider-arrow, .slider-dots { display: none; }
    .stats-section, .about-section, .contact-section { padding: 16px 0; }
    body { background: #fff; color: #000; }
}
