/* Brand Design Tokens
   Centralized CSS custom properties for colors, spacing, typography, radii, shadows, z-index, motion.
   Import this before component styles. */
:root {
  /* Color Palette - Updated from brand guidelines */
  --color-brand-primary: #138e9e; /* Viridian Green - Main brand color */
  --color-brand-primary-soft: #19abc0; /* Lighter shade of Viridian */
  --color-brand-tint: #e2f5f7; /* Very light tint of Viridian */
  --color-brand-tint-alt: #d7eef2; /* Alternative light tint */
  --color-text-strong: #000000; /* Black - Secondary brand color for text */
  --color-text-soft: #3d4a52; /* Softer text for paragraphs */
  --color-text-invert: #ffffff; /* White text for dark backgrounds */
  --color-border: #dbecee; /* Light border color */
  --color-surface: #ffffff; /* White surface */
  --color-surface-alt: #f8fcfd; /* Very slight off-white for alternating sections */
  --color-focus-ring: rgba(
    19,
    142,
    158,
    0.35
  ); /* Focus ring using brand color */
  --color-danger: #d9534f;
  --color-warning: #f0ad4e;
  --color-success: #28a745;

  /* Typography */
  --font-family-base: 'Nunito Sans', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.25rem;
  --text-4xl: clamp(2.5rem, 5vw, 3.5rem);

  /* Line heights */
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Spacing Scale (4px base) */
  --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 */

  /* Radii */
  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08),
    0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px -6px rgba(0, 0, 0, 0.12),
    0 4px 8px -4px rgba(0, 0, 0, 0.08);
  --shadow-accent: 0 8px 24px -8px rgba(19, 142, 158, 0.25),
    0 2px 6px -2px rgba(0, 0, 0, 0.1);

  /* Motion */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-1: 120ms;
  --duration-2: 200ms;
  --duration-3: 300ms;
  --duration-4: 500ms;

  /* Layout */
  --container-max: 1600px; /* Expanded from 1320px to reduce empty space on sides */
  --container-pad-x: 1.25rem;

  /* Z layers */
  --z-base: 0;
  --z-header: 100;
  --z-overlay: 400;
  --z-modal: 800;
  --z-toast: 1000;

  /* Legacy variable aliases (backwards compatibility) */
  --brand-viridian: var(--color-brand-primary);
  --brand-viridian-light: var(--color-brand-primary-soft);
  --brand-viridian-soft: var(--color-brand-tint-alt);
  --brand-text-dark: var(--color-text-strong);
  --brand-text-mid: var(--color-text-soft);
  --primary-color: var(--color-brand-primary);
  --secondary-color: var(--color-brand-primary-soft);
  --text-primary: var(--color-text-strong);
  --text-secondary: var(--color-text-soft);
  --border-color: var(--color-border);
  --card-bg: var(--color-surface);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-1: 0ms;
    --duration-2: 0ms;
    --duration-3: 0ms;
    --duration-4: 0ms;
  }
}
