/* SomarFonts CSS - Font Face Definitions */

/* English SomarFonts */
@font-face {
    font-family: 'Somar';
    src: url('../SomarFonts/English Font/Somar-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Somar';
    src: url('../SomarFonts/English Font/Somar-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Somar';
    src: url('../SomarFonts/English Font/Somar-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Somar';
    src: url('../SomarFonts/English Font/Somar-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Arabic SomarFonts */
@font-face {
    font-family: 'Somar Arabic';
    src: url('../SomarFonts/Arabic Font/Somar-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E80-2EFF;
}

@font-face {
    font-family: 'Somar Arabic';
    src: url('../SomarFonts/Arabic Font/Somar-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E80-2EFF;
}

@font-face {
    font-family: 'Somar Arabic';
    src: url('../SomarFonts/Arabic Font/Somar-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E80-2EFF;
}

@font-face {
    font-family: 'Somar Arabic';
    src: url('../SomarFonts/Arabic Font/Somar-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E80-2EFF;
}

/* Font Stack Variables */
:root {
    --somar-font-stack: 'Somar', 'Tajawal', sans-serif, arial;
    --somar-arabic-font-stack: 'Somar Arabic', 'Somar', 'Noto Kufi Arabic', 'Tajawal', sans-serif, arial;
}

/* Main Font Application - Only for Public Site */
.somar-fonts * {
    font-family: var(--somar-font-stack) !important;
}

/* Arabic Text Specific Styling */
.somar-fonts [dir="rtl"] *,
.somar-fonts .arabic-text,
.somar-fonts :lang(ar) {
    font-family: var(--somar-arabic-font-stack) !important;
}

/* Font Weight Classes for Easy Usage */
.somar-light {
    font-weight: 300 !important;
}

.somar-regular {
    font-weight: 400 !important;
}

.somar-semibold {
    font-weight: 600 !important;
}

.somar-extrabold {
    font-weight: 800 !important;
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    .somar-fonts h1 {
        font-size: 1.8rem;
    }
    
    .somar-fonts h2 {
        font-size: 1.5rem;
    }
    
    .somar-fonts h3 {
        font-size: 1.3rem;
    }
}

/* Ensure smooth font rendering */
.somar-fonts * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.fa, .far, .fab {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: var(--fa-style, 900);
}
