/* ----------------------------------------------------------------------------------------
* Custom Fonts for Dentaire Theme
* Font Family: GE-SS (Arabic-friendly)
* Author        : Awaiken
* Template Name : Dentaire - Dentist & Dental Clinic HTML Template
* File          : Fonts CSS File
* Version       : 1.0
* ---------------------------------------------------------------------------------------- */

/* GE-SS Light Font */
@font-face {
    font-family: 'GE-SS';
    src: url('../fonts/GE-SS-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* GE-SS Medium Font */
@font-face {
    font-family: 'GE-SS';
    src: url('../fonts/GE-SS-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* GE-SS Bold Font */
@font-face {
    font-family: 'GE-SS';
    src: url('../fonts/GE-SS-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Font Fallbacks */
@font-face {
    font-family: 'GE-SS';
    src: url('../fonts/GE-SS-Medium.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Font Weight Utilities */
.font-light {
    font-weight: 300 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-bold {
    font-weight: 700 !important;
}

/* Arabic Font Optimization */
html[lang="ar"] body {
    font-family: 'GE-SS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* English Font Fallback */
html[lang="en"] body {
    font-family: 'GE-SS', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* RTL Font Optimization */
html[dir="rtl"] body {
    font-family: 'GE-SS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* LTR Font Fallback */
html[dir="ltr"] body {
    font-family: 'GE-SS', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Font Performance Optimization */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arabic Text Optimization */
html[lang="ar"] {
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
}

/* Font Loading Optimization */
.font-loading {
    font-display: swap;
}

/* Custom Font Classes */
.ge-ss-light {
    font-family: 'GE-SS', sans-serif;
    font-weight: 300;
}

.ge-ss-medium {
    font-family: 'GE-SS', sans-serif;
    font-weight: 500;
}

.ge-ss-bold {
    font-family: 'GE-SS', sans-serif;
    font-weight: 700;
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    html[lang="ar"] body {
        font-size: 15px;
        line-height: 1.7;
    }
    
    html[lang="en"] body {
        font-size: 15px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    html[lang="ar"] body {
        font-size: 14px;
        line-height: 1.8;
    }
    
    html[lang="en"] body {
        font-size: 14px;
        line-height: 1.8;
    }
}
