/*
 * Ravi Pro 2.5 - Reza Bakhtiarifard / fontiran.com (commercial license)
 * نسخه استاندارد (اعداد لاتین).
 *
 * خانواده "Ravi" دقیقاً با همین نام تعریف شده، چون تنظیمات Astra، CSS سفارشی،
 * Elementor و Digits از قبل همین نام را صدا می‌زنند.
 *
 *   مرورگر مدرن (پشتیبانی از variable font): یک فایل برای همه وزن‌ها ۱۰۰ تا ۹۵۰
 *   مرورگر قدیمی: یک فایل جدا برای هر وزن
 *
 * دو بلوک @supports متضاد هستند، پس هر مرورگر فقط یکی را می‌بیند و فایل تکراری دانلود نمی‌کند.
 */

@supports (font-variation-settings: normal) {

	@font-face {
		font-family: 'Ravi';
		font-style: normal;
		font-weight: 100 950;
		font-display: swap;
		src: url('Ravi-VF.woff2') format('woff2'),
		     url('Ravi-VF.woff') format('woff');
	}
}

@supports not (font-variation-settings: normal) {

	@font-face {
		font-family: 'Ravi';
		font-style: normal;
		font-weight: 100;
		font-display: swap;
		src: url('static/Ravi-Thin.woff2') format('woff2'),
		     url('static/Ravi-Thin.woff') format('woff');
	}

	@font-face {
		font-family: 'Ravi';
		font-style: normal;
		font-weight: 300;
		font-display: swap;
		src: url('static/Ravi-Light.woff2') format('woff2'),
		     url('static/Ravi-Light.woff') format('woff');
	}

	@font-face {
		font-family: 'Ravi';
		font-style: normal;
		font-weight: 400;
		font-display: swap;
		src: url('static/Ravi-Regular.woff2') format('woff2'),
		     url('static/Ravi-Regular.woff') format('woff');
	}

	@font-face {
		font-family: 'Ravi';
		font-style: normal;
		font-weight: 500;
		font-display: swap;
		src: url('static/Ravi-Medium.woff2') format('woff2'),
		     url('static/Ravi-Medium.woff') format('woff');
	}

	@font-face {
		font-family: 'Ravi';
		font-style: normal;
		font-weight: 600;
		font-display: swap;
		src: url('static/Ravi-SemiBold.woff2') format('woff2'),
		     url('static/Ravi-SemiBold.woff') format('woff');
	}

	@font-face {
		font-family: 'Ravi';
		font-style: normal;
		font-weight: 700;
		font-display: swap;
		src: url('static/Ravi-Bold.woff2') format('woff2'),
		     url('static/Ravi-Bold.woff') format('woff');
	}

	@font-face {
		font-family: 'Ravi';
		font-style: normal;
		font-weight: 900;
		font-display: swap;
		src: url('static/Ravi-Black.woff2') format('woff2'),
		     url('static/Ravi-Black.woff') format('woff');
	}

	@font-face {
		font-family: 'Ravi';
		font-style: normal;
		font-weight: 950;
		font-display: swap;
		src: url('static/Ravi-ExtraBlack.woff2') format('woff2'),
		     url('static/Ravi-ExtraBlack.woff') format('woff');
	}
}

/* ---------- اعمال روی بخش عمومی سایت (پیشخوان وردپرس این فایل را لود نمی‌کند) ---------- */

body,
button,
input,
select,
optgroup,
textarea,
h1, h2, h3, h4, h5, h6,
.ast-button,
.ast-custom-button,
.button,
.woocommerce .button {
	font-family: 'Ravi', Tahoma, sans-serif;
}

/*
 * فرم‌های ورود Digits فونت خودشان را با CSS درون‌خطی تحمیل می‌کنند.
 * این قانون راوی را مستقل از گزینه‌ی فونت تنظیمات Digits ثابت نگه می‌دارد.
 */
.digits_secure_modal_box,
.digits_ui,
.digits_secure_modal_box *,
.digits_ui *,
.digits_font,
.dig_ma-box,
.dig_ma-box * {
	font-family: 'Ravi', Tahoma, sans-serif !important;
}
