/* ============================================
   ONSEAdapta — Design Tokens
   Earth + Forest palette. Editorial. Scientific.
   ============================================ */

:root {
  /* ===== Colors ===== */
  /* Primary greens (brand) */
  --verde-floresta: #2D4A2B;
  --verde-floresta-deep: #1f3320;
  --verde-musgo: #4A6741;
  --verde-salvia: #87A878;

  /* Warm accents */
  --terracota: #C25E3A;
  --terracota-escuro: #9E4424;
  --ambar: #D4A157;

  /* Neutrals / surfaces */
  --areia: #E8DCC4;
  --areia-soft: #f0e8d6;
  --creme: #F5EDE0;
  --branco-gelo: #FAF7F1;
  --branco-puro: #ffffff;

  /* Text */
  --carvao: #1A1612;
  --marrom: #6B4F3A;
  --marrom-claro: #8a7058;
  --cinza-claro: #C9C0B0;

  /* Borders / lines */
  --line: rgba(45, 74, 43, 0.15);
  --line-strong: rgba(45, 74, 43, 0.28);

  /* Aliases for legacy pages (sobre.html, eventos.html, etc) */
  --primary: var(--verde-floresta);
  --secondary: var(--terracota);

  /* ===== Typography ===== */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* ===== Spacing ===== */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* ===== Layout ===== */
  --container: 1280px;
  --container-narrow: 920px;

  /* ===== Radius ===== */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 100px;

  /* ===== Motion ===== */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition: 280ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--carvao);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--terracota);
  color: var(--creme);
}

/* ============================================
   Typography
   ============================================ */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--carvao);
}

h1 {
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 500;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-body);
}

p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--marrom);
}

p.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--carvao);
  font-weight: 400;
}

p.small {
  font-size: 0.875rem;
  line-height: 1.55;
}

em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terracota);
}

/* Labels & eyebrows (mono uppercase) */
.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracota);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--verde-musgo);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--verde-musgo);
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--space-md) 0;
  position: relative;
}

section.dark {
  background: var(--verde-floresta);
  color: var(--creme);
}

section.dark h1, section.dark h2, section.dark h3 {
  color: var(--creme);
}

section.dark p {
  color: rgba(245, 237, 224, 0.75);
}

section.dark .label {
  color: var(--ambar);
}

section.dark .eyebrow {
  color: var(--ambar);
}

section.dark .eyebrow::before {
  background: var(--ambar);
}

section.sand {
  background: var(--areia);
}

/* ============================================
   Utility
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
