/* Conecta Consórcios — Design System bundled for production. */

/* design-system/tokens/fonts.css */
/* Conecta Consórcios — Webfonts
 *
 * The brand identity manual specifies three typefaces:
 *   - Nexa Rust Sans Black  → logo/wordmark only (PROPRIETARY, not shipped)
 *   - Polya                 → decorative accents in the logotype (PROPRIETARY, not shipped)
 *   - Montserrat            → the official working/institutional font (Google Fonts)
 *
 * Montserrat is the only text typeface used across all materials. It is served
 * locally to avoid a runtime dependency on Google Fonts. The logo fonts are
 * supplied as artwork (see assets/). See readme.md → VISUAL FOUNDATIONS.
 */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-wght-italic.woff2") format("woff2-variations");
}


/* design-system/tokens/colors.css */
/* Conecta Consórcios — Color tokens
 * Core brand = Laranja (orange) + Cinza (grey).
 * Orange sampled from official logo artwork (#EF7927). Grey from the wordmark (#58595B).
 * Manual "Padrão Cromático": orange C1 M65 Y96 K0 · grey C63 M55 Y54 K28.
 * Meaning (per manual): orange = enthusiasm, success, determination; grey = elegance,
 * sophistication, stability, neutrality.
 */
:root {
  /* ---- Brand: Laranja ---- */
  --orange-50:  #FEF6EF;
  --orange-100: #FDE9D8;
  --orange-200: #FACBA4;
  --orange-300: #F6AC72;
  --orange-400: #F28E48;
  --orange-500: #EF7927; /* PRIMARY brand orange */
  --orange-600: #D9640F;
  --orange-700: #B24E0B;
  --orange-800: #8A3D0C;
  --orange-900: #632D0C;

  /* ---- Neutral: Cinza (cool slate) ---- */
  --grey-50:  #F7F8F8;
  --grey-100: #EFF1F1;
  --grey-200: #E1E4E5;
  --grey-300: #C6CACC;
  --grey-400: #9BA1A4;
  --grey-500: #767B7E;
  --grey-600: #58595B; /* brand wordmark grey */
  --grey-700: #44494C;
  --grey-800: #2E3134;
  --grey-900: #1A1C1E; /* ink (mono C75 M68 Y67 K90) */
  --white: #FFFFFF;
  --black: #000000;

  /* ---- Semantic status (restrained, harmonized with brand) ---- */
  --green-500:  #2E7D5B;
  --green-100:  #DCEFE6;
  --amber-500:  #E0A028;
  --amber-100:  #FBEECF;
  --red-500:    #C0492F;
  --red-100:    #F7DED6;
  --blue-500:   #3E6B8C;
  --blue-100:   #DCE7EF;

  /* ---- Semantic aliases ---- */
  --brand: var(--orange-500);
  --brand-hover: var(--orange-600);
  --brand-active: var(--orange-700);
  --brand-subtle: var(--orange-50);
  --brand-subtle-2: var(--orange-100);
  --on-brand: var(--white);

  --text-primary: var(--grey-900);
  --text-secondary: var(--grey-600);
  --text-muted: var(--grey-400);
  --text-on-brand: var(--white);
  --text-on-dark: var(--grey-50);
  --text-link: var(--orange-600);
  --text-link-hover: var(--orange-700);

  --surface-page: var(--white);
  --surface-subtle: var(--grey-50);
  --surface-muted: var(--grey-100);
  --surface-card: var(--white);
  --surface-inverse: var(--grey-900);
  --surface-brand: var(--orange-500);
  --surface-brand-subtle: var(--orange-50);

  --border-subtle: var(--grey-200);
  --border-default: var(--grey-300);
  --border-strong: var(--grey-400);
  --border-brand: var(--orange-500);

  --focus-ring: var(--orange-400);

  --success: var(--green-500);
  --success-surface: var(--green-100);
  --warning: var(--amber-500);
  --warning-surface: var(--amber-100);
  --danger: var(--red-500);
  --danger-surface: var(--red-100);
  --info: var(--blue-500);
  --info-surface: var(--blue-100);
}


/* design-system/tokens/typography.css */
/* Conecta Consórcios — Typography tokens
 * Single family system: Montserrat (the brand's official institutional font).
 * Headings use heavy weights (700–900) to echo the bold "CONECTA" logotype.
 * Labels/eyebrows use UPPERCASE + letter-spacing, echoing the "CONSÓRCIOS" lockup.
 */
:root {
  --font-sans: 'Montserrat', ui-sans-serif, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);

  /* Weights */
  --fw-light: 300; /* @kind other */
  --fw-regular: 400; /* @kind other */
  --fw-medium: 500; /* @kind other */
  --fw-semibold: 600; /* @kind other */
  --fw-bold: 700; /* @kind other */
  --fw-extrabold: 800; /* @kind other */
  --fw-black: 900; /* @kind other */

  /* Font sizes (px) */
  --fs-display-xl: 64px;
  --fs-display: 48px;
  --fs-h1: 36px;
  --fs-h2: 28px;
  --fs-h3: 22px;
  --fs-h4: 18px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;
  --fs-overline: 12px;

  /* Line heights */
  --lh-tight: 1.05; /* @kind other */
  --lh-snug: 1.2; /* @kind other */
  --lh-heading: 1.25; /* @kind other */
  --lh-normal: 1.5; /* @kind other */
  --lh-relaxed: 1.65; /* @kind other */

  /* Letter spacing */
  --ls-tighter: -0.02em; /* @kind other */
  --ls-tight: -0.01em; /* @kind other */
  --ls-normal: 0; /* @kind other */
  --ls-wide: 0.06em; /* @kind other */
  --ls-wider: 0.12em; /* @kind other */
  --ls-widest: 0.18em; /* @kind other */

  /* Semantic role bundles */
  --text-display-xl: var(--fw-black) var(--fs-display-xl)/var(--lh-tight) var(--font-display);
  --text-display: var(--fw-extrabold) var(--fs-display)/var(--lh-tight) var(--font-display);
  --text-h1: var(--fw-bold) var(--fs-h1)/var(--lh-heading) var(--font-display);
  --text-h2: var(--fw-bold) var(--fs-h2)/var(--lh-snug) var(--font-display);
  --text-h3: var(--fw-semibold) var(--fs-h3)/var(--lh-heading) var(--font-display);
  --text-h4: var(--fw-semibold) var(--fs-h4)/var(--lh-heading) var(--font-display);
  --text-body-lg: var(--fw-regular) var(--fs-body-lg)/var(--lh-relaxed) var(--font-body);
  --text-body: var(--fw-regular) var(--fs-body)/var(--lh-normal) var(--font-body);
  --text-body-sm: var(--fw-regular) var(--fs-body-sm)/var(--lh-normal) var(--font-body);
  --text-caption: var(--fw-medium) var(--fs-caption)/var(--lh-normal) var(--font-body);
}


/* design-system/tokens/spacing.css */
/* Conecta Consórcios — Spacing & layout tokens
 * 4px base grid.
 */
:root {
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --container-sm: 640px;
  --container-md: 860px;
  --container-lg: 1120px;
  --container-xl: 1320px;
  --gutter: 24px;
  --section-y: 96px;
}


/* design-system/tokens/effects.css */
/* Conecta Consórcios — Effects: radius, borders, shadows, motion
 * The identity is built on triangles / an angular mesh, so corner radii stay
 * modest and geometric. Shadows are soft and cool-grey tinted (elegance).
 */
:root {
  /* Radii */
  --radius-none: 0;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;   /* default: buttons, inputs */
  --radius-lg: 12px;  /* cards */
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  /* Border widths */
  --border-width: 1px; /* @kind other */
  --border-width-strong: 2px; /* @kind other */

  /* Shadows (cool slate tint) */
  --shadow-xs: 0 1px 2px rgba(26, 28, 30, 0.06);
  --shadow-sm: 0 1px 3px rgba(26, 28, 30, 0.08), 0 1px 2px rgba(26, 28, 30, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 28, 30, 0.08), 0 2px 4px rgba(26, 28, 30, 0.04);
  --shadow-lg: 0 12px 28px rgba(26, 28, 30, 0.12), 0 4px 8px rgba(26, 28, 30, 0.05);
  --shadow-xl: 0 24px 48px rgba(26, 28, 30, 0.16);
  --shadow-brand: 0 8px 20px rgba(239, 121, 39, 0.28);
  --shadow-focus: 0 0 0 3px rgba(242, 142, 72, 0.45);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0, 0.1, 1); /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */
  --dur-fast: 120ms; /* @kind other */
  --dur-base: 200ms; /* @kind other */
  --dur-slow: 320ms; /* @kind other */
}


/* design-system/tokens/base.css */
/* Conecta Consórcios — Base element defaults & helpers
 * Light, opt-in resets. Sets the brand link colors (required) and a few
 * body defaults so specimen cards and kits read consistently.
 */
:root {
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

::selection {
  background: var(--orange-200);
  color: var(--grey-900);
}

/* Eyebrow / overline helper — echoes the CONSÓRCIOS lockup */
.cc-eyebrow {
  font: var(--fw-bold) var(--fs-overline)/1.2 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--brand);
}

*:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}
