/* Art direction: Holding institucional brasileira, multi-setorial (energia, engenharia, incorporacao, varejo, etc)
   Tom: solido, sobrio, corporativo, confiavel -> azul-marinho profundo + branco
   Palette: azul principal #1B2B5D (Deep Navy), neutros em branco e cinza-frio
   Typography: Display -> Fraunces (serifada, editorial, transmite tradicao/solidez) + Body -> Inter (limpa, legivel)
   Density: balanced, generosa em paginas institucionais, compacta em listagens de noticias */

:root, [data-theme="light"] {
  --color-bg:             #ffffff;
  --color-surface:        #f7f8fa;
  --color-surface-2:      #eef1f5;
  --color-surface-offset: #e7eaf0;
  --color-surface-offset-2: #dde2ea;
  --color-surface-dynamic: #d3d9e3;
  --color-divider:        #dfe3ea;
  --color-border:         #cdd3dd;

  --color-text:           #10182b;
  --color-text-muted:     #545c70;
  --color-text-faint:     #9aa1b3;
  --color-text-inverse:   #ffffff;

  --color-primary:        #1B2B5D;
  --color-primary-hover:  #142047;
  --color-primary-active: #0d1530;
  --color-primary-highlight: #dfe3f0;

  --color-warning:        #964219;
  --color-warning-hover:  #713417;
  --color-warning-highlight: #ddcfc6;

  --color-error:          #a12c2c;
  --color-error-hover:    #7d1e1e;
  --color-error-highlight: #e0cece;

  --color-success:        #2e6b3f;
  --color-success-hover:  #204d2c;
  --color-success-highlight: #cfe0d4;

  --color-gold:           #b8862f;
  --color-gold-hover:     #97701f;
  --color-gold-highlight: #e9ddc4;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.15 0.03 260 / 0.08);
  --shadow-md: 0 4px 14px oklch(0.15 0.03 260 / 0.10);
  --shadow-lg: 0 16px 40px oklch(0.15 0.03 260 / 0.16);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

[data-theme="dark"] {
  --color-bg:             #0b1020;
  --color-surface:        #10162b;
  --color-surface-2:      #141b33;
  --color-surface-offset: #182040;
  --color-surface-offset-2: #1c264a;
  --color-surface-dynamic: #232f57;
  --color-divider:        #232c4c;
  --color-border:         #303c66;

  --color-text:           #e7eaf3;
  --color-text-muted:     #a6adc2;
  --color-text-faint:     #6b7290;
  --color-text-inverse:   #10182b;

  --color-primary:        #7284c4;
  --color-primary-hover:  #96a4d6;
  --color-primary-active: #b6c0e4;
  --color-primary-highlight: #232f57;

  --color-warning:        #d38a56;
  --color-warning-highlight: #3d3226;
  --color-error:          #d97a7a;
  --color-error-highlight: #3c2626;
  --color-success:        #7fbf8f;
  --color-success-highlight: #23372a;
  --color-gold:           #e0b45c;
  --color-gold-highlight: #3b3222;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0b1020;
    --color-surface:        #10162b;
    --color-surface-2:      #141b33;
    --color-surface-offset: #182040;
    --color-surface-offset-2: #1c264a;
    --color-surface-dynamic: #232f57;
    --color-divider:        #232c4c;
    --color-border:         #303c66;
    --color-text:           #e7eaf3;
    --color-text-muted:     #a6adc2;
    --color-text-faint:     #6b7290;
    --color-text-inverse:   #10182b;
    --color-primary:        #7284c4;
    --color-primary-hover:  #96a4d6;
    --color-primary-active: #b6c0e4;
    --color-primary-highlight: #232f57;
  }
}

:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(2.75rem,  0.5rem  + 6vw,    6.5rem);

  --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-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}
