/* Emperium design tokens v1 — single source of truth for the website and Repair Desk.
   Identical copy lives in repair-desk/public/tokens.css. Change both together, only with Hüseyn's approval.
   See DESIGN.md for the rules. */
:root{
  /* Brand */
  --ink:#122b56;          /* headings, dark surfaces */
  --blue:#164dc4;         /* links, primary actions, accents */
  --hover:#103b99;        /* blue hover/pressed */
  --cta:#f6c744;          /* main call-to-action (yellow) */
  --cta-hover:#e9b72b;
  --accent:#c9e9f2;

  /* Text */
  --text:#344560;         /* body text */
  --muted:#52627a;        /* secondary text */

  /* Surfaces and lines */
  --white:#fff;
  --soft:#f2f6fc;         /* tinted page/section background */
  --line:#d6deea;         /* borders, dividers */
  --line-strong:#8090aa;  /* field, chip and secondary-button outlines (3:1, WCAG 1.4.11) */

  /* Theme surfaces — light values keep today's look; dark values are in [data-theme="dark"] below */
  --page:#f2f6fc;         /* app background */
  --surface:#fff;         /* cards, sheets, fields */
  --surface-2:#f7f9fd;    /* subtle tinted rows and panels */
  --ink-surface:#122b56;  /* navy sidebar and dark sections */
  --on-cta:#122b56;       /* label on the yellow CTA in both themes */
  --link:#164dc4;         /* text links and text buttons */

  /* Status (background / foreground pairs) */
  --info-bg:#eaf0ff;   --info:#1544a5;
  --success-bg:#e3f3eb;--success:#20583a;
  --warning-bg:#fff2d7;--warning:#714900;
  --danger-bg:#fdecea; --danger:#a3261b;

  --brand-gradient:linear-gradient(180deg,#1d5be3 0%,#164dc4 42%,#12307a 100%); /* sidebar */

  /* Job status colours (foreground / tint) */
  --st-new:#6941c6;       --st-new-bg:#f4f0ff;
  --st-contacted:#0369a1; --st-contacted-bg:#e6f3fb;
  --st-scheduled:#164dc4; --st-scheduled-bg:#eaf0ff;
  --st-progress:#0f766e;  --st-progress-bg:#e3f6f2;
  --st-parts:#c4320a;     --st-parts-bg:#fff0ea;
  --st-done:#067647;      --st-done-bg:#e8f8ef;
  --st-cancelled:#475467; --st-cancelled-bg:#f2f4f7;

  /* Focus ring: thin border + soft halo */
  --focus-ring:0 0 0 3px rgba(22,77,196,.16);

  /* On dark surfaces (navy sidebar, dark sections) */
  --on-dark:#fff; --on-dark-muted:rgba(255,255,255,.88); --on-dark-line:rgba(255,255,255,.14); --on-dark-hover:rgba(255,255,255,.10);

  /* Typography */
  --font:"Plus Jakarta Sans",Arial,Helvetica,sans-serif;
  --text-xs:.75rem; --text-sm:.875rem; --text-base:1rem; --text-lg:1.125rem;
  --text-xl:1.35rem; --text-2xl:clamp(1.75rem,3vw,2.5rem); --text-3xl:clamp(2.25rem,4.5vw,3.5rem);
  --weight-regular:400; --weight-medium:500; --weight-semibold:600; --weight-bold:700; --weight-heavy:800;

  /* Spacing (4px grid) */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px;

  /* Radius and shadow */
  --radius-sm:6px; --radius-md:8px; --radius-lg:12px; --radius:16px; --radius-pill:999px;
  --shadow-sm:0 1px 2px rgba(18,43,86,.06);
  --shadow-md:0 6px 24px -14px rgba(18,43,86,.35);
  --shadow-lg:0 18px 48px -24px rgba(18,43,86,.45);

  /* Motion — use only where Hüseyn asks (DESIGN.md) */
  --ease-out:cubic-bezier(.2,.8,.2,1);
  --dur-fast:160ms; --dur-base:280ms; --dur-slow:600ms;

  /* Glass — use only where Hüseyn asks (DESIGN.md) */
  --glass-bg:rgba(255,255,255,.72); --glass-bg-solid:#fff; --glass-blur:16px; --glass-border:rgba(214,222,234,.75);
}

/* Dark theme (Hüseyn, 2026-10-28). Applied by data-theme="dark" on <html>. Same roles, darker surfaces. */
:root[data-theme="dark"]{
  color-scheme:dark;
  --ink:#f2f6fc; --text:#c9d4e5; --muted:#9fb0c9;
  --soft:#16243d; --line:#243552; --line-strong:#5b7196;
  --page:#0b1424; --surface:#111d33; --surface-2:#16243d; --ink-surface:#0f1a2e; --link:#9db8ff;
  --accent:#16324a;
  --brand-tint:#18284a; --brand-tint-strong:#1f3563;
  --info-bg:#18284a;   --info:#9db8ff;
  --success-bg:#0f2e20;--success:#8be3b0;
  --warning-bg:#2e2210;--warning:#fdb022;
  --danger-bg:#3a1614; --danger:#ff8f85;
  --st-new:#c4b0ff;       --st-new-bg:#241a45;
  --st-contacted:#8fd0f5; --st-contacted-bg:#0f2738;
  --st-scheduled:#9db8ff; --st-scheduled-bg:#18284a;
  --st-progress:#7fe0d0;  --st-progress-bg:#0f2e2a;
  --st-parts:#ffb08f;     --st-parts-bg:#3a1a10;
  --st-done:#8be3b0;      --st-done-bg:#0f2e20;
  --st-cancelled:#b6c0cf; --st-cancelled-bg:#1c2533;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow-md:0 6px 24px -14px rgba(0,0,0,.7);
  --shadow-lg:0 18px 48px -24px rgba(0,0,0,.8);
  --glass-bg:rgba(17,29,51,.72); --glass-bg-solid:#111d33; --glass-border:rgba(36,53,82,.75);
}
