/**
 * União Energy — Design Tokens Oficiais (v1.0.0)
 * Sincronizado 1:1 com docs/design-tokens.json (prefixo --ue-*)
 * Direção: Editorial luminoso inspirado na Ramp com identidade oficial da União Home Center
 */
:root {
  /* Marca — Azul União */
  --ue-brand-primary: #004070;
  --ue-brand-primary-hover: #003156;
  --ue-brand-primary-mid: #00528f;
  --ue-brand-dark: #002644;
  --ue-brand-dark-deep: #071726;
  --ue-brand-tint: #ebf3f9;
  --ue-brand-tint-border: #c6ddf0;

  /* Acento — Amarelo Solar União */
  --ue-accent-solar: #ffb000;
  --ue-accent-solar-hover: #eaa000;
  --ue-accent-solar-active: #d69200;
  --ue-accent-solar-text: #8a5600;
  --ue-accent-solar-text-on-tint: #7a4b00;
  --ue-accent-solar-tint: #fff7e0;
  --ue-accent-solar-border: #ffe5a3;

  /* Herança — Vermelho Telhado União (uso cirúrgico) */
  --ue-heritage-red: #e02028;
  --ue-heritage-red-dark: #b81820;
  --ue-heritage-red-tint: #fdecec;

  /* Superfícies */
  --ue-bg-canvas: #ffffff;
  --ue-bg-surface: #f6f6f4;
  --ue-bg-surface-subtle: #efefec;
  --ue-bg-elevated: #ffffff;
  --ue-bg-dark: #002644;
  --ue-bg-overlay: rgba(11, 18, 24, 0.48);

  /* Tipografia / Tintas (WCAG AA/AAA verificados) */
  --ue-text-primary: #0b1218;
  --ue-text-secondary: #475467;
  --ue-text-muted: #596577;
  --ue-text-on-dark: #ffffff;
  --ue-text-on-dark-muted: #cbd5e1;
  --ue-text-on-solar: #0b1218;
  --ue-text-on-brand: #ffffff;
  --ue-text-link: #004070;
  --ue-text-link-hover: #00528f;

  /* Bordas */
  --ue-border-default: #e4e6ea;
  --ue-border-strong: #d0d5dd;
  --ue-border-subtle: #eeeeec;
  --ue-border-focus: #00528f;
  --ue-border-on-dark: rgba(255, 255, 255, 0.14);

  --ue-line-hairline: 1px solid #e4e6ea;
  --ue-line-control: 1px solid #d0d5dd;
  --ue-line-solar: 1px solid #ffe5a3;
  --ue-line-brand: 1px solid #c6ddf0;
  --ue-focus-ring: 0 0 0 3px rgba(0, 82, 143, 0.22);

  /* Semânticas */
  --ue-semantic-success-text: #0f7a4d;
  --ue-semantic-success-text-on-tint: #0c6640;
  --ue-semantic-success-bg: #e8f7f0;
  --ue-semantic-success-border: #b8e6d0;
  --ue-semantic-warning-text: #8a5600;
  --ue-semantic-warning-text-on-tint: #7a4b00;
  --ue-semantic-warning-bg: #fff7e0;
  --ue-semantic-warning-border: #ffe5a3;
  --ue-semantic-error-text: #b81820;
  --ue-semantic-error-bg: #fdecec;
  --ue-semantic-error-border: #f7c4c7;

  /* Famílias Tipográficas */
  --ue-font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ue-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ue-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Pesos */
  --ue-weight-regular: 400;
  --ue-weight-medium: 500;
  --ue-weight-semibold: 600;
  --ue-weight-bold: 700;

  /* Tamanhos */
  --ue-size-hero: clamp(2.25rem, 4.8vw, 3.75rem);
  --ue-size-section: clamp(1.75rem, 3.2vw, 2.625rem);
  --ue-size-metric: clamp(2.125rem, 3.6vw, 3rem);
  --ue-size-card: clamp(1.25rem, 1.8vw, 1.375rem);
  --ue-size-sub: 1.125rem;
  --ue-size-lead: clamp(1rem, 1.4vw, 1.1875rem);
  --ue-size-base: 1rem;
  --ue-size-small: 0.875rem;
  --ue-size-eyebrow: 0.8125rem;
  --ue-size-caption: 0.75rem;

  /* Entrelinhas */
  --ue-lh-hero: 1.06;
  --ue-lh-section: 1.12;
  --ue-lh-metric: 1.05;
  --ue-lh-card: 1.25;
  --ue-lh-sub: 1.35;
  --ue-lh-lead: 1.55;
  --ue-lh-base: 1.6;
  --ue-lh-small: 1.5;
  --ue-lh-tight: 1.2;

  /* Tracking */
  --ue-ls-hero: -0.035em;
  --ue-ls-section: -0.03em;
  --ue-ls-card: -0.02em;
  --ue-ls-sub: -0.015em;
  --ue-ls-lead: -0.01em;
  --ue-ls-normal: 0em;
  --ue-ls-eyebrow: 0.01em;
  --ue-ls-uppercase: 0.06em;

  /* Espaçamento (escala base 4px) */
  --ue-space-0: 0px;
  --ue-space-1: 4px;
  --ue-space-2: 8px;
  --ue-space-3: 12px;
  --ue-space-4: 16px;
  --ue-space-5: 20px;
  --ue-space-6: 24px;
  --ue-space-8: 32px;
  --ue-space-10: 40px;
  --ue-space-12: 48px;
  --ue-space-16: 64px;
  --ue-space-20: 80px;
  --ue-space-24: 96px;
  --ue-space-30: 120px;

  --ue-section-py: clamp(4rem, 7vw, 6.5rem);
  --ue-gutter: clamp(1.25rem, 3vw, 2.5rem);

  /* Layout */
  --ue-container-max: 1200px;
  --ue-container-reading: 760px;
  --ue-hero-input-max: 520px;
  --ue-navbar-height: 72px;
  --ue-navbar-height-mobile: 64px;

  /* Raios */
  --ue-radius-xs: 6px;
  --ue-radius-sm: 8px;
  --ue-radius-md: 10px;
  --ue-radius-lg: 14px;
  --ue-radius-xl: 18px;
  --ue-radius-2xl: 24px;
  --ue-radius-pill: 9999px;

  /* Sombras */
  --ue-shadow-none: none;
  --ue-shadow-subtle: 0 1px 2px rgba(11, 18, 24, 0.05);
  --ue-shadow-card: 0 4px 16px -4px rgba(11, 18, 24, 0.06), 0 1px 3px rgba(11, 18, 24, 0.04);
  --ue-shadow-elevated: 0 16px 40px -12px rgba(11, 18, 24, 0.10), 0 2px 6px rgba(11, 18, 24, 0.04);
  --ue-shadow-cta-solar-hover: 0 6px 18px rgba(255, 176, 0, 0.30);

  /* Motion */
  --ue-duration-fast: 150ms;
  --ue-duration-base: 220ms;
  --ue-duration-slow: 360ms;
  --ue-easing: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Z-index */
  --ue-z-base: 1;
  --ue-z-sticky: 40;
  --ue-z-drawer: 60;
  --ue-z-modal: 80;
}
