/* ==========================================================================
   Design tokens
   A "Jade + Coral" palette — chosen for a dental clinic specifically:
   jade/mint reads as fresh and clean (the mint-toothpaste association),
   coral gives it warmth so the site doesn't feel sterile. Everything else
   in the CSS reads from these variables — change the theme here, not
   throughout the stylesheets.
   ========================================================================== */

:root {
  /* ---------- Color ---------- */
  --color-bg: #F6F8F7;
  --color-surface: #FFFFFF;
  --color-surface-alt: #EFF4F2;
  --color-ink: #17231F;
  --color-ink-soft: #55655F;
  --color-ink-faint: #8A9A93;

  --color-primary: #0E6E5C;
  --color-primary-dark: #0A5347;
  --color-primary-light: #4FA893;
  --color-primary-soft: #E4F3EF;

  --color-accent: #FF6F59;
  --color-accent-dark: #E85641;
  --color-accent-soft: #FFE7E2;

  --color-border: #E3E9E6;
  --color-success: #1E9E6D;
  --color-success-soft: #E1F5EC;
  --color-danger: #E14B4B;
  --color-danger-soft: #FCE7E7;
  --color-warning: #C98A2C;
  --color-warning-soft: #FBF0DD;

  /* ---------- Typography ---------- */
  --font-latin: 'Lexend', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-body: var(--font-latin);

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;

  /* ---------- Radius ---------- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* ---------- Shadow (brand-tinted, soft — never pure black) ----------
     Derived from the brand colors via color-mix so per-tenant theme
     injection (main.js applyTheme) retints shadows automatically. */
  --shadow-sm: 0 1px 3px color-mix(in srgb, var(--color-primary) 8%, transparent),
    0 1px 2px color-mix(in srgb, var(--color-primary) 6%, transparent);
  --shadow-md: 0 8px 24px color-mix(in srgb, var(--color-primary) 10%, transparent),
    0 2px 6px color-mix(in srgb, var(--color-primary) 6%, transparent);
  --shadow-lg: 0 20px 48px color-mix(in srgb, var(--color-primary) 14%, transparent),
    0 4px 14px color-mix(in srgb, var(--color-primary) 8%, transparent);
  --shadow-accent: 0 10px 26px color-mix(in srgb, var(--color-accent) 30%, transparent);

  /* ---------- Spacing ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* ---------- Layout ---------- */
  --container-width: 1180px;
  --container-narrow: 760px;
  --header-height: 76px;

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 600ms;
}

[dir="rtl"] {
  --font-body: var(--font-arabic);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
