/* ============================================================
   Naveid Arabic – headings
   ============================================================ */
@font-face {
  font-family: 'Naveid Arabic';
  src: url('/fonts-new/naveid-arabic-font/alfont_com_NaveidArabicDEMO-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Naveid Arabic';
  src: url('/fonts/Fonts/NaveidArabicDEMO-Bold-BF67233537093e8.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Effra – body / UI
   Light 300 | Regular 400 | Medium 500 | Bold 700
   ============================================================ */
@font-face {
  font-family: 'Effra';
  src: url('/fonts-new/Effra%20font/fonts/fonnts.com-Effra_Arbc_Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Effra';
  src: url('/fonts-new/Effra%20font/fonts/fonnts.com-Effra_CC_Arbc_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Effra';
  src: url('/fonts-new/Effra%20font/fonts/fonnts.com-Effra_Arbc_Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Effra';
  src: url('/fonts-new/Effra%20font/fonts/fonnts.com-Effra_CC_Arbc_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Naveid --- */
.font-naveid,
.font-naveid-medium {
  font-family: 'Naveid Arabic', serif;
  font-weight: 500;
}

.font-naveid-semibold {
  font-family: 'Naveid Arabic', serif;
  font-weight: 600;
}

h1.font-naveid-medium,
h2.font-naveid-medium,
h3.font-naveid-medium,
p.font-naveid-medium,
h1.font-naveid-semibold,
h2.font-naveid-semibold,
h3.font-naveid-semibold {
  font-family: 'Naveid Arabic', serif;
}

/* --- Effra --- */
.font-effra {
  font-family: 'Effra', system-ui, sans-serif;
}

.font-effra-light {
  font-family: 'Effra', system-ui, sans-serif;
  font-weight: 300;
}

/* Arabic Effra Light reads much thinner/smaller than Latin at the same size */
html[dir="rtl"] .font-effra-light {
  font-weight: 400;
}

.font-effra-regular {
  font-family: 'Effra', system-ui, sans-serif;
  font-weight: 400;
}

.font-effra-medium {
  font-family: 'Effra', system-ui, sans-serif;
  font-weight: 500;
}

.font-effra-bold {
  font-family: 'Effra', system-ui, sans-serif;
  font-weight: 700;
}

/* Bootstrap .btn sets font-weight — use combined selectors on buttons */
.btn.font-effra-light,
button.font-effra-light {
  font-family: 'Effra', system-ui, sans-serif;
  font-weight: 300;
}

html[dir="rtl"] .btn.font-effra-light,
html[dir="rtl"] button.font-effra-light,
html[dir="rtl"] a.font-effra-light {
  font-weight: 400;
}

.btn.font-effra-regular,
button.font-effra-regular {
  font-family: 'Effra', system-ui, sans-serif;
  font-weight: 400;
}

.btn.font-effra-medium,
button.font-effra-medium {
  font-family: 'Effra', system-ui, sans-serif;
  font-weight: 500;
}

.btn.font-effra-bold,
button.font-effra-bold {
  font-family: 'Effra', system-ui, sans-serif;
  font-weight: 700;
}

a.font-effra-light {
  font-family: 'Effra', system-ui, sans-serif;
  font-weight: 300;
}

/* Legacy aliases */
.text-regular {
  font-family: 'Effra', system-ui, sans-serif;
  font-weight: 400;
}

.text-medium {
  font-family: 'Effra', system-ui, sans-serif;
  font-weight: 500;
}

.text-bold {
  font-family: 'Effra', system-ui, sans-serif;
  font-weight: 700;
}

/* ============================================================
   Arabic optical size helpers
   Arabic glyphs read smaller than Latin at the same px size.
   These classes only apply under dir="rtl" — safe to leave in
   the markup for both locales.

   Usage:
     <h2 class="font-naveid-medium ar-heading">...</h2>
     <p class="font-effra-light ar-text">...</p>
     <div class="ar-text">{!! paragraphs !!}</div>
   ============================================================ */
html[dir="rtl"] .ar-heading {
  font-size: 1.15em;
  line-height: 1.35;
}

html[dir="rtl"] .ar-heading-lg {
  font-size: 1.2em;
  line-height: 1.35;
}

html[dir="rtl"] .ar-text {
  font-size: 1.1em;
  line-height: 1.85;
}

html[dir="rtl"] .ar-text-sm {
  font-size: 1.05em;
  line-height: 1.75;
}

html[dir="rtl"] .ar-text-lg {
  font-size: 1.15em;
  line-height: 1.85;
}
