/**
 * Lifeline Homeopathic Clinic - Core Design Tokens
 * 
 * Clinical, high-contrast, accessible visual system.
 * WCAG 2.1 AA/AAA Compliant.
 */

:root {
  /* ==========================================================================
     Brand & Clinical Color Palette
     ========================================================================== */
  
  /* Primary Green (Authority, Healing, Holistic Precision) */
  --primary-green: #167C63;
  --primary-green-hover: #126551;
  --primary-green-active: #0D4E3E;
  --primary-green-rgb: 22, 124, 99;

  /* Deep Green (Solid Contrast, Accents & Dark Elements) */
  --deep-green: #0F5F4D;
  --deep-green-rgb: 15, 95, 77;

  /* Soft & Light Green Tints (Card surfaces, subtle badges, active chips) */
  --soft-green: #EAF6F2;
  --light-green: #F5FBF9;

  /* Healthcare Blue (Clinical Trust, Diagnostics, Informational Elements) */
  --healthcare-blue: #216B8F;
  --healthcare-blue-hover: #19526D;
  --healthcare-blue-rgb: 33, 107, 143;

  /* Soft Blue (Background surfaces, highlight sections, quiet panels) */
  --soft-blue: #EEF7FB;
  --soft-blue-rgb: 238, 247, 251;

  /* Text Colors (High Contrast, WCAG AAA Readable) */
  --dark-text: #18302B;
  --dark-text-rgb: 24, 48, 43;
  --secondary-text: #647570;
  --muted-text: #8FA29C;

  /* Surface & Background */
  --surface-white: #FFFFFF;
  --surface-offwhite: #FAFCFB;
  --surface-card: #FFFFFF;

  /* Borders & Dividers */
  --border-color: #DDE9E5;
  --border-color-subtle: #EBF2F0;
  --border-color-focus: #167C63;

  /* Semantic Feedback Colors */
  --color-success: #167C63;
  --color-success-bg: #EAF6F2;
  --color-warning: #B35E00;
  --color-warning-bg: #FFF8E6;
  --color-warning-border: #F3D19C;
  --color-error: #B92528;
  --color-error-bg: #FDF2F2;
  --color-error-border: #F6B8B8;
  --color-info: #216B8F;
  --color-info-bg: #EEF7FB;
  --color-info-border: #C8E3F2;

  /* ==========================================================================
     Typography System
     ========================================================================== */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Font Sizes */
  --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 */

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-snug: 1.375;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.75;

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

  /* ==========================================================================
     Elevation & Shadows (Refined Medical Soft Shadows)
     ========================================================================== */
  --shadow-xs: 0 1px 2px 0 rgba(24, 48, 43, 0.04);
  --shadow-sm: 0 2px 4px 0 rgba(24, 48, 43, 0.06);
  --shadow-md: 0 4px 12px 0 rgba(24, 48, 43, 0.08);
  --shadow-lg: 0 12px 28px -4px rgba(24, 48, 43, 0.10);
  --shadow-xl: 0 20px 36px -6px rgba(24, 48, 43, 0.12);
  --shadow-card: 0 2px 8px rgba(22, 124, 99, 0.06), 0 1px 2px rgba(24, 48, 43, 0.04);
  --shadow-card-hover: 0 8px 24px rgba(22, 124, 99, 0.12), 0 2px 6px rgba(24, 48, 43, 0.06);

  /* ==========================================================================
     Border Radii
     ========================================================================== */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --radius-card: 14px;
  --radius-input: 8px;
  --radius-btn: 8px;

  /* ==========================================================================
     Spacing Scale
     ========================================================================== */
  --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 */

  /* ==========================================================================
     Layout & Max Widths
     ========================================================================== */
  --container-max-width: 1240px;
  --container-narrow-width: 860px;
  --container-padding: 1.5rem;

  /* ==========================================================================
     Transitions & Motion
     ========================================================================== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.25, 0.8, 0.25, 1);

  /* ==========================================================================
     Accessibility & Interaction Focus Rings
     ========================================================================== */
  --focus-ring: 0 0 0 3px rgba(22, 124, 99, 0.35);
  --focus-ring-offset: 2px;
  --tap-target-min: 44px;
}

/* ==========================================================================
   Utility Reset & Component Primitives for Lifeline Core
   ========================================================================== */

.lifeline-accessible-focus:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: var(--focus-ring-offset);
  box-shadow: var(--focus-ring);
}

/* Medical Disclaimer Box Primitive */
.lifeline-disclaimer-box {
  background-color: var(--soft-blue);
  border-left: 4px solid var(--healthcare-blue);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  color: var(--dark-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
}

.lifeline-disclaimer-box strong {
  color: var(--healthcare-blue);
}
