/**
 * Galaxy Service - CSS Design Tokens
 * Mobile-first, conversion-optimized for home appliance repair
 */

:root {
  /* ============================================
   * BRAND COLORS
   * ============================================ */
  --color-primary: #004BEB;
  --color-primary-dark: #0039B5;
  --color-primary-light: #3B82F6;
  --color-primary-alpha: rgba(0, 75, 235, 0.1);

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-off-white: #F8FAFC;
  --color-gray-50: #F1F5F9;
  --color-gray-100: #E2E8F0;
  --color-gray-200: #CBD5E1;
  --color-gray-300: #94A3B8;
  --color-gray-400: #64748B;
  --color-gray-500: #475569;
  --color-gray-600: #334155;
  --color-gray-700: #1E293B;
  --color-gray-800: #0F172A;
  --color-gray-900: #020617;

  /* Semantic Colors */
  --color-success: #10B981;
  --color-success-light: #D1FAE5;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* ============================================
   * TYPOGRAPHY
   * ============================================ */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-family-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Font Sizes - Custom scale for authentic feel */
  --text-xs: 0.8125rem;    /* 13px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.0625rem;    /* 17px */
  --text-xl: 1.125rem;     /* 18px */
  --text-2xl: 1.375rem;    /* 22px */
  --text-3xl: 1.625rem;    /* 26px */
  --text-4xl: 2rem;        /* 32px */
  --text-5xl: 2.5rem;      /* 40px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;

  /* ============================================
   * SPACING SCALE
   * Base: 4px - custom scale for non-generic feel
   * ============================================ */
  --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-14: 3.5rem;      /* 56px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  --space-24: 6rem;        /* 96px */

  /* ============================================
   * BORDERS & RADIUS
   * ============================================ */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ============================================
   * SHADOWS
   * Subtle, varied - avoid uniform card look
   * ============================================ */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* ============================================
   * BREAKPOINTS
   * Mobile-first approach
   * ============================================ */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* ============================================
   * LAYOUT
   * ============================================ */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 64px;
  --bottom-nav-height: 64px;

  /* ============================================
   * TRANSITIONS
   * ============================================ */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* ============================================
   * Z-INDEX SCALE
   * ============================================ */
  --z-base: 0;
  --z-above: 10;
  --z-sticky: 100;
  --z-fixed: 200;
  --z-modal: 300;
  --z-tooltip: 400;
}

/* ============================================
 * SAFE AREA INSETS
 * For notched mobile devices
 * ============================================ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  :root {
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-top: env(safe-area-inset-top);
  }
}

@supports not (padding-bottom: env(safe-area-inset-bottom)) {
  :root {
    --safe-area-inset-bottom: 0px;
    --safe-area-inset-top: 0px;
  }
}