/* Theme CSS - Movexa Design System */

/* Cairo Font Import (Variable font for better performance) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300..800&display=swap');

/* Design Tokens */
:root {
  /* Brand Colors */
  --color-primary: #005295;
  --color-primary-hover: #003d6e;
  --color-primary-light: #0066bb;
  --color-secondary: #aa0e0e;
  --color-secondary-hover: #8a0b0b;
  
  /* Surface Colors */
  --color-bg: #ffffff;
  --color-surface: #f7f9fc;
  --color-surface-hover: #eef2f6;
  
  /* Text Colors */
  --color-text: #101828;
  --color-text-secondary: #475467;
  --color-muted: #667085;
  --color-inverse: #ffffff;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-error: #ef4444;
  --color-error-light: #fee2e2;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;
  
  /* Shadows (Elevation) */
  --shadow-xs: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(16, 24, 40, 0.1), 0 1px 2px -1px rgba(16, 24, 40, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(16, 24, 40, 0.1), 0 4px 6px -4px rgba(16, 24, 40, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(16, 24, 40, 0.1), 0 8px 10px -6px rgba(16, 24, 40, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(16, 24, 40, 0.25);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Spacing Scale (4px base) */
  --gap-xs: 0.25rem;    /* 4px */
  --gap-sm: 0.5rem;     /* 8px */
  --gap-md: 0.75rem;    /* 12px */
  --gap-base: 1rem;     /* 16px */
  --gap-lg: 1.5rem;     /* 24px */
  --gap-xl: 2rem;       /* 32px */
  --gap-2xl: 3rem;      /* 48px */
  --gap-3xl: 4rem;      /* 64px */
  
  /* Container */
  --container: 1200px;
  --container-padding: 1rem;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
}

/* Typography Scale */
:root {
  /* Font Sizes (Fluid typography) */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2rem;        /* 32px mobile */
  --text-5xl: 2.5rem;      /* 40px desktop */
  --text-6xl: 3rem;        /* 48px */
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.75;
  
  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
}

/* Responsive Typography */
@media (min-width: 480px) {
  :root {
    --container-padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  :root {
    --text-4xl: 2.25rem;   /* 36px tablet */
    --container-padding: 2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --text-4xl: 2.5rem;    /* 40px desktop */
    --text-5xl: 3rem;      /* 48px */
  }
}

/* Typography - Clear Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin-bottom: var(--gap-lg);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
}

h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
}

h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

h5 {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
}

h6 {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

/* Responsive Heading Sizes */
@media (min-width: 768px) {
  h1 {
    font-size: var(--text-5xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-6xl);
  }
  
  h2 {
    font-size: var(--text-4xl);
  }
}

/* Body Text */
p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--gap-lg);
}

@media (min-width: 768px) {
  p {
    font-size: var(--text-lg);
  }
}

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

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

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Text Utilities */
strong, b {
  font-weight: var(--font-bold);
  color: var(--color-text);
}

small {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.text-muted {
  color: var(--color-muted);
}

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

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

