/* Base styles with enhanced color system */
:root {
  /* Enhanced primary colors with depth */
  --color-primary: #2d3561;
  --color-primary-dark: hsl(230, 46%, 20%);
  --color-primary-light: #4a5596;
  --color-primary-text: #ffffff;
  --color-secondary: #d4a574;
  --color-secondary-light: #e6c29c;
  --color-secondary-dark: #b8945e;
  
  /* Enhanced grayscale palette */
  --color-gray-50: #fafbfc;
  --color-gray-100: #f4f6f8;
  --color-gray-200: #e8ecef;
  --color-gray-300: #d6dde4;
  --color-gray-400: #a3adb8;
  --color-gray-500: #73808d;
  --color-gray-600: #525f6d;
  --color-gray-700: #394047;
  --color-gray-800: #212529;
  --color-gray-900: #0f1419;
  
  /* Advanced gradient variables */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --gradient-hero: linear-gradient(135deg, var(--color-primary) 0%, #1a1f3a 50%, #000000 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  
  /* Shadow system */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(212, 165, 116, 0.3);
  
  /* Animation durations */
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;
  
  /* Easing curves */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  
  /* Border radius system */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Spacing system for consistent layouts */
  --spacing-section: 8rem;        /* 128px - consistent section padding */
  --spacing-section-md: 6rem;     /* 96px - medium screens */
  --spacing-section-sm: 4rem;     /* 64px - small screens */
  --spacing-section-xs: 3rem;     /* 48px - extra small screens */

  --spacing-card-padding: 2.5rem; /* 40px - card padding */
  --spacing-card-padding-md: 2rem;/* 32px - card padding medium */
  --spacing-card-padding-sm: 1.5rem; /* 24px - card padding small */

  --spacing-grid-gap: 2.5rem;     /* 40px - grid gap */
  --spacing-grid-gap-md: 2rem;    /* 32px - grid gap medium */
  --spacing-grid-gap-sm: 1.5rem;  /* 24px - grid gap small */

  /* Typography scale for consistent text sizing */
  /* Section headings */
  --font-size-section-title: clamp(2.25rem, 5vw, 3.5rem);  /* 36px - 56px - Hero sections */
  --font-size-section-heading: clamp(1.75rem, 4vw, 2.25rem);  /* 28px - 36px - Mid-level sections */
  --font-size-section-subtitle: clamp(1.125rem, 2.5vw, 1.375rem); /* 18px - 22px */

  /* Card/component headings */
  --font-size-card-title: clamp(1.25rem, 2.5vw, 1.5rem);  /* 20px - 24px */
  --font-size-card-subtitle: 1rem;  /* 16px */

  /* Body text */
  --font-size-body: 1rem;          /* 16px */
  --font-size-body-sm: 0.9375rem;  /* 15px */
  --font-size-body-xs: 0.875rem;   /* 14px */

  /* Labels/eyebrows */
  --font-size-label: 0.75rem;      /* 12px */

  /* Font weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Line heights */
  --line-height-tight: 1.2;
  --line-height-snug: 1.3;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;

  /* Letter spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.04em;
  --letter-spacing-wider: 0.12em;
}

/* Enhanced body with smooth scrolling */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-gray-900);
  margin: 0;
  min-height: 100vh;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
  
  /* Enhanced font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  
  
  /* Performance optimizations */
  will-change: auto;
}

/* Enhanced Typography System */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
}

/* Enhanced link styles */
a {
  color: inherit;
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-out);
}

a:hover {
  color: var(--color-secondary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
