/* ==========================================================================
   Typography (Anjoman Premium Font - TTF Format)
   ========================================================================== */

@font-face {
  font-family: 'Anjoman';
  src: url('../fonts/anjoman/Anjoman-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Anjoman';
  src: url('../fonts/anjoman/Anjoman-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}



@font-face {
  font-family: 'Anjoman';
  src: url('../fonts/anjoman/Anjoman-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Base Text Styles */
body {
  font-family: 'Anjoman', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--clr-text-secondary);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--clr-text-primary);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
  overflow-wrap: break-word;
  /* در فونت انجمن تیترها نیاز به کاهش بسیار ظریف فاصله حروف دارند تا لوکس‌تر شوند */
  letter-spacing: -0.02em; 
}

h1, .text-display { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

/* Paragraphs & Small text */
p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

small, .text-caption {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

.text-lead {
  font-size: var(--fs-lg);
  color: var(--clr-text-secondary);
  font-weight: var(--fw-light);
}

/* Helpers */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-primary { color: var(--clr-text-primary); }
.text-secondary { color: var(--clr-text-secondary); }
.text-muted { color: var(--clr-text-muted); }
.font-light { font-weight: var(--fw-light); }
.font-medium { font-weight: var(--fw-medium); }
.font-bold { font-weight: var(--fw-bold); }

/* اعمال اجباری فونت قالب روی دکمه‌ها، فرم‌ها و لینک‌ها */
button, 
input, 
textarea, 
select,
.btn,
.badge,
.nav-link {
  font-family: var(--font-family-primary) !important;
}