/**
 * TechUitgelegd Customer Portal - Design Tokens
 * Based on the main TechUitgelegd.nl design system
 * Generated: 2026-07-19
 */

/* Import Montserrat font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ============================================
   Light Mode (Default)
   ============================================ */
:root {
  /* Primary Colors */
  --color-primary: #1dbf73;           /* Bright green - primary actions, accents */
  --color-dark-green: #126f43;        /* Dark green - headings, primary buttons */

  /* Text Colors */
  --color-ink: #0b1611;               /* Darkest - headings, important text */
  --color-copy: #405047;              /* Body text */
  --color-muted: #68786f;             /* Secondary text, captions */

  /* Surface Colors */
  --color-surface: #ffffff;           /* Main background */
  --color-raised: #ffffff;            /* Cards, elevated surfaces */
  --color-mist: #eff8f3;              /* Soft background sections */
  --color-border: #dbe8e1;            /* Borders, dividers */

  /* Semantic Colors */
  --color-error: #a92222;             /* Error states, validation */

  /* UI-Specific Colors */
  --color-header: rgb(255 255 255 / 94%);     /* Header with transparency */
  --color-hero-start: #ffffff;
  --color-hero-end: #f5fbf8;                   /* Gradient backgrounds */
  --color-inverse-surface: #0b1611;            /* Dark elements on light bg */
  --color-footer: #0b1611;                     /* Footer background */
  --color-logo-plate: #f8fafc;                 /* Logo containers */

  /* Shadows */
  --shadow-soft: 0 1rem 3rem rgb(18 111 67 / 9%);
  --shadow-medium: 0 1rem 2.5rem rgb(11 22 17 / 14%);

  /* Border Radius */
  --radius-small: 0.75rem;      /* 12px */
  --radius-medium: 1.25rem;     /* 20px */
  --radius-large: 2rem;         /* 32px */

  /* Typography - Font Family */
  font-family: 'Montserrat', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;

  /* Typography - Font Sizes (using clamp for fluid typography) */
  --font-size-h1: clamp(2.35rem, 6vw, 5rem);        /* 37.6px - 80px */
  --font-size-h2: clamp(1.8rem, 4vw, 3.1rem);       /* 28.8px - 49.6px */
  --font-size-h3: clamp(1.15rem, 2vw, 1.45rem);     /* 18.4px - 23.2px */
  --font-size-body: 1rem;                            /* 16px */
  --font-size-lead: clamp(1.08rem, 2vw, 1.3rem);    /* 17.28px - 20.8px */
  --font-size-small: 0.78rem;                        /* 12.48px */

  /* Typography - Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Typography - Line Heights */
  --line-height-tight: 1.15;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.65;

  /* Typography - Letter Spacing */
  --letter-spacing-h1: -0.055em;
  --letter-spacing-h2: -0.04em;
  --letter-spacing-normal: 0;

  /* Spacing Scale */
  --spacing-0: 0;
  --spacing-1: 0.25rem;     /* 4px */
  --spacing-2: 0.5rem;      /* 8px */
  --spacing-3: 0.75rem;     /* 12px */
  --spacing-4: 1rem;        /* 16px */
  --spacing-5: 1.25rem;     /* 20px */
  --spacing-6: 1.5rem;      /* 24px */
  --spacing-8: 2rem;        /* 32px */
  --spacing-10: 2.5rem;     /* 40px */
  --spacing-12: 3rem;       /* 48px */
  --spacing-16: 4rem;       /* 64px */
  --spacing-20: 5rem;       /* 80px */
  --spacing-24: 6rem;       /* 96px */

  /* Common Gaps */
  --gap-small: 0.75rem;     /* 12px */
  --gap-medium: 1.25rem;    /* 20px */
  --gap-large: 2rem;        /* 32px */
  --gap-xlarge: 3rem;       /* 48px */

  /* Z-index Layers */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;

  /* Transitions */
  --transition-fast: 160ms ease;
  --transition-base: 180ms ease;
  --transition-slow: 220ms ease;
  --transition-slower: 300ms ease;
}

/* ============================================
   Dark Mode
   ============================================ */
:root[data-theme='dark'] {
  /* Primary Colors */
  --color-primary: #1dbf73;           /* Same primary green */
  --color-dark-green: #1dbf73;        /* Brighter in dark mode */

  /* Text Colors */
  --color-ink: #f9fafb;
  --color-copy: #d1d5db;
  --color-muted: #aeb7c4;

  /* Surface Colors */
  --color-surface: #111827;
  --color-raised: #182231;
  --color-mist: #17241e;
  --color-border: #334155;

  /* Semantic Colors */
  --color-error: #ff9393;

  /* UI-Specific Colors */
  --color-header: rgb(17 24 39 / 94%);
  --color-hero-start: #111827;
  --color-hero-end: #17241e;
  --color-inverse-surface: #0b1110;
  --color-footer: #0b1110;
  --color-logo-plate: #f8fafc;       /* Keep light for logos */

  /* Shadows */
  --shadow-soft: 0 1rem 3rem rgb(0 0 0 / 22%);
  --shadow-medium: 0 1rem 2.5rem rgb(0 0 0 / 34%);
}
