/* ============================================================
   tokens.css — SINGLE SOURCE OF TRUTH FOR DESIGN
   ============================================================
   Edit ONLY this file to redesign the entire site.
   Every color, font, spacing value, radius, and breakpoint
   used by the theme (and re-mapped onto Blocksy + Elementor)
   resolves to a token defined here.

   To swap palettes, prompt Claude Code with things like:
     "Make the site more corporate — navy and steel grays"
     "Switch to a warm minimal aesthetic — off-white + serif"
     "Bigger hero, tighter body, sharper typography"
   ...and it will modify the values in this single :root block.
   ============================================================ */

:root {
  /* ---------- BRAND PALETTE ----------
     Cool corporate Scandinavian — deep navy primary, cool light surfaces.
     (Previous yellow palette archived in git history. To roll back, restore
      the yellow values: --brand-primary:#ffd800, --brand-primary-ink:#2f2207,
      etc.) */
  --brand-primary:        #1e4258;   /* deep cool navy / teal — buttons, links, accents */
  --brand-primary-hover:  #163448;
  --brand-primary-ink:    #ffffff;   /* text on primary (white on navy = 9.5:1 AAA) */

  /* Accent kept aliased to primary so any element referencing --brand-accent
     (footer top strip, badges) keeps working. */
  --brand-accent:         #1e4258;
  --brand-accent-hover:   #163448;
  --brand-accent-ink:     #ffffff;
  --brand-accent-soft:    rgba(30, 66, 88, 0.10);  /* tinted soft fill */

  --brand-ink:            #1d2330;   /* headings — dark blue-grey, not pure black */
  --brand-body:           #262e3d;   /* body copy — 11.4:1 on white (AAA) */
  --brand-muted:          #666e7d;   /* captions, meta — 5,1:1 mot vitt, 4,65:1 mot
                                        --brand-surface och den gula rutan. Var #6b7484,
                                        kalibrerad bara mot vitt, och landade da pa 4,27
                                        pa varje bricka och varje dampat kort. */

  --brand-bg:             #fbfcfd;   /* page background — off-white cool tint */
  --brand-surface:        #f1f4f7;   /* cards, light panels */
  --brand-surface-2:      #ffffff;   /* pure-white panels (for contrast) */
  --brand-surface-warm:   #f1f4f7;   /* footer — was cream, now matches palette */
  --brand-border:         #e2e7ed;   /* light cool border */
  --brand-overlay:        rgba(29, 35, 48, 0.55);  /* dark image overlay (now blue-tinted) */

  --brand-success:        #2e7d32;
  --brand-danger:         #c62828;

  /* ---------- TYPOGRAPHY ---------- */
  --brand-font-body:      "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand-font-head:      "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand-font-accent:    "Roboto Slab", Georgia, "Times New Roman", serif;
  --brand-font-mono:      ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --brand-weight-body:    400;
  --brand-weight-medium:  500;
  --brand-weight-bold:    700;
  --brand-weight-heavy:   800;

  --brand-fs-body:        16px;
  --brand-lh-body:        1.65;

  --brand-fs-h1:          clamp(2rem, 1.4rem + 2.4vw, 2.75rem);  /* ~32–44px fluid */
  --brand-fs-h2:          clamp(1.75rem, 1.3rem + 1.8vw, 2.25rem);
  --brand-fs-h3:          clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --brand-fs-h4:          1.5rem;
  --brand-fs-h5:          1.25rem;
  --brand-fs-h6:          1rem;
  --brand-lh-head:        1.25;

  /* ---------- SPACING / RHYTHM ---------- */
  --brand-rhythm:         60px;       /* vertical section spacing */
  --brand-rhythm-tight:   40px;
  --brand-rhythm-loose:   90px;
  --brand-gap:            20px;
  --brand-gap-sm:         12px;
  --brand-gap-lg:         32px;

  /* ---------- LAYOUT ---------- */
  --brand-container:      1290px;     /* max content width */
  --brand-container-narrow: 750px;
  --brand-container-pad:   clamp(16px, 5vw, 32px);

  /* ---------- COMPONENT TOKENS ---------- */
  --brand-radius:         15px;
  --brand-radius-sm:      8px;
  --brand-radius-lg:      24px;
  --brand-radius-pill:    999px;

  --brand-shadow-sm:      0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --brand-shadow:         0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.05);
  --brand-shadow-lg:      0 12px 24px rgba(0, 0, 0, 0.08), 0 24px 60px rgba(0, 0, 0, 0.08);

  --brand-button-h:       50px;
  --brand-button-pad-x:   24px;
  --brand-button-weight:  500;

  --brand-header-h:       120px;
  --brand-header-h-mob:   70px;

  /* ---------- MOTION ---------- */
  --brand-ease:           cubic-bezier(0.2, 0.7, 0.2, 1);
  --brand-dur-fast:       150ms;
  --brand-dur:            220ms;
  --brand-dur-slow:       360ms;
}

/* Smaller screens — tighter rhythm */
@media (max-width: 767.98px) {
  :root {
    --brand-rhythm:       40px;
    --brand-rhythm-loose: 60px;
    --brand-header-h:     var(--brand-header-h-mob);
  }
}
