/**
 * PMTurbo Design System
 * Inspiração: layout institucional premium (espaço, tipografia, cards suaves)
 * Identidade: azul #4B6FB4 · Plus Jakarta Sans
 */

:root {
  /* Brand */
  --brand-r: 75;
  --brand-g: 111;
  --brand-b: 180;
  --color-brand: #4b6fb4;
  --color-brand-deep: #3d5d96;
  --color-brand-light: #6d8bc4;
  --color-brand-muted: #e9edf6;
  --color-brand-soft: rgb(var(--brand-r) var(--brand-g) var(--brand-b) / 0.1);
  --color-brand-glow: rgb(var(--brand-r) var(--brand-g) var(--brand-b) / 0.35);

  /* Neutrals */
  --color-text: #141414;
  --color-text-secondary: #5a6270;
  --color-text-tertiary: #8b939e;
  --color-bg: #ffffff;
  --color-bg-elevated: #fafbfc;
  --color-bg-muted: #f3f5f8;
  --color-surface: #ffffff;
  --color-border: rgba(20, 20, 20, 0.08);
  --color-border-strong: rgba(20, 20, 20, 0.12);

  /* Aliases (compatibilidade) */
  --accent: var(--color-brand);
  --accent-deep: var(--color-brand-deep);
  --accent-light: var(--color-brand-light);
  --accent-lighter: var(--color-brand-muted);
  --accent-soft: var(--color-brand-soft);
  --text: var(--color-text);
  --muted: var(--color-text-secondary);
  --link-hover: var(--color-brand-deep);
  --bg: var(--color-bg);
  --bg-soft: var(--color-bg-muted);
  --surface: var(--color-surface);
  --dark: var(--color-text);
  --dark-soft: #2a2a2a;
  --border: var(--color-border);

  /* Typography */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.5rem, 2.8vw, 2rem);
  --text-3xl: clamp(1.75rem, 3.6vw, 2.55rem);
  --text-hero: clamp(2rem, 4.2vw, 3rem);
  --leading-tight: 1.12;
  --leading-snug: 1.35;
  --leading-normal: 1.65;
  --tracking-tight: -0.035em;
  --tracking-wide: 0.1em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-section: clamp(4rem, 9vw, 6.5rem);
  --space-section-sm: clamp(3rem, 6vw, 4.5rem);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 999px;
  --radius: var(--radius-md);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(20, 20, 20, 0.04);
  --shadow-sm: 0 4px 16px rgba(20, 20, 20, 0.06);
  --shadow-md: 0 12px 40px rgba(20, 20, 20, 0.08);
  --shadow-lg: 0 24px 64px rgba(20, 20, 20, 0.1);
  --shadow-xl: 0 32px 80px rgb(var(--brand-r) var(--brand-g) var(--brand-b) / 0.12);
  --shadow-card: 0 8px 32px rgba(20, 20, 20, 0.06);
  --shadow-card-hover: 0 16px 48px rgba(20, 20, 20, 0.1);
  --shadow: var(--shadow-md);
  --shadow-lg: var(--shadow-xl);

  /* Layout */
  --max-width: 1200px;
  --max: var(--max-width);
  --header-height: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 450ms;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-deep) 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgb(var(--brand-r) var(--brand-g) var(--brand-b) / 0.08) 0%, rgb(var(--brand-r) var(--brand-g) var(--brand-b) / 0.02) 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.28) 100%);
  --gradient-page-hero: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}
