/*
  AvenirArabic font family loader and global enforcement
  - Loads Regular (400), Medium (500), Heavy (900)
  - Supports EOT, WOFF2, WOFF for broad compatibility
  - Forces the entire site to use AvenirArabic with appropriate weights
*/

@font-face {
  font-family: 'AvenirArabic';
  src: url('../../fonts-collection/AvenirArabic-Regular.eot');
  src: url('../../fonts-collection/AvenirArabic-Regular.eot?#iefix') format('embedded-opentype'),
       url('../../fonts-collection/AvenirArabic-Regular.woff2') format('woff2'),
       url('../../fonts-collection/AvenirArabic-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AvenirArabic';
  src: url('../../fonts-collection/AvenirArabic-Medium.eot');
  src: url('../../fonts-collection/AvenirArabic-Medium.eot?#iefix') format('embedded-opentype'),
       url('../../fonts-collection/AvenirArabic-Medium.woff2') format('woff2'),
       url('../../fonts-collection/AvenirArabic-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AvenirArabic';
  src: url('../../fonts-collection/AvenirArabic-Heavy.eot');
  src: url('../../fonts-collection/AvenirArabic-Heavy.eot?#iefix') format('embedded-opentype'),
       url('../../fonts-collection/AvenirArabic-Heavy.woff2') format('woff2'),
       url('../../fonts-collection/AvenirArabic-Heavy.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* CSS variables for easy reuse */
:root {
  --app-font-family: 'AvenirArabic', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
  --app-font-weight-regular: 400;
  --app-font-weight-medium: 500;
  --app-font-weight-heavy: 900;
}

/* Base settings */
html {
  font-family: var(--app-font-family);
  font-weight: var(--app-font-weight-regular);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

/* Force AvenirArabic across the UI */
*, *::before, *::after {
  font-family: var(--app-font-family) !important;
}

/* Regular text elements */
body, p, span, div, li, dt, dd, blockquote, cite, label, legend, summary, small, figcaption, a,
table, td, th, ul, ol, dl, nav, section, article, aside, header, footer, main, details {
  font-weight: var(--app-font-weight-regular);
}

/* Headings and emphasis */
h1, h2, h3, strong, b, th {
  font-weight: var(--app-font-weight-heavy);
}

h4, h5, h6, button, input[type="button"], input[type="submit"], input[type="reset"], .btn {
  font-weight: var(--app-font-weight-medium);
}

/* Form controls */
button, input, select, textarea {
  font-family: var(--app-font-family) !important;
}

/* Placeholders */
::placeholder {
  font-family: var(--app-font-family);
}

/* Code-like elements: keep unified look as requested */
code, pre, kbd, samp {
  font-family: var(--app-font-family) !important;
}


