/**
 * Heuvel Grotesk — static/fonts/ (TTF DEMO).
 *
 * IMPORTANTE (base de conhecimento ELPID):
 * Os arquivos HeuvelGroteskDEMO-*.ttf NÃO incluem glifos 0–9 (ou exibem
 * símbolos errados). Por isso TODO texto com números deve usar Inter na pilha
 * ou a classe .ep-numeric / variável --font-numeric.
 *
 * Correção global: unicode-range em cada @font-face exclui U+0030–0039;
 * o navegador usa o próximo font-family da pilha (Inter ou system-ui) para dígitos.
 *
 * Em cada HTML público, carregar também Inter (Google Fonts ou local):
 *   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
 */

/* Letras e pontuação — sem dígitos 0-9 */
@font-face {
    font-family: 'Heuvel Grotesk';
    src:
        local('Heuvel Grotesk Regular'),
        url('../fonts/HeuvelGroteskDEMO-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-002F, U+003A-10FFFF;
}

@font-face {
    font-family: 'Heuvel Grotesk';
    src:
        local('Heuvel Grotesk Medium'),
        url('../fonts/HeuvelGroteskDEMO-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-002F, U+003A-10FFFF;
}

@font-face {
    font-family: 'Heuvel Grotesk';
    src:
        local('Heuvel Grotesk SemiBold'),
        url('../fonts/HeuvelGroteskDEMO-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-002F, U+003A-10FFFF;
}

@font-face {
    font-family: 'Heuvel Grotesk';
    src:
        local('Heuvel Grotesk Bold'),
        url('../fonts/HeuvelGroteskDEMO-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-002F, U+003A-10FFFF;
}

@font-face {
    font-family: 'Heuvel Grotesk';
    src:
        local('Heuvel Grotesk ExtraBold'),
        url('../fonts/HeuvelGroteskDEMO-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-002F, U+003A-10FFFF;
}

:root {
    --font-display: 'Heuvel Grotesk', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-numeric: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Pilha segura quando a página define font-family só como Heuvel */
body.ep-public-fonts {
    font-family: var(--font-display);
}

/* Preços, cupons, badges %, inputs numéricos */
.ep-numeric,
.ep-numeric * {
    font-family: var(--font-numeric) !important;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* Texto misto (títulos com números): Heuvel + Inter para dígitos via unicode-range */
.ep-mixed-text {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
}
