/* فروشیار — Custom CSS, RTL, mobile-first */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #059669;
    --accent-light: #d1fae5;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-warm: #fffbeb;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --font-stack: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    direction: rtl;
    text-align: right;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
h1 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p { margin-bottom: 0.75rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-right: 1.5rem; margin-bottom: 0.75rem; }
li { margin-bottom: 0.3rem; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-warm { background: var(--bg-warm); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ── Header / Nav ── */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-weight: 700; font-size: 1.25rem; color: var(--text);
    display: flex; align-items: center; gap: 0.5rem;
}
.logo-icon {
    width: 32px; height: 32px; background: var(--primary);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 0.9rem;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ── */
.hero {
    padding: 4rem 0 5rem;
    text-align: center;
}
.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}
.hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}
.hero-cta {
    display: inline-flex; flex-direction: column; gap: 0.75rem; align-items: center;
}
.hero-img-placeholder {
    width: 100%; max-width: 700px; margin: 2rem auto 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.85rem 2rem; border-radius: 10px;
    font-family: var(--font-stack); font-size: 1rem; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary); color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-light); }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-outline {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border); font-size: 0.9rem; padding: 0.6rem 1.5rem;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ── Cards ── */
.card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--border-radius); padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-icon {
    width: 48px; height: 48px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; font-size: 1.4rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ── Problem / Solution ── */
.problem-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.problem-item:last-child { border-bottom: none; }
.problem-icon {
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    background: #fee2e2; color: #dc2626;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.problem-item p { color: var(--text-secondary); margin-bottom: 0; }

/* ── Steps ── */
.steps {
    display: flex; flex-direction: column; gap: 1.5rem;
}
.step {
    display: flex; gap: 1.25rem; align-items: flex-start;
}
.step-number {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.step-content h3 { margin-bottom: 0.25rem; }
.step-content p { color: var(--text-secondary); margin-bottom: 0; }

/* ── Features ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.feature-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--border-radius); padding: 1.25rem;
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-2px); }
.feature-card .icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.feature-card p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0; }

/* ── Coming Soon ── */
.coming-soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.coming-card {
    background: var(--bg-alt); border: 1px dashed var(--border);
    border-radius: var(--border-radius); padding: 1rem;
    opacity: 0.7;
}
.coming-badge {
    display: inline-block; background: var(--accent-light); color: var(--accent);
    font-size: 0.7rem; padding: 0.15rem 0.6rem; border-radius: 20px;
    font-weight: 600; margin-bottom: 0.5rem;
}
.coming-card h3 { font-size: 0.9rem; }
.coming-card p { font-size: 0.75rem; }

/* ── Trust / Security ── */
.trust-items {
    display: flex; flex-direction: column; gap: 1rem;
}
.trust-item {
    display: flex; gap: 1rem; align-items: flex-start;
}
.trust-icon {
    width: 40px; height: 40px; border-radius: 8px;
    background: var(--accent-light); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.trust-item h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.trust-item p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0; }

/* ── Pricing ── */
.pricing-card {
    max-width: 500px; margin: 0 auto;
    background: white; border: 2px solid var(--primary);
    border-radius: 16px; padding: 2.5rem; text-align: center;
    box-shadow: var(--shadow-lg);
}
.pricing-tag {
    display: inline-block; background: var(--accent); color: white;
    font-size: 0.8rem; padding: 0.3rem 1rem; border-radius: 20px;
    font-weight: 600; margin-bottom: 1rem;
}
.pricing-price { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.pricing-desc { color: var(--text-secondary); margin-bottom: 1.5rem; }
.pricing-features { text-align: right; margin-bottom: 1.5rem; }
.pricing-features li { font-size: 0.9rem; }

/* ── FAQ ── */
.faq-item {
    background: white; border: 1px solid var(--border);
    border-radius: var(--border-radius); margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-question {
    width: 100%; text-align: right; padding: 1.25rem 1.5rem;
    background: none; border: none; cursor: pointer;
    font-family: var(--font-stack); font-size: 0.95rem; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text);
}
.faq-question::after {
    content: '+'; font-size: 1.25rem; color: var(--text-secondary);
    transition: transform 0.2s;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    display: none; padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary); font-size: 0.9rem;
}
.faq-item.active .faq-answer { display: block; }

/* ── Contact Form ── */
.contact-form {
    max-width: 600px; margin: 0 auto;
    background: white; border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block; margin-bottom: 0.4rem;
    font-size: 0.9rem; font-weight: 600; color: var(--text);
}
.form-label .required { color: #dc2626; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 0.75rem 1rem;
    border: 1px solid var(--border); border-radius: 8px;
    font-family: var(--font-stack); font-size: 0.95rem;
    transition: border-color 0.2s;
    direction: rtl; text-align: right;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-error { color: #dc2626; font-size: 0.8rem; margin-top: 0.25rem; }
.form-hint { color: var(--text-light); font-size: 0.75rem; margin-top: 0.25rem; }
.form-check {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1rem;
}
.form-check input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--primary);
}
.form-check label { font-size: 0.85rem; color: var(--text-secondary); }
.form-check a { color: var(--primary); }

/* honeypot — hidden from real users */
.form-honeypot {
    position: absolute; left: -9999px; opacity: 0;
    pointer-events: none; height: 0; overflow: hidden;
}

/* ── Admin ── */
.admin-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th, .admin-table td {
    padding: 0.75rem; text-align: right;
    border-bottom: 1px solid var(--border);
}
.admin-table th {
    background: var(--bg-alt); font-weight: 600;
    position: sticky; top: 0;
}
.admin-table tr:hover { background: var(--bg-alt); }
.status-badge {
    display: inline-block; padding: 0.2rem 0.7rem;
    border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.status-new { background: #dbeafe; color: #1d4ed8; }
.status-contacted { background: #fef3c7; color: #d97706; }
.status-rejected { background: #fee2e2; color: #dc2626; }
.status-customer { background: #d1fae5; color: #059669; }
.admin-login {
    max-width: 400px; margin: 5rem auto;
    background: white; border: 1px solid var(--border);
    border-radius: 16px; padding: 2.5rem; text-align: center;
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-secondary); font-size: 0.85rem;
}
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text); }

/* ── Video placeholder ── */
.video-wrapper {
    position: relative; width: 100%; max-width: 700px;
    margin: 0 auto; border-radius: var(--border-radius);
    overflow: hidden; background: #1e293b;
    box-shadow: var(--shadow-lg);
}
.video-wrapper video { width: 100%; display: block; }
.video-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.4); cursor: pointer;
    transition: background 0.2s;
}
.video-overlay:hover { background: rgba(0,0,0,0.3); }
.video-overlay .play-btn {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--primary); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.5rem; color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s;
}
.video-overlay:hover .play-btn { transform: scale(1.1); }

/* ── Misc ── */
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-small { font-size: 0.8rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-2 { margin-top: 1rem; }
.hidden { display: none; }
.spacer { height: 2rem; }
.spacer-lg { height: 4rem; }

/* ── Persian Numbers ── */
.fa-number { font-feature-settings: "locl"; }

/* ── Alert / Toast ── */
.alert {
    padding: 1rem 1.5rem; border-radius: 10px;
    margin-bottom: 1rem; font-size: 0.9rem;
}
.alert-success { background: var(--accent-light); color: var(--accent); }
.alert-error { background: #fee2e2; color: #dc2626; }

/* ── Responsive ── */
@media (min-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1.2rem; }
    .steps { flex-direction: row; }
    .step { flex: 1; flex-direction: column; text-align: center; align-items: center; }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .hero h1 { font-size: 2.75rem; }
}
@media (max-width: 767px) {
    .nav-links { display: none; }
    .hero { padding: 2.5rem 0 3rem; }
    .hero h1 { font-size: 1.6rem; }
    .section { padding: 2.5rem 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .pricing-card { margin: 0 1rem; }
    .contact-form { margin: 0 0.5rem; padding: 1.5rem; }
}
