@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Green Palette */
  --green-950: #0d2717;
  --green-900: #1a472a;
  --green-800: #1b5e38;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-500: #52b788;
  --green-400: #74c69d;
  --green-300: #95d5b2;
  --green-200: #b7e4c7;
  --green-100: #d8f3dc;
  --green-50: #edf7f0;

  /* Earth/Gold Palette */
  --earth-800: #6b4e0b;
  --earth-700: #8b6914;
  --earth-600: #b68d40;
  --earth-500: #dda15e;
  --earth-400: #e6bc82;
  --earth-300: #f0d4a8;
  --earth-200: #f7e7c9;
  --earth-100: #fefae0;

  /* Stone/Slate Palette (Grays with a touch of sage) */
  --stone-950: #0f1610;
  --stone-900: #1b2a1d;
  --stone-800: #2a3c2d;
  --stone-700: #3d5240;
  --stone-600: #5c6d5e;
  --stone-500: #7a8b7c;
  --stone-400: #99a89b;
  --stone-300: #b8c4ba;
  --stone-200: #d4ddd6;
  --stone-100: #ecf0ed;
  --stone-50: #f5f8f6;

  /* Semantic Variables */
  --primary: var(--green-500);
  --primary-dark: var(--green-950);
  --primary-light: var(--green-300);
  
  --accent: var(--earth-500);
  --accent-light: var(--earth-300);
  --accent-dark: var(--earth-800);

  --bg-dark: var(--stone-950);
  --bg-section-dark: var(--stone-900);
  --bg-section-light: var(--stone-50);
  
  --text-light: var(--stone-50);
  --text-dark: var(--stone-950);
  --text-body-light: var(--stone-300);
  --text-body-dark: var(--stone-700);
  --text-muted-light: var(--stone-500);
  --text-muted-dark: var(--stone-600);

  /* Glassmorphism Styles (Dark Theme Basis) */
  --glass-bg: rgba(27, 42, 29, 0.75);
  --glass-bg-hover: rgba(27, 42, 29, 0.9);
  --glass-border: rgba(82, 183, 136, 0.15);
  --glass-border-hover: rgba(82, 183, 136, 0.35);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-round: 50%;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-light);
  background-color: var(--bg-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

li {
  list-style: none;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--stone-800);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green-800);
}

/* ==========================================================================
   Reusable UI Components & Helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-dark {
  background-color: var(--bg-section-dark);
}

.section-light {
  background-color: var(--bg-section-light);
  color: var(--text-dark);
}

.section-light h2,
.section-light h3,
.section-light h4 {
  color: var(--text-dark);
}

.section-light .section-subtitle {
  color: var(--text-muted-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-light) 30%, var(--green-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-light .section-title {
  background: linear-gradient(135deg, var(--text-dark) 30%, var(--green-800) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-body-light);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 100%);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(82, 183, 136, 0.5);
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-400) 100%);
  color: var(--stone-950);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  border-color: var(--green-400);
}

.btn-accent {
  background: linear-gradient(135deg, var(--earth-700) 0%, var(--earth-500) 100%);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(139, 105, 20, 0.3);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(221, 161, 94, 0.45);
  background: linear-gradient(135deg, var(--earth-600) 0%, var(--earth-400) 100%);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(82, 183, 136, 0.15);
}

/* ==========================================================================
   Header & Floating Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 22, 16, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(82, 183, 136, 0.15);
  border-radius: var(--radius-lg);
  padding: 12px 28px;
  box-shadow: var(--shadow-lg);
}

.header.scrolled .nav-container {
  background: rgba(15, 22, 16, 0.92);
  border-color: rgba(82, 183, 136, 0.25);
  padding: 8px 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  transition: var(--transition);
}

.logo-link:hover .logo-icon {
  transform: rotate(15deg) scale(1.1);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-light);
  letter-spacing: -0.5px;
}

.logo-dot {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item a {
  color: var(--text-body-light);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-item a:hover {
  color: var(--text-light);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-item a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-actions .btn {
  padding: 8px 18px;
  font-size: 0.9rem;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s infinite alternate ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(15, 22, 16, 0.4) 0%,
    rgba(15, 22, 16, 0.75) 60%,
    var(--bg-dark) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 850px;
  padding-top: 80px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(82, 183, 136, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(82, 183, 136, 0.25);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  animation: fadeInDown 0.8s ease;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--text-light);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  opacity: 0;
}

.hero-title span {
  background: linear-gradient(135deg, var(--green-300) 0%, var(--green-500) 50%, var(--earth-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-body-light);
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  opacity: 0;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* ==========================================================================
   Manifesto Section
   ========================================================================== */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.manifesto-text p {
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: var(--text-body-light);
}

.manifesto-highlight {
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
}

.manifesto-highlight blockquote {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--earth-200);
}

.manifesto-badge-group {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.manifesto-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.manifesto-badge svg {
  color: var(--primary);
}

/* Card decorativo no lado direito do Manifesto */
.manifesto-visual {
  position: relative;
  height: 480px;
  width: 100%;
}

.visual-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle at top right, rgba(82, 183, 136, 0.15) 0%, transparent 60%);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--glass-border);
}

.visual-card {
  position: absolute;
  width: 80%;
  padding: 40px;
  background: linear-gradient(135deg, rgba(27, 42, 29, 0.9) 0%, rgba(15, 22, 16, 0.95) 100%);
  border: 1px solid rgba(82, 183, 136, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  top: 45%;
  left: 45%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.visual-quote-icon {
  font-size: 4rem;
  line-height: 1;
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  opacity: 0.3;
  position: absolute;
  top: 20px;
  left: 20px;
}

.visual-card p {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  z-index: 3;
}

.visual-author {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.visual-author-line {
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.visual-author-text {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 700;
}

.visual-tag {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: var(--accent);
  color: var(--stone-950);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  transform: rotate(5deg);
  z-index: 3;
}

/* ==========================================================================
   Dogmas Section (Os Nossos Dogmas)
   ========================================================================== */
.dogmas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.dogma-card {
  position: relative;
  overflow: hidden;
}

.dogma-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--green-600), var(--green-400));
  transition: var(--transition);
}

.dogma-card:nth-child(2)::before {
  background: linear-gradient(to right, var(--earth-600), var(--earth-400));
}

.dogma-card:nth-child(3)::before {
  background: linear-gradient(to right, var(--green-400), var(--earth-300));
}

.dogma-card:hover::before {
  height: 8px;
}

.dogma-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(82, 183, 136, 0.1);
  border: 1px solid rgba(82, 183, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  transition: var(--transition);
}

.dogma-card:nth-child(2) .dogma-icon-wrapper {
  background: rgba(221, 161, 94, 0.1);
  border-color: rgba(221, 161, 94, 0.2);
  color: var(--accent);
}

.dogma-card:hover .dogma-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
  color: var(--stone-950);
}

.dogma-card:nth-child(2):hover .dogma-icon-wrapper {
  background: var(--accent);
  color: var(--stone-950);
}

.dogma-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.dogma-card:nth-child(2) .dogma-num {
  color: var(--accent);
}

.dogma-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.dogma-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.5;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  padding-left: 12px;
  margin-bottom: 16px;
}

.dogma-desc {
  font-size: 0.95rem;
  color: var(--text-body-light);
}

/* ==========================================================================
   Princípios Section (Os 8 Princípios de Ação)
   ========================================================================== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.principle-item {
  background: var(--glass-bg);
  border: 1px solid rgba(82, 183, 136, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.principle-item::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 0 0;
  border-color: transparent transparent transparent transparent;
  transition: var(--transition-fast);
}

.principle-item:hover {
  border-color: rgba(82, 183, 136, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--glass-bg-hover);
}

.principle-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(82, 183, 136, 0.25);
  margin-bottom: 12px;
  line-height: 1;
  transition: var(--transition);
}

.principle-item:hover .principle-num {
  color: var(--primary);
  transform: scale(1.1);
}

.principle-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-light);
}

.principle-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 10px;
}

.principle-more svg {
  width: 14px;
  height: 14px;
  transition: var(--transition-fast);
}

.principle-item:hover .principle-more svg {
  transform: translateX(3px);
}

/* Sliding Detailed Drawer for Principles */
.principle-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 100%;
  max-width: 500px;
  height: 100%;
  background: rgba(15, 22, 16, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid rgba(82, 183, 136, 0.25);
  z-index: 2000;
  padding: 50px 40px;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.principle-drawer.open {
  right: 0;
}

.drawer-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  margin-bottom: 40px;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary);
}

.drawer-num {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.drawer-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

.drawer-body {
  font-size: 1.1rem;
  color: var(--text-body-light);
  line-height: 1.7;
}

/* ==========================================================================
   Acrónimo Section (Significado de CLOROFILA)
   ========================================================================== */
.acronym-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.acronym-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

.acronym-quote {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  color: var(--primary-light);
  line-height: 1.5;
  margin-bottom: 24px;
}

.acronym-description {
  font-size: 1.05rem;
  color: var(--text-body-light);
  margin-bottom: 32px;
}

.acronym-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acronym-row {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.acronym-row:hover {
  border-color: rgba(82, 183, 136, 0.25);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(5px);
}

.acronym-letter {
  width: 60px;
  background: rgba(82, 183, 136, 0.1);
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-right: 1px solid rgba(82, 183, 136, 0.15);
}

.acronym-row:hover .acronym-letter {
  background: var(--primary);
  color: var(--stone-950);
}

.acronym-content {
  padding: 16px 24px;
}

.acronym-word {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.acronym-desc {
  font-size: 0.9rem;
  color: var(--text-body-light);
}

/* ==========================================================================
   Legado no Terreno (Métricas Vivas)
   ========================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.metric-card {
  text-align: center;
  position: relative;
}

.metric-card .glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px;
  height: 100%;
}

.metric-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  color: var(--accent);
  transition: var(--transition);
}

.metric-card:hover .metric-icon {
  transform: translateY(-5px) scale(1.1);
}

.metric-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-light);
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.metric-number .unit {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-left: 4px;
}

.metric-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary-light);
}

.metric-desc {
  font-size: 0.9rem;
  color: var(--text-body-light);
}

/* ==========================================================================
   A Grande Tribo (Categorias de Membros)
   ========================================================================== */
.tribo-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-body-light);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--stone-950);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(82, 183, 136, 0.3);
}

.tab-panel {
  display: none;
  animation: fadeInUp 0.5s ease forwards;
}

.tab-panel.active {
  display: block;
}

.tribo-content-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.tribo-info h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.tribo-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 28px;
  line-height: 1.4;
}

.tribo-block-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 16px;
}

.tribo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.tribo-list li {
  position: relative;
  padding-left: 28px;
  font-size: 1rem;
  color: var(--text-body-light);
}

.tribo-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 900;
  font-size: 1.1rem;
}

.tribo-cta-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(82, 183, 136, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tribo-cta-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tribo-cta-desc {
  font-size: 0.95rem;
  color: var(--text-body-light);
  margin-bottom: 24px;
}

/* ==========================================================================
   Contacto & Footer Section
   ========================================================================== */
.footer-contact {
  padding-top: 100px;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(82, 183, 136, 0.1);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  margin-bottom: 80px;
}

.contact-highlight h2 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
}

.contact-highlight p {
  font-size: 1.15rem;
  color: var(--text-body-light);
  margin-bottom: 40px;
  max-width: 550px;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-light);
  background: linear-gradient(135deg, rgba(82, 183, 136, 0.1) 0%, rgba(221, 161, 94, 0.05) 100%);
  border: 1px solid rgba(82, 183, 136, 0.2);
  padding: 18px 32px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-email-link svg {
  color: var(--primary);
  width: 36px;
  height: 36px;
  transition: var(--transition);
}

.contact-email-link:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.contact-email-link:hover svg {
  transform: scale(1.1) rotate(-10deg);
}

/* Info de Sede e Redes */
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.info-block-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.address-text {
  font-style: normal;
  color: var(--text-body-light);
  font-size: 1.05rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body-light);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  color: var(--stone-950);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted-light);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 24px;
  height: 24px;
}

.footer-brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-light);
}

.footer-meta {
  display: flex;
  gap: 24px;
}

.footer-meta a {
  color: var(--text-muted-light);
}

.footer-meta a:hover {
  color: var(--text-light);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Backdrop Overlay for modal or menu opens */
.backdrop-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.backdrop-blur.active {
  opacity: 1;
  pointer-events: all;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .manifesto-visual {
    height: 350px;
  }
  
  .visual-card {
    width: 90%;
    padding: 32px;
  }
  
  .dogmas-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .acronym-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  
  .header {
    top: 0;
  }
  
  .nav-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 16px 20px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 73px);
    background: rgba(15, 22, 16, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 40px 24px;
    align-items: flex-start;
    gap: 24px;
    border-right: 1px solid rgba(82, 183, 136, 0.15);
    transition: var(--transition);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
    z-index: 999;
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-menu .nav-item {
    width: 100%;
  }
  
  .nav-menu .nav-item a {
    font-size: 1.2rem;
    display: block;
    width: 100%;
  }
  
  .nav-actions {
    display: none; /* Em mobile, gerimos as ações noutra área ou simplificamos */
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .principles-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .tribo-content-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-highlight h2 {
    font-size: 2.2rem;
  }
  
  .contact-email-link {
    font-size: 1.4rem;
    padding: 14px 20px;
    width: 100%;
    justify-content: center;
  }
  
  .contact-email-link svg {
    width: 28px;
    height: 28px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ==========================================================================
   Privacy Modal Styling
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 11, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: rgba(27, 42, 29, 0.95);
  border: 1px solid rgba(82, 183, 136, 0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-light);
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--text-body-light);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.modal-header {
  padding: 30px 40px 20px;
  border-bottom: 1px solid rgba(82, 183, 136, 0.15);
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-icon {
  color: var(--primary);
  width: 32px;
  height: 32px;
}

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
}

.modal-body {
  padding: 30px 40px 40px;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--text-body-light);
  font-size: 1rem;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 0 16px 0;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(82, 183, 136, 0.3);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(82, 183, 136, 0.5);
}

.modal-updated {
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-top: 0;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.modal-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 600;
}

.modal-body p {
  margin-top: 0;
  margin-bottom: 16px;
}

.modal-body ul {
  margin-top: 0;
  margin-bottom: 20px;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 8px;
}

.modal-body code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .modal {
    padding: 10px;
  }
  .modal-content {
    max-height: 90vh;
    border-radius: 12px;
  }
  .modal-header {
    padding: 20px 24px 15px;
  }
  .modal-header h2 {
    font-size: 1.4rem;
  }
  .modal-body {
    padding: 20px 24px 30px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Theme Toggle Button & Light Theme Overrides
   ========================================================================== */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  margin-right: 12px;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

/* Filled buttons always keep high contrast text */
.btn-primary, .btn-accent {
  color: #f5f8f6 !important;
}
.btn-accent:hover {
  color: #f5f8f6 !important;
}

/* Toggle Sun/Moon visibility depending on data-theme */
[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: none;
}
[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

/* Light Theme Variables & Overrides */
[data-theme="light"] {
  /* Swap base backgrounds so dark sections become light gray, and light sections become white/near white */
  --bg-dark: var(--stone-50);
  --bg-section-dark: var(--stone-100);
  --bg-section-light: #ffffff;
  
  /* Text colors */
  --text-light: var(--stone-950);
  --text-dark: var(--stone-950);
  --text-body-light: var(--stone-700);
  --text-body-dark: var(--stone-700);
  --text-muted-light: var(--stone-500);
  --text-muted-dark: var(--stone-500);

  /* Glassmorphism Styles (Light Theme) */
  --glass-bg: rgba(237, 247, 240, 0.8);
  --glass-bg-hover: rgba(237, 247, 240, 0.95);
  --glass-border: rgba(82, 183, 136, 0.25);
  --glass-border-hover: rgba(82, 183, 136, 0.45);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

/* Specific Light Theme Component Overrides */
[data-theme="light"] .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-light);
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(82, 183, 136, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-light);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(82, 183, 136, 0.12);
  border-color: var(--primary);
}

[data-theme="light"] .nav-menu {
  background: rgba(245, 248, 246, 0.98);
  border-color: rgba(82, 183, 136, 0.2);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .tab-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-body-light);
}

[data-theme="light"] .tab-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-light);
}

[data-theme="light"] .principle-drawer {
  background: rgba(245, 248, 246, 0.98);
  border-left-color: rgba(82, 183, 136, 0.25);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .drawer-close {
  color: var(--text-body-light);
}

[data-theme="light"] .drawer-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

[data-theme="light"] .visual-card {
  background: linear-gradient(135deg, rgba(237, 247, 240, 0.9) 0%, rgba(245, 248, 246, 0.95) 100%);
  border-color: rgba(82, 183, 136, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .social-link {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .modal {
  background: rgba(10, 15, 11, 0.35);
}

[data-theme="light"] .modal-content {
  background: rgba(245, 248, 246, 0.98);
  border-color: rgba(82, 183, 136, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-close {
  color: var(--text-body-light);
}

[data-theme="light"] .modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

[data-theme="light"] .modal-body code {
  background: rgba(0, 0, 0, 0.06);
}

