﻿/* ==========================================================================
   MBO Bank Official Registered Branded Typography: ZemestroStd
   Local Enterprise OpenType Fonts (100% Offline / Intranet Compliant)
   ========================================================================== */

/* Regular (400) */
@font-face {
    font-family: 'ZemestroStd';
    src: url('../fonts/ZemestroStd.otf') format('opentype'),
         url('../lib/bootstrap-icons/font/fonts/ZemestroStd.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Book (300 / 350) */
@font-face {
    font-family: 'ZemestroStd';
    src: url('../fonts/ZemestroStd-Book.otf') format('opentype'),
         url('../lib/bootstrap-icons/font/fonts/ZemestroStd-Book.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ZemestroStd-Book';
    src: url('../fonts/ZemestroStd-Book.otf') format('opentype'),
         url('../lib/bootstrap-icons/font/fonts/ZemestroStd-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Medium (500 & 600) */
@font-face {
    font-family: 'ZemestroStd';
    src: url('../fonts/ZemestroStd-Medium.otf') format('opentype'),
         url('../lib/bootstrap-icons/font/fonts/ZemestroStd-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ZemestroStd';
    src: url('../fonts/ZemestroStd-Medium.otf') format('opentype'),
         url('../lib/bootstrap-icons/font/fonts/ZemestroStd-Medium.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ZemestroStd-Medium';
    src: url('../fonts/ZemestroStd-Medium.otf') format('opentype'),
         url('../lib/bootstrap-icons/font/fonts/ZemestroStd-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Bold (700 & 800) */
@font-face {
    font-family: 'ZemestroStd';
    src: url('../fonts/ZemestroStd-Bold.otf') format('opentype'),
         url('../lib/bootstrap-icons/font/fonts/ZemestroStd-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ZemestroStd';
    src: url('../fonts/ZemestroStd-Bold.otf') format('opentype'),
         url('../lib/bootstrap-icons/font/fonts/ZemestroStd-Bold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ZemestroStd-Bold';
    src: url('../fonts/ZemestroStd-Bold.otf') format('opentype'),
         url('../lib/bootstrap-icons/font/fonts/ZemestroStd-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Italic (400 italic & 500 italic) */
@font-face {
    font-family: 'ZemestroStd';
    src: url('../fonts/ZemestroStd-Italic.otf') format('opentype'),
         url('../lib/bootstrap-icons/font/fonts/ZemestroStd-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'ZemestroStd';
    src: url('../fonts/ZemestroStd-Italic.otf') format('opentype'),
         url('../lib/bootstrap-icons/font/fonts/ZemestroStd-Italic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'ZemestroStd-Italic';
    src: url('../fonts/ZemestroStd-Italic.otf') format('opentype'),
         url('../lib/bootstrap-icons/font/fonts/ZemestroStd-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Master Typography Variables & Global Defaults */
:root {
    --bafl-font-family: 'ZemestroStd', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --bafl-font-family-book: 'ZemestroStd-Book', 'ZemestroStd', sans-serif;
    --bafl-font-family-medium: 'ZemestroStd-Medium', 'ZemestroStd', sans-serif;
    --bafl-font-family-bold: 'ZemestroStd-Bold', 'ZemestroStd', sans-serif;
}

html, body {
    font-family: var(--bafl-font-family) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Ensure inputs, buttons, tables, headings inherit brand typography */
input, button, select, textarea, .form-control, .form-select, .btn, .table, .nav, .dropdown-menu {
    font-family: var(--bafl-font-family) !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--bafl-font-family) !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}
