/* =====================================================================
   ФПСМ design tokens — v1.0
   Source of truth for colour, type, spacing, radius and the signature
   elements. ADDITIVE: load this file BEFORE the existing theme CSS and
   migrate selectors to these variables page by page. Do not delete old
   rules until the page that uses them has been migrated and checked.
   ===================================================================== */

/* ---------- Fonts (self-hosted; files include Cyrillic) ---------- */
@font-face { font-family: "Oswald"; src: url("./fonts/oswald-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("./fonts/oswald-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("./fonts/golos-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("./fonts/golos-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  /* ---------- Brand colour ---------- */
  --fpsm-forest:      #193932;  /* primary surface: header, footer, heroes */
  --fpsm-ink:         #102B25;  /* body text, top rescue bar */
  --fpsm-paper:       #F8F6F0;  /* page background */
  --fpsm-card:        #FFFFFF;
  --fpsm-heritage:    #056D04;  /* logo green: links, tags, success */
  --fpsm-summit:      #EEE30B;  /* logo yellow: highlights ON DARK only, badges with Ink text */
  --fpsm-trail:       #DB8A3E;  /* action colour: ONLY the „Зачлени се“ button + active underline */
  --fpsm-trail-deep:  #9C5418;  /* orange tone for TEXT on light (eyebrows, meta) */
  --fpsm-stone:       #4A615D;  /* secondary text */
  --fpsm-sage:        #749661;  /* illustration only */
  --fpsm-sand:        #EDE9DE;  /* soft panels */
  --fpsm-line:        #E3DFD3;  /* borders, dividers */
  --fpsm-rescue:      #C62828;  /* 112 / emergency only */

  /* tag tints */
  --fpsm-tint-green:  #E5EFE4;
  --fpsm-tint-orange: #F6E6D6;
  --fpsm-tint-stone:  #ECEAE2;

  /* ---------- Type ---------- */
  --fpsm-font-head: "Oswald", "Arial Narrow", sans-serif;
  --fpsm-font-body: "Golos Text", system-ui, sans-serif;
  --fpsm-fs-min:   13px;   /* hard floor — nothing visible below this */
  --fpsm-fs-small: 14px;
  --fpsm-fs-body:  17px;
  --fpsm-fs-lead:  18px;
  --fpsm-fs-h4:    22px;
  --fpsm-fs-h3:    28px;
  --fpsm-fs-h2:    clamp(28px, 3.2vw, 38px);
  --fpsm-fs-h1:    clamp(34px, 4.6vw, 56px);
  --fpsm-lh-body:  1.6;
  --fpsm-lh-head:  1.12;

  /* ---------- Layout ---------- */
  --fpsm-wrap:     1200px;
  --fpsm-gutter:   32px;   /* 20px under 640px */
  --fpsm-section:  72px;   /* 48px under 640px */
  --fpsm-radius-sm: 8px;
  --fpsm-radius:    10px;  /* buttons, inputs */
  --fpsm-radius-lg: 16px;  /* cards, panels */
  --fpsm-shadow:    0 1px 2px rgba(16,43,37,.06), 0 8px 24px rgba(16,43,37,.06);
  --fpsm-focus:     0 0 0 3px var(--fpsm-paper), 0 0 0 5px var(--fpsm-heritage);

  /* breakpoints (reference — use in media queries): 1200 / 960 / 640 */
}

/* ---------- Signature: trail-marker stripe (orange–white–orange) ---------- */
.fpsm-blaze {
  height: 6px;
  background: linear-gradient(90deg,
    var(--fpsm-trail) 0 33.3%, var(--fpsm-paper) 33.3% 66.6%, var(--fpsm-trail) 66.6%);
}

/* ---------- Buttons ---------- */
.fpsm-btn { display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font: 600 16px/1.2 var(--fpsm-font-body); padding:13px 24px; min-height:44px;
  border-radius:var(--fpsm-radius); border:2px solid transparent; cursor:pointer; text-decoration:none; }
.fpsm-btn:focus-visible { outline:none; box-shadow:var(--fpsm-focus); }
.fpsm-btn--join    { background:var(--fpsm-trail);  color:var(--fpsm-ink); }   /* ONLY for „Зачлени се“ */
.fpsm-btn--primary { background:var(--fpsm-forest); color:var(--fpsm-paper); }
.fpsm-btn--paper   { background:var(--fpsm-paper);  color:var(--fpsm-ink); }   /* hero primary on dark */
.fpsm-btn--outline { border-color:var(--fpsm-forest); color:var(--fpsm-forest); background:transparent; }
.fpsm-btn--ghost   { border-color:color-mix(in srgb, var(--fpsm-paper) 75%, transparent); color:var(--fpsm-paper); background:transparent; } /* on dark */

/* ---------- Text helpers ---------- */
.fpsm-eyebrow { font:600 13px/1.4 var(--fpsm-font-body); letter-spacing:2px; text-transform:uppercase; color:var(--fpsm-trail-deep); }
.fpsm-on-dark .fpsm-eyebrow,
.fpsm-eyebrow.fpsm-on-dark { color:var(--fpsm-trail); }   /* orange text allowed only on Forest/Ink */

/* ---------- Tags ---------- */
.fpsm-tag { display:inline-block; font:600 13px/1.5 var(--fpsm-font-body); padding:3px 10px; border-radius:20px;
  background:var(--fpsm-tint-green); color:var(--fpsm-heritage); }
.fpsm-tag--orange { background:var(--fpsm-tint-orange); color:var(--fpsm-trail-deep); }
.fpsm-tag--summit { background:var(--fpsm-summit); color:var(--fpsm-ink); }
.fpsm-tag--stone  { background:var(--fpsm-tint-stone); color:var(--fpsm-stone); }
.fpsm-tag--alert  { background:var(--fpsm-tint-orange); color:var(--fpsm-trail-deep); }

/* ---------- Card ---------- */
.fpsm-card { background:var(--fpsm-card); border:1px solid var(--fpsm-line); border-radius:var(--fpsm-radius-lg); }

/* ---------- Respect user motion settings ---------- */
@media (prefers-reduced-motion: reduce) { * { animation:none !important; transition:none !important; } }
