/*
 * LawnPro design set — the one place colors, text sizes, weights, spacing,
 * corners and shadows are decided. Modeled on Jobber's design tokens
 * (foundation -> semantic). Decided with Patrick, Nov 2026; the human-readable
 * version is the "LawnPro design set" doc, and the rules are in
 * .claude/skills/lawnpro-ui-style/SKILL.md ("Look").
 *
 * Loaded before app_bs4.css in every layout (components/lp_tokens_css.tpl).
 * This file only defines variables, so loading it changes nothing on screen.
 *
 * Use the SEMANTIC names (--lp-c-*, --lp-text-*, --lp-space-*, --lp-radius-*)
 * in new CSS, or a Bootstrap 4 utility. Never type a hex color or a px font
 * size in a page; DesignTokensHardcodedValuesTest counts them per file.
 *
 * Out of scope on purpose:
 *   - Calendar colors (visit/task/meeting/maintenance, category colors,
 *     overdue blocks, the color legend) keep their own values.
 *   - Big numbers in the stat cards at the top of pages keep their look.
 *   - Dark theme values live in lp-dark.css, which maps these names to dark.
 */
:root {
    /* ---- Foundation: raw palette (don't use directly in pages) ---- */
    --lp-green-500: #85c51f;   /* brand */
    --lp-green-600: #6a9818;   /* darker brand: button borders, gradients, white-text fills */
    --lp-green-700: #4a7a10;   /* readable green on white */
    --lp-green-success: #2f7d1b;
    --lp-green-100: #eef6e2;
    --lp-green-900: #2f5207;
    --lp-red-500: #dc3545;
    --lp-red-100: #fdecee;
    --lp-red-900: #8a1c27;
    --lp-amber-500: #ffc107;   /* LawnPro yellow (Patrick 2026-11-26) */
    --lp-amber-100: #fff8e1;
    --lp-amber-900: #7a5300;
    --lp-blue-500: #007bff;   /* LawnPro blue (Patrick 2026-11-26) */
    --lp-blue-100: #e8f1fd;
    --lp-blue-900: #0b4a99;
    --lp-slate-50: #f8fafc;
    --lp-slate-100: #f1f5f9;
    --lp-slate-200: #e2e8f0;
    --lp-slate-300: #cbd5e1;
    --lp-slate-400: #94a3b8;
    --lp-slate-500: #64748b;
    --lp-slate-600: #475569;
    --lp-slate-700: #334155;
    --lp-slate-800: #1e293b;
    --lp-slate-900: #0f172a;
    --lp-white: #ffffff;
    --lp-sand-50: #f5f5f0;     /* LawnPro page background (kept over Jobber's) */

    /* ---- Semantic colors: one meaning each ---- */
    --lp-c-brand: var(--lp-green-500);          /* filled main buttons, logo, active nav */
    --lp-c-on-brand: var(--lp-white);
    --lp-c-brand-strong: var(--lp-green-600);   /* edge/shade of a brand fill, hover borders; not for text */
    --lp-c-link: var(--lp-green-700);           /* links and green words; brand green is too light for text */

    --lp-c-success: var(--lp-green-success);    /* done, paid, saved */
    --lp-c-success-surface: var(--lp-green-100);
    --lp-c-success-on-surface: var(--lp-green-900);

    --lp-c-critical: var(--lp-red-500);         /* delete, errors, past due — nothing else */
    --lp-c-critical-surface: var(--lp-red-100);
    --lp-c-critical-on-surface: var(--lp-red-900);

    --lp-c-warning: var(--lp-amber-500);        /* needs attention */
    --lp-c-warning-surface: var(--lp-amber-100);
    --lp-c-warning-on-surface: var(--lp-amber-900);

    --lp-c-info: var(--lp-blue-500);            /* good to know */
    --lp-c-info-surface: var(--lp-blue-100);
    --lp-c-info-on-surface: var(--lp-blue-900);

    --lp-c-text: var(--lp-slate-800);
    --lp-c-text-secondary: var(--lp-slate-500);
    --lp-c-text-disabled: var(--lp-slate-400);
    /* Borders stay LawnPro's plain greys, not Jobber's blue-grey slate (Patrick 2026-11-26). */
    --lp-c-border: #e3e3e3;
    --lp-c-border-strong: #ced4da;
    --lp-c-bg: var(--lp-sand-50);
    --lp-c-surface: var(--lp-white);
    --lp-c-surface-subtle: var(--lp-slate-50);
    --lp-c-surface-muted: var(--lp-slate-100);  /* highlighted rows (invoice Total / Total Due) */

    /* ---- Text sizes: 7, one job each ---- */
    --lp-text-small: 12px;        /* small print; nothing smaller */
    --lp-text-label: 13px;        /* labels, table text */
    --lp-text-base: 14px;         /* body */
    --lp-text-section: 16px;      /* section title */
    --lp-text-card-title: 18px;   /* card title */
    --lp-text-page-title: 20px;   /* page title (Poppins) */
    --lp-text-big: 24px;          /* big numbers */

    --lp-weight-normal: 400;
    --lp-weight-bold: 600;        /* titles, buttons */
    --lp-weight-heavy: 700;       /* big numbers only */

    --lp-font-body: Inter, Helvetica, Arial, sans-serif;
    --lp-font-display: Poppins, Helvetica, Arial, sans-serif;

    /* ---- Spacing: 4px grid (same steps as BS4 p-1..p-5 plus 12/32/48) ---- */
    --lp-space-xs: 4px;
    --lp-space-sm: 8px;
    --lp-space-slim: 12px;
    --lp-space-base: 16px;
    --lp-space-lg: 24px;
    --lp-space-xl: 32px;
    --lp-space-xxl: 48px;

    /* ---- Corners ---- */
    --lp-radius-sm: 4px;          /* badges, inputs */
    --lp-radius-base: 8px;        /* buttons */
    --lp-radius-lg: 12px;         /* cards */
    --lp-radius-round: 999px;     /* pills, avatars */

    /* ---- Shadows ---- */
    --lp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --lp-shadow-base: 0 1px 10px rgba(15, 15, 45, 0.15);
    --lp-shadow-lg: 0 18px 45px -20px rgba(15, 23, 42, 0.25);
}
