/*
 * Jabio — Shared Styles
 * Loaded in every page. Handles:
 *   1. Vazirmatn Persian font (self-hosted in assets/fonts)
 *   2. RTL / FA mode overrides for ALL pages
 *   3. fa-text utility class
 */
/* Bebas Neue and Poppins: self-hosted Latin subsets (SIL OFL), so the site does not depend on Google Fonts */
@font-face{font-family:'Bebas Neue';font-weight:400;font-display:swap;src:url('fonts/BebasNeue-400.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-weight:300;font-display:swap;src:url('fonts/Poppins-300.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-weight:400;font-display:swap;src:url('fonts/Poppins-400.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-weight:500;font-display:swap;src:url('fonts/Poppins-500.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-weight:600;font-display:swap;src:url('fonts/Poppins-600.woff2') format('woff2')}
/* ── Vazirmatn: self-hosted in assets/fonts (SIL OFL, see Vazirmatn-OFL.txt).
   No CDN, so Persian text renders the same offline and wherever a CDN is blocked. */
@font-face{
  font-family: 'Vazirmatn';
  font-style:  normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Vazirmatn-Light.woff2') format('woff2');
}
@font-face{
  font-family: 'Vazirmatn';
  font-style:  normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
}
@font-face{
  font-family: 'Vazirmatn';
  font-style:  normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
}
@font-face{
  font-family: 'Vazirmatn';
  font-style:  normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
}
@font-face{
  font-family: 'Vazirmatn';
  font-style:  normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
}
@font-face{
  font-family: 'Vazirmatn';
  font-style:  normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
}
/* ── .fa-text utility ─────────────────────────────────────────────────── */
.fa-text{
  font-family: 'Vazirmatn', sans-serif;
}
/* ── [lang="fa"] global overrides ────────────────────────────────────────
   Applies to EVERY page that includes this stylesheet.
   - Sets Vazirmatn as the base font for the whole page
   - Forces RTL text direction on all elements
   - Overrides Bebas Neue headings with Vazirmatn (Bold weight looks good)
   - Restores -webkit-text-fill-color so gradient text clips work in FA mode
   - Adjusts letter-spacing (Bebas uses -2px+ which looks wrong on Arabic)
                                                                         */
[lang="fa"],
[lang="fa"] body{
  font-family: 'Vazirmatn', 'Poppins', system-ui, sans-serif !important;
  direction: rtl;
}
/* nav & UI text */
[lang="fa"] .nav-item,
[lang="fa"] .nav-logo-text,
[lang="fa"] .btn-primary,
[lang="fa"] .btn-ghost,
[lang="fa"] .btn-tonal,
[lang="fa"] .lang-btn{
  font-family: 'Vazirmatn', sans-serif !important;
  letter-spacing: 0 !important;
}
[lang="fa"] .section-title,
[lang="fa"] .page-title,
[lang="fa"] .about-title,
[lang="fa"] .contact-info-title,
[lang="fa"] .mp-hero-title,
[lang="fa"] h1,
[lang="fa"] h2,
[lang="fa"] h3{
  font-family: 'Vazirmatn', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;   /* negative tracking breaks Persian letter joins */
  line-height: 1.35 !important;
}
[lang="fa"] .nav-logo-text,
[lang="fa"] .stat-num,
[lang="fa"] .section-eyebrow,
[lang="fa"] .about-eyebrow,
[lang="fa"] .page-eyebrow,
[lang="fa"] .grad-text,
[lang="fa"] .service-card-link,
[lang="fa"] .footer-brand-name,
[lang="fa"] .footer-copy span{
  font-family: 'Vazirmatn', sans-serif !important;
  -webkit-text-fill-color: transparent !important;
}
/* stat numbers — keep gradient but Vazirmatn */
[lang="fa"] .stat-num,
[lang="fa"] .footer-brand-name{
  font-size: clamp(28px, 4vw, 48px) !important;
}
/* form labels and inputs */
[lang="fa"] input,
[lang="fa"] textarea,
[lang="fa"] select,
[lang="fa"] label,
[lang="fa"] .field-label,
[lang="fa"] .form-label,
[lang="fa"] .sidebar-title{
  font-family: 'Vazirmatn', sans-serif !important;
  direction: rtl;
  text-align: right;
}
[lang="fa"] .sidebar-header{
  direction: rtl;
}
/* badges & chips */
[lang="fa"] .dataset-badge,
[lang="fa"] .level-badge,
[lang="fa"] .learn-level-badge,
[lang="fa"] .mp-hero-chip{
  font-family: 'Vazirmatn', sans-serif !important;
  letter-spacing: 0 !important;
}
/* footer links */
[lang="fa"] .footer-link,
[lang="fa"] .footer-col-title,
[lang="fa"] .footer-brand-desc,
[lang="fa"] .footer-copy{
  font-family: 'Vazirmatn', sans-serif !important;
  direction: rtl;
}
/* about page */
[lang="fa"] .about-bio,
[lang="fa"] .about-skill,
[lang="fa"] .expertise-title,
[lang="fa"] .expertise-desc{
  font-family: 'Vazirmatn', sans-serif !important;
  line-height: 1.9 !important;  /* Persian needs more line-height */
}
[lang="fa"] .mp-hero-eyebrow,
[lang="fa"] .mp-hero-sub,
[lang="fa"] .section-sub,
[lang="fa"] .page-sub{
  font-family: 'Vazirmatn', sans-serif !important;
}
/* login page specifics */
[lang="fa"] .col h1,
[lang="fa"] .eyebrow,
[lang="fa"] .sub,
[lang="fa"] .prompt,
[lang="fa"] .copy,
[lang="fa"] .btn-link{
  font-family: 'Vazirmatn', sans-serif !important;
  letter-spacing: 0 !important;
}
/* ── Service/dataset cards in FA mode ─────────────────────────────── */
[lang="fa"] .service-card-title,
[lang="fa"] .service-card-desc,
[lang="fa"] .dataset-title,
[lang="fa"] .dataset-desc,
[lang="fa"] .learn-card-title,
[lang="fa"] .learn-card-desc,
[lang="fa"] .tutorial-title,
[lang="fa"] .tutorial-desc{
  font-family: 'Vazirmatn', sans-serif !important;
  line-height: 1.8 !important;
}
/* ── Reduce letter-spacing globally for Persian ──────────────────── */
[lang="fa"] *{
  letter-spacing: 0 !important;
}
/* Then re-apply needed tracking to headings (done above) */

/* ── Controls do not inherit the page font by default ─────────────── */
[lang="fa"] button,
[lang="fa"] input,
[lang="fa"] select,
[lang="fa"] textarea{
  font-family: 'Vazirmatn', sans-serif !important;
}
/* Persian letterforms run larger than Bebas Neue at the same size{ font-size: clamp(38px, 4.6vw, 66px); margin-bottom: 18px; }
