/*
  Kalender IT Service — Design Tokens
  Single source of truth for color, type, spacing, radius, shadow and motion.
  Consumed by base.css / components.css and page-level styles.
*/

:root {
  /* ---------------------------------------------------------------
     Color — midnight navy workspace with a restrained champagne accent
     --------------------------------------------------------------- */

  --color-bg: #0b111a;
  --color-bg-alt: #111b29;
  --color-surface: #192536;
  --color-surface-2: #202b3a;
  --color-surface-hover: #223247;
  --color-border: #344254;
  --color-border-strong: #526174;
  --color-overlay: rgba(5, 8, 14, 0.82);

  /* Text */
  --color-text: #f3f0e8;
  --color-text-muted: #aeb8c4;
  --color-text-faint: #8391a1;
  --color-text-on-accent: #111827;

  /* Primary accent — signal blue, used for CTAs, links, focus, highlights */
  --color-accent: #b8955a;
  --color-accent-hover: #d0ad70;
  --color-accent-active: #8c6a38;
  --color-accent-soft: rgba(184, 149, 90, 0.12);
  --color-accent-border: rgba(184, 149, 90, 0.38);

  /* Functional accent — reserved for WhatsApp contact only */
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #2fe377;

  /* Semantic */
  --color-success: #34c778;
  --color-error: #f2555c;
  --color-warning: #e8b34a;

  /* ---------------------------------------------------------------
     Typography
     --------------------------------------------------------------- */
  --font-heading: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;

  --fs-xs: 0.8125rem;                              /* 13px */
  --fs-sm: 0.9375rem;                              /* 15px */
  --fs-base: 1rem;                                 /* 16px */
  --fs-md: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);     /* 18–20px */
  --fs-lg: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem);     /* 22–26px */
  --fs-xl: clamp(1.75rem, 1.5rem + 1.1vw, 2.25rem);        /* 28–36px */
  --fs-2xl: clamp(2.25rem, 1.85rem + 1.8vw, 3.25rem);      /* 36–52px */
  --fs-3xl: clamp(2.75rem, 2.1rem + 2.9vw, 4.25rem);       /* 44–68px */

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.6;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;

  /* ---------------------------------------------------------------
     Spacing — 8px base scale
     --------------------------------------------------------------- */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-7: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-9: 6rem;      /* 96px */
  --space-10: 8rem;     /* 128px */

  /* ---------------------------------------------------------------
     Radius
     --------------------------------------------------------------- */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* ---------------------------------------------------------------
     Shadow / depth — tuned for dark surfaces (soft black + hairline)
     --------------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 8px 24px -16px rgba(0, 0, 0, 0.62);
  --shadow-lg: 0 20px 48px -24px rgba(0, 0, 0, 0.72);
  --shadow-accent-glow: 0 0 0 1px var(--color-accent-border), 0 12px 30px -16px rgba(184, 149, 90, 0.32);

  /* ---------------------------------------------------------------
     Motion
     --------------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 240ms;
  --duration-slow: 420ms;

  /* ---------------------------------------------------------------
     Layout
     --------------------------------------------------------------- */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-height: 76px;

  /* ---------------------------------------------------------------
     Z-index scale
     --------------------------------------------------------------- */
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}
