/* Font Fallback Styles for korasetsherot Theme */

/* Root font family declarations with proper fallbacks */
:root {
    --primary-font: 'Somar', 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --icon-font: 'yfont', 'Font Awesome 5 Free', 'Font Awesome 5 Pro', 'FontAwesome', sans-serif;
}

/* Main body font with Arabic support fallbacks */
body {
    font-family: var(--primary-font) !important;
}

/* Update all Somar font references */
.banner-headline,
.headline-title,
.project-title,
.area-title,
.footer-headline,
h1, h2, h3, h4, h5, h6,
.headline,
.page-headline,
.section-title {
    font-family: var(--primary-font) !important;
}

/* Icon font fallbacks */
[class^="icon-"]:before,
[class*=" icon-"]:before,
.yfont {
    font-family: var(--icon-font) !important;
}

/* Specific icon fallbacks for common icons */
.icon-phone:before { content: "\1F4DE"; }
.icon-whatsapp:before { content: "\1F4F1"; }
.icon-videocam:before { content: "\1F4F9"; }
.icon-search:before { content: "\1F50D"; }
.icon-mail:before { content: "\2709"; }
.icon-up-open:before { content: "\2191"; }
.icon-cancel:before { content: "\2716"; }

/* Ensure Arabic text displays correctly */
.arabic-text,
[lang="ar"],
[dir="rtl"] {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Tahoma', 'Arial Unicode MS', sans-serif !important;
}

/* Performance improvements */
* {
    font-display: swap;
}

/* Fallback for missing font weights */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
