/* ========== فونت‌های فارسی IRANSans ========== */
/* مسیرها نسبی هستند: از پوشه css به fonts می‌رویم */

/* IRANSans Black - 900 */
@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb_Black.woff2') format('woff2'),
         url('../fonts/IRANSansWeb_Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* IRANSans Bold - 700 */
@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb_Bold.woff2') format('woff2'),
         url('../fonts/IRANSansWeb_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* IRANSans Medium - 500 */
@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb_Medium.woff2') format('woff2'),
         url('../fonts/IRANSansWeb_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* IRANSans Regular - 400 */
@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb.woff2') format('woff2'),
         url('../fonts/IRANSansWeb.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* IRANSans Light - 300 */
@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb_Light.woff2') format('woff2'),
         url('../fonts/IRANSansWeb_Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* IRANSans UltraLight - 200 */
@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb_UltraLight.woff2') format('woff2'),
         url('../fonts/IRANSansWeb_UltraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* ========== اعمال فونت به کل صفحه ========== */
* {
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif;
}

body, html {
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    font-weight: 400;
}

/* Reset فونت برای المنت‌های فرم */
input, 
textarea, 
select, 
button {
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif;
}

/* فونت برای کدها و متن‌های تک‌فاصله */
code, 
pre, 
kbd,
samp {
    font-family: 'Courier New', 'Consolas', monospace;
    direction: ltr;
}

/* کلاس‌های کمکی برای وزن فونت */
.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* ========== بهینه‌سازی رندرینگ فونت ========== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}