
/* ─────────────────────────────────────
   FONT DEFINITIONS — POFAK
   🔧 font-display از «swap» به «optional» تغییر کرد:
   با «swap»، مرورگر اول با فونت جایگزین (fallback) متن رو نشون می‌ده و
   بعد که Vazir/Pofak لود شد، فونت رو عوض می‌کنه. چون فونت جایگزین و
   فونت اصلی عرض حروف متفاوتی دارن، این «عوض شدن» باعث می‌شه خطوط متن
   (مخصوصاً پاراگراف‌های بلند) از نو بشکنن و ارتفاع باکس تغییر کنه —
   دقیقاً همون چیزی که با طولانی‌تر شدن متن‌ها، الان باعث افت امتیاز
   CLS/Performance موبایل شده. با «optional»: اگه فونت به‌موقع (تقریباً
   ~۱۰۰ میلی‌ثانیه) لود بشه ازش استفاده می‌شه، وگرنه مرورگر برای همون
   بازدید کامل روی فونت جایگزین می‌مونه و هیچ‌وقت جابه‌جایی/شیفت
   دیرهنگام رخ نمی‌ده. برای اینکه در اکثر بازدیدها همچنان از فونت
   واقعی استفاده بشه (نه fallback)، در index.html فونت‌های اصلی را
   preload کردیم (پایین‌تر توضیح داده شده).
───────────────────────────────────── */

@font-face {
    font-family: 'Pofak';
    src: url('../fonts/POFAK-BLACK.woff2') format('woff2'),
    url('../fonts/POFAK-BLACK.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pofak';
    src: url('../fonts/POFAK-DEMIBOLD.woff2') format('woff2'),
    url('../fonts/POFAK-DEMIBOLD.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pofak';
    src: url('../fonts/POFAK-BOLD.woff2') format('woff2'),
    url('../fonts/POFAK-BOLD.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pofak';
    src: url('../fonts/POFAK-REGULAR.woff2') format('woff2'),
    url('../fonts/POFAK-REGULAR.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* ─────────────────────────────────────
   FONT DEFINITIONS — POTK
───────────────────────────────────── */
@font-face {
    font-family: 'Potk';
    src: url('../fonts/Potk.woff2') format('woff2'),
    url('../fonts/Potk.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* ─────────────────────────────────────
   FONT DEFINITIONS — VAZIR
───────────────────────────────────── */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/VAZIR-LIGHT.woff2') format('woff2'),
    url('../fonts/VAZIR-LIGHT.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/VAZIR-MEDIUM.woff2') format('woff2'),
    url('../fonts/VAZIR-MEDIUM.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
/* ─────────────────────────────────────
   CSS CUSTOM PROPERTIES (Variables)
───────────────────────────────────── */

:root {

    /* --- رنگ‌های برند (از لوگو) --- */
    --color-blue: #0D90CD;
    --color-blue-dark: #0A72A3;
    --color-blue-light: #3AAEDE;
    --color-blue-glow: rgba(13, 144, 205, 0.30);
    --color-blue-subtle: rgba(13, 144, 205, 0.08);

    --color-red: #B80E13;
    --color-red-dark: #8F0B0F;
    --color-red-light: #D42028;
    --color-red-glow: rgba(184, 14, 19, 0.30);
    --color-red-subtle: rgba(184, 14, 19, 0.08);

    --color-gold: #CFA90C;
    --color-gold-dark: #A88A0A;
    --color-gold-light: #E2BE2A;
    --color-gold-glow: rgba(207, 169, 12, 0.30);
    --color-gold-subtle: rgba(207, 169, 12, 0.08);

    /* --- پس‌زمینه (خاکستری گرم) --- */
    --bg-primary: #1A1B1F;
    --bg-secondary: #20222A;
    --bg-card: #26272F;
    --bg-card-hover: #2C2D38;
    --bg-elevated: #2A2B35;

    /* --- متن --- */
    --text-primary: #EAEAF0;
    --text-secondary: #8A93B2;
    --text-muted: #555D7A;
    --text-white: #FFFFFF;

    /* --- Glass / Border (ست شده با خاکستری گرم) --- */
    --glass-bg: rgba(26, 27, 31, 0.80);
    --glass-bg-scrolled: rgba(22, 23, 27, 0.97);
    --glass-blur: 18px;
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-glass-hover: rgba(13, 144, 205, 0.40);
    --border-subtle: rgba(255, 255, 255, 0.04);

    /* --- فونت‌ها --- */
    --font-display: 'Pofak', 'Vazir', sans-serif;
    --font-title: 'Potk', 'Pofak', 'Vazir', sans-serif;
    --font-body: 'Vazir', sans-serif;

    /* --- اندازه فونت پایه --- */
    --fs-xs: 0.75rem;
    /* 12px */
    --fs-sm: 0.875rem;
    /* 14px */
    --fs-base: 1rem;
    /* 16px */
    --fs-md: 1.125rem;
    /* 18px */
    --fs-lg: 1.375rem;
    /* 22px */
    --fs-xl: 1.75rem;
    /* 28px */
    --fs-2xl: 2.25rem;
    /* 36px */
    --fs-3xl: 3rem;
    /* 48px */

    /* --- فاصله‌ها --- */
    --container-max: 1440px;
    --container-pad-desk: 48px;
    --container-pad-mob: 16px;
    --header-height: 84px;
    --header-height-mobile: 60px;

    /* --- شعاع گوشه --- */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --radius-pill: 100px;

    /* --- ترنزیشن --- */
    --ease-fast: 0.18s ease;
    --ease-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-slow: 0.60s cubic-bezier(0.4, 0, 0.2, 1);

    /* --- سایه --- */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.40);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.50);
    --shadow-blue: 0 0 28px rgba(13, 144, 205, 0.35);
    --shadow-red: 0 0 28px rgba(184, 14, 19, 0.35);
    --shadow-gold: 0 0 28px rgba(207, 169, 12, 0.35);
}


/* ─────────────────────────────────────
   RESET & BASE
───────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--fs-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    direction: rtl;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container اصلی */
.tooshle-container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad-desk);
}

@media (max-width: 991px) {
    .tooshle-container {
        padding-inline: 20px;
    }
}

@media (max-width: 575px) {
    .tooshle-container {
        padding-inline: var(--container-pad-mob);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}