/* ==========================================================================
   FLORESTA+ AMAZÔNIA - DESIGN TOKENS
   Comprehensive CSS Custom Properties (Variables)
   All design decisions centralized here for consistency
   ========================================================================== */

/* ===== CSS RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

button, input, textarea, select {
  font-family: inherit;
}

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

:root {
  /* ==========================================================================
     COLOR PALETTE - Figma Design Tokens
     ========================================================================== */
  
  /* Brand Greens - Primary palette */
  --color-green-900: #114429;  /* verde-escuro-brand - Primary text, dark backgrounds */
  --color-green-700: #3a6821;  /* verde-medio2-brand - Shadows, accents */
  --color-green-600: #4d8a2c;  /* verde-medio-brand - Links, icons */
  --color-green-400: #85f04c;  /* verde-claro-brand - Bright accents */
  --color-green-200: #d5ed7c;  /* verde-brand-claro - Buttons, highlights */
  --color-green-100: #bed257;  /* Section titles on dark backgrounds */
  
  /* Background Colors */
  --color-bg-dark: #004222;    /* Dark green sections (estrategia, editais) */
  --color-bg-light: #edf2f8;   /* azul-site - Light sections */
  --color-bg-lightest: #f6fafd; /* lighter than azul-site for modalidade pages */
  --color-bg-cream: #fdf1d7;   /* bege-claro - Newsletter, accent sections */
  --color-bg-white: #ffffff;
  
  /* Text Colors */
  --color-text-primary: #114429;   /* Primary text - dark green */
  --color-text-secondary: #445652; /* cinza-texto - Body copy */
  --color-text-muted: #6b7280;     /* Lighter text, dates */
  --color-text-white: #ffffff;
  --color-text-light: #f5f5f5;
  
  /* Modalidade/Category Colors */
  --color-conservacao: #406838;
  --color-recuperacao: #a0c419;
  --color-comunidades: #c8602d;
  --color-inovacao: #b980d0;
  --color-instituicoes: #244c76;
  --color-enredd: #3a6821;
  
  /* UI Colors */
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-light: rgba(255, 255, 255, 0.2);
  --color-overlay-dark: rgba(0, 0, 0, 0.5);
  --color-overlay-light: rgba(255, 255, 255, 0.6);
  
  /* Secondary UI Colors - Light backgrounds & accents */
  --color-bg-light-secondary: #dae4ef;  /* Slightly darker light background for cards */
  --color-bg-dark-deep: #0d3321;        /* Very dark green for high contrast */
  --color-bg-blue-dark: #0e3d60;        /* Dark blue for modal/overlay backgrounds */
  --color-divider: #dae4ef;             /* Divider/border color */
  
  /* Legacy aliases (for backwards compatibility) */
  --verde-escuro-brand: var(--color-green-900);
  --verde-medio-brand: var(--color-green-600);
  --verde-claro-brand: var(--color-green-400);
  --verde-brand-claro: var(--color-green-200);
  --verde-brand-claro2: var(--color-green-200);
  --verde-m-dio2-brand: var(--color-green-700);
  --azul-site: var(--color-bg-light);
  --cinza-texto: var(--color-text-secondary);
  --bege-claro: var(--color-bg-cream);
  --branco: var(--color-bg-white);
  --white: var(--color-bg-white);
  --color-white: var(--color-bg-white);
  --conservacao: var(--color-conservacao);
  --recuperacao: var(--color-recuperacao);
  --comunidades: var(--color-comunidades);
  --inovacao: var(--color-inovacao);
  --instituicoes: var(--color-instituicoes);
  
  /* Header/Navigation specific */
  --color-primary-dark: var(--color-green-900);
  --color-green-medium: var(--color-green-600);
  --color-lime: #c5dd6c;
  --color-lime-light: #d5ed7c;
  --color-green-dark: #2a5015;
  --transition-normal: 0.3s ease;
  
  /* Font size aliases */
  --font-size-xs: var(--text-xs);
  --font-size-sm: var(--text-sm);
  --font-size-base: var(--text-base);
  --font-size-lg: var(--text-lg);
  --font-size-xl: var(--text-xl);
  --font-size-2xl: var(--text-2xl);
  
  /* Font weight aliases */
  --font-weight-normal: var(--font-normal);
  --font-weight-medium: var(--font-medium);
  --font-weight-semibold: var(--font-semibold);
  --font-weight-bold: var(--font-bold);
  
  /* ==========================================================================
     TYPOGRAPHY
     ========================================================================== */
  
  /* Font Family */
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes - Desktop */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 20px;
  --text-xl: 22px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 36px;
  --text-5xl: 40px;
  --text-6xl: 54px;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.7;
  
  /* ==========================================================================
     SPACING
     ========================================================================== */
  
  --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-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-28: 112px;  /* Standard section horizontal padding */
  
  /* Section Padding */
  --section-padding-y: 80px;
  --section-padding-x: 112px;
  --section-padding-y-mobile: 40px;
  --section-padding-x-mobile: 24px;
  
  /* Container */
  --container-max: 1216px;
  --container-padding: 40px;
  --container-padding-mobile: 16px;

  /* Legacy token aliases still used across older page styles. */
  --space-sm: var(--space-2);
  --space-md: var(--space-4);
  --space-lg: var(--space-6);
  --space-xl: var(--space-8);
  --space-2xl: var(--space-12);
  --space-3xl: var(--space-16);
  
  /* Navbar */
  --navbar-height: 108px;  /* 20px top padding + 8px capsule top + 52px logo + 8px capsule bottom + 20px bottom padding */
  --navbar-offset: var(--navbar-height);
  
  /* ==========================================================================
     BORDER RADIUS
     ========================================================================== */
  
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-4xl: 40px;
  --radius-full: 50px;  /* Capsule/pill shape */
  --radius-circle: 50%;
  
  /* ==========================================================================
     SHADOWS
     ========================================================================== */
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 10px 40px rgba(0, 0, 0, 0.2);
  --shadow-button: 0 4px 0 var(--color-green-700);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-glass: 0 10px 6.6px rgba(0, 0, 0, 0.15);
  
  /* ==========================================================================
     TRANSITIONS
     ========================================================================== */
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-slower: 0.4s ease;
  --transition-all: all 0.3s ease;
  
  /* ==========================================================================
     Z-INDEX LAYERS
     ========================================================================== */
  
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-overlay: 900;
  --z-modal: 1000;
  --z-popover: 1100;
  
  /* ==========================================================================
     BREAKPOINTS (for reference, used in media queries)
     ========================================================================== */
  /* 
   * --breakpoint-sm: 480px   - Small phones
   * --breakpoint-md: 768px   - Tablets
   * --breakpoint-lg: 1024px  - Laptops
   * --breakpoint-xl: 1280px  - Desktops
   */
}

/* ==========================================================================
   BASE ELEMENT STYLES
   ========================================================================== */

html {
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-md);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  background-color: var(--color-bg-white);
}

/* Base heading styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-md); }

p {
  margin: 0 0 var(--space-4);
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-green-600);
  outline-offset: 2px;
}
