/* ==========================================================================
   NaChat — Design Tokens (Single Source of Truth)
   Import this file first in every page stylesheet.
   All brand colors, typography, spacing, motion, and layout tokens live here.
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------
     Brand Colors — NaChat Official (CTO Approved)
     ------------------------------------------------------------------ */
  --color-primary:            #0D4945;   /* Primary Brand Green */
  --color-primary-hover:      #1B5E56;   /* Primary Hover/Variant */
  --color-primary-dark:       #0A3835;   /* Primary Dark */
  --color-primary-tint:       rgba(13, 73, 69, 0.06);
  --color-primary-tint-strong:rgba(13, 73, 69, 0.12);

  --color-accent-lime:        #9BD35A;   /* Accent Lime */
  --color-accent-blue:        #0088CC;   /* Accent Blue */
  --color-accent-blue-hover:  #0077BB;
  --color-accent-blue-tint:   rgba(0, 136, 204, 0.08);

  --color-bg:                 #FFFFFF;
  --color-bg-secondary:       #F0F2F5;
  --color-text-body:          #5A5A5A;
  --color-text-heading:       #000000;
  --color-white:              #FFFFFF;
  --color-on-dark-muted:      #B0B0B0;
  --color-border:             #E5E5EA;
  
  --color-secondary-dark:     #1F2937;   /* Dark gray for alternative dark sections */
  --color-success:            #0D4945;
  --color-error:              #E53E3E;
  --color-warning:            #D69E2E;

  /* ------------------------------------------------------------------
     Typography — CTO Approved Fonts
     Space Grotesk: Display headings, major headings, brand/product statements
     Inter: Body, navigation, buttons, forms, metadata, UI
     ------------------------------------------------------------------ */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

  /* ------------------------------------------------------------------
     Spacing System — 4px Base Grid
     ------------------------------------------------------------------ */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;

  /* ------------------------------------------------------------------
     Border Radii
     ------------------------------------------------------------------ */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* ------------------------------------------------------------------
     Shadows — Elevation System
     ------------------------------------------------------------------ */
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:   0 4px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg:   0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-xl:   0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Legacy support */
  --shadow-rest: var(--shadow-sm);
  --shadow-lift: var(--shadow-lg);

  /* ------------------------------------------------------------------
     Breakpoints — Responsive Design
     ------------------------------------------------------------------ */
  --breakpoint-mobile:  480px;
  --breakpoint-tablet:  768px;
  --breakpoint-laptop:  1024px;
  --breakpoint-desktop: 1280px;
  --breakpoint-wide:    1536px;

  /* ------------------------------------------------------------------
     Motion
     ------------------------------------------------------------------ */
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    200ms;
  --dur-base:    300ms;
  --dur-slow:    500ms;

  /* ------------------------------------------------------------------
     Layout
     ------------------------------------------------------------------ */
  --container-max:         1200px;
  --section-pad-desktop:   120px;
  --section-pad-mobile:    64px;
  --gutter:                24px;

  /* ------------------------------------------------------------------
     Header
     ------------------------------------------------------------------ */
  --header-h:        80px;
  --header-h-mobile: 64px;
}

/* Reduced-motion override — applied globally */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration:       0.01ms !important;
    animation-iteration-count:1      !important;
    transition-duration:      0.01ms !important;
    scroll-behavior:          auto   !important;
  }
}
