/* ==========================================================================
   Design Tokens - CSS Custom Properties
   Huayi Medical Technology × MENGROU CARE
   Phase 3.2 — Visual Distinction & Desktop Presence
   ========================================================================== */

:root {
  /* Colors: Brand & Identity */
  --color-brand-primary: #154760;       /* Deep medical calm navy (Contrast on white: 9.3:1 - AAA) */
  --color-brand-primary-hover: #0E3245;
  --color-brand-secondary: #206882;     /* Darkened from #2A7F9D for better contrast (Contrast on white: 5.2:1 - AA) */
  --color-brand-secondary-hover: #154760;
  
  /* Care Accent (Warm Amber tone) */
  --color-care-accent: #B45309;         /* Hardened to amber-700 (Contrast on white: 4.6:1 - AA) */
  --color-care-accent-light: #FDF6F0;   /* Light amber tint for section background */

  /* Neutral Backgrounds & Surfaces */
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #F8FAFC;       /* Slate tinted soft gray */
  --color-bg-tertiary: #F1F5F9;
  --color-bg-warm-tint: #FAF9F6;       /* Warm soothing organic tint for care sections */
  --color-surface: #FFFFFF;

  /* Typography Colors - WCAG AA & AAA compliant */
  --color-text-primary: #1E293B;       /* High contrast body text (Contrast on white: 12.6:1 - AAA) */
  --color-text-secondary: #475569;     /* Secondary / meta text (Contrast on white: 7.0:1 - AAA) */
  --color-text-muted: #64748B;         /* Contrast on white: 4.6:1 - AA compliant */
  --color-text-on-dark: #FFFFFF;
  --color-text-on-dark-secondary: #E2E8F0;

  /* Borders & Dividers */
  --color-border: #CBD5E1;             /* Delineation border */
  --color-border-subtle: #E2E8F0;
  --color-border-focus: #206882;

  /* Feedback Colors */
  --color-success: #166534;            /* Contrast on white: 6.8:1 - AAA */
  --color-success-bg: #DCFCE7;
  --color-warning: #9A3412;            /* Contrast on white: 6.5:1 - AAA */
  --color-warning-bg: #FFEDD5;
  --color-error: #991B1B;              /* Contrast on white: 7.8:1 - AAA */
  --color-error-bg: #FEE2E2;

  /* Typography Scale - Scaled up ~15-20% for Desktop Presence */
  --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --font-size-display: clamp(2.25rem, 4vw, 3.25rem);    /* 36px ~ 52px (Scaled up for hero presence) */
  --font-size-h1: clamp(1.85rem, 3.2vw, 2.5rem);        /* 30px ~ 40px */
  --font-size-h2: clamp(1.5rem, 2.5vw, 1.875rem);       /* 24px ~ 30px */
  --font-size-h3: clamp(1.2rem, 2vw, 1.45rem);          /* 19px ~ 23px */
  --font-size-h4: 1.15rem;                              /* 18.5px */
  --font-size-body-large: 1.15rem;                      /* 18.5px */
  --font-size-body: 1.05rem;                            /* 16.8px */
  --font-size-body-small: 0.925rem;                     /* 14.8px */
  --font-size-caption: 0.8125rem;                       /* 13px */

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-snug: 1.4;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  /* Spacing System (4px baseline) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-8: 3rem;     /* 48px */
  --space-10: 4rem;    /* 64px */
  --space-12: 5rem;    /* 80px */
  --space-16: 6.5rem;  /* 104px (Enlarged section breathing room) */

  /* Layout Containers - Scaled up from 1240px to 1380px (~12-15% wider) */
  --container-max-width: 1380px;
  --container-reading-width: 820px;                     /* Enlarged for 1.05rem body text */
  --container-narrow-width: 1040px;
  --container-gutter: 2rem;

  /* Border Radii */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-full: 9999px;

  /* Shadows (Subtle, professional) */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
  --shadow-product: 0 8px 24px -4px rgba(21, 71, 96, 0.12); /* Subtle brand tinted shadow */

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1024px) {
  :root {
    --container-max-width: 100%;
    --container-gutter: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-gutter: 1rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
  }
}
