/*
Theme Name: BizPlan Theme — قالب فرم‌ساز کسب‌وکار
Theme URI: https://example.com/bizplan-theme
Author: BizPlan
Author URI: https://example.com
Description: قالب سبک و اختصاصی برای سایت فرم‌ساز اسناد کسب‌وکار. هماهنگ با پلاگین BizPlan Forms، راست‌چین و با فونت وزیرمتن. مناسب سایت‌های تک‌منظوره فرم‌ساز.
Version: 3.4.1
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bizplan-theme
Tags: rtl-language-support, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== توکن‌های پایه (هماهنگ با پلاگین) ===== */
:root {
    --bt-primary: #1a56db;
    --bt-primary-dark: #1e40af;
    --bt-accent: #3b82f6;
    --bt-success: #059669;
    --bt-bg: #f8fafc;
    --bt-surface: #ffffff;
    --bt-border: #e2e8f0;
    --bt-text: #1e293b;
    --bt-muted: #64748b;
    --bt-radius: 14px;
    --bt-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    --bt-maxw: 1180px;
    --bt-header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bt-bg); }

body {
    margin: 0;
    font-family: "Vazirmatn", system-ui, -apple-system, sans-serif;
    direction: rtl;
    text-align: right;
    background: transparent;
    color: var(--bt-text);
    line-height: 1.85;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--bt-primary); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--bt-primary-dark); }

img { max-width: 100%; height: auto; }

.bt-container {
    max-width: var(--bt-maxw);
    margin: 0 auto;
    padding: 0 22px;
}

/* ===== دکمه‌ها ===== */
.bt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: var(--bt-btn-size, 15px);
    font-weight: var(--bt-btn-weight, 600);
    padding: var(--bt-btn-pad-y, 12px) var(--bt-btn-pad-x, 24px);
    border-radius: var(--bt-btn-radius, 10px);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
}
.bt-btn-primary { background: var(--bt-primary); color: #fff; }
.bt-btn-primary:hover { background: var(--bt-primary-dark); color: #fff; transform: translateY(-2px); }
.bt-btn-ghost { background: transparent; color: var(--bt-text); border-color: var(--bt-border); }
.bt-btn-ghost:hover { border-color: var(--bt-primary); color: var(--bt-primary); }
.bt-btn-lg { padding: calc(var(--bt-btn-pad-y, 12px) + 3px) calc(var(--bt-btn-pad-x, 24px) + 8px); font-size: calc(var(--bt-btn-size, 15px) + 2px); }
.bt-btn-sm { padding: calc(var(--bt-btn-pad-y, 12px) - 5px) calc(var(--bt-btn-pad-x, 24px) - 10px); font-size: calc(var(--bt-btn-size, 15px) - 2px); }

/* ===== هدر ===== */
.bt-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--bt-border);
}
.bt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--bt-header-h);
    gap: 20px;
}
.bt-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--bt-text);
    min-width: 0;
    max-width: 100%;
}
.bt-logo:hover { color: var(--bt-text); }
.bt-logo-mark {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--bt-primary), var(--bt-accent));
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.bt-logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.bt-nav { display: flex; align-items: center; gap: 6px; }
.bt-nav a {
    color: var(--bt-text);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 8px;
}
.bt-nav a:hover { background: var(--bt-bg); color: var(--bt-primary); }
.bt-nav .current-menu-item a,
.bt-nav .current_page_item a { color: var(--bt-primary); }


.bt-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.bt-burger span {
    width: 24px; height: 2px;
    background: var(--bt-text);
    border-radius: 2px;
    transition: 0.2s;
}

/* ===== محتوای اصلی ===== */
.bt-main { min-height: 60vh; }
.bt-page-wrap { padding: 40px 0 60px; }

/* صفحه‌ای که شورت‌کد پلاگین دارد، تمام‌عرض و بدون محدودیت */
.bt-app-page .bt-page-wrap { padding: 28px 0 60px; }
.bt-app-page .bt-container { max-width: 1320px; }

.bt-page-title {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--bt-text);
}
.bt-page-content { font-size: 16px; line-height: 1.95; }
.bt-page-content h2 { font-size: 24px; font-weight: 700; margin: 32px 0 12px; }
.bt-page-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; }
.bt-page-content p { margin: 0 0 16px; }
.bt-page-content ul, .bt-page-content ol { padding-right: 24px; margin: 0 0 16px; }
.bt-page-content li { margin-bottom: 8px; }
.bt-page-content img { border-radius: var(--bt-radius); }
.bt-page-content blockquote {
    border-right: 4px solid var(--bt-primary);
    background: var(--bt-surface);
    margin: 0 0 16px;
    padding: 14px 18px;
    border-radius: 8px;
    color: var(--bt-muted);
}

/* ===== کارت محتوا ===== */
.bt-card {
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    padding: 30px;
    box-shadow: var(--bt-shadow);
}

/* ===== فوتر ===== */
.bt-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 50px 0 26px;
    margin-top: 60px;
}
.bt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
.bt-footer h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.bt-footer-about { font-size: 14px; line-height: 1.9; color: #94a3b8; max-width: 360px; }
.bt-footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 12px;
}
.bt-footer ul { list-style: none; padding: 0; margin: 0; }
.bt-footer ul li { margin-bottom: 9px; }
.bt-footer ul a { color: #cbd5e1; font-size: 14px; }
.bt-footer ul a:hover { color: #fff; }
.bt-footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 22px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 880px) {
    .bt-burger { display: flex; }
    .bt-nav {
        position: absolute;
        top: var(--bt-header-h);
        right: 0; left: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--bt-surface);
        border-bottom: 1px solid var(--bt-border);
        padding: 10px 22px 16px;
        gap: 2px;
        display: none;
        box-shadow: var(--bt-shadow);
    }
    .bt-nav.open { display: flex; }
    .bt-nav a { padding: 12px 10px; border-radius: 8px; }
    .bt-footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .bt-page-title { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}

/* ===== هدر تیره ===== */
.bt-header-dark {
    background: rgba(15, 23, 42, 0.85);
    border-bottom-color: rgba(255,255,255,0.1);
}
.bt-header-dark .bt-logo,
.bt-header-dark .bt-nav a { color: #e2e8f0; }
.bt-header-dark .bt-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.bt-header-dark .bt-btn-ghost { color: #e2e8f0; border-color: rgba(255,255,255,0.2); }
.bt-header-dark .bt-btn-ghost:hover { border-color: #fff; color: #fff; }
.bt-header-dark .bt-burger span { background: #e2e8f0; }

/* هدر غیرچسبان */
.bt-header:not(.bt-header-sticky) { position: relative; }

/* ===== شبکه‌های اجتماعی فوتر ===== */
.bt-socials { display: flex; gap: 10px; margin-top: 18px; }
.bt-social {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #cbd5e1;
    font-weight: 700;
    transition: all 0.2s;
}
.bt-social:hover { background: var(--bt-primary); color: #fff; transform: translateY(-2px); }

/* لوگو با شعار */
.bt-logo-tagline {
    font-size: 12px;
    font-weight: 500;
    color: var(--bt-muted);
    border-right: 1px solid var(--bt-border);
    padding-right: 10px;
    margin-right: 4px;
}

/* سایه هدر هنگام اسکرول */
.bt-header-sticky.bt-scrolled { box-shadow: 0 4px 20px rgba(15,23,42,0.06); }

/* جلوگیری از سرریز افقی در موبایل */
html, body { max-width: 100%; }
body { overflow-x: clip; }
