/**
 * Local Fonts - Manrope & Noto Serif Bengali Font Families
 * Self-hosted fonts for better performance
 */

/* Manrope Font Face Declarations */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope/static/Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope/static/Manrope-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope/static/Manrope-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope/static/Manrope-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope/static/Manrope-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope/static/Manrope-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope/static/Manrope-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* Noto Serif Bengali Font Face Declarations */
@font-face {
  font-family: 'Noto Serif Bengali';
  src: url('../fonts/Noto_Serif_Bengali/NotoSerifBengali-Regular.ttf')
    format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}

@font-face {
  font-family: 'Noto Serif Bengali';
  src: url('../fonts/Noto_Serif_Bengali/NotoSerifBengali-Medium.ttf')
    format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}

@font-face {
  font-family: 'Noto Serif Bengali';
  src: url('../fonts/Noto_Serif_Bengali/NotoSerifBengali-SemiBold.ttf')
    format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}

@font-face {
  font-family: 'Noto Serif Bengali';
  src: url('../fonts/Noto_Serif_Bengali/NotoSerifBengali-Bold.ttf')
    format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}

@font-face {
  font-family: 'Noto Serif Bengali';
  src: url('../fonts/Noto_Serif_Bengali/NotoSerifBengali-Light.ttf')
    format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}

@font-face {
  font-family: 'Noto Serif Bengali';
  src: url('../fonts/Noto_Serif_Bengali/NotoSerifBengali-ExtraLight.ttf')
    format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}

/* Font Utility Classes */
.font-manrope {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
}

/* Noto Serif Bengali Font Utility */
.font-bengali {
  font-family: 'Noto Serif Bengali', 'Noto Serif', 'Times New Roman', serif;
}

/* Text Classes for Gold Bangladesh Theme */
.text-medium {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
}

.heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}

.paragraph {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Bengali Text Classes */
.text-bengali {
  font-family: 'Noto Serif Bengali', 'Noto Serif', 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.6;
}

.heading-bengali {
  font-family: 'Noto Serif Bengali', 'Noto Serif', 'Times New Roman', serif;
  font-weight: 700;
}

/* Language Specific Styles */
html[lang='bn-BD'] {
  font-family: 'Noto Serif Bengali', 'Noto Serif', 'Times New Roman', serif;
}

/* Mixed Language Support */
.bengali-text {
  font-family: 'Noto Serif Bengali', 'Noto Serif', 'Times New Roman', serif;
}

.english-text {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
}

/* Fallback for when fonts are loading */
.font-manrope {
  font-display: swap;
}

/* Preload critical font weights */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope/static/Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
