/* ==========================================================================
   Tokens do design system — Família do Sítio
   Todas as cores, fontes, espaçamentos e sombras do site saem daqui.
   Documentação: docs/DESIGN.md
   ========================================================================== */

@font-face { font-family: "Myriad Pro"; src: url("../fonts/MyriadPro-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Myriad Pro"; src: url("../fonts/MyriadPro-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Myriad Pro"; src: url("../fonts/MyriadPro-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Impact LT"; src: url("../fonts/ImpactLTStd.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Verdes (marca) */
  --green-900: #004c2e;
  --green-700: #006343;   /* primária */
  --green-600: #2b674b;   /* títulos */
  --green-400: #458260;
  --green-100: #e8f1ec;

  /* Laranjas (destaques, categorias) */
  --orange-500: #f29947;
  --orange-600: #e97a1c;
  --orange-700: #da731f;
  --orange-100: #fdf1e6;
  --orange-text: #a3500c; /* laranja para textos pequenos (contraste AA sobre branco e sobre --orange-100) */

  /* Vermelhos (botões de ação) */
  --red-600: #a93439;
  --red-800: #81090f;

  /* Neutros */
  --white: #fff;
  --cream: #faf7f2;
  --gray-100: #f4f4f2;
  --gray-200: #e4e4e0;
  --gray-400: #a3a39c;
  --gray-600: #5c5c57;
  --gray-800: #333330;
  --black: #1a1a18;

  /* Papéis */
  --color-text: var(--gray-800);
  --color-muted: var(--gray-600);
  --color-heading: var(--green-600);
  --color-link: var(--green-700);
  --color-bg: var(--white);
  --color-border: var(--gray-200);
  --color-focus: var(--orange-600);

  /* Tipografia */
  --font-body: "Myriad Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Impact LT", Impact, "Arial Narrow Bold", "Haettenschweiler", sans-serif;
  /* Tamanhos de texto: sempre em px pares (12 · 14 · 16 · 20/22 · 24/26 · 28/30 · 32/36), em passos fixos — nada de valores fluidos */
  --text-xs: 0.75rem;     /* 12 */
  --text-sm: 0.875rem;    /* 14 */
  --text-base: 1rem;      /* 16 */
  --text-md: 1rem;        /* 16 */
  --text-lg: 1.25rem;     /* 20 (22 a partir de 768px): h3, destaques */
  --text-xl: 1.5rem;      /* 24 (26 a partir de 768px): h2 */
  --text-2xl: 1.75rem;    /* 28 (30 a partir de 768px): h1 */
  --text-3xl: 2rem;       /* 32 (36 a partir de 768px): números em destaque */
  --leading-tight: 1.15;
  --leading-body: 1.6;

  /* Espaçamento (escala de 4px) */
  --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;
  --space-9: 6rem;
  --section-y: clamp(3rem, 2rem + 4vw, 6rem);

  /* Layout */
  --container: 1200px;
  --container-narrow: 1200px;   /* blocos "estreitos" usam a mesma largura do restante da página */
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --header-h: 84px;

  /* Forma e profundidade */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06), 0 1px 3px rgb(0 0 0 / 0.08);
  --shadow: 0 4px 12px rgb(0 0 0 / 0.08), 0 2px 4px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 18px 40px rgb(0 40 25 / 0.16);

  /* Movimento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.25s;
}

@media (min-width: 1024px) {
  :root { --header-h: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0s; }
}

@media (min-width: 768px) {
  :root {
    --text-lg: 1.375rem;   /* 22 */
    --text-xl: 1.625rem;   /* 26 */
    --text-2xl: 1.875rem;  /* 30 */
    --text-3xl: 2.25rem;   /* 36 */
  }
}
