/**
 * Design Tokens
 * =============
 * Central design system variables for Kath Warraker website
 * 
 * Color Palette based on live site:
 * - Primary (headings): Deep navy blue rgb(11, 13, 99)
 * - Accent (buttons/links): Coral/salmon rgb(240, 142, 128)
 * - Background: Warm cream/blush tones
 * - Border accent: Sage green for testimonials
 */

:root {
  /* ==========================================
   * COLOR PALETTE
   * ========================================== */
  
  /* Primary Brand Color - Deep Navy Blue (for headings) */
  --color-primary: #0b0d63;           /* rgb(11, 13, 99) - navy blue */
  --color-primary-light: #1a1d8a;     /* Lighter navy for hover */
  --color-primary-dark: #06073d;      /* Darker navy */
  
  /* Accent Color - Coral/Salmon (for buttons, links, CTAs) */
  --color-accent: #f08e80;            /* rgb(240, 142, 128) - coral */
  --color-accent-light: #f4a99e;      /* Lighter coral for hover */
  --color-accent-dark: #e07060;       /* Darker coral for active */
  
  /* Secondary Accent - Sage Green (for testimonial borders, accents) */
  --color-secondary: #2d5a4a;         /* Deep sage green */
  --color-secondary-light: #3d7a64;   /* Lighter sage */
  --color-secondary-dark: #1d3a2a;    /* Darker sage */
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-cream: #fdf5ef;             /* Warm cream background */
  --color-cream-dark: #f8ebe1;        /* Slightly darker cream */
  --color-blush: #fef9f6;             /* Very light blush/cream */
  
  /* Footer Colors (Coral theme - WCAG AA compliant) */
  --color-footer-bg: #cc796d;                     /* Warm coral */
  --color-footer-heading: #FFFFFF;                /* White for headings */
  --color-footer-text: #FDF8F5;                   /* Warm off-white for body */
  --color-footer-muted: rgba(253, 248, 245, 0.85); /* Muted text */
  --color-footer-divider: rgba(255, 255, 255, 0.15); /* Internal divider */
  --color-footer-hover-bg: rgba(255, 255, 255, 0.10); /* Hover background tint */
  --color-gray-100: #f5f4f2;
  --color-gray-200: #e8e6e3;
  --color-gray-300: #d1cec9;
  --color-gray-400: #9e9a94;
  --color-gray-500: #6b6660;
  --color-gray-600: #4a4640;
  --color-gray-700: #333130;
  --color-gray-800: #1f1e1d;
  --color-black: #0d0d0c;
  
  /* Semantic Colors */
  --color-text-primary: var(--color-gray-800);
  --color-text-secondary: var(--color-gray-600);
  --color-text-muted: var(--color-gray-500);
  --color-text-inverse: var(--color-white);
  --color-text-heading: var(--color-primary);
  
  --color-bg-primary: var(--color-white);
  --color-bg-secondary: var(--color-cream);
  --color-bg-tertiary: var(--color-blush);
  
  --color-link: var(--color-accent);
  --color-link-hover: var(--color-accent-dark);
  
  --color-border: var(--color-gray-200);
  --color-border-dark: var(--color-gray-300);
  
  /* ==========================================
   * TYPOGRAPHY
   * ========================================== */
  
  /* Font Families 
   * Primary: Cormorant Garamond - elegant serif for headings
   * Secondary: Montserrat - clean sans-serif for body text
   */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Font Sizes - using clamp for fluid typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);      /* 12-14px */
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);         /* 14-16px */
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);      /* 16-18px */
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);         /* 18-20px */
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);        /* 20-24px */
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);         /* 24-32px */
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);     /* 30-40px */
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);         /* 36-48px */
  --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 4rem);           /* 44-64px */
  --text-6xl: clamp(3.5rem, 2.5rem + 5vw, 5rem);             /* 56-80px */
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* ==========================================
   * SPACING SCALE
   * ========================================== */
  
  --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-14: 3.5rem;    /* 56px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */
  
  /* Section Spacing */
  --section-padding-y: clamp(3rem, 5vw, 6rem);
  --section-padding-x: var(--space-4);
  
  /* ==========================================
   * LAYOUT
   * ========================================== */
  
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;
  
  /* Content Width */
  --content-width: min(90%, var(--container-xl));
  --content-width-narrow: min(90%, var(--container-md));
  --content-width-wide: min(95%, var(--container-2xl));
  
  /* ==========================================
   * BORDERS & SHAPES
   * ========================================== */
  
  --radius-none: 0;
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-3xl: 2rem;     /* 32px */
  --radius-full: 9999px;  /* Pill shape */
  
  /* Border Widths */
  --border-width: 1px;
  --border-width-2: 2px;
  --border-width-4: 4px;
  
  /* ==========================================
   * SHADOWS
   * ========================================== */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
  
  /* ==========================================
   * TRANSITIONS
   * ========================================== */
  
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-slower: 500ms ease;
  
  /* ==========================================
   * Z-INDEX SCALE
   * ========================================== */
  
  --z-behind: -1;
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
}

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