/**
 * ============================================================================
 * STEADFAST COMPANION - DESIGN SYSTEM (GLOBAL LAYER)
 * ============================================================================
 *
 * Version: 1.0.0
 * Description: Complete CSS token system and utility classes
 * Brand: Calm, warm, grounded aesthetic for dog vision loss support
 *
 * Structure:
 * 1. CSS Custom Properties (Design Tokens)
 * 2. Reset & Base Styles
 * 3. Global Utility Classes
 * 4. Container System
 *
 * Token Naming Convention:
 * --{category}-{property}-{variant}-{state}
 *
 * Examples:
 * --color-primary-500
 * --space-4
 * --radius-md
 * --shadow-soft-lg
 *
 * ============================================================================
 */


/* ============================================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================================ */

:root {
  /* ------------------------------------
     COLOR TOKENS
     Based on Steadfast Companion brand strategy
     Palette: Grounded Calm (warm neutrals)
     ------------------------------------ */

  /* Primary Palette */
  --color-sage-50: #f0f3f1;
  --color-sage-100: #e1e8e3;
  --color-sage-200: #c8d4cc;
  --color-sage-300: #B5C4B1;        /* Soft Sage - Primary accent */
  --color-sage-400: #9fb09b;
  --color-sage-500: #8a9d86;
  --color-sage-600: #6e7d6b;

  --color-stone-50: #faf9f7;
  --color-stone-100: #f5f2ed;       /* Cream - Secondary background */
  --color-stone-200: #ebe6dd;
  --color-stone-300: #e8dcc4;       /* Pale Gold - Highlights */
  --color-stone-400: #D4C8B8;       /* Warm Stone - Primary background */
  --color-stone-500: #c0b4a4;
  --color-stone-600: #a89d8e;

  --color-terracotta-50: #f9f3f1;
  --color-terracotta-100: #f2e6e1;
  --color-terracotta-200: #e5d2ca;
  --color-terracotta-300: #C89F91;  /* Muted Terra Cotta - CTA */
  --color-terracotta-400: #b88d7f;
  --color-terracotta-500: #a87b6d;
  --color-terracotta-600: #8f6659;

  --color-slate-50: #f7f8f9;
  --color-slate-100: #ebedef;
  --color-slate-200: #d7dbde;
  --color-slate-300: #c3c9cd;
  --color-slate-400: #a8b1b8;
  --color-slate-500: #5A6B73;       /* Deep Slate - Subheadings */
  --color-slate-600: #4a5a61;

  --color-charcoal-50: #f5f5f5;
  --color-charcoal-100: #e0e0e0;
  --color-charcoal-200: #c2c2c2;
  --color-charcoal-300: #a3a3a3;
  --color-charcoal-400: #6e6e6e;
  --color-charcoal-500: #3A3A3A;    /* Charcoal - Primary text */
  --color-charcoal-600: #2e2e2e;
  --color-charcoal-700: #1f1f1f;

  /* Semantic Color Tokens */
  --color-background-primary: var(--color-stone-100);     /* #F5F2ED - Main background */
  --color-background-secondary: #ffffff;                   /* Pure white - Cards, sections */
  --color-background-tertiary: var(--color-stone-400);    /* #D4C8B8 - Warm Stone */

  --color-text-primary: var(--color-charcoal-500);        /* #3A3A3A - Body text */
  --color-text-secondary: var(--color-slate-500);         /* #5A6B73 - Secondary text */
  --color-text-tertiary: #777777;                         /* Muted text */
  --color-text-inverse: #ffffff;                          /* Text on dark backgrounds */

  --color-accent-primary: var(--color-sage-300);          /* #B5C4B1 - Soft Sage */
  --color-accent-secondary: var(--color-stone-400);       /* #D4C8B8 - Warm Stone */
  --color-accent-tertiary: var(--color-stone-300);        /* #E8DCC4 - Pale Gold */

  --color-cta-primary: var(--color-terracotta-300);       /* #C89F91 - Primary buttons */
  --color-cta-primary-hover: var(--color-terracotta-400); /* #b88d7f - Hover state */
  --color-cta-primary-active: var(--color-terracotta-500);

  --color-border-subtle: rgba(181, 196, 177, 0.2);        /* Soft borders */
  --color-border-medium: rgba(181, 196, 177, 0.4);
  --color-border-accent: var(--color-sage-300);

  --color-error: #d9534f;                                 /* Form errors */
  --color-success: #8a9d86;

  /* ------------------------------------
     TYPOGRAPHY TOKENS
     System font stack for maximum readability
     ------------------------------------ */

  --font-family-base: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI',
                      'Roboto', 'Helvetica Neue', system-ui, sans-serif;
  --font-family-headings: var(--font-family-base);

  /* Font Size Scale (fluid, responsive) */
  --font-size-xs: 0.75rem;          /* 12px */
  --font-size-sm: 0.875rem;         /* 14px */
  --font-size-base: 1rem;           /* 16px */
  --font-size-md: 1.125rem;         /* 18px */
  --font-size-lg: 1.25rem;          /* 20px */
  --font-size-xl: 1.5rem;           /* 24px */
  --font-size-2xl: 1.875rem;        /* 30px */
  --font-size-3xl: 2.25rem;         /* 36px */
  --font-size-4xl: 3rem;            /* 48px */
  --font-size-5xl: 3.75rem;         /* 60px */
  --font-size-6xl: 4.5rem;          /* 72px */

  /* Font Weight Scale */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Height Scale */
  --line-height-tight: 1.15;        /* Headlines */
  --line-height-snug: 1.3;          /* Subheadings */
  --line-height-normal: 1.6;        /* Body text */
  --line-height-relaxed: 1.7;       /* Comfortable reading */
  --line-height-loose: 1.8;         /* Stress-reduced reading */

  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;  /* Large headlines */
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.5px;     /* Labels, uppercase */

  /* ------------------------------------
     SPACING TOKENS
     0.25rem (4px) increments for precision
     ------------------------------------ */

  --space-0: 0;
  --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 */
  --space-32: 8rem;                 /* 128px */

  /* Semantic Spacing */
  --space-section-sm: var(--space-16);      /* 64px - Small sections */
  --space-section-md: var(--space-20);      /* 80px - Medium sections */
  --space-section-lg: var(--space-24);      /* 96px - Large sections */

  /* ------------------------------------
     BORDER RADIUS TOKENS
     Soft, approachable corners
     ------------------------------------ */

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-full: 9999px;            /* Pills, circles */

  /* ------------------------------------
     SHADOW TOKENS
     Very soft, calming shadows
     ------------------------------------ */

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);         /* Gentle, calming */

  /* Focus Shadow */
  --shadow-focus: 0 0 0 3px var(--color-accent-primary);

  /* ------------------------------------
     BREAKPOINT TOKENS
     Mobile-first approach
     ------------------------------------ */

  --breakpoint-sm: 640px;           /* Small tablets */
  --breakpoint-md: 768px;           /* Tablets */
  --breakpoint-lg: 1024px;          /* Small desktops */
  --breakpoint-xl: 1280px;          /* Large desktops */
  --breakpoint-2xl: 1536px;         /* Extra large screens */

  /* ------------------------------------
     Z-INDEX SCALE
     Predictable layering system
     ------------------------------------ */

  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* ------------------------------------
     TRANSITION TOKENS
     Smooth, calming animations
     ------------------------------------ */

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-all: all 250ms ease;

  /* ------------------------------------
     OPACITY SCALE
     ------------------------------------ */

  --opacity-0: 0;
  --opacity-10: 0.1;
  --opacity-20: 0.2;
  --opacity-30: 0.3;
  --opacity-40: 0.4;
  --opacity-50: 0.5;
  --opacity-60: 0.6;
  --opacity-70: 0.7;
  --opacity-80: 0.8;
  --opacity-90: 0.9;
  --opacity-100: 1;
}


/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */

/* Modern CSS Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Respect reduced motion preferences */
@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;
  }
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-background-primary);
  min-height: 100vh;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: 0;
}

p {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* Remove default list styles */
ul, ol {
  list-style: none;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 3px solid var(--color-accent-primary);
  outline-offset: 3px;
}


/* ============================================================================
   3. CONTAINER SYSTEM
   ============================================================================ */

/* Base container with max-width constraints */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.container-fluid {
  width: 100%;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

/* Responsive container adjustments */
@media (max-width: 768px) {
  .container,
  .container-narrow,
  .container-wide,
  .container-fluid {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}


/* ============================================================================
   4. LAYOUT UTILITIES - FLEXBOX
   ============================================================================ */

/* Flex Containers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

/* Flex Direction */
.flex-row {
  flex-direction: row;
}

.flex-row-reverse {
  flex-direction: row-reverse;
}

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

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

/* Flex Wrap */
.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

/* Justify Content */
.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

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

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

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

/* Align Items */
.items-start {
  align-items: flex-start;
}

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

.items-end {
  align-items: flex-end;
}

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

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

/* Align Self */
.self-start {
  align-self: flex-start;
}

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

.self-end {
  align-self: flex-end;
}

/* Flex Grow/Shrink */
.flex-1 {
  flex: 1 1 0%;
}

.flex-auto {
  flex: 1 1 auto;
}

.flex-none {
  flex: none;
}

/* Gap Utilities */
.gap-0 { gap: var(--space-0); }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }
.gap-20 { gap: var(--space-20); }


/* ============================================================================
   5. LAYOUT UTILITIES - GRID
   ============================================================================ */

/* Grid Containers */
.grid {
  display: grid;
}

.inline-grid {
  display: inline-grid;
}

/* Grid Template Columns (common patterns) */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Auto-fit responsive grids */
.grid-auto-fit-sm {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-auto-fit-md {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-fit-lg {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Column Span */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-full { grid-column: 1 / -1; }


/* ============================================================================
   6. SPACING UTILITIES
   ============================================================================ */

/* Padding - All Sides */
.p-0 { padding: var(--space-0); }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.p-12 { padding: var(--space-12); }
.p-16 { padding: var(--space-16); }
.p-20 { padding: var(--space-20); }

/* Padding - X-axis (left + right) */
.px-0 { padding-left: var(--space-0); padding-right: var(--space-0); }
.px-1 { padding-left: var(--space-1); padding-right: var(--space-1); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-5 { padding-left: var(--space-5); padding-right: var(--space-5); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }
.px-10 { padding-left: var(--space-10); padding-right: var(--space-10); }
.px-12 { padding-left: var(--space-12); padding-right: var(--space-12); }

/* Padding - Y-axis (top + bottom) */
.py-0 { padding-top: var(--space-0); padding-bottom: var(--space-0); }
.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-10 { padding-top: var(--space-10); padding-bottom: var(--space-10); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }

/* Padding - Individual Sides */
.pt-0 { padding-top: var(--space-0); }
.pt-4 { padding-top: var(--space-4); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }
.pt-12 { padding-top: var(--space-12); }
.pt-16 { padding-top: var(--space-16); }
.pt-20 { padding-top: var(--space-20); }

.pb-0 { padding-bottom: var(--space-0); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }
.pb-12 { padding-bottom: var(--space-12); }
.pb-16 { padding-bottom: var(--space-16); }
.pb-20 { padding-bottom: var(--space-20); }

/* Margin - All Sides */
.m-0 { margin: var(--space-0); }
.m-auto { margin: auto; }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }
.m-12 { margin: var(--space-12); }

/* Margin - X-axis */
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-0 { margin-left: var(--space-0); margin-right: var(--space-0); }
.mx-4 { margin-left: var(--space-4); margin-right: var(--space-4); }
.mx-6 { margin-left: var(--space-6); margin-right: var(--space-6); }

/* Margin - Y-axis */
.my-0 { margin-top: var(--space-0); margin-bottom: var(--space-0); }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.my-6 { margin-top: var(--space-6); margin-bottom: var(--space-6); }
.my-8 { margin-top: var(--space-8); margin-bottom: var(--space-8); }
.my-12 { margin-top: var(--space-12); margin-bottom: var(--space-12); }

/* Margin - Individual Sides */
.mt-0 { margin-top: var(--space-0); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-0 { margin-bottom: var(--space-0); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }


/* ============================================================================
   7. TYPOGRAPHY UTILITIES
   ============================================================================ */

/* Font Size */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-md { font-size: var(--font-size-md); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }
.text-5xl { font-size: var(--font-size-5xl); }

/* Font Weight */
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Line Height */
.leading-tight { line-height: var(--line-height-tight); }
.leading-snug { line-height: var(--line-height-snug); }
.leading-normal { line-height: var(--line-height-normal); }
.leading-relaxed { line-height: var(--line-height-relaxed); }
.leading-loose { line-height: var(--line-height-loose); }

/* Letter Spacing */
.tracking-tight { letter-spacing: var(--letter-spacing-tight); }
.tracking-normal { letter-spacing: var(--letter-spacing-normal); }
.tracking-wide { letter-spacing: var(--letter-spacing-wide); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Font Style */
.italic { font-style: italic; }
.not-italic { font-style: normal; }

/* Text Color */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-inverse { color: var(--color-text-inverse); }


/* ============================================================================
   8. BACKGROUND UTILITIES
   ============================================================================ */

/* Background Colors */
.bg-primary { background-color: var(--color-background-primary); }
.bg-secondary { background-color: var(--color-background-secondary); }
.bg-tertiary { background-color: var(--color-background-tertiary); }

.bg-sage-300 { background-color: var(--color-sage-300); }
.bg-stone-100 { background-color: var(--color-stone-100); }
.bg-stone-400 { background-color: var(--color-stone-400); }
.bg-terracotta-300 { background-color: var(--color-terracotta-300); }
.bg-charcoal-500 { background-color: var(--color-charcoal-500); }
.bg-white { background-color: #ffffff; }

/* Gradient Backgrounds */
.bg-gradient-sage {
  background: linear-gradient(135deg, var(--color-sage-300) 0%, var(--color-stone-400) 100%);
}

.bg-gradient-stone {
  background: linear-gradient(135deg, var(--color-stone-400) 0%, var(--color-stone-300) 100%);
}

.bg-gradient-calm {
  background: linear-gradient(180deg, var(--color-stone-100) 0%, #ffffff 100%);
}

.bg-gradient-subtle {
  background: linear-gradient(135deg,
    rgba(181, 196, 177, 0.08) 0%,
    rgba(232, 220, 196, 0.08) 100%);
}


/* ============================================================================
   9. BORDER UTILITIES
   ============================================================================ */

/* Border Width */
.border { border: 1px solid; }
.border-0 { border: 0; }
.border-2 { border: 2px solid; }
.border-4 { border: 4px solid; }

.border-t { border-top: 1px solid; }
.border-r { border-right: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-l { border-left: 1px solid; }

/* Border Color */
.border-subtle { border-color: var(--color-border-subtle); }
.border-medium { border-color: var(--color-border-medium); }
.border-accent { border-color: var(--color-border-accent); }
.border-transparent { border-color: transparent; }

/* Border Radius */
.rounded-none { border-radius: 0; }
.rounded-xs { border-radius: var(--radius-xs); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }


/* ============================================================================
   10. SHADOW UTILITIES
   ============================================================================ */

.shadow-none { box-shadow: none; }
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-soft { box-shadow: var(--shadow-soft); }


/* ============================================================================
   11. DISPLAY UTILITIES
   ============================================================================ */

.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Opacity */
.opacity-0 { opacity: var(--opacity-0); }
.opacity-10 { opacity: var(--opacity-10); }
.opacity-20 { opacity: var(--opacity-20); }
.opacity-30 { opacity: var(--opacity-30); }
.opacity-50 { opacity: var(--opacity-50); }
.opacity-70 { opacity: var(--opacity-70); }
.opacity-100 { opacity: var(--opacity-100); }


/* ============================================================================
   12. POSITION UTILITIES
   ============================================================================ */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Z-Index */
.z-base { z-index: var(--z-base); }
.z-dropdown { z-index: var(--z-dropdown); }
.z-sticky { z-index: var(--z-sticky); }
.z-overlay { z-index: var(--z-overlay); }
.z-modal { z-index: var(--z-modal); }


/* ============================================================================
   13. DIMENSION UTILITIES
   ============================================================================ */

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-fit { width: fit-content; }

/* Max Width */
.max-w-xs { max-width: 320px; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }
.max-w-xl { max-width: 1000px; }
.max-w-2xl { max-width: 1200px; }
.max-w-full { max-width: 100%; }

/* Height */
.h-auto { height: auto; }
.h-full { height: 100%; }


/* ============================================================================
   14. OVERFLOW UTILITIES
   ============================================================================ */

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-visible { overflow: visible; }


/* ============================================================================
   15. TRANSITION UTILITIES
   ============================================================================ */

.transition-none { transition: none; }
.transition-fast { transition: var(--transition-fast); }
.transition-base { transition: var(--transition-base); }
.transition-slow { transition: var(--transition-slow); }
.transition-all { transition: var(--transition-all); }


/* ============================================================================
   16. ACCESSIBILITY UTILITIES
   ============================================================================ */

/* Screen Reader Only - Visually hidden but accessible to assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Skip Link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-charcoal-500);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  z-index: var(--z-modal);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-2);
  left: var(--space-2);
}


/* ============================================================================
   17. RESPONSIVE UTILITIES
   ============================================================================ */

/* Hide on mobile, show on tablet+ */
.hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hidden-mobile {
    display: block;
  }
}

/* Show on mobile, hide on tablet+ */
.visible-mobile {
  display: block;
}

@media (min-width: 768px) {
  .visible-mobile {
    display: none;
  }
}

/* Responsive flex direction */
@media (max-width: 767px) {
  .flex-col-mobile {
    flex-direction: column;
  }
}

/* Responsive grid columns */
@media (max-width: 767px) {
  .grid-cols-1-mobile {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}


/* ============================================================================
   18. INTERACTION UTILITIES
   ============================================================================ */

.pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* Hover states (only on devices that support hover) */
@media (hover: hover) {
  .hover\:scale-up:hover {
    transform: translateY(-4px);
  }

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

  .hover\:opacity-80:hover {
    opacity: var(--opacity-80);
  }
}


/* ============================================================================
   19. OBJECT FIT UTILITIES
   ============================================================================ */

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-center { object-position: center; }
.object-top { object-position: top; }


/* ============================================================================
   END OF GLOBAL DESIGN SYSTEM
   ============================================================================ */