/* LegalTechAI - Main Stylesheet */
/* Professional Business Style - Conservative, Trustworthy, Established */

:root {
  /* === COLOR PALETTE === */
  /* Primary Colors - Deep Navy Blue */
  --color-primary: #1a237e;
  --color-primary-dark: #0d47a1;
  --color-primary-light: #283593;
  --color-primary-rgb: 26, 35, 126;
  
  /* Secondary Colors - Royal Blue */
  --color-secondary: #283593;
  --color-secondary-dark: #1a237e;
  --color-secondary-light: #3949ab;
  --color-secondary-rgb: 40, 53, 147;
  
  /* Accent Colors - Gold/Amber */
  --color-accent: #ffc107;
  --color-accent-dark: #ff8f00;
  --color-accent-light: #ffd54f;
  --color-accent-rgb: 255, 193, 7;
  
  /* Background Colors */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f5f5f5;
  --color-bg-tertiary: #e8eaf6;
  --color-bg-dark: #1a237e;
  
  /* Text Colors */
  --color-text-primary: #212121;
  --color-text-secondary: #424242;
  --color-text-muted: #757575;
  --color-text-light: #ffffff;
  --color-text-heading: #1a237e;
  
  /* Border Colors */
  --color-border: #e0e0e0;
  --color-border-dark: #bdbdbd;
  --color-border-light: #f5f5f5;
  
  /* Status Colors */
  --color-success: #4caf50;
  --color-error: #f44336;
  --color-warning: #ff9800;
  --color-info: #2196f3;
  
  /* === TYPOGRAPHY === */
  --font-family-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-family-heading: 'Georgia', 'Times New Roman', serif;
  --font-family-mono: 'Courier New', monospace;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* === SPACING === */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */
  
  /* === BORDERS === */
  --border-width: 1px;
  --border-width-thick: 2px;
  --border-radius-sm: 0.25rem;   /* 4px */
  --border-radius-md: 0.5rem;    /* 8px */
  --border-radius-lg: 0.75rem;   /* 12px */
  --border-radius-xl: 1rem;      /* 16px */
  --border-radius-full: 9999px;
  
  /* === 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);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-colored: 0 10px 15px -3px rgba(26, 35, 126, 0.3);
  
  /* === TRANSITIONS === */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* === Z-INDEX === */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* === LAYOUT === */
  --container-max-width: 1200px;
  --container-padding: 1rem;
  --section-padding-y: 4rem;
  
  /* === GRADIENTS === */
  --gradient-primary: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  --gradient-accent: linear-gradient(135deg, #ffc107 0%, #ffd54f 100%);
  --gradient-hero: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #283593 100%);
}

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-heading);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
  scroll-margin-top: 80px;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

/* === LAYOUT UTILITIES === */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding-y) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-align: center;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border: var(--border-width) solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg-tertiary);
}

/* === CARDS === */
.card {
  background: var(--color-bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
}

/* === RESPONSIVE === */
@media (max-width: 1023px) {
  :root {
    --section-padding-y: 3rem;
  }
  
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  h3 { font-size: var(--font-size-2xl); }
}

@media (max-width: 767px) {
  :root {
    --container-padding: 1rem;
    --section-padding-y: 2rem;
  }
  
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}
