/* ExpoNew Design System — global entry point.
   Consumers link this single file. Keep it to @import lines only. */
/* ============================================================
   COLORS — ExpoNew
   Six brand colors, each with a defined function. The amber is the
   most restricted: it means PRODUCT / HIGHLIGHT / FOCUS only.
   Never use amber as structure, base, section fill, or large surface.
   ============================================================ */
:root {
  /* ---- Brand base (valores oficiais — Aplicações-15, paleta) ---- */
  --expo-blue:     #2F6FD6; /* Azul Expo  — estrutura principal       */
  --expo-amber:    #F0A92B; /* Âmbar      — produto · destaque (RARO) */
  --expo-night:    #0C1A36; /* Azul-noite — fundo escuro preferencial */
  --expo-graphite: #1C2030; /* Grafite    — texto sobre claro         */
  --expo-ice:      #EEF1F6; /* Branco-gelo— texto sobre escuro        */
  --expo-paper:    #F0EEE8; /* Bege papel — fundo claro · papelaria   */

  /* ---- Descriptor blues (descritor é sempre azulado) ---- */
  --expo-descriptor-dark:  #6E97C8; /* descritor sobre fundo escuro (azul claro) */
  --expo-descriptor-light: #3F6FB0; /* descritor sobre fundo claro (azul médio)  */

  /* ---- Azul Expo functional scale (UI states, derived) ----
     Hover = slightly darker, Press = darker still. Built around #2F6FD6. */
  --expo-blue-50:  #EAF1FC;
  --expo-blue-100: #D2E1F8;
  --expo-blue-200: #A6C2F0;
  --expo-blue-300: #6E9CE6;
  --expo-blue-400: #4A84DE;
  --expo-blue-500: #2F6FD6; /* = --expo-blue */
  --expo-blue-600: #235CBB;
  --expo-blue-700: #1C4A98;
  --expo-blue-800: #173C7A;
  --expo-blue-900: #142F5E;

  /* ---- Âmbar functional scale (use sparingly, highlight only) ---- */
  --expo-amber-100: #FCEBCB;
  --expo-amber-300: #F6CB78;
  --expo-amber-500: #F0A92B; /* = --expo-amber */
  --expo-amber-600: #D08D17;
  --expo-amber-700: #A66E10;

  /* ---- Night / graphite neutral ramp (surfaces & text) ---- */
  --expo-ink-900: #0C1A36; /* night        */
  --expo-ink-800: #141E30; /* raised dark  */
  --expo-ink-700: #1C2030; /* graphite     */
  --expo-ink-600: #2A3346;
  --expo-ink-500: #3C475E;
  --expo-ink-400: #5A6580;
  --expo-ink-300: #8294B4;
  --expo-ink-200: #B9C4D6;
  --expo-ink-100: #DDE3EC;
  --expo-ink-50:  #EEF1F6; /* ice          */

  /* ---- Paper / warm neutral (stationery, light surfaces) ---- */
  --expo-paper-100: #FBFAF7;
  --expo-paper-200: #F0EEE8; /* = --expo-paper */
  --expo-paper-300: #E4E1D8;
  --expo-paper-400: #D2CEC2;

  /* ---- Semantic feedback (kept restrained, blue-leaning brand) ---- */
  --expo-success: #2E8B57;
  --expo-warning: #D08D17; /* amber-600 family, reads as caution */
  --expo-danger:  #C2412E;
  --expo-info:    var(--expo-blue-500);

  /* ============================================================
     SEMANTIC ALIASES — prefer these in components
     ============================================================ */

  /* Surfaces (light context = default) */
  --surface-page:    var(--expo-paper-200);
  --surface-card:    #FFFFFF;
  --surface-sunken:  var(--expo-paper-300);
  --surface-inverse: var(--expo-night);

  /* Text */
  --text-strong:     var(--expo-graphite);
  --text-body:       #333A4D;
  --text-muted:      var(--expo-ink-400);
  --text-descriptor: var(--expo-descriptor-light);
  --text-on-blue:    var(--expo-ice);
  --text-on-dark:    var(--expo-ice);
  --text-on-amber:   var(--expo-graphite);
  --text-link:       var(--expo-blue-600);

  /* Borders & lines */
  --border-subtle:   var(--expo-paper-300);
  --border-default:  #DBD9D0;
  --border-strong:   var(--expo-ink-300);
  --border-focus:    var(--expo-blue-500);

  /* Brand roles */
  --brand-structure: var(--expo-blue);   /* primary structural color */
  --brand-highlight: var(--expo-amber);  /* product/highlight ONLY   */
  --brand-ink:       var(--expo-graphite);

  /* Interactive (primary action = Azul Expo) */
  --action-bg:         var(--expo-blue-500);
  --action-bg-hover:   var(--expo-blue-600);
  --action-bg-active:  var(--expo-blue-700);
  --action-fg:         var(--expo-ice);
  --action-ring:       color-mix(in srgb, var(--expo-blue-500) 35%, transparent);
}

/* ------------------------------------------------------------
   Dark context — apply to a subtree to flip surface/text roles.
   The brand's preferred dark is Azul-noite.
   ------------------------------------------------------------ */
[data-theme="dark"],
.expo-dark {
  --surface-page:    var(--expo-night);
  --surface-card:    var(--expo-ink-800);
  --surface-sunken:  #081428;
  --surface-inverse: var(--expo-paper-200);

  --text-strong:     var(--expo-ice);
  --text-body:       var(--expo-ink-200);
  --text-muted:      var(--expo-ink-300);
  --text-descriptor: var(--expo-descriptor-dark);
  --text-link:       var(--expo-blue-300);

  --border-subtle:   rgba(238, 241, 246, 0.08);
  --border-default:  rgba(238, 241, 246, 0.14);
  --border-strong:   rgba(238, 241, 246, 0.28);
}

/* ============================================================
   TYPOGRAPHY — ExpoNew
   Two families only (both Google Fonts; substitutes are forbidden):
   - Sora        : wordmark + principal headings/titles. Heavy (800) at
                   display sizes, tracking -0.025em.
   - Space Grotesk: descriptor, labels, UI, body. The descriptor is
                   ALWAYS uppercase with +0.08em tracking.
   ============================================================ */
:root {
  /* Families */
  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-support: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body:    "Space Grotesk", system-ui, -apple-system, sans-serif;

  /* Weights */
  --fw-regular:  400; /* @kind font */
  --fw-medium:   500; /* @kind font */
  --fw-semibold: 600; /* @kind font */
  --fw-bold:     700; /* @kind font */
  --fw-black:    800; /* @kind font */ /* Sora 800 — wordmark + hero titles only */

  /* Tracking */
  --tracking-display:   -0.025em; /* Sora headings + wordmark        */
  --tracking-tight:     -0.015em;
  --tracking-normal:     0em;
  --tracking-descriptor: 0.08em;  /* Space Grotesk uppercase descriptor */
  --tracking-label:      0.04em;

  /* Type scale (1.25 major-third-ish, tuned for B2B clarity) */
  --text-2xs:  0.6875rem; /* 11px */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.375rem;  /* 22px */
  --text-xl:   1.75rem;   /* 28px */
  --text-2xl:  2.25rem;   /* 36px */
  --text-3xl:  3rem;      /* 48px */
  --text-4xl:  3.75rem;   /* 60px */
  --text-5xl:  4.75rem;   /* 76px */

  /* Line heights */
  --leading-tight:   1.05;
  --leading-snug:    1.2;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  /* Semantic roles */
  --type-display-font: var(--font-display);
  --type-body-font:    var(--font-body);
}

/* ------------------------------------------------------------
   Optional utility classes (cards/specimens can use these)
   ------------------------------------------------------------ */
.expo-display {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
}
.expo-heading {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}
.expo-body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  line-height: var(--leading-normal);
}
.expo-descriptor {
  font-family: var(--font-support);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-descriptor);
}
.expo-label {
  font-family: var(--font-support);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-size: var(--text-xs);
}

/* ============================================================
   SPACING & LAYOUT — ExpoNew
   Modular, grid-based — echoing the brand's "blocos que empilham".
   Base unit = 4px. The logo's protection area X = height of the
   upper block; in UI we treat generous, modular padding the same way.
   ============================================================ */
:root {
  --space-0:   0;
  --space-1:   0.25rem; /* 4px  */
  --space-2:   0.5rem;  /* 8px  */
  --space-3:   0.75rem; /* 12px */
  --space-4:   1rem;    /* 16px */
  --space-5:   1.25rem; /* 20px */
  --space-6:   1.5rem;  /* 24px */
  --space-8:   2rem;    /* 32px */
  --space-10:  2.5rem;  /* 40px */
  --space-12:  3rem;    /* 48px */
  --space-16:  4rem;    /* 64px */
  --space-20:  5rem;    /* 80px */
  --space-24:  6rem;    /* 96px */
  --space-32:  8rem;    /* 128px */

  /* Container widths */
  --container-sm:  640px;
  --container-md:  860px;
  --container-lg:  1100px;
  --container-xl:  1320px;

  /* Gutters */
  --gutter:        var(--space-6);
  --gutter-tight:  var(--space-4);
  --section-y:     var(--space-24);

  /* Logo protection area — X = upper block height of the symbol */
  --logo-clearspace: 1em;
}

/* ============================================================
   EFFECTS — ExpoNew
   Radii, borders, shadows, motion.
   The mark is built from flat solid planes — "sem gradiente, sem
   sombra, sem outline". So the UI system stays restrained: modest
   radii, soft single-layer shadows, no decorative gradients. The
   isometric geometry has lightly-rounded corners — radii echo that.
   ============================================================ */
:root {
  /* Corner radii — modular blocks have a soft, consistent round */
  --radius-xs:   3px;
  --radius-sm:   6px;
  --radius-md:   10px;  /* default control / card radius */
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-pill: 999px;
  --radius-card: var(--radius-lg);

  /* Borders */
  --border-width:      1px;
  --border-width-thick: 2px;

  /* Shadows — single, soft, blue-tinted ink. Used for elevation only,
     never on the logo. Keep subtle; the brand is flat-first. */
  --shadow-xs:  0 1px 2px rgba(12, 22, 38, 0.06);
  --shadow-sm:  0 1px 3px rgba(12, 22, 38, 0.08), 0 1px 2px rgba(12, 22, 38, 0.05);
  --shadow-md:  0 4px 12px rgba(12, 22, 38, 0.08), 0 2px 4px rgba(12, 22, 38, 0.05);
  --shadow-lg:  0 12px 28px rgba(12, 22, 38, 0.12), 0 4px 8px rgba(12, 22, 38, 0.06);
  --shadow-focus: 0 0 0 3px var(--action-ring);

  /* Motion — calm, technical, no bounce. Quick, confident easing. */
  --ease-standard: cubic-bezier(0.2, 0, 0.1, 1); /* @kind other */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --dur-fast:   120ms; /* @kind other */
  --dur-base:   200ms; /* @kind other */
  --dur-slow:   320ms; /* @kind other */

  /* Focus ring */
  --focus-ring: var(--shadow-focus);
}


