/* ======================================================================= */
/* CARWEL - MONTSERRAT FONT DECLARATIONS */
/* Modern typography with only Montserrat font family */
/* ======================================================================= */

/* Montserrat Font Family - Primary and only font for all text */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

/* Font Loading Optimization */
/* Preload critical font variations */
body {
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "dlig" 0;
}

/* Ensure smooth font rendering across browsers */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Font stack definitions - Montserrat only */
.font-primary {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

.font-secondary {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

.font-montserrat {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

/* Font weight utilities */
.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

/* Default font weight mapping for better consistency */
body {
    font-weight: 500; /* Medium as default */
}

h1, h2, h3, h4, h5, h6, .font-bold {
    font-weight: 600; /* SemiBold for headings */
}

/* Button and form element font weights */
.btn, .form-label, .nav-link {
    font-weight: 600; /* SemiBold for interactive elements */
}

/* Secondary text font weight */
.text-secondary, .text-muted, p {
    font-weight: 500; /* Medium for body text */
}