/*
  JADE Senior Care Services - CSS Variables
  Design tokens for consistent styling across the website
*/

:root {
  /* Colors - Primary Palette */
  --jade-primary: #2D7D32;           /* Deep jade green */
  --jade-light: #A8DADC;             /* Light jade for backgrounds */
  --jade-dark: #1B4332;              /* Deep forest green */
  --gold-primary: #FFD700;           /* Golden yellow */
  --gold-light: #FFF9C4;             /* Light gold for accents */
  --gold-dark: #FF8F00;              /* Darker gold for hover states */

  /* Colors - Neutral Palette */
  --white: #FEFEFE;                  /* Warm white */
  --gray-50: #F8F9FA;                /* Very light gray */
  --gray-100: #F1F3F4;               /* Light gray */
  --gray-200: #E8EAED;               /* Border gray */
  --gray-300: #DADCE0;               /* Divider gray */
  --gray-400: #BDC1C6;               /* Disabled gray */
  --gray-500: #9AA0A6;               /* Subtle gray */
  --gray-600: #80868B;               /* Muted gray */
  --gray-700: #5F6368;               /* Medium gray */
  --gray-800: #3C4043;               /* Dark gray */
  --gray-900: #1F2937;               /* Very dark gray */

  /* Colors - Text */
  --text-primary: var(--jade-dark);   /* Main text color */
  --text-secondary: var(--gray-700);  /* Secondary text */
  --text-muted: var(--gray-600);      /* Muted text */
  --text-light: var(--gray-500);      /* Light text */
  --text-white: var(--white);         /* White text */
  --text-accent: var(--gold-primary); /* Accent text */

  /* Colors - Semantic */
  --success: #10B981;                 /* Success green */
  --success-light: #D1FAE5;           /* Light success */
  --warning: #F59E0B;                 /* Warning orange */
  --warning-light: #FEF3C7;           /* Light warning */
  --error: #EF4444;                   /* Error red */
  --error-light: #FEE2E2;             /* Light error */
  --info: #3B82F6;                    /* Info blue */
  --info-light: #DBEAFE;              /* Light info */

  /* Typography - Font Families */
  --font-primary: 'Open Sans', system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-accent: 'Dancing Script', cursive;

  /* Typography - Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extra-bold: 800;

  /* Typography - Font Sizes (Mobile First) */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */

  /* Typography - Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Spacing Scale */
  --space-px: 1px;
  --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 */
  --space-40: 10rem;     /* 160px */
  --space-48: 12rem;     /* 192px */
  --space-56: 14rem;     /* 224px */
  --space-64: 16rem;     /* 256px */

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;   /* 2px */
  --radius-base: 0.25rem;  /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;   /* Full round */

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Z-Index Scale */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-auto: auto;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-tooltip: 1050;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  --transition-slower: 500ms ease-in-out;

  /* Breakpoints (for JavaScript use) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* Grid System */
  --grid-columns: 12;
  --grid-gap: var(--space-6);
  --grid-gap-sm: var(--space-4);
  --grid-gap-lg: var(--space-8);

  /* Component Specific Variables */
  --header-height: 80px;
  --header-height-mobile: 64px;
  --footer-padding: var(--space-16);
  --section-padding: var(--space-16);
  --section-padding-mobile: var(--space-12);

  /* Button Variables */
  --btn-padding-x: var(--space-6);
  --btn-padding-y: var(--space-3);
  --btn-padding-x-lg: var(--space-8);
  --btn-padding-y-lg: var(--space-4);
  --btn-border-radius: var(--radius-md);
  --btn-font-weight: var(--font-weight-semibold);

  /* Form Variables */
  --form-padding-x: var(--space-4);
  --form-padding-y: var(--space-3);
  --form-border-radius: var(--radius-base);
  --form-border-width: 1px;
  --form-border-color: var(--gray-300);
  --form-focus-color: var(--jade-primary);

  /* Card Variables */
  --card-padding: var(--space-6);
  --card-border-radius: var(--radius-xl);
  --card-shadow: var(--shadow-base);
  --card-border-color: var(--gray-200);

  /* Animation Curves */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Custom JADE Variables */
  --jade-gradient: linear-gradient(135deg, var(--jade-primary) 0%, var(--jade-dark) 100%);
  --gold-gradient: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  --hero-overlay: linear-gradient(135deg, rgba(45, 125, 50, 0.95) 0%, rgba(27, 67, 50, 0.98) 100%);
}

/* Dark mode variables (future implementation) */
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode overrides would go here */
    /* Currently maintaining light theme only per brand requirements */
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --transition-slower: 0ms;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --shadow-base: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
    --shadow-2xl: none;
  }
}