/* ═══════════════════════════════════════════════════════════════
   KETAMINE.NL - BRAND DESIGN SYSTEM
   Versie 1.0 - Februari 2026
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES (Design Tokens)
   ───────────────────────────────────────────────────────────── */
:root {
  /* Primary Colors */
  --color-electric-blue: #4A9EFF;
  --color-electric-blue-light: #6CB3FF;
  --color-electric-blue-dark: #3A7ECC;
  --color-electric-blue-10: rgba(74, 158, 255, 0.1);
  --color-electric-blue-20: rgba(74, 158, 255, 0.2);
  
  /* Neutral Colors (Ink & Slate) */
  --color-ink-dark: #101828;
  --color-ink: #1D2939;
  --color-slate: #344054;
  --color-slate-light: #475467;
  --color-slate-gray: #667085;
  --color-gray: #98A2B3;
  --color-gray-light: #D0D5DD;
  
  /* Background Colors - Warm */
  --color-cloud: #EDE8E0;
  --color-snow: #FBF9F6;
  --color-white: #FFFCF8;
  --color-warm-cream: #FFF9F0;
  --color-warm-peach: #FFF3E8;
  --color-warm-bg: #FFFCF8;
  
  /* Signal Colors */
  --color-amber: #F79F1A;
  --color-amber-light: rgba(247, 159, 26, 0.1);
  --color-emerald: #34D399;
  --color-emerald-light: rgba(52, 211, 153, 0.1);
  --color-coral: #F04438;
  --color-coral-light: rgba(240, 68, 56, 0.08);
  
  /* Typography */
  --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Monaco, monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Spacing Scale */
  --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 */
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;
  
  /* Shadows - Warm tones */
  --shadow-sm: 0 1px 3px rgba(120, 80, 40, 0.04), 0 1px 2px rgba(120, 80, 40, 0.06);
  --shadow-md: 0 4px 12px -2px rgba(120, 80, 40, 0.06), 0 2px 4px -2px rgba(120, 80, 40, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(120, 80, 40, 0.07), 0 4px 8px -4px rgba(120, 80, 40, 0.04);
  --shadow-xl: 0 24px 48px -8px rgba(120, 80, 40, 0.08), 0 8px 16px -6px rgba(120, 80, 40, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Container */
  --container-max: 1400px;
  --container-narrow: 1000px;
}

/* ─────────────────────────────────────────────────────────────
   BASE STYLES
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-dark);
  background-color: var(--color-warm-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-electric-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-electric-blue-dark);
}

/* ─────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  color: var(--color-ink-dark);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
}

p {
  margin-bottom: var(--space-4);
}

.text-lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-slate-gray);
}

.text-small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.text-xs {
  font-size: var(--text-xs);
}

.font-mono {
  font-family: var(--font-mono);
}

.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

/* ─────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* ─────────────────────────────────────────────────────────────
   GRID & FLEX
   ───────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ─────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  line-height: 1.5;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
}

.btn:focus {
  outline: 2px solid var(--color-electric-blue);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(135deg, #4A9EFF 0%, #3A8EEF 100%);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #3A8EEF 0%, #2B7DE9 100%);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(74, 158, 255, 0.35);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: var(--color-ink-dark);
  color: var(--color-white);
}

.btn--secondary:hover {
  background-color: var(--color-ink);
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-slate);
  border: 1.5px solid rgba(235, 225, 210, 0.5);
  backdrop-filter: blur(4px);
}

.btn--outline:hover {
  border-color: rgba(255, 183, 107, 0.3);
  color: var(--color-electric-blue);
  background: rgba(255, 243, 232, 0.3);
  transform: translateY(-1px);
}

.btn--emergency {
  background-color: var(--color-amber);
  color: var(--color-white);
}

.btn--emergency:hover {
  background-color: #E08D17;
  color: var(--color-white);
}

.btn--lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
}

/* ─────────────────────────────────────────────────────────────
   CARDS
   ───────────────────────────────────────────────────────────── */
.card {
  background: var(--color-warm-bg);
  border: 1px solid rgba(222, 212, 196, 0.45);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card--featured {
  border-color: rgba(255, 210, 160, 0.3);
  background: linear-gradient(135deg, var(--color-warm-bg) 0%, var(--color-warm-cream) 100%);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-slate-gray);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

/* ─────────────────────────────────────────────────────────────
   TAGS & BADGES
   ───────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-sm);
}

.tag--info {
  background-color: var(--color-electric-blue-10);
  color: var(--color-electric-blue);
  border: 1px solid var(--color-electric-blue-20);
}

.tag--warning {
  background-color: var(--color-amber-light);
  color: #B7791F;
  border: 1px solid rgba(247, 159, 26, 0.2);
}

.tag--success {
  background-color: var(--color-emerald-light);
  color: #0E9F6E;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.tag--danger {
  background-color: var(--color-coral-light);
  color: var(--color-coral);
  border: 1px solid rgba(240, 68, 56, 0.12);
}

/* ─────────────────────────────────────────────────────────────
   ALERTS & BANNERS
   ───────────────────────────────────────────────────────────── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert--emergency {
  background-color: rgba(240, 68, 56, 0.08);
  border: 1px solid rgba(240, 68, 56, 0.2);
}

.alert--warning {
  background-color: var(--color-amber-light);
  border: 1px solid rgba(247, 159, 26, 0.2);
}

.alert--info {
  background-color: var(--color-electric-blue-10);
  border: 1px solid var(--color-electric-blue-20);
}

.alert__icon {
  flex-shrink: 0;
  font-size: var(--text-xl);
}

.alert__content {
  flex: 1;
}

.alert__title {
  font-weight: var(--font-bold);
  margin-bottom: var(--space-1);
}

.alert__text {
  font-size: var(--text-sm);
  color: var(--color-slate-light);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.hidden {
  display: none;
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
