/* Import Cairo Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

/* Font Variables */
:root {
    --heading-font-family: 'Cairo', Arial, sans-serif;
    --body-font-family: 'Cairo', Arial, sans-serif;
}

/* Global Cairo Font Application */
* {
    font-family: 'Cairo', Arial, sans-serif !important;
}

body,
html,
h1, h2, h3, h4, h5, h6,
p, span, div, a, button,
.btn, .navbar, .nav-link,
.card, .card-title, .card-text,
.hero-title, .hero-description,
.section-title, .section-subtitle,
.feature-item, .stat-number, .stat-label,
.footer-widget, .cta-title, .cta-description {
    font-family: 'Cairo', Arial, sans-serif !important;
}

/* Font Weight Adjustments for better readability */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
}

.hero-title {
    font-weight: 700 !important;
}

.stat-number {
    font-weight: 700 !important;
}

.btn {
    font-weight: 500 !important;
}

.navbar-nav .nav-link {
    font-weight: 500 !important;
}

.footer-widget h5 {
    font-weight: 600 !important;
}

.navbar-brand {
    font-weight: 700 !important;
}

/* Language-specific optimizations */
html[lang="ar"] {
    font-family: 'Cairo', Arial, sans-serif;
}

html[lang="en"] {
    font-family: 'Cairo', Arial, sans-serif;
}

/* Improve text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
