/**
 * Greta Arabic Font Family - Complete Font Definitions
 * Includes all 10 weights of Greta Arabic + 13 weights of Greta Text Arabic
 * Optimized for bilingual (English/Arabic) content with full weight range
 */

/* ============================================
   GRETA ARABIC - DISPLAY FONT (10 weights)
   ============================================ */

@font-face {
    font-family: 'Greta Arabic';
    src: url('GretaArabicAR+LT-Hairline.otf') format('opentype');
    font-weight: 50;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Arabic';
    src: url('GretaArabicAR+LT-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Arabic';
    src: url('GretaArabicAR+LT-ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Arabic';
    src: url('GretaArabicAR+LT-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Arabic';
    src: url('GretaArabicAR+LT-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Arabic';
    src: url('GretaArabicAR+LT-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Arabic';
    src: url('GretaArabicAR+LT-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Arabic';
    src: url('GretaArabicAR+LT-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Arabic';
    src: url('GretaArabicAR+LT-Heavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Arabic';
    src: url('GretaArabicAR+LT-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   GRETA TEXT ARABIC - BODY FONT (13 weights)
   For optimal readability in body text
   ============================================ */

@font-face {
    font-family: 'Greta Text Arabic';
    src: url('GretaTextArabicAR+LT-LightMinus.otf') format('opentype');
    font-weight: 250;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Text Arabic';
    src: url('GretaTextArabicAR+LT-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Text Arabic';
    src: url('GretaTextArabicAR+LT-LightPlus.otf') format('opentype');
    font-weight: 350;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Text Arabic';
    src: url('GretaTextArabicAR+LT-RegularMinus.otf') format('opentype');
    font-weight: 375;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Text Arabic';
    src: url('GretaTextArabicAR+LT-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Text Arabic';
    src: url('GretaTextArabicAR+LT-RegularPlus.otf') format('opentype');
    font-weight: 425;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Text Arabic';
    src: url('GretaTextArabicAR+LT-MediumMinus.otf') format('opentype');
    font-weight: 475;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Text Arabic';
    src: url('GretaTextArabicAR+LT-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Text Arabic';
    src: url('GretaTextArabicAR+LT-MediumPlus.otf') format('opentype');
    font-weight: 525;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Text Arabic';
    src: url('GretaTextArabicAR+LT-BoldMinus.otf') format('opentype');
    font-weight: 575;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Text Arabic';
    src: url('GretaTextArabicAR+LT-Bold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greta Text Arabic';
    src: url('GretaTextArabicAR+LT-BoldPlus.otf') format('opentype');
    font-weight: 650;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   GLOBAL APPLICATION
   ============================================ */

/* Apply Greta Text Arabic to body for optimal readability */
body,
html {
    font-family: 'Greta Text Arabic', 'Greta Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Use Greta Arabic for headings and display text */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Greta Arabic', 'Greta Text Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* Preserve icon fonts - CRITICAL */
i,
[class*="ri-"],
[class*="fa-"] {
    font-family: 'remixicon', 'Font Awesome 5 Free', 'FontAwesome' !important;
}
