/* ==========================================================================
   Kheti Mantra - Offline Modern Fonts System
   Fonts: Urbanist (Latin/English/Numbers) + Noto Sans Devanagari / Mukta (Nepali)
   All files loaded 100% locally from the server (No external CDN required)
   ========================================================================== */

/* ── Urbanist (Modern Geometric Sans) ── */
@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist/Urbanist-Variable.woff2') format('woff2'),
         url('../fonts/urbanist/Urbanist-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist/static/Urbanist-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist/static/Urbanist-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist/static/Urbanist-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist/static/Urbanist-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist/static/Urbanist-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ── Noto Sans Devanagari (Premier Nepali / Devanagari Typography) ── */
@font-face {
    font-family: 'Noto Sans Devanagari';
    src: url('../fonts/noto-sans-devanagari/NotoSansDevanagari-Variable.woff2') format('woff2'),
         url('../fonts/noto-sans-devanagari/NotoSansDevanagari-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09, 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;
}

/* ── Mukta (Fallback Devanagari) ── */
@font-face {
    font-family: 'Mukta';
    src: url('../fonts/mukta/Mukta-Regular.woff2') format('woff2'),
         url('../fonts/mukta/Mukta-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mukta';
    src: url('../fonts/mukta/Mukta-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mukta';
    src: url('../fonts/mukta/Mukta-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mukta';
    src: url('../fonts/mukta/Mukta-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Global Typography Cascade ── */
:root {
    --font-family: 'Urbanist', 'Noto Sans Devanagari', 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    --font-urbanist: 'Urbanist', 'Noto Sans Devanagari', 'Mukta', sans-serif;
    --font-nepali: 'Noto Sans Devanagari', 'Mukta', 'Urbanist', sans-serif;
}

html,
body,
button,
input,
select,
textarea,
.form-control,
.form-select,
h1, h2, h3, h4, h5, h6,
p, a, span, li, label, dt, dd,
.btn, .badge, table, th, td,
.dropdown-menu, .nav-link, .card-title,
.modal-title, .alert {
    font-family: 'Urbanist', 'Noto Sans Devanagari', 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Specific Helper Utilities */
.font-urbanist {
    font-family: 'Urbanist', 'Noto Sans Devanagari', 'Mukta', sans-serif !important;
}

.font-nepali,
.nepali-text {
    font-family: 'Noto Sans Devanagari', 'Mukta', 'Urbanist', sans-serif !important;
}
