/* ==========================================================================
   iSoft Team — Central typography configuration
   Change font families HERE, not in individual pages.

   Arabic:
     --font-ar-display : large H1 headings (STC Bold when installed/licensed)
     --font-ar-heading : H2/H3 headings and navigation (Tajawal)
     --font-ar-body    : normal paragraphs (existing Tahoma)
   English:
     --font-en-display / --font-en-heading / --font-en-body : Ubuntu

   STC Bold is not bundled with this site. If you have a properly licensed
   webfont, place it in assets/fonts/ and uncomment the URL in @font-face.
   Without it, large Arabic headings gracefully fall back to Tajawal ExtraBold.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&family=Ubuntu:wght@400;500;700&display=swap');

@font-face {
  font-family: 'STC-Site-Display';
  src: local('STC Bold'), local('STC-Bold');
  /* To enable a licensed self-hosted font, replace the src above with:
     src: local('STC Bold'), url('./fonts/STC-Bold.woff2') format('woff2');
  */
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  /* Arabic fonts: editable independently */
  --font-ar-display: 'STC-Site-Display', 'Tajawal', Tahoma, Arial, sans-serif;
  --font-ar-heading: 'Tajawal', Tahoma, Arial, sans-serif;
  --font-ar-body: Tahoma, Arial, sans-serif;

  /* English fonts: editable independently */
  --font-en-display: 'Ubuntu', Arial, sans-serif;
  --font-en-heading: 'Ubuntu', Arial, sans-serif;
  --font-en-body: 'Ubuntu', Arial, sans-serif;

  /* Shared typography tuning */
  --font-display-weight: 800;
  --font-heading-weight: 700;
  --font-body-weight: 400;
}

html[lang='ar'] {
  --font-display: var(--font-ar-display);
  --font-heading: var(--font-ar-heading);
  --font-body: var(--font-ar-body);
}

html[lang='en'] {
  --font-display: var(--font-en-display);
  --font-heading: var(--font-en-heading);
  --font-body: var(--font-en-body);
}

/* Apply typography by semantic role, regardless of the active page. */
body { font-family: var(--font-body); font-weight: var(--font-body-weight); }

h1, .type-display {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
}

h2, h3, h4, h5, h6,
.type-heading,
.navlinks, .toolbar, .button,
.eyebrow, .section-tag, .card-kicker,
.stage-meta, .stage-seq,
.footer-label {
  font-family: var(--font-heading);
}

h2, h3, h4, h5, h6, .type-heading {
  font-weight: var(--font-heading-weight);
}

p, li, figcaption, .type-body {
  font-family: var(--font-body);
}

/* English-only product typography and technical labels remain legible. */
html[lang='ar'] .ateaq-brand,
html[lang='ar'] .identity-card h3[dir='ltr'] {
  font-family: var(--font-en-heading);
}

/* Arabic STC headings may need slightly different tracking/leading. */
html[lang='ar'] h1 { letter-spacing: 0; line-height: 1.25; }
html[lang='en'] h1 { letter-spacing: -.02em; line-height: 1.14; }
