/**
 * Mazadat Typography
 * Tajawal للعربية (self-host) + Inter للاتيني.
 */

/* ─── Tajawal (Arabic) ─────────────────────────────────────────── */
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../fonts/tajawal/tajawal-300.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/tajawal/tajawal-400.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/tajawal/tajawal-500.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/tajawal/tajawal-700.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('../fonts/tajawal/tajawal-800.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* ─── Inter (Latin) ────────────────────────────────────────────── */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/inter/inter-400.woff2') format('woff2');
	unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-218F;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/inter/inter-500.woff2') format('woff2');
	unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-218F;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/inter/inter-600.woff2') format('woff2');
	unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-218F;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/inter/inter-700.woff2') format('woff2');
	unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-218F;
}

/* ─── Base Typography ──────────────────────────────────────────── */
html {
	font-size: 17px; /* Simple-mode base */
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
	font-family: var(--mazadat-font-ar);
	font-weight: 400;
	color: var(--mazadat-text);
	line-height: 1.7;
	font-feature-settings: "kern" 1, "liga" 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* RTL = العربية */
[dir="rtl"] body {
	font-family: var(--mazadat-font-ar);
	letter-spacing: 0;
}

/* LTR = الإنجليزية */
[dir="ltr"] body {
	font-family: var(--mazadat-font-en);
	letter-spacing: -0.01em;
}

/* أرقام دائماً Inter للقراءة الواضحة */
.mazadat-num,
.amount,
.bid-value,
.price,
.woocommerce-Price-amount,
.woocommerce-price-suffix {
	font-family: var(--mazadat-font-num);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1, "lnum" 1;
}

/* العناوين */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	color: var(--mazadat-dark-green);
	line-height: 1.3;
	margin: 0 0 var(--mazadat-space-4);
}

h1 { font-size: var(--mazadat-fs-3xl); }
h2 { font-size: var(--mazadat-fs-2xl); }
h3 { font-size: var(--mazadat-fs-xl); }
h4 { font-size: var(--mazadat-fs-lg); }
h5 { font-size: var(--mazadat-fs-md); }
h6 { font-size: var(--mazadat-fs-sm); font-weight: 600; }

/* Links */
a {
	color: var(--mazadat-deep-green);
	text-decoration: none;
	transition: color var(--mazadat-transition);
}
a:hover {
	color: var(--mazadat-dark-gold);
}
