/*
 * Local Arabic Fonts - تسريع التحميل بدون CDN
 * يستخدم الأرقام الإنجليزية (0-9) بدلاً من العربية (٠-٩)
 */

/* System font for English numerals - loaded first */
@font-face {
    font-family: 'EnglishNumerals';
    src: local('Segoe UI'), local('Arial'), local('Helvetica'), local('-apple-system');
    unicode-range: U+0030-0039;
    /* Only 0-9 */
}

/* Arabic Font Family - without numerals range */
@font-face {
    font-family: 'LocalArabic';
    src: url('../fonts/Arabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+0041-005A, U+0061-007A;
    /* Arabic + Latin letters only */
}

@font-face {
    font-family: 'LocalArabic';
    src: url('../fonts/Arabic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+0041-005A, U+0061-007A;
}

@font-face {
    font-family: 'LocalArabic';
    src: url('../fonts/Arabic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+0041-005A, U+0061-007A;
}

/* GE SS Two Font - Alternative */
@font-face {
    font-family: 'GE SS Two';
    src: url('../fonts/GE SS Two Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+0041-005A, U+0061-007A;
}

@font-face {
    font-family: 'GE SS Two';
    src: url('../fonts/GE SS Two Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+0041-005A, U+0061-007A;
}

/* Apply to root - EnglishNumerals first for numbers */
:root {
    --local-font-family: 'EnglishNumerals', 'LocalArabic', 'GE SS Two', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* Force English numerals (Western Arabic: 0-9) instead of Arabic numerals (٠-٩) */
* {
    font-variant-numeric: lining-nums tabular-nums !important;
    font-feature-settings: "tnum" on, "lnum" on !important;
}

/* All elements with English numerals first */
body,
html,
input,
textarea,
select,
table,
th,
td,
span,
p,
div,
label,
button,
a,
h1,
h2,
h3,
h4,
h5,
h6,
.number,
[type="number"],
[type="tel"],
[type="text"],
[type="date"],
[type="time"],
[type="datetime-local"],
[type="password"] {
    font-family: 'EnglishNumerals', 'LocalArabic', 'GE SS Two', -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
    font-variant-numeric: lining-nums tabular-nums !important;
    font-feature-settings: "tnum" on, "lnum" on !important;
}