/**
 * MuseoSans @font-face declarations + global font overrides
 * FIESC Child Theme
 *
 * Weights: 300 (Light), 500 (Regular), 700 (Bold), 900 (Extra Bold)
 * Using OTF format — the source files from the project.
 */

/* ============================================================
   @FONT-FACE DECLARATIONS
   ============================================================ */

@font-face {
  font-family: "MuseoSans";
  src: url("../fonts/MuseoSans-300.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MuseoSans";
  src: url("../fonts/MuseoSans_500.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MuseoSans";
  src: url("../fonts/MuseoSans_500.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MuseoSans";
  src: url("../fonts/MuseoSans_700.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MuseoSans";
  src: url("../fonts/MuseoSans_900.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   GLOBAL FONT OVERRIDE — Ensure MuseoSans is used everywhere
   ============================================================ */

:root {
  --fiesc-font-family:
    "MuseoSans", "museosans_500", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

body,
body.elementor-page,
.elementor,
.elementor *,
.elementor-widget-text-editor,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-theme-post-title,
.elementor-widget-theme-post-content {
  font-family: var(--fiesc-font-family) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.site-title,
.page-title {
  font-family: var(--fiesc-font-family) !important;
}

input,
textarea,
select,
button,
.elementor-button,
.elementor-field-textual {
  font-family: var(--fiesc-font-family) !important;
}

/* Override Elementor Kit CSS variables to use our unified MuseoSans */
.elementor-kit-6,
[class*="elementor-kit-"] {
  --e-global-typography-primary-font-family: "MuseoSans" !important;
  --e-global-typography-secondary-font-family: "MuseoSans" !important;
  --e-global-typography-text-font-family: "MuseoSans" !important;
  --e-global-typography-accent-font-family: "MuseoSans" !important;
}
