/**
 * BW Modelica — fonte oficial Reformistas (Brandbook)
 * 12 arquivos .woff2 (~353KB total, ~30KB por peso)
 * Path: /wp-content/uploads/fonts/
 *
 * Pesos suportados:
 *   100 Hairline   — só pra usos decorativos muito grandes (display ≥ 80px)
 *   300 Light      — captions, footnotes
 *   400 Regular    — body padrão
 *   500 Medium     — UI elements, links, breadcrumbs
 *   700 Bold       — headings, CTAs
 *   900 Black      — manchetes, hero
 *
 * ExtraBold (800) NÃO existe no pacote — browsers caem em Bold (700) ou Black (900)
 * automaticamente via algoritmo de matching nativo.
 *
 * font-display: swap → Inter (fallback) renderiza primeiro, BW Modelica troca quando carregar
 */

/* ====== HAIRLINE 100 ====== */
@font-face {
    font-family: "BW Modelica";
    src: url("BwModelica-Hairline.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "BW Modelica";
    src: url("BwModelica-HairlineItalic.woff2") format("woff2");
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

/* ====== LIGHT 300 ====== */
@font-face {
    font-family: "BW Modelica";
    src: url("BwModelica-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "BW Modelica";
    src: url("BwModelica-LightItalic.woff2") format("woff2");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* ====== REGULAR 400 ====== */
@font-face {
    font-family: "BW Modelica";
    src: url("BwModelica-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "BW Modelica";
    src: url("BwModelica-RegularItalic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ====== MEDIUM 500 ====== */
@font-face {
    font-family: "BW Modelica";
    src: url("BwModelica-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "BW Modelica";
    src: url("BwModelica-MediumItalic.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* ====== BOLD 700 ====== */
@font-face {
    font-family: "BW Modelica";
    src: url("BwModelica-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ====== EXTRA BOLD ITALIC 800 (só itálico — sem regular) ====== */
@font-face {
    font-family: "BW Modelica";
    src: url("BwModelica-ExtraBoldItalic.woff2") format("woff2");
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

/* ====== BLACK 900 ====== */
@font-face {
    font-family: "BW Modelica";
    src: url("BwModelica-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "BW Modelica";
    src: url("BwModelica-BlackItalic.woff2") format("woff2");
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* ====== UTILITY: força headings + body usarem BW Modelica ====== */
:root {
    --rf-font-display: "BW Modelica", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --rf-font-body:    "BW Modelica", "Noto Sans", "Inter", system-ui, sans-serif;
}

body,
.l-main,
.w-text,
p {
    font-family: var(--rf-font-body) !important;
}

h1, h2, h3, h4, h5, h6,
.vc_custom_heading,
.us-custom-heading,
.w-post-elm.post_title,
.us-btn,
.btn,
button.us-btn {
    font-family: var(--rf-font-display) !important;
}
