/* استایل صفحه اصلی */

.th-home {
    --ink: #0A1F44;
    --ink-soft: #5B6478;
    --gold: #C5A059;
    --gold-deep: #A67F3D;
    --violet: #6C5CE7;
    --cyan: #00C2CB;
    --line: #E4E7EC;
    --bg-soft: #F6F7F9;
    --paper: #FFFFFF;
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
}
.th-home * { box-sizing: border-box; }
.th-home img { max-width: 100%; }
.th-home a { text-decoration: none; }
.th-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---- هیرو ---- */
.th-hero { position: relative; overflow: hidden; background: var(--ink); border-radius: 24px; margin-top: 24px; padding: 56px 40px; }
.th-hero::before, .th-hero::after {
    content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: .35; pointer-events: none;
}
.th-hero::before { background: var(--gold); top: -180px; right: -120px; }
.th-hero::after { background: var(--violet); bottom: -200px; left: -140px; }
.th-hero-inner { position: relative; z-index: 1; max-width: 660px; }
.th-hero-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 12.5px; font-weight: 700; margin-bottom: 18px; }
.th-hero-tag::before { content: ""; width: 18px; height: 2px; background: var(--gold); display: inline-block; }
.th-hero h1 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; line-height: 1.75; margin: 0 0 14px; }
.th-hero h1 span { color: var(--gold); }
.th-hero > .th-hero-inner > p { color: rgba(255,255,255,.65); font-size: 15px; line-height: 2; margin: 0 0 28px; }
.th-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.th-btn-gold { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #14213D; font-weight: 700; font-size: 14px; padding: 13px 26px; border-radius: 10px; transition: filter .18s ease; }
.th-btn-gold:hover { filter: brightness(1.06); }
.th-btn-ghost { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(255,255,255,.28); color: #fff; font-weight: 600; font-size: 14px; padding: 12px 24px; border-radius: 10px; transition: border-color .18s ease, background .18s ease; }
.th-btn-ghost:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }
.th-hero-trust { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.th-hero-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.th-hero-trust svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }

/* ---- خدمات ---- */
.th-services { padding: 48px 0 80px; }
.th-section-head { max-width: 560px; margin: 0 0 28px; }
.th-section-head h2 { font-size: 21px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.th-section-head p { font-size: 13.5px; color: var(--ink-soft); font-weight: 300; margin: 0; }

/* ---- گرید کارت‌ها ---- */
.th-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.th-cards-grid .th-feature-card { grid-column: span 2; }

/* ---- کارت بزرگ ---- */
.th-feature-card {
    position: relative; display: flex; flex-direction: column; background: var(--paper);
    border-radius: 20px; overflow: hidden; box-shadow: 0 20px 45px -24px rgba(10,31,68,.35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.th-feature-card:hover { transform: translateY(-5px); box-shadow: 0 28px 55px -20px rgba(10,31,68,.4); }
.th-feature-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.th-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.th-feature-card:hover .th-feature-img img { transform: scale(1.06); }
.th-feature-badge {
    position: absolute; top: 14px; right: 14px; background: var(--card-accent); color: #fff;
    font-size: 11.5px; font-weight: 800; padding: 5px 13px; border-radius: 999px;
}
.th-feature-icon {
    position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 11px;
    background: var(--card-accent); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,.35);
}
.th-feature-icon svg { width: 19px; height: 19px; color: #fff; }
.th-feature-body { padding: 20px 22px 24px; }
.th-feature-body h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.th-feature-body p { font-size: 13.5px; color: var(--ink-soft); font-weight: 300; line-height: 1.9; margin: 0 0 14px; }
.th-feature-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--card-accent); font-weight: 800; font-size: 13.5px; margin-top: auto; }
.th-feature-cta svg { width: 14px; height: 14px; transition: transform .18s ease; }
.th-feature-card:hover .th-feature-cta svg { transform: translateX(-3px); }

/* ---- کارت کوچک ---- */
.th-card {
    position: relative; display: flex; flex-direction: column; background: var(--paper);
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 26px -20px rgba(10,31,68,.25);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.th-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(10,31,68,.3); border-color: var(--card-accent); }
.th-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.th-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.th-card:hover .th-card-img img { transform: scale(1.08); }
.th-badge {
    position: absolute; top: 10px; right: 10px; background: var(--card-accent); color: #fff;
    font-size: 10.5px; font-weight: 800; padding: 4px 11px; border-radius: 999px;
}
.th-card-icon {
    position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 9px;
    background: var(--card-accent); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 12px -6px rgba(0,0,0,.35);
}
.th-card-icon svg { width: 16px; height: 16px; color: #fff; }
.th-card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.th-card-body h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 5px; line-height: 1.7; }
.th-card-body p { font-size: 12px; color: var(--ink-soft); font-weight: 300; line-height: 1.8; margin: 0 0 10px; }
.th-card-cta { display: inline-flex; align-items: center; gap: 5px; color: var(--card-accent); font-weight: 700; font-size: 11.5px; margin-top: auto; }
.th-card-cta svg { width: 11px; height: 11px; transition: transform .18s ease; }
.th-card:hover .th-card-cta svg { transform: translateX(-3px); }

@media (max-width: 991px) {
    .th-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .th-cards-grid .th-feature-card { grid-column: span 2; }
}
@media (max-width: 560px) {
    .th-hero { padding: 40px 24px; border-radius: 16px; }
    .th-hero-cta { flex-direction: column; }
    .th-btn-gold, .th-btn-ghost { justify-content: center; }
    .th-cards-grid { grid-template-columns: 1fr; }
    .th-cards-grid .th-feature-card { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) {
    .th-home * { transition: none !important; }
}
