/* Brown Standard Font Family */
/* Using OpenType fonts from /static/font directory */

@font-face {
    font-family: 'Brown';
    src: url('/font/BrownStd-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brown';
    src: url('/font/BrownStd-BoldAlt.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BrownReclin';
    src: url('/font/BrownStd-ReclinBold.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BrownReclin';
    src: url('/font/BrownStd-ReclinBoldAlt.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Regular weight fallback using Bold */
@font-face {
    font-family: 'Brown';
    src: url('/font/BrownStd-BoldAlt.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brown';
    src: url('/font/BrownStd-BoldAlt.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Global font application with fallback stack */
/* Exclude FontAwesome icons from font override */
*:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fat) {
    font-family: 'Brown', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
}

body, html {
    font-family: 'Brown', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Brown', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 700;
}

/* Buttons */
button, .btn, a.btn {
    font-family: 'Brown', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Form elements */
input, textarea, select {
    font-family: 'Brown', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Navigation */
.navbar, .nav {
    font-family: 'Brown', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Cards and content */
.card, .card-body, .card-title, .card-text {
    font-family: 'Brown', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Preserve FontAwesome font families */
.fa, .fas, .far, .fab, .fal, .fad, .fat,
[class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
}

/* FontAwesome specific weights */
.fas {
    font-weight: 900 !important;
}

.far {
    font-weight: 400 !important;
}

.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}
