/* ========================================
   فونت Peyda - نسخه وب
======================================== */

/* Light - 300 */
@font-face {
    font-family: 'Peyda';
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-Light.eot');
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PeydaWeb/woff2/PeydaWeb-Light.woff2') format('woff2'),
         url('../fonts/PeydaWeb/woff/PeydaWeb-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Regular - 400 */
@font-face {
    font-family: 'Peyda';
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-Regular.eot');
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PeydaWeb/woff2/PeydaWeb-Regular.woff2') format('woff2'),
         url('../fonts/PeydaWeb/woff/PeydaWeb-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Medium - 500 */
@font-face {
    font-family: 'Peyda';
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-Medium.eot');
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-Medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PeydaWeb/woff2/PeydaWeb-Medium.woff2') format('woff2'),
         url('../fonts/PeydaWeb/woff/PeydaWeb-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* SemiBold - 600 */
@font-face {
    font-family: 'Peyda';
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-SemiBold.eot');
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-SemiBold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PeydaWeb/woff2/PeydaWeb-SemiBold.woff2') format('woff2'),
         url('../fonts/PeydaWeb/woff/PeydaWeb-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bold - 700 */
@font-face {
    font-family: 'Peyda';
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-Bold.eot');
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PeydaWeb/woff2/PeydaWeb-Bold.woff2') format('woff2'),
         url('../fonts/PeydaWeb/woff/PeydaWeb-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ExtraBold - 800 */
@font-face {
    font-family: 'Peyda';
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-ExtraBold.eot');
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-ExtraBold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PeydaWeb/woff2/PeydaWeb-ExtraBold.woff2') format('woff2'),
         url('../fonts/PeydaWeb/woff/PeydaWeb-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Black - 900 */
@font-face {
    font-family: 'Peyda';
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-Black.eot');
    src: url('../fonts/PeydaWeb/eot/PeydaWeb-Black.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PeydaWeb/woff2/PeydaWeb-Black.woff2') format('woff2'),
         url('../fonts/PeydaWeb/woff/PeydaWeb-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   اعمال فونت به کل سایت
======================================== */

html {
    font-family: 'Peyda', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: 'Peyda', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
    font-family: inherit;
}

/* اطمینان از اعمال فونت به المان‌های خاص */
h1, h2, h3, h4, h5, h6,
button, input, select, textarea,
.btn, a, p, span, div,
.text-sm, .text-base, .text-lg, .text-xl {
    font-family: 'Peyda', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* بهبود رندرینگ فونت */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* تنظیمات ویژه برای فونت فارسی */
body {
    direction: rtl;
    text-align: right;
}