/* ==========================================================================
   Design Tokens — HAOK Mladost
   Prefix: --haokm-*  |  Loaded first, before main.css and divi-overrides.css

   Values are the approved brand palette from the design proposal
   (ai-research/prijedlog). Philosophy: strong red/yellow are used as ACCENTS,
   beige + white as calm backgrounds so the colors "don't kill the eye."

   The proposal's HTML/CSS prototype uses Croatian-named variables
   (--crvena, --zuta, …). Those are kept below as aliases of the canonical
   --haokm-* tokens, so prototype component CSS can be pasted in unchanged.
   Edit a value once here; both names update.

   Mirror these same hex values into Divi → Theme Options → Global Colors so
   builder modules and this CSS stay in sync.
   ========================================================================== */

:root {
  /* ---- Brand palette (canonical) ---- */
  --haokm-red: #c00d0d;          /* primary brand / accents, buttons, active links, jersey numbers */
  --haokm-red-dark: #95090b;     /* hover on red */
  --haokm-yellow: #ffcc00;       /* secondary accent / highlights, CTA on dark */
  --haokm-beige: #f5ebd8;        /* calm section backgrounds, info boxes */
  --haokm-beige-light: #faf4e9;  /* page background, form fields */
  --haokm-black: #1a1818;        /* text, top bar, footer */
  --haokm-gray-text: #4a4644;    /* secondary text (dates, descriptions) */
  --haokm-gray-border: #e6ddcd;  /* lines / borders */
  --haokm-white: #ffffff;        /* cards / content */

  /* Semantic aliases */
  --haokm-color-primary: var(--haokm-red);
  --haokm-color-primary-dark: var(--haokm-red-dark);
  --haokm-color-accent: var(--haokm-yellow);
  --haokm-color-text: var(--haokm-black);
  --haokm-color-text-muted: var(--haokm-gray-text);
  --haokm-color-bg: var(--haokm-beige-light);
  --haokm-color-surface: var(--haokm-white);

  /* ---- Typography (latin-ext: č ć ž š đ) ---- */
  --haokm-font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --haokm-font-heading: "Montserrat", var(--haokm-font-body);
  --haokm-line-tight: 1.2;
  --haokm-line-base: 1.6;

  /* ---- Spacing scale (rem) ---- */
  --haokm-space-1: 0.25rem;
  --haokm-space-2: 0.5rem;
  --haokm-space-3: 0.75rem;
  --haokm-space-4: 1rem;
  --haokm-space-5: 1.5rem;
  --haokm-space-6: 2rem;
  --haokm-space-8: 3rem;
  --haokm-space-10: 4rem;

  /* ---- Radii & shadows (from prototype) ---- */
  --haokm-radius: 14px;
  --haokm-radius-sm: 9px;
  --haokm-radius-md: 9px;
  --haokm-radius-lg: 14px;
  --haokm-shadow: 0 6px 24px rgba(26, 24, 24, 0.08);
  --haokm-shadow-md: 0 6px 24px rgba(26, 24, 24, 0.08);
  --haokm-shadow-hover: 0 12px 34px rgba(26, 24, 24, 0.16);
  --haokm-shadow-lg: 0 12px 34px rgba(26, 24, 24, 0.16);

  /* ---- Layout ---- */
  --haokm-max-width: 1240px;
  --haokm-max-width-text: 65ch;

  /* ---- Breakpoints (reference; CSS can't use vars in media queries).
     Matches active_breakpoints: phone <=767px, tablet <=980px, desktop base */
  --haokm-bp-phone: 767px;
  --haokm-bp-tablet: 980px;

  /* ---- Motion & z-index ---- */
  --haokm-transition: 0.3s ease;
  --haokm-z-fixed: 1030;
  --haokm-z-modal: 1050;

  /* ==== Prototype aliases (Croatian) — keep prototype CSS portable ==== */
  --crvena: var(--haokm-red);
  --crvena-tamna: var(--haokm-red-dark);
  --zuta: var(--haokm-yellow);
  --bez: var(--haokm-beige);
  --bez-svijetli: var(--haokm-beige-light);
  --crna: var(--haokm-black);
  --siva-tekst: var(--haokm-gray-text);
  --siva-rub: var(--haokm-gray-border);
  --bijela: var(--haokm-white);
  --maxw: var(--haokm-max-width);
  --radius: var(--haokm-radius);
  --radius-sm: var(--haokm-radius-sm);
  --shadow: var(--haokm-shadow);
  --shadow-hover: var(--haokm-shadow-hover);
  --font: var(--haokm-font-body);
  --font-naslov: var(--haokm-font-heading);
}
