/* /menu/fonts/fonts.css
   Vazirmatn font family — variable + static weights
   Files expected in: /menu/fonts/
   If your filename with brackets (Vazirmatn[wght].woff2) doesn't load,
   try URL-encoding it as Vazirmatn%5Bwght%5D.woff2 in the src() URL.
*/

/* 1) Variable font (preferred when supported) */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/menu/fonts/Vazirmatn[wght].woff2') format('woff2');
  /* If that filename with brackets fails on your server, use:
     src: url('/menu/fonts/Vazirmatn%5Bwght%5D.woff2') format('woff2');
  */
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2) Static weights (fallbacks for older browsers) */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/menu/fonts/Vazirmatn-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/menu/fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/menu/fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/menu/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/menu/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/menu/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/menu/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/menu/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/menu/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* 3) Convenience: CSS variable + scoping for Persian pages */
:root {
  --font-vazirmatn: 'Vazirmatn', Tahoma, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Apply by default to pages that are Persian (fa) — adjust if you prefer global application */
html[lang^="fa"], html[lang="fa-IR"], body[lang^="fa"], body[lang="fa-IR"] {
  font-family: var(--font-vazirmatn);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* small helpers: ensure headings use heavier weight */
h1,h2,h3,h4,h5,h6,strong,b { font-weight: 700; }

/* optional utility class if you want to explicitly force Vazirmatn somewhere */
.vazirmatn { font-family: var(--font-vazirmatn) !important; }
