/*
 * شاپور — لایهٔ base.css
 * بازنشانی، تایپوگرافی و دکمه‌ها
 * منبع: فاز ۲ مهاجرت از style.css مرجع (خطوط 60-185)
 * ترتیب بارگذاری لایه‌ها = ترتیب کسکید اصلی؛ هرگز ترتیب را تغییر ندهید.
 */

/* ============================================
   RESET & BASE
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    /* v2.24.11 — رفع شیفت کل صفحه در RTL موبایل:
       overflow-x:hidden روی body در Chromium موبایل، وقتی محتوایی به‌سمت چپ
       بیرون می‌زند (توکن نشکن مثل URL در نظرات)، کل صفحه را جابه‌جا می‌کند
       و المان‌ها از لبهٔ صفحه بیرون می‌زنند. clip اسکرول‌کانتینر نمی‌سازد،
       sticky/fixed را نمی‌شکند و شیفت را حذف می‌کند؛ خط hidden فقط
       fallback مرورگرهای خیلی قدیمی است. */
    overflow-x: clip;
    /* Global fix: every page starts below the fixed header.
       Hero sections no longer need to add header-height to their own padding. */
    padding-top: var(--header-height);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 4px; }
::selection { background: var(--accent-green); color: #fff; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    white-space: nowrap;
    font-family: 'Vazirmatn', sans-serif;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
}
.btn-outline:hover {
    background: var(--accent-green);
    color: white;
}

.btn-lg { padding: 18px 42px; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn-pill { border-radius: 50px; }

/* ============================================
   HEADER  (v1.6 — fully rewritten for stability)
   z-index layering:
     1000  .site-header  (always at top, fixed)
     1001  .logo, .header-actions children (above in-header content)
     1099  .mobile-menu-overlay (covers page when drawer open)
     1100  .main-nav drawer (mobile only)
   The desktop nav and drawer share the SAME .main-nav element;
   on desktop it's an inline flex row, on mobile it becomes a fixed drawer.
   ============================================ */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.92);
    height: var(--header-height);
    z-index: 1000;
    border-bottom: 1px solid rgba(30, 58, 95, 0.09);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(23, 43, 77, 0.16);
}

/* The flex container that holds logo / nav / actions */
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

