/**
 * Arabic Calligraphy Fonts - Local Self-Hosted
 * Fonts sourced from Google Fonts and hosted locally for:
 * - Better performance (no external requests)
 * - Offline capability  
 * - GDPR compliance (no third-party tracking)
 *
 * Calligraphy Style Mapping:
 *   Naskh   -> Amiri
 *   Ruqaa   -> Aref Ruqaa
 *   Thuluth -> DThuluth / AM Thulth (real thuluth fonts)
 *   Diwani  -> Diwany Thuluth (real diwani font)
 */

/* AMIRI (Naskh Style) */

@font-face {
    font-family: 'Amiri';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/arabic/amiri-regular-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: 'Amiri';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/arabic/amiri-regular-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+1D00-1DBF, U+1E00-1E9F;
}

@font-face {
    font-family: 'Amiri';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/arabic/amiri-regular-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F;
}

@font-face {
    font-family: 'Amiri';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/arabic/amiri-bold-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: 'Amiri';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/arabic/amiri-bold-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+1D00-1DBF, U+1E00-1E9F;
}

@font-face {
    font-family: 'Amiri';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/arabic/amiri-bold-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F;
}

/* AREF RUQAA (Ruqaa Style) */

@font-face {
    font-family: 'Aref Ruqaa';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/arabic/aref-ruqaa-regular-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: 'Aref Ruqaa';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/arabic/aref-ruqaa-regular-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+1D00-1DBF, U+1E00-1E9F;
}

@font-face {
    font-family: 'Aref Ruqaa';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/arabic/aref-ruqaa-regular-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F;
}

@font-face {
    font-family: 'Aref Ruqaa';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/arabic/aref-ruqaa-bold-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: 'Aref Ruqaa';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/arabic/aref-ruqaa-bold-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+1D00-1DBF, U+1E00-1E9F;
}

@font-face {
    font-family: 'Aref Ruqaa';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/arabic/aref-ruqaa-bold-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F;
}

/* DTHULUTH (Thuluth Style - Real Thuluth Font) */

@font-face {
    font-family: 'DThuluth';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/arabic/DTHULUTH-II-1.ttf') format('truetype');
}

@font-face {
    font-family: 'AM Thulth';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/arabic/AM_Thulth_Regular_0.1.ttf') format('truetype');
}

/* DIWANY THULUTH (Diwani Style - Real Diwani Font) */

@font-face {
    font-family: 'Diwany Thuluth';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/arabic/arbfonts-diwany-thuluth.ttf') format('truetype');
}

/* UTILITY CLASSES FOR CALLIGRAPHY STYLES */

.font-naskh,
.calligraphy-naskh {
    font-family: 'Amiri', serif;
    line-height: 2.2;
    font-feature-settings: 'liga' 1, 'calt' 1;
}

.font-ruqaa,
.calligraphy-ruqaa {
    font-family: 'Aref Ruqaa', serif;
    line-height: 2.0;
    font-feature-settings: 'liga' 1, 'calt' 1;
}

.font-thuluth,
.calligraphy-thuluth {
    font-family: 'DThuluth', 'AM Thulth', serif;
    line-height: 2.4;
    font-feature-settings: 'liga' 1, 'calt' 1;
}

.font-diwani,
.calligraphy-diwani {
    font-family: 'Diwany Thuluth', serif;
    line-height: 2.6;
    font-feature-settings: 'liga' 1, 'calt' 1;
}