/* YekanBakh Font Definitions */

/* Thin (200) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakh-Thin.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

/* Light (300) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakh-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

/* Regular (400) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakh-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

/* SemiBold (500) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakh-SemiBold.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

/* Bold (600) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakh-Bold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

/* ExtraBold (700) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakh-ExtraBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

/* Black (800) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakh-Black.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

/* ExtraBlack (900) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakh-ExtraBlack.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

/* Yekan Custom Font Definitions (keeping for backward compatibility) */

@font-face {
    font-family: 'Yekan';
    src: url('../fonts/Yekan-Font-3.0/Yekan.eot');
    src: url('../fonts/Yekan-Font-3.0/Yekan.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Yekan-Font-3.0/Yekan.woff2') format('woff2'),
         url('../fonts/Yekan-Font-3.0/Yekan.woff') format('woff'),
         url('../fonts/Yekan-Font-3.0/Yekan.otf') format('opentype'),
         url('../fonts/Yekan-Font-3.0/Yekan.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

/* Numbers-only faces: use Sans-Serif Bold for digits (Latin 0-9, Persian ۰-۹) */
@font-face {
    font-family: 'Yekan';
    src: local('Sans-Serif Bold');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039, U+06F0-06F9;
}

@font-face {
    font-family: 'Yekan';
    src: local('Sans-Serif Bold');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039, U+06F0-06F9;
}

@font-face {
    font-family: 'Yekan';
    src: local('Sans-Serif Bold');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039, U+06F0-06F9;
}

/* Apply YekanBakh as the primary font family */
body,
html {
    font-family: 'YekanBakh', 'Yekan', 'Vazirmatn', 'Oswald', 'Teko', sans-serif !important;
}

/* Apply to all text elements */
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select,
.navbar, .navbar-brand, .navbar-nav,
.card, .card-title, .card-text,
.btn, .form-control, .form-label,
.theme-text-primary, .theme-text-secondary, .theme-text-muted {
    font-family: 'YekanBakh', 'Yekan', 'Vazirmatn', 'Oswald', 'Teko', sans-serif !important;
}

/* Specific font weights for different elements */
h1, h2, h3 {
    font-weight: 600; /* Bold weight for main headings */
}

h4, h5, h6 {
    font-weight: 500; /* SemiBold weight for sub-headings */
}

/* Body text - regular weight */


.navbar-brand {
    font-weight: 600 !important; /* Bold weight for brand/logo */
}

/* Navbar navigation items - ensure bold weight */
.fixed.top-0 a,
.fixed.top-0 button,
.fixed.top-0 span,
[dir="rtl"].fixed.top-0 a,
[dir="rtl"].fixed.top-0 button,
[dir="rtl"].fixed.top-0 span,
#mobile-menu a,
#mobile-menu button,
#mobile-menu span {
    font-weight: 600 !important; /* Bold for navbar items */
}

.btn {
    font-weight: 400; /* Regular weight for buttons */
}

/* Light weight for specific elements if needed */
.font-light {
    font-weight: 300 !important;
}

/* Heavy weight for specific elements if needed */
.font-heavy {
    font-weight: 700 !important;
}

/* Bold weight for specific elements if needed */
.font-bold {
    font-weight: 600 !important;
}

/* Ensure proper text rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* RTL Support for Persian/Arabic text */
[dir="rtl"] {
    font-family: 'YekanBakh', 'Yekan', 'Vazirmatn', 'Oswald', 'Teko', sans-serif !important;
}

/* Override any existing font-family declarations */
.font-oswald,
.font-teko,
.font-vazirmatn {
    font-family: 'YekanBakh', 'Yekan', 'Vazirmatn', 'Oswald', 'Teko', sans-serif !important;
}
