/* =============================================
   CMEM REBRANDING v2.0 — Ultra Moderno
   Glassmorphism · Gradientes · Animações
   ============================================= */

/* === PALETA VERDE SOFISTICADA === */
:root {
  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --emerald-950: #022c22;

  --primary:       #059669;
  --primary-light:  #10b981;
  --primary-dark:   #065f46;
  --primary-deep:   #022c22;
  --accent:         #34d399;
  --accent-glow:    rgba(52, 211, 153, 0.4);
  --gold:           #fbbf24;
  --gold-light:     #fde68a;

  --bg-body:  #fafdfb;
  --bg-card:  #ffffff;
  --bg-dark:  #0f1f18;
  --bg-muted: #f0fdf4;

  --text-heading: #064e3b;
  --text-body:    #374151;
  --text-muted:   #6b7280;
  --text-light:   #9ca3af;
  --white:        #ffffff;

  --glass-bg:     rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.3);
  --glass-blur:   20px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl:   0 20px 50px -12px rgba(0,0,0,0.15);
  --shadow-green: 0 10px 30px -5px rgba(5,150,105,0.25);
  --shadow-glow:  0 0 40px rgba(16,185,129,0.15);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition: 0.35s var(--ease-smooth);
  --transition-slow: 0.5s var(--ease-smooth);
}

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  background: var(--bg-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-heading);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--emerald-200);
  color: var(--emerald-900);
}

/* === SCROLLBAR ELEGANTE === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--emerald-400), var(--emerald-600));
  border-radius: 3px;
}

/* === PRELOADER === */
.cmem-preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-800));
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.cmem-preloader.loaded {
  opacity: 0;
  visibility: hidden;
}
.cmem-preloader .spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================
   NAVBAR — GLASSMORPHISM
   ========================================= */
.cmem-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 12px 0;
  background: transparent;
  transition: var(--transition);
}

.cmem-navbar.scrolled {
  padding: 6px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.cmem-navbar .navbar-brand img {
  height: 52px;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.cmem-navbar .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  font-size: 13.5px;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  letter-spacing: 0.2px;
}

.cmem-navbar.scrolled .nav-link {
  color: var(--text-heading) !important;
}

.cmem-navbar .nav-link:hover,
.cmem-navbar .nav-link.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent) !important;
}

.cmem-navbar.scrolled .nav-link:hover,
.cmem-navbar.scrolled .nav-link.active {
  color: var(--primary) !important;
}

.cmem-navbar .dropdown-menu {
  border: none;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 10px;
  margin-top: 10px;
  border: 1px solid var(--glass-border);
  animation: dropIn 0.25s var(--ease-spring);
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cmem-navbar .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-body);
  transition: var(--transition-fast);
}

.cmem-navbar .dropdown-item:hover {
  background: var(--emerald-50);
  color: var(--primary);
  transform: translateX(4px);
}

/* =========================================
   HERO — GRADIENTE COM FORMAS ANIMADAS
   ========================================= */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg,
    var(--emerald-950) 0%,
    var(--emerald-900) 25%,
    var(--emerald-800) 50%,
    var(--emerald-700) 75%,
    var(--primary) 100%
  );
}

/* Formas geométricas animadas */
.hero-section::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,0.15) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation: float 8s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.08) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--white);
}

.hero-shapes .shape-1 {
  width: 300px; height: 300px;
  top: 10%; left: 60%;
  animation: morph 15s ease-in-out infinite;
}

.hero-shapes .shape-2 {
  width: 200px; height: 200px;
  top: 60%; left: 10%;
  animation: morph 12s ease-in-out infinite reverse;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.hero-shapes .shape-3 {
  width: 150px; height: 150px;
  top: 20%; left: 20%;
  background: var(--accent);
  opacity: 0.06;
  animation: morph 18s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 50%; transform: translate(0, 0) rotate(0deg); }
  25%      { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translate(20px, -30px) rotate(90deg); }
  50%      { border-radius: 50% 50% 30% 70% / 70% 30% 70% 30%; transform: translate(-10px, 20px) rotate(180deg); }
  75%      { border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%; transform: translate(15px, 10px) rotate(270deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-content .badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 211, 153, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--emerald-200);
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease both;
}

.hero-content .badge-custom::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s 0.15s ease both;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-image {
  position: relative;
  z-index: 3;
  text-align: center;
  animation: fadeInUp 0.8s 0.45s ease both;
}

.hero-image img {
  max-width: 440px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35));
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-15px); }
}

/* Botão Hero */
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--emerald-400));
  color: var(--emerald-950);
  box-shadow: 0 4px 20px rgba(52,211,153,0.35);
  animation: fadeInUp 0.8s 0.45s ease both;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(52,211,153,0.5);
  color: var(--emerald-950);
}

.hero-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2));
  opacity: 0;
  transition: var(--transition-fast);
}

.hero-btn:hover::after { opacity: 1; }

/* Onda SVG separadora */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
}

.wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.wave-divider.flip { transform: rotate(180deg); margin-top: 0; margin-bottom: -2px; }

/* =========================================
   SEÇÕES — LAYOUT
   ========================================= */
.section-padding {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title .subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--emerald-50), var(--emerald-100));
  color: var(--primary);
  padding: 7px 20px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid var(--emerald-200);
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text-heading);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 160px;
  margin: 20px auto 0;
  gap: 12px;
}

.section-divider .line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald-300), transparent);
  border-radius: 1px;
}

.section-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--primary);
  transform: rotate(45deg);
  border-radius: 2px;
  flex-shrink: 0;
}

.bg-light-section {
  background: var(--bg-muted);
  position: relative;
}

/* =========================================
   GALERIA DE GESTÕES — CARDS MODERNOS
   ========================================= */
.gestao-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 30px;
  cursor: pointer;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
}

.gestao-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--emerald-200);
}

.gestao-card .gestao-img-wrapper {
  overflow: hidden;
  position: relative;
  height: 200px;
}

.gestao-card .gestao-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gestao-card:hover .gestao-img {
  transform: scale(1.1);
}

.gestao-card .gestao-img-wrapper .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,150,105,0.85), rgba(6,95,70,0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gestao-card:hover .gestao-img-wrapper .overlay { opacity: 1; }

.gestao-card .gestao-img-wrapper .overlay i {
  color: var(--white);
  font-size: 1.8rem;
  transform: scale(0.5);
  transition: var(--transition);
}

.gestao-card:hover .gestao-img-wrapper .overlay i {
  transform: scale(1);
}

.gestao-card .gestao-body {
  padding: 22px 16px;
}

.gestao-card .gestao-body h5 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 4px;
  font-weight: 700;
}

.gestao-card .gestao-body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Card destacado (2018/2021) */
.gestao-card.highlighted {
  border: 2px solid var(--emerald-300);
  position: relative;
}

.gestao-card.highlighted::before {
  content: 'DESTAQUE';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  z-index: 5;
}

/* =========================================
   CONSELHEIRO CARDS — GLASSMORPHISM
   ========================================= */
.conselheiro-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 30px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

.conselheiro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald-400), var(--primary), var(--emerald-400));
  opacity: 0;
  transition: var(--transition-fast);
}

.conselheiro-card:hover::before { opacity: 1; }

.conselheiro-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-green);
  border-color: var(--emerald-100);
}

.conselheiro-card .foto-wrapper {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.conselheiro-card .foto-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.conselheiro-card:hover .foto-wrapper img {
  transform: scale(1.06);
}

/* Gradiente sobre a foto */
.conselheiro-card .foto-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
  pointer-events: none;
}

.conselheiro-card .foto-wrapper .cargo-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}

.conselheiro-card .foto-wrapper .cargo-badge.presidente {
  background: linear-gradient(135deg, rgba(251,191,36,0.9), rgba(245,158,11,0.9));
  color: #78350f;
}

.conselheiro-card .foto-wrapper .cargo-badge.secretario {
  background: linear-gradient(135deg, rgba(59,130,246,0.9), rgba(37,99,235,0.9));
  color: var(--white);
}

.conselheiro-card .foto-wrapper .cargo-badge.tesoureiro {
  background: linear-gradient(135deg, rgba(239,68,68,0.9), rgba(220,38,38,0.9));
  color: var(--white);
}

.conselheiro-card .foto-wrapper .cargo-badge.suplente {
  background: rgba(100,116,139,0.85);
  color: var(--white);
}

.conselheiro-card .card-body {
  padding: 22px 16px;
}

.conselheiro-card .card-body h6 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
  line-height: 1.35;
}

.conselheiro-card .card-body p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* =========================================
   GESTÃO ATUAL — PLACEHOLDERS ELEGANTES
   ========================================= */
.gestao-atual-placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--emerald-200);
  border-radius: var(--radius-xl);
  padding: 28px 12px;
  text-align: center;
  margin-bottom: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.gestao-atual-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--emerald-50) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
}

.gestao-atual-placeholder:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gestao-atual-placeholder:hover::before { opacity: 1; }

.gestao-atual-placeholder .avatar-placeholder {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--emerald-50), var(--emerald-100));
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: 2px solid var(--emerald-200);
}

.gestao-atual-placeholder .avatar-placeholder i {
  font-size: 2rem;
  color: var(--emerald-300);
}

.gestao-atual-placeholder h6 {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.gestao-atual-placeholder p {
  color: var(--text-light);
  font-size: 0.75rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* =========================================
   TÉCNICAS DO CONSELHO
   ========================================= */
.tecnica-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 30px;
  border: 1px solid rgba(0,0,0,0.04);
}

.tecnica-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-100);
}

.tecnica-card .foto-wrapper {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.tecnica-card .foto-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.tecnica-card:hover .foto-wrapper img {
  transform: scale(1.05);
}

.tecnica-card .card-body {
  padding: 22px 16px;
  text-align: center;
}

.tecnica-card .card-body h6 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.tecnica-card .card-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* =========================================
   TITLE BADGES
   ========================================= */
.gestao-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--emerald-800), var(--primary));
  color: var(--white);
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-green);
}

.gestao-section-title i {
  color: var(--gold);
  font-size: 1rem;
}

/* =========================================
   LINKS — CARDS COM ÍCONE GRADIENT
   ========================================= */
.links-section .link-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.links-section .link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-400), var(--primary));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: center;
}

.links-section .link-card:hover::before { transform: scaleX(1); }

.links-section .link-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-100);
}

.links-section .link-card .icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--emerald-50), var(--emerald-100));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: var(--transition);
}

.links-section .link-card:hover .icon-wrapper {
  background: linear-gradient(135deg, var(--primary), var(--emerald-700));
}

.links-section .link-card .icon-wrapper i {
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition-fast);
}

.links-section .link-card:hover .icon-wrapper i {
  color: var(--white);
}

.links-section .link-card i.fa {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 16px;
  transition: var(--transition-fast);
}

.links-section .link-card:hover > a > i.fa,
.links-section .link-card:hover i.fa {
  color: var(--primary-dark);
}

.links-section .link-card h6 {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--text-heading);
}

.links-section .link-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================
   FOOTER — ESCURO E ELEGANTE
   ========================================= */
.cmem-footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a1610 100%);
  color: rgba(255,255,255,0.6);
  padding: 72px 0 32px;
  position: relative;
}

.cmem-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald-600), transparent);
}

.cmem-footer h5 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
  font-weight: 700;
}

.cmem-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
}

.cmem-footer .footer-center h5::after {
  left: 50%;
  transform: translateX(-50%);
}

.cmem-footer p,
.cmem-footer li {
  font-size: 0.88rem;
  line-height: 2;
}

.cmem-footer a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}

.cmem-footer a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.cmem-footer .footer-social a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  margin-right: 8px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
  padding: 0;
}

.cmem-footer .footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  padding-left: 0;
}

.cmem-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  margin-top: 48px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.cmem-footer .footer-bottom .accent {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--emerald-700));
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
  box-shadow: var(--shadow-green);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(5,150,105,0.4);
}

/* =========================================
   ANIMAÇÕES SCROLL-REVEAL
   ========================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay para cards */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
  .hero-section {
    padding: 120px 0 60px;
    text-align: center;
  }

  .hero-content h1 { font-size: 2rem; }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image { margin-top: 40px; }
  .hero-image img { max-width: 300px; }

  .section-padding { padding: 70px 0; }
}

@media (max-width: 767px) {
  .hero-content h1 { font-size: 1.7rem; }

  .section-padding { padding: 50px 0; }

  .section-title { margin-bottom: 40px; }

  .section-title h2 { font-size: 1.5rem; }

  .conselheiro-card .foto-wrapper { height: 220px; }

  .hero-image img { max-width: 250px; }

  .cmem-navbar .nav-link {
    color: var(--text-heading) !important;
  }

  .wave-divider svg { height: 40px; }
}

/* =========================================
   STATS / CONTADORES
   ========================================= */
.stats-section {
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-800));
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,0.1), transparent 70%);
  top: -200px;
  right: -100px;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 20px;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* =========================================
   UTILITÁRIOS
   ========================================= */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   INNER PAGES — COMMON
   ========================================= */

/* Page Header */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(160deg,
    var(--emerald-950) 0%,
    var(--emerald-900) 30%,
    var(--emerald-800) 60%,
    var(--primary) 100%
  );
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,0.12) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.page-header::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.06) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.page-header .breadcrumb-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.page-header .breadcrumb-custom a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}

.page-header .breadcrumb-custom a:hover { color: var(--accent); }

.page-header .breadcrumb-custom .separator {
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.page-header h1 span {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 600px;
  position: relative;
  z-index: 2;
  line-height: 1.7;
}

/* Content Card */
.content-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 32px;
}

.content-card h3 {
  font-size: 1.4rem;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.content-card p,
.content-card li {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.85;
  text-align: justify;
}

.content-card ul {
  list-style: none;
  padding: 0;
}

.content-card ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.content-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.content-card .content-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.content-card .content-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Doc Card */
.doc-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.04);
  padding: 20px 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  text-decoration: none !important;
  color: var(--text-body) !important;
}

.doc-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-200);
  background: var(--emerald-50);
}

.doc-card .doc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.doc-card .doc-icon.pdf {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}
.doc-card .doc-icon.pdf i { color: #dc2626; font-size: 1.2rem; }

.doc-card .doc-icon.doc {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.doc-card .doc-icon.doc i { color: #2563eb; font-size: 1.2rem; }

.doc-card .doc-icon.pptx {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.doc-card .doc-icon.pptx i { color: #d97706; font-size: 1.2rem; }

.doc-card .doc-icon.link {
  background: linear-gradient(135deg, var(--emerald-50), var(--emerald-100));
}
.doc-card .doc-icon.link i { color: var(--primary); font-size: 1.2rem; }

.doc-card:hover .doc-icon { transform: scale(1.1); }

.doc-card .doc-info { flex: 1; min-width: 0; }

.doc-card .doc-info h6 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0 0 2px;
  line-height: 1.4;
}

.doc-card .doc-info small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.doc-card .download-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--emerald-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  opacity: 0;
}

.doc-card .download-arrow i { color: var(--primary); font-size: 0.85rem; }

.doc-card:hover .download-arrow {
  opacity: 1;
  background: var(--primary);
}

.doc-card:hover .download-arrow i { color: var(--white); }

/* Docs Category */
.docs-category { margin-bottom: 56px; }

.docs-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--emerald-100);
}

.docs-category-header .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-50), var(--emerald-100));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.docs-category-header .icon-circle i { font-size: 1.15rem; color: var(--primary); }

.docs-category-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}

.docs-category-header .doc-count {
  background: var(--emerald-50);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: auto;
  border: 1px solid var(--emerald-200);
}

/* Category Nav */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
  justify-content: center;
}

.category-nav .cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  border: 2px solid var(--emerald-200);
  background: var(--white);
  color: var(--text-heading);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.category-nav .cat-btn:hover,
.category-nav .cat-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--emerald-700));
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}

/* Profile Card (president, conselheiros) */
.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
  margin-bottom: 30px;
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-green);
  border-color: var(--emerald-100);
}

.profile-card .profile-img {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.profile-card .profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.profile-card:hover .profile-img img { transform: scale(1.06); }

.profile-card .profile-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  pointer-events: none;
}

.profile-card .profile-body {
  padding: 24px 20px;
  text-align: center;
}

.profile-card .profile-body h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.profile-card .profile-body .role {
  display: inline-block;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.profile-card .profile-body .role.presidente {
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.15));
  color: #92400e;
}

.profile-card .profile-body .role.vice {
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(37,99,235,0.12));
  color: #1e40af;
}

.profile-card .profile-body .role.secretario {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(124,58,237,0.12));
  color: #5b21b6;
}

.profile-card .profile-body .role.tesoureiro {
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(220,38,38,0.12));
  color: #991b1b;
}

.profile-card .profile-body .role.titular {
  background: linear-gradient(135deg, var(--emerald-50), var(--emerald-100));
  color: var(--primary);
}

.profile-card .profile-body .role.suplente {
  background: rgba(100,116,139,0.1);
  color: #475569;
}

.profile-card .profile-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.profile-card .profile-body .email {
  font-size: 0.78rem;
  color: var(--primary);
  margin-top: 4px;
}

/* Profile Featured (large card) */
.profile-featured {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 48px;
}

.profile-featured .row { margin: 0; }
.profile-featured .row > div { padding: 0; }

.profile-featured .feat-img {
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

.profile-featured .feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-featured .feat-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-featured .feat-body .role {
  display: inline-block;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  width: fit-content;
}

.profile-featured .feat-body h3 {
  font-size: 1.4rem;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.profile-featured .feat-body p {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.8;
  text-align: justify;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--emerald-200), var(--primary), var(--emerald-200));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-item .timeline-content {
  width: 45%;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
}

.timeline-item .timeline-content:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-200);
}

.timeline-item .timeline-dot {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--emerald-100);
  z-index: 2;
}

.timeline-item .timeline-content h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-item .timeline-content p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
}

/* Info Card for News */
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
  margin-bottom: 30px;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-200);
}

.news-card .news-img {
  height: 220px;
  overflow: hidden;
}

.news-card .news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.news-card:hover .news-img img { transform: scale(1.05); }

.news-card .news-body {
  padding: 28px;
}

.news-card .news-body h5 {
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card .news-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Responsive inner pages */
@media (max-width: 991px) {
  .page-header { padding: 130px 0 60px; }
  .content-card { padding: 32px 24px; }
  .profile-featured .feat-img { min-height: 300px; }
  .profile-featured .feat-body { padding: 32px 24px; }

  .timeline::before { left: 24px; }
  .timeline-item { flex-direction: row !important; }
  .timeline-item .timeline-content { width: calc(100% - 60px); margin-left: 60px; }
  .timeline-item .timeline-dot { left: 24px; }
}

@media (max-width: 767px) {
  .page-header { padding: 120px 0 40px; }
  .page-header h1 { font-size: 1.6rem; }
  .content-card { padding: 24px 18px; }
  .doc-card { padding: 16px; gap: 12px; }
  .doc-card .doc-info h6 { font-size: 0.82rem; }
  .docs-category-header .doc-count { display: none; }
  .profile-card .profile-img { height: 220px; }
  .profile-featured .feat-img { min-height: 250px; }
}
