/*
 * REMAS brand tokens for the CRM (REMAS brand family v1.0, light theme).
 * Primitives and semantic roles follow 07-digital/ui-kit/tokens.css; the CRM adds
 * density tokens for a working tool (14px base, 4px spacing grid).
 */

@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope-var.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("fonts/montserrat-var.woff2") format("woff2");
    font-weight: 600 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("fonts/plex-arabic-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("fonts/plex-arabic-700.woff2") format("woff2");
    font-weight: 600 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

:root {
    /* primitives */
    --rm-navy: #2A285F;
    --rm-deep: #18163B;
    --rm-gold: #E0A52D;
    --rm-gold-hover: #C48C1D;
    --rm-ink: #13122B;
    --rm-canvas: #FAF8F5;
    --rm-white: #FFFFFF;
    --rm-lavender: #EEEDF6;
    --rm-muted: #585675;
    --rm-border: #C9C8DC;
    --rm-boundary: #676580;
    --rm-success: #0F7A4D;
    --rm-error: #C53D3D;
    --rm-warning: #8A6111;

    /* semantic roles */
    --rm-bg: var(--rm-canvas);
    --rm-surface: var(--rm-white);
    --rm-surface-soft: #F6F5FA;
    --rm-text: var(--rm-ink);
    --rm-text-muted: var(--rm-muted);
    --rm-action: var(--rm-navy);
    --rm-on-action: var(--rm-white);
    --rm-action-hover: var(--rm-deep);
    --rm-accent: var(--rm-gold);
    --rm-line: #E3E1EC;            /* card and row separators */
    --rm-line-strong: var(--rm-border);
    --rm-control: #8C8AA6;         /* input boundary: 3.1:1 on white */
    --rm-focus: var(--rm-navy);
    --rm-hover: #F3F2F8;
    --rm-selected: var(--rm-lavender);

    --rm-success-bg: #E6F2EC;
    --rm-error-bg: #F9E9E9;
    --rm-warning-bg: #FBF1DD;
    --rm-info-bg: var(--rm-lavender);

    /* type */
    --rm-font: "Manrope", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
    --rm-font-head: "Montserrat", "IBM Plex Sans Arabic", "Manrope", sans-serif;
    --rm-text-xs: 12px;
    --rm-text-sm: 13px;
    --rm-text-base: 14px;
    --rm-text-md: 15px;
    --rm-text-lg: 18px;
    --rm-text-xl: 22px;

    /* shape and depth: REMAS is square-cornered */
    --rm-radius: 0px;
    --rm-shadow-pop: 0 8px 24px rgba(19, 18, 43, .12), 0 2px 6px rgba(19, 18, 43, .08);
    --rm-shadow-modal: 0 24px 64px rgba(19, 18, 43, .24);

    /* motion */
    --rm-fast: 120ms;
    --rm-base: 180ms;
    --rm-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
    :root { --rm-fast: 0ms; --rm-base: 0ms; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
