/**
 * ==============================================================================
 * AXCELLENT PHARMACHEM EQUIPMENTS - CENTRALISED DESIGN TOKENS & THEME
 * ==============================================================================
 * 
 * HOW TO CHANGE THE THEME:
 * ------------------------------------------------------------------------------
 * 1. Accent Color: Change `--accent` (and optionally `--accent-hover`, `--accent-glow`).
 *    By default, it is set to the brand steel-blue (#1F6FB5).
 * 2. Backgrounds & Surfaces: Modify `--bg-base`, `--bg-surface`, `--bg-elevated`
 *    to switch between dark charcoal, obsidian black, or lighter palettes.
 * 3. Typography: Change `--font-heading` and `--font-body` to swap font families.
 * 4. Border Radii & Spacing: Adjust `--radius-*` and `--space-*` to tune geometry.
 * 5. Light Mode Support: Override the semantic tokens inside a `[data-theme="light"]`
 *    selector or body class.
 * 
 * All components and layouts MUST use these CSS custom properties.
 * No hard-coded hex colors or direct font family declarations elsewhere.
 * ==============================================================================
 */

:root {
  /* ==========================================================================
     1. BRAND & ACCENT PALETTE - Sleek Black & Grey Industrial Engineering
     ========================================================================== */
  --accent: #E2E8F0;             /* Polished steel / platinum contrast highlight */
  --accent-hover: #FFFFFF;
  --accent-active: #CBD5E1;
  --accent-subtle: rgba(226, 232, 240, 0.08);
  --accent-border: rgba(226, 232, 240, 0.22);
  --accent-glow: rgba(255, 255, 255, 0.12);
  --accent-contrast: #090B0E;

  /* Industrial Engineering Steel & Graphite Scale */
  --steel-50:  #F8FAFC;
  --steel-100: #F1F5F9;
  --steel-200: #E2E8F0;
  --steel-300: #CBD5E1;
  --steel-400: #94A3B8;
  --steel-500: #64748B;
  --steel-600: #475569;
  --steel-700: #334155;
  --steel-800: #1E293B;
  --steel-900: #0F172A;

  /* Secondary Engineering Hue: Deep Titanium Slate */
  --titanium: #3B82F6;
  --titanium-muted: #2A3950;
  --titanium-subtle: rgba(59, 130, 246, 0.08);

  /* ==========================================================================
     2. CLIENT SPECIFICATION: BLACK AND GREY INDUSTRIAL PALETTE
     ========================================================================== */
  --bg: #090B0E;                 /* Deep industrial black canvas */
  --bg-elevated: #0F1217;        /* Solid carbon sections & secondary panels */
  --bg-surface: #151820;         /* Matte graphite cards & containers */
  --bg-surface-hover: #1C212B;   /* Interactive card hover */
  --bg-glass: rgba(11, 13, 17, 0.95);
  --bg-glass-card: rgba(21, 24, 32, 0.96);

  /* Precision Technical Borders */
  --border: #232833;             /* Structural border */
  --border-subtle: #181C24;      /* Hairline divider */
  --border-bright: #333A4A;      /* Highlighted container outline */
  --border-focus: #94A3B8;       /* High-contrast focus outline */

  /* High Contrast Realistic Industrial Typography */
  --text: #F8FAFC;               /* Crisp pure solid white */
  --text-muted: #94A3B8;         /* Technical steel grey */
  --text-dim: #64748B;           /* Captions & metadata */
  --text-inverted: #090B0E;

  /* Semantic Feedback */
  --success: #22C55E;
  --success-bg: rgba(34, 197, 94, 0.12);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --info: #94A3B8;
  --info-bg: rgba(148, 163, 184, 0.12);

  /* Matte Metallic Gradients */
  --gradient-dark: linear-gradient(180deg, #090B0E 0%, #0F1217 100%);
  --gradient-card: linear-gradient(145deg, #161922 0%, #12141B 100%);
  --gradient-metallic: linear-gradient(135deg, #232835 0%, #151820 60%, #1A1F29 100%);
  --gradient-steel: linear-gradient(90deg, #FFFFFF 0%, #CBD5E1 100%);
  --gradient-badge: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);

  /* ==========================================================================
     3. TYPOGRAPHY (Fluid Scale with clamp())
     ========================================================================== */
  --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Fluid Font Sizes */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.9vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.65rem + 1.3vw, 2.375rem);
  --text-4xl: clamp(2.25rem, 1.95rem + 1.8vw, 3rem);
  --text-5xl: clamp(2.75rem, 2.3rem + 2.5vw, 4rem);
  --text-hero: clamp(3rem, 2.5rem + 3.2vw, 4.75rem);

  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Font Weights */
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Max Line Length for Reading Comfort */
  --max-line-length: 68ch;

  /* ==========================================================================
     4. SPACING SCALE
     ========================================================================== */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Section Rhythm */
  --section-padding-y: clamp(3.5rem, 3rem + 3vw, 6.5rem);
  --section-gap: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);

  /* ==========================================================================
     5. GEOMETRY & RADII
     ========================================================================== */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ==========================================================================
     6. ELEVATION & SHADOWS (Subtle Industrial Depth)
     ========================================================================== */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.75), 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.2);

  /* ==========================================================================
     7. TRANSITIONS & TIMINGS
     ========================================================================== */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ==========================================================================
     8. LAYOUT & BREAKPOINTS
     ========================================================================== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;
  --container-padding: clamp(1rem, 0.8rem + 1.2vw, 2.5rem);

  /* Header & Navigation */
  --header-height: 80px;
  --header-height-scrolled: 64px;
  --z-header: 1000;
  --z-drawer: 1100;
  --z-modal: 1200;
  --z-toast: 1300;
  --z-preloader: 9999;
}

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