/* ===========================================
   TOKENS.CSS – Kirda Solutions Design Tokens
   Single source of truth for all design values.
   Source: Brandbook Kirda Solutions (14.04.2024)
   =========================================== */

/* -----------------------------------------
   @font-face – Self-hosted fonts
   ----------------------------------------- */

/* Nunito – Variable font (contains weights 500 & 700) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/nunito-500.woff2') format('woff2');
}

/* Nunito Italic – Medium (500) */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/nunito-500i.woff2') format('woff2'),
       url('../assets/fonts/nunito-500i.woff') format('woff');
}

/* Nunito Sans – Variable font (contains weights 400, 500, 600, 800) */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/nunito-sans-variable.woff2') format('woff2');
}

/* -----------------------------------------
   CSS Custom Properties
   ----------------------------------------- */

:root {
  /* === BRAND COLORS === */
  --brand-dunkelblau:   #1C344D;
  --brand-petrol:       #1A786E;
  --brand-dunkelgruen:  #124D4A;
  --brand-pfirsich:     #F3B36F;
  --brand-hellgruen:    #ABCF61;
  --brand-weissgrau:    #F0F3F5;
  --brand-white:        #FFFFFF;

  /* === SEMANTIC COLORS === */
  --color-text-primary:    var(--brand-dunkelblau);
  --color-text-secondary:  #4A637C;
  --color-text-muted:      #849FB8;
  --color-text-inverse:    var(--brand-weissgrau);
  --color-bg-primary:      var(--brand-white);
  --color-bg-secondary:    var(--brand-weissgrau);
  --color-bg-dark:         var(--brand-dunkelblau);
  --color-border:          #D3DDE6;
  --color-link:            var(--brand-petrol);
  --color-link-hover:      var(--brand-dunkelgruen);
  --color-accent:          var(--brand-pfirsich);
  --color-success:         #10B981;
  --color-error:           #EF4444;

  /* === TYPOGRAPHY === */
  --font-headline:  'Nunito', sans-serif;
  --font-body:      'Nunito Sans', sans-serif;
  --font-mono:      'Courier New', Courier, monospace;

  /* === V1 THEME MAPPING (aliases for grid system) === */
  --c-cream:     var(--brand-weissgrau);
  --c-blue:      var(--brand-petrol);
  --c-black:     var(--brand-dunkelblau);
  --c-deep-gray: #4A637C;
  --c-muted:     #849FB8;
  --c-border:    #D3DDE6;

  /* Font sizes – Mobile-first (scaled up via media queries) */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-md:    1.125rem;   /* 18px */
  --text-lg:    1.25rem;    /* 20px */
  --text-xl:    1.5rem;     /* 24px */
  --text-2xl:   2rem;       /* 32px */
  --text-3xl:   2.5rem;     /* 40px */
  --text-4xl:   3rem;       /* 48px */
  --text-5xl:   3.5rem;     /* 56px */

  /* === SPACING === */
  --space-1:  0.25rem;  /* 4px */
  --space-2:  0.5rem;   /* 8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.25rem;  /* 20px */
  --space-6:  1.5rem;   /* 24px */
  --space-8:  2rem;     /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* === BORDER RADIUS === */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    16px;
  --radius-full:  9999px;

  /* === LAYOUT === */
  --content-max-width: 1200px;
  --navbar-height:     72px;

  /* === TRANSITIONS === */
  --transition-fast:   0.2s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.5s ease;

  /* === SHADOWS === */
  --shadow-sm:  0 1px 2px rgba(28, 52, 77, 0.06);
  --shadow-md:  0 4px 12px rgba(28, 52, 77, 0.08);
  --shadow-lg:  0 8px 24px rgba(28, 52, 77, 0.12);

  /* === Z-INDEX === */
  --z-base:     1;
  --z-dropdown: 10;
  --z-sticky:   50;
  --z-navbar:   100;
  --z-overlay:  99;
  --z-modal:    200;
}

/* -----------------------------------------
   BASE STYLES
   ----------------------------------------- */

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.15;
}

h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

a {
  color: var(--color-link);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
}

/* -----------------------------------------
   RESPONSIVE SCALING
   ----------------------------------------- */

@media (min-width: 768px) {
  :root {
    --navbar-height: 80px;
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
}

@media (min-width: 1024px) {
  :root {
    --navbar-height: 88px;
  }

  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
}
