/* Modern Professional Fonts - Self-Hosted */

/* Cairo Font for Arabic - Self-Hosted */
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/Cairo-Light.ttf') format('truetype');
}

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

@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/Cairo-SemiBold.ttf') format('truetype');
}

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

/* Global Font Settings */
* {
    font-family: inherit;
}

/* Arabic - Cairo Font (Priority) */
html[lang="ar"],
html[dir="rtl"],
html[lang="ar"] body,
html[dir="rtl"] body,
body[lang="ar"],
body[dir="rtl"],
[lang="ar"],
[dir="rtl"] {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

/* English - Modern Professional System Fonts */
html[lang="en"],
html[lang="en"] body,
body[lang="en"],
[lang="en"]:not([lang="ar"]):not([dir="rtl"]) {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif !important;
}

/* French - Modern Professional System Fonts */
html[lang="fr"],
html[lang="fr"] body,
body[lang="fr"],
[lang="fr"] {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Spanish - Modern Professional System Fonts */
html[lang="es"],
html[lang="es"] body,
body[lang="es"],
[lang="es"] {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Default Body Font (Fallback) */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* Headings - Inherit from parent */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
}

/* Arabic Headings - Cairo with proper weights */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif !important;
    font-weight: 600;
}

/* Code and Monospace - Universal */
code, pre, kbd, samp {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace !important;
}

/* Input and Form Elements */
input, textarea, select, button {
    font-family: inherit;
}

/* Navigation and UI Elements */
nav, header, footer {
    font-family: inherit;
}
