/*
 * Best Lift — fonts.css
 * Purpose: Self-hosted fonts (assets/fonts/). Load AFTER main.css / forms.css,
 *          BEFORE animations.css.
 *
 * Ekta family "BL Sans" e duita font mix kora ase (unicode-range diye):
 *   - English / Latin  -> Open Sans   (assets/fonts/English_font)
 *   - Bangla (U+0980-09FF) -> Li Ador Noirrit (assets/fonts/Bangla_font)
 * Tai English page e Bangla word, ba Bangla page e English word -- dutoi
 * automatic shothik font e dekhabe. Alada kore lang-bn rule lagbe na.
 */

/* ---------------- English: Open Sans ---------------- */
@font-face {
    font-family: 'BL Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/English_font/OpenSans-Light.ttf') format('truetype');
    unicode-range: U+0000-097F, U+09FF-FFFF;
}
@font-face {
    font-family: 'BL Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/English_font/OpenSans-Regular.ttf') format('truetype');
    unicode-range: U+0000-097F, U+09FF-FFFF;
}
@font-face {
    font-family: 'BL Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/English_font/OpenSans-Medium.ttf') format('truetype');
    unicode-range: U+0000-097F, U+09FF-FFFF;
}
@font-face {
    font-family: 'BL Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/English_font/OpenSans-SemiBold.ttf') format('truetype');
    unicode-range: U+0000-097F, U+09FF-FFFF;
}
@font-face {
    font-family: 'BL Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/English_font/OpenSans-Bold.ttf') format('truetype');
    unicode-range: U+0000-097F, U+09FF-FFFF;
}
@font-face {
    font-family: 'BL Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/English_font/OpenSans-ExtraBold.ttf') format('truetype');
    unicode-range: U+0000-097F, U+09FF-FFFF;
}
@font-face {
    font-family: 'BL Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/English_font/OpenSans-Italic.ttf') format('truetype');
    unicode-range: U+0000-097F, U+09FF-FFFF;
}

/* ---------------- Bangla: Li Ador Noirrit ----------------
 * Li Ador Noirrit's glyphs are drawn smaller than Open Sans at the same
 * font-size, so Bangla text looked ~15-20% smaller than English next to it
 * (nav, buttons, headings, body). size-adjust scales ONLY these Bangla faces,
 * so English stays untouched and no per-element font-size rules are needed.
 * Tune this one number if needed: 112% = a bit smaller, 125% = a bit bigger
 * (change it in every Bangla @font-face below). */
@font-face {
    font-family: 'BL Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/Bangla_font/Li Ador Noirrit Light.ttf') format('truetype');
    unicode-range: U+0980-09FF;
    size-adjust: 118%;
}
@font-face {
    font-family: 'BL Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Bangla_font/Li Ador Noirrit Unicode.ttf') format('truetype'),
         url('../fonts/Bangla_font/kalpurush.ttf') format('truetype');
    unicode-range: U+0980-09FF;
    size-adjust: 118%;
}
@font-face {
    font-family: 'BL Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Bangla_font/Li Ador Noirrit Unicode.ttf') format('truetype'),
         url('../fonts/Bangla_font/kalpurush.ttf') format('truetype');
    unicode-range: U+0980-09FF;
    size-adjust: 118%;
}
@font-face {
    font-family: 'BL Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Bangla_font/Li Ador Noirrit SemiBold.ttf') format('truetype');
    unicode-range: U+0980-09FF;
    size-adjust: 118%;
}
@font-face {
    font-family: 'BL Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Bangla_font/Li Ador Noirrit Bold.ttf') format('truetype');
    unicode-range: U+0980-09FF;
    size-adjust: 118%;
}
@font-face {
    font-family: 'BL Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/Bangla_font/Li Ador Noirrit Bold.ttf') format('truetype');
    unicode-range: U+0980-09FF;
    size-adjust: 118%;
}
@font-face {
    font-family: 'BL Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Bangla_font/Li Ador Noirrit Unicode Italic.ttf') format('truetype');
    unicode-range: U+0980-09FF;
    size-adjust: 118%;
}

/* ---------------- Apply site-wide ---------------- */
:root {
    --font-family-base: 'BL Sans', 'Open Sans', 'Nirmala UI', system-ui, -apple-system, sans-serif;
    --font-family-nav: var(--font-family-base);
    --font-family-heading: var(--font-family-base);
    /* main.css v44 sets this to Noto Sans Bengali, and body.lang-bn,
       .lang-switch__opt, .hero .btn etc. all read it -> point it at BL Sans */
    --font-family-bn: var(--font-family-base);
}

html,
body,
body.lang-bn,
button,
input,
select,
textarea {
    font-family: var(--font-family-base);
}

/* main.css v37 footer headings use Georgia serif -> use the site font */
.site-footer h4 {
    font-family: var(--font-family-base);
}

/* Admin panel uses the same variable, keeps working with the new fonts */

h1, h2, h3, h4, h5, h6,
.site-nav__list li a,
.topbar__msg,
.topbar__links a,
.site-header__cta,
.btn,
.bl-lang {
    font-family: var(--font-family-base);
}

/* animations.css v46 sets Noto Sans Bengali on the BN switch label - override */
.bl-lang__opt--bn {
    font-family: var(--font-family-base);
}

/* Bangla text needs a little more line height so matras do not clip */
body.lang-bn {
    line-height: 1.7;
}
body.lang-bn h1,
body.lang-bn h2,
body.lang-bn h3 {
    line-height: 1.35;
}