@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* === COLOR PALETTE (Medical/Tech Theme) === */
  --color-navy:       #14294c;
  --color-navy-mid:   #1a365d;
  --color-navy-light: #29269b;
  --color-teal:       var(--color-navy-light); /* Royal Blue */
  --color-teal-dark:  var(--color-navy);       /* Dark Navy for hovers */
  --color-teal-light: rgba(41, 38, 155, 0.1);   /* Transparent Royal Blue */
  --color-electric-blue: #60a5fa;             /* Electric blue for highlights */
  --color-white:      #FFFFFF;
  --color-gray-50:    #F8FAFC;
  --color-gray-100:   #EEF2F7;
  --color-gray-300:   #CBD5E1;
  --color-gray-500:   #64748B;
  --color-gray-700:   #374151;
  --color-gray-900:   #111827;

  /* === GRADIENTS === */
  --gradient-hero:    linear-gradient(135deg, #14294c 0%, #1a365d 50%, #29269b 100%);
  --gradient-teal:    linear-gradient(135deg, #29269b 0%, #14294c 100%);

  /* === TYPOGRAPHY === */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  /* Font Sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* === SPACING SYSTEM === */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radii */
  --radius-sm:  0.375rem;
  --radius-md:  0.75rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-full: 9999px;

  /* Box Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg:   0 10px 25px rgba(0,0,0,0.10);
  --shadow-xl:   0 20px 40px rgba(0,0,0,0.12);
  --shadow-teal: 0 8px 25px rgba(41, 38, 155, 0.25);
  --shadow-card: 0 2px 20px rgba(0,0,0,0.08);

  /* Layout Limits */
  --container-max: 1200px;
  --container-px: var(--space-6);
  --section-py: var(--space-20);
}

/* === CSS RESET & GLOBAL BASES === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-gray-700);
  background-color: var(--color-gray-50);
  line-height: var(--leading-normal);
  overflow-x: hidden !important;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-gray-900);
  line-height: var(--leading-tight);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}

p {
  margin-bottom: var(--space-4);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === UTILITY LAYOUT CLASSES === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
  width: 100%;
}

.section-padding {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.bg-light {
  background-color: var(--color-gray-100);
}

.bg-navy {
  background: var(--gradient-hero);
}

.bg-dark {
  background-color: var(--color-navy);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-teal);
  color: white;
  padding: var(--space-3) var(--space-6);
  z-index: 99999;
  font-weight: var(--weight-semibold);
}
.skip-link:focus { top: 0; }
