/*
 * Laudivo — tokens de design.
 * Camada 1: paleta da marca e derivados. Camada 2: tokens semânticos.
 * Componentes usam só a camada 2; nenhuma cor literal fora deste arquivo.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---------- Paleta da marca ---------- */
  --navy-900: #142c37;
  --navy-700: #24424f;
  --teal-600: #087f78;
  --teal-700: #066b65;
  --teal-800: #05544f;
  --mint-100: #d9f3ed;
  --mint-50: #eef9f6;
  --canvas: #f7f9f8;
  --slate-500: #6b7e84;
  --slate-600: #586b71; /* slate escurecido: contraste 5:1 sobre canvas, para texto pequeno */
  --slate-700: #46585e;
  --slate-300: #c3cdd0;
  --slate-200: #dde3e4;
  --slate-100: #ebefef;
  --white: #ffffff;

  /* Estados: famílias próprias, distintas das cores da marca. */
  --green-700: #1c6e3f;
  --green-50: #e7f4ec;
  --amber-800: #8a5200;
  --amber-50: #fdf1d7;
  --red-700: #b3261e;
  --red-800: #8f1d17;
  --red-50: #fcebe9;

  /* ---------- Tokens semânticos ---------- */
  --color-bg: var(--canvas);
  --color-surface: var(--white);
  --color-surface-elevated: var(--white);
  --color-surface-sunken: var(--slate-100);
  --color-surface-accent: var(--mint-50);

  --color-text: var(--navy-900);
  --color-text-secondary: var(--slate-700);
  --color-text-muted: var(--slate-600);
  --color-text-on-interactive: var(--white);

  --color-border: var(--slate-200);
  --color-border-strong: var(--slate-300);

  --color-interactive: var(--teal-600);
  --color-interactive-hover: var(--teal-700);
  --color-interactive-active: var(--teal-800);
  --color-interactive-subtle: var(--mint-100);
  --color-focus: var(--navy-900);

  --color-success: var(--green-700);
  --color-success-bg: var(--green-50);
  --color-warning: var(--amber-800);
  --color-warning-bg: var(--amber-50);
  --color-danger: var(--red-700);
  --color-danger-hover: var(--red-800);
  --color-danger-bg: var(--red-50);

  --color-disabled-bg: var(--slate-100);
  --color-disabled-text: var(--slate-500);

  /* ---------- Tipografia ---------- */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-12: 0.75rem;
  --text-13: 0.8125rem;
  --text-14: 0.875rem;
  --text-16: 1rem;
  --text-18: 1.125rem;
  --text-20: 1.25rem;
  --text-24: 1.5rem;
  --text-32: 2rem;
  --text-40: 2.5rem;

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --tracking-heading: -0.015em;
  --tracking-display: -0.025em;

  /* ---------- Espaço (base 8, subdivisão 4) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* ---------- Forma ---------- */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgb(20 44 55 / 0.06);
  --shadow-md: 0 4px 16px rgb(20 44 55 / 0.08), 0 1px 2px rgb(20 44 55 / 0.05);
  --shadow-lg: 0 16px 40px rgb(20 44 55 / 0.16);

  /* Véu navy sobre fotografia: garante contraste do texto branco. */
  --scrim-photo: linear-gradient(to top, rgb(14 32 41 / 0.95), rgb(20 44 55 / 0.66) 48%, rgb(20 44 55 / 0.34));

  /* ---------- Medidas ---------- */
  --touch-target: 2.75rem; /* 44 px */
  --content-max: 75rem; /* 1200 px */
  --content-narrow: 42rem;
  --sidebar-width: 15rem;
  --tabbar-height: 3.75rem;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
}
