/* ==========================================================================
   BASE STYLES
   - Variables
   - Reset
   - Typography
   ========================================================================== */

:root {
  /* Colors - Premium Medical Palette */
  --color-primary: #0F4C75;
  --color-primary-dark: #0a3554;
  --color-primary-light: #3282B8;
  /* New for gradients/hovers */

  --color-accent: #4DD599;
  --color-accent-dark: #3cb07d;
  --color-accent-glow: rgba(77, 213, 153, 0.4);
  /* For shadow glows */

  --color-text-dark: #111827;
  /* Richer dark */
  --color-text-body: #374151;
  /* Softer body text */
  --color-text-light: #6B7280;
  --color-text-white: #FFFFFF;

  --color-bg-body: #F3F4F6;
  /* Slight cool grey tint */
  --color-bg-white: #FFFFFF;
  --color-bg-surface: #F9FAFB;

  --color-border: #E5E7EB;
  --color-border-hover: #D1D5DB;

  /* Shadows - Tiered Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 10px 25px -5px rgba(15, 76, 117, 0.25);

  /* Typography */
  --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
  --font-family-arabic: 'Cairo', 'Inter', system-ui, sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Spacing - "Airy" Standard */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 8rem;
  /* More breathing room for sections */

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family-base);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* RTL Support for Body */
html[dir="rtl"] body {
  font-family: var(--font-family-arabic);
  direction: rtl;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

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

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

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}