/* ============================================================
   Cabral & Ruscitto — Design System
   Tokens, tipografia e reset base
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Inter:wght@300;400;600&display=swap');

/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  /* Cores */
  --surface-base:   #0B1829;   /* fundo mais profundo — body do dashboard */
  --surface-raised: #0F1E33;   /* sidebar, topbar — nível acima */
  --navy-deep:      #0F1E33;
  --navy-mid:       #1A3055;
  --gold:           #C9A96E;
  --gold-dim:       rgba(201, 169, 110, 0.15);
  --slate:          #3D4A5C;
  --warm-gray:      #8A8070;
  --white:          #FFFFFF;
  --white-cold:     #F5F5F5;
  --black:          #0A0A0A;

  /* Funcionais */
  --success:        #2E6E5A;
  --success-bg:     rgba(46, 110, 90, 0.12);
  --warning:        #8C6A1A;
  --warning-bg:     rgba(140, 106, 26, 0.12);
  --error:          #7A1E2E;
  --error-bg:       rgba(122, 30, 46, 0.12);
  --info:           #1A3055;
  --info-bg:        rgba(26, 48, 85, 0.15);

  /* Tipografia */
  --font-editorial: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-ui:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaçamentos */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Bordas */
  --radius-sm:  2px;
  --radius:     4px;
  --radius-md:  6px;

  /* Transições */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --duration:   180ms;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
}

body {
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
  background: var(--white-cold);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Tipografia ──────────────────────────────────────────── */
.t-h1 {
  font-family: var(--font-editorial);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.10em;
  line-height: 1.2;
}

.t-h2 {
  font-family: var(--font-editorial);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.t-h3 {
  font-family: var(--font-editorial);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.t-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.t-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.t-status {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.t-caption {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
}

/* ─── Badges de status ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.badge--success {
  background: var(--success-bg);
  color: var(--success);
}

.badge--warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge--error {
  background: var(--error-bg);
  color: var(--error);
}

.badge--neutral {
  background: rgba(61, 74, 92, 0.12);
  color: var(--slate);
}

/* ─── Utilitários ────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
