/**
*
*	Name:			IRANSansX Fonts
*	Version:			3
*	Author:			Moslem Ebrahimi (moslemebrahimi.com)
*	Created on:		Apr 22, 2021
*	Updated on:		Jul 12, 2023
*	Website:			http://fontiran.com
*	Copyright:		Commercial/Proprietary Software
--------------------------------------------------------------------------------------
فونتایران سنس Xا یک نرم افزار مالکیتی محسوب می شود. جهت آگاهی از قوانین استفاده از این فونت ها لطفا به وب سایت (فونت ایران دات کام) مراجعه نمایید
--------------------------------------------------------------------------------------
IRANSansX fonts are considered a proprietary software. To gain information about the laws regarding the use of these fonts, please visit www.fontiran.com 
--------------------------------------------------------------------------------------
This set of fonts are used in this project under the license: (.....)
------------------------------------------------------------------------------------- fonts/-
*	
**/

/* Variable font for modern browsers (primary) */
@font-face {
    font-family: 'Source Sans Pro';
    src: url('iransans-fonts/IRANSansXV.woff2') format('woff2-variations'),
        url('iransans-fonts/IRANSansXV.woff') format('woff-variations'),
        url('iransans-fonts/IRANSansXV.woff2') format('woff2'),
        url('iransans-fonts/IRANSansXV.woff') format('woff');
    font-weight: 100 1000;
    font-display: fallback;
}

/* Static fonts as fallback for older browsers */
@font-face {
    font-family: 'Source Sans Pro Fallback';
    src: url('iransans-fonts/staticfonts/IRANSansX-Regular.woff') format('woff');
    font-weight: 400;
    font-display: fallback;
}

@font-face {
    font-family: 'Source Sans Pro Fallback';
    src: url('iransans-fonts/staticfonts/IRANSansX-Bold.woff') format('woff');
    font-weight: 700;
    font-display: fallback;
}

/* Default settings for Persian numbers and optimal sharpness */
body,
html {
    font-family: 'Source Sans Pro', 'Source Sans Pro Fallback', 'Tahoma', sans-serif;
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

/* Variable font support detection and application */
@supports (font-variation-settings: normal) {

    body,
    html {
        font-variation-settings: "wght" 400, "DOTS" 4;
    }
}

/* Variable font settings - only for browsers that support it */
@supports (font-variation-settings: normal) {

    /* Override for different font weights */
    *[style*="font-weight: 100"],
    *[style*="font-weight: 200"],
    *[style*="font-weight: 300"] {
        font-variation-settings: "wght" 300, "DOTS" 4;
    }

    *[style*="font-weight: 400"],
    *[style*="font-weight: normal"] {
        font-variation-settings: "wght" 400, "DOTS" 4;
    }

    *[style*="font-weight: 500"] {
        font-variation-settings: "wght" 500, "DOTS" 4;
    }

    *[style*="font-weight: 600"] {
        font-variation-settings: "wght" 600, "DOTS" 4;
    }

    *[style*="font-weight: 700"],
    *[style*="font-weight: bold"] {
        font-variation-settings: "wght" 700, "DOTS" 4;
    }

    *[style*="font-weight: 800"] {
        font-variation-settings: "wght" 800, "DOTS" 4;
    }

    *[style*="font-weight: 900"] {
        font-variation-settings: "wght" 900, "DOTS" 4;
    }

    /* CSS class-based overrides */
    button,
    .btn,
    .button,
    .bold,
    .strong,
    b,
    strong,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-variation-settings: "wght" 700, "DOTS" 4;
    }

    .light,
    .fw-light,
    .font-weight-light {
        font-variation-settings: "wght" 300, "DOTS" 4;
    }

    .medium,
    .fw-medium,
    .font-weight-medium {
        font-variation-settings: "wght" 500, "DOTS" 4;
    }

    .semibold,
    .fw-semibold,
    .font-weight-semibold {
        font-variation-settings: "wght" 600, "DOTS" 4;
    }

    .black,
    .fw-black,
    .font-weight-black {
        font-variation-settings: "wght" 900, "DOTS" 4;
    }
}