/*
Theme Name: IMAM Theme
Theme URI: https://imam.org.br
Author: Rodrigo Sousa - Desenvolvedor Web
Description: Tema institucional em CSS3 puro para o Instituto do Meio Ambiente e Desenvolvimento Social.
Version: 1.3.9
License: GNU General Public License v2 or later
Text Domain: imam
*/

/* ==========================================================================
   [1] IMPORTAÇÕES E CONFIGURAÇÃO DE FONTES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;750&display=swap');

/* Módulos CSS refatorados (SPA Pages) */
@import url('css/pages/sobre.css');
@import url('css/pages/projetos.css');
@import url('css/pages/noticias.css');
@import url('css/pages/publicacoes.css');
@import url('css/pages/contato.css');
@import url('css/pages/atuacao.css');

/* ==========================================================================
   [2] VARIÁVEIS DO DESIGN SYSTEM (:ROOT)
   ========================================================================== */
:root {
  /* Cores Principais (Harmônicas e Terrosas) */
  --color-brand-deep: #06412c;
  --color-brand-medium: #0d5a3a;
  --color-brand-light: #dde8d7;
  --color-brand-bg: #f5f1e8;
  --color-brand-sand: #d8c6a3;
  --color-brand-earth: #6b4f32;
  --color-brand-dark: #072016;
  
  /* Cores Auxiliares */
  --color-white-warm: #faf8f2;
  --color-text-dark: #17231c;
  --color-text-muted: #536b5c;
  --color-slate-100: #e2e8f0;
  --color-slate-200: #cbd5e1;
  --color-slate-700: #334155;
  --color-accent-sky: #e0f2fe;
  --color-accent-amber: #fef3c7;
  --color-accent-blue: #0284c7;
  
  /* Tipografia */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Transições e Sombras */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  
  /* Bordas */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 32px;
}

/* ==========================================================================
   [3] RESET GERAL E ESTILOS BÁSICOS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-white-warm);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input {
  font-family: inherit;
}

ul {
  list-style: none;
}

::selection {
  background-color: var(--color-brand-light);
  color: var(--color-brand-deep);
}

/* ==========================================================================
   [4] COMPONENTES GLOBAIS E UTILIÁRIOS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-brand-deep);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-brand-medium);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(11, 76, 53, 0.2);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: #eab308; /* Yellow */
  color: var(--color-brand-dark);
}

.btn-accent:hover {
  background-color: #ca8a04;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(234, 179, 8, 0.2);
}

.btn-outline {
  border-color: var(--color-brand-deep);
  color: var(--color-brand-deep);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-brand-deep);
  color: white;
}

/* Seções */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-bg-gray {
  background-color: #f8fafc;
}

.section-bg-white {
  background-color: white;
}

/* Títulos das Seções */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-brand-medium);
  background-color: var(--color-brand-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--border-radius-sm);
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-brand-dark);
  letter-spacing: -0.02em;
}

.section-divider {
  width: 60px;
  height: 4px;
  background-color: var(--color-brand-deep);
  margin: 1rem auto 0 auto;
  border-radius: 2px;
}

/* Efeito Topográfico */
.topographic-pattern {
  background-image: radial-gradient(circle at 100% 150%, rgba(13, 148, 136, 0.08) 24%, transparent 24%),
                    radial-gradient(circle at 0% 150%, rgba(13, 148, 136, 0.08) 24%, transparent 24%),
                    radial-gradient(circle at 50% 50%, rgba(13, 148, 136, 0.05) 40%, transparent 40%);
  background-size: 100px 100px;
}

/* ==========================================================================
   [5] CABEÇALHO & BARRA DE NAVEGAÇÃO
   ========================================================================== */
.site-header {
  width: 100%;
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

.site-header.shrink {
  box-shadow: var(--shadow-md);
}

/* Faixa Superior */
.top-bar {
  background-color: var(--color-brand-deep);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.75rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-contact a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-contact a:hover {
  color: var(--color-brand-sand);
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-social span {
  opacity: 0.6;
  font-size: 0.68rem;
}

.top-bar-social-icons {
  display: flex;
  gap: 0.75rem;
}

.top-bar-social-icons a:hover {
  color: var(--color-brand-sand);
}

/* Navegação Principal */
.main-nav {
  padding: 1rem 0;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 62px;
  width: auto;
  display: block;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand-deep), var(--color-brand-medium));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.875rem;
  box-shadow: 0 4px 10px rgba(7, 32, 22, 0.2);
}

.logo-text-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-brand-dark);
  display: block;
  line-height: 1.1;
}




.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-brand-deep);
}

.nav-links a.active {
  border-bottom: 2px solid var(--color-brand-deep);
  padding-bottom: 2px;
}

/* Elementos auxiliares da sidebar (ocultos no desktop) */
.sidebar-header,
.sidebar-footer,
.sidebar-divider {
  display: none !important;
}

/* Menu Hamburger Mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-brand-deep);
  cursor: pointer;
}

/* ==========================================================================
   [6] BANNER HERO SLIDESHOW
   ========================================================================== */
.hero-section {
  background-color: #1a2e1c;
  color: white;
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  display: flex;
  align-items: center;
  min-height: 620px;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms ease-in-out, visibility 900ms ease-in-out;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  transform: scale(1);
  will-change: transform;
}

.hero-slide.is-active .hero-slide__image {
  animation: heroKenBurns 5s ease-in-out forwards;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 46, 30, 0.88) 0%,
    rgba(4, 46, 30, 0.74) 36%,
    rgba(4, 46, 30, 0.40) 68%,
    rgba(4, 46, 30, 0.18) 100%
  );
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: left;
}

.hero-content {
  max-width: 750px;
}

.hero-content-slides {
  display: grid;
  margin-bottom: 2.5rem;
}

.hero-slide-content {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms ease-in-out, visibility 900ms ease-in-out;
}

.hero-slide-content.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-content .hero-title {
  margin-bottom: 1.5rem;
}

.hero-slide-content .hero-description {
  margin-bottom: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-description {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: #ffffff;
  color: #0d5a3a;
  border-color: #ffffff;
  outline: none;
}

.hero-arrow--prev {
  left: 24px;
}

.hero-arrow--next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 95px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.35s ease-in-out, background-color 0.35s ease-in-out;
}

.hero-dot.is-active {
  width: 26px;
  background: #ffffff;
}

.hero-dot:hover,
.hero-dot:focus-visible {
  background: rgba(255, 255, 255, 0.75);
  outline: none;
}

.hero-dot.is-active:hover,
.hero-dot.is-active:focus-visible {
  background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide-content,
  .hero-dot {
    transition: none;
  }

  .hero-slide.is-active .hero-slide__image {
    animation: none;
    transform: scale(1);
  }
}

/* ==========================================================================
   [7] BARRA DE DIFERENCIAIS
   ========================================================================== */
.diferenciais-bar {
  background-color: transparent;
  position: relative;
  z-index: 10;
  margin-top: -55px; /* Overlaps with the hero banner for a premium 3D layered look */
  padding: 0;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: stretch;
}

.diferencial-item {
  background-color: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
  padding: 24px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease;
  cursor: pointer;
}

.diferencial-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(13, 91, 56, 0.08), 0 4px 12px rgba(13, 91, 56, 0.02);
  border-color: rgba(47, 107, 79, 0.2);
}

.diferencial-icon {
  color: #2F6B4F;
  width: 48px;
  height: 48px;
  background-color: rgba(47, 107, 79, 0.06); /* Premium soft green background */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.diferencial-icon svg,
.diferencial-icon i {
  width: 22px;
  height: 22px;
  stroke-width: 2; /* Stronger, cleaner stroke width at smaller size */
}

/* When the parent item is hovered, highlight the icon */
.diferencial-item:hover .diferencial-icon {
  background-color: #2F6B4F;
  color: #FFFFFF;
  transform: scale(1.05);
}

.diferencial-text {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700; /* Bolder for premium look */
  color: #1F1F1F;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.diferencial-item:hover .diferencial-text {
  color: #0D5B38; /* Slightly changes text color on hover */
}

/* ==========================================================================
   [8] SOBRE O IMAM — MOCKUP APROVADO
   ========================================================================== */

/* Seção principal */
.sobre-imam-section {
  background-color: #FFFFFF;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Container interno com max-width 1200px */
.sobre-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Grid 2 colunas: 42% / 58% */
.sobre-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 70px;
  align-items: center;
}

/* ===== COLUNA ESQUERDA ===== */
.sobre-col-esquerda {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Tag "SOBRE O IMAM" */
.sobre-tag {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #2F6B4F;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
}

/* Título principal */
.sobre-titulo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  color: #111111;
  max-width: 520px;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

/* Linha decorativa verde */
.sobre-linha-deco {
  width: 60px;
  height: 4px;
  background-color: #2F6B4F;
  border-radius: 999px;
  margin-bottom: 32px;
  flex-shrink: 0;
}

/* Parágrafos */
.sobre-texto {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #585858;
  margin-bottom: 24px;
  max-width: 460px;
}

/* Botão "Conheça o Instituto" */
.sobre-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  background-color: #0D5B38;
  color: #FFFFFF;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: background-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
  margin-top: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13, 91, 56, 0.18);
}

.sobre-btn:hover {
  background-color: #08472B;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(13, 91, 56, 0.35);
}

.sobre-btn-icon {
  width: 17px;
  height: 17px;
  transition: transform 0.28s ease;
}

.sobre-btn:hover .sobre-btn-icon {
  transform: translateX(4px);
}

/* ===== COLUNA DIREITA ===== */
.sobre-col-direita {
  width: 100%;
}

/* Grid interno das imagens: 2 colunas */
.sobre-imagens-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  height: 520px;
}

/* Wrapper base das imagens */
.sobre-img-wrapper {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.14);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.sobre-img-wrapper:hover {
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

/* Imagem grande ocupa toda a altura */
.sobre-img-grande {
  height: 100%;
  min-height: 520px;
}

/* Stack das 2 imagens à direita */
.sobre-imgs-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.sobre-imgs-stack .sobre-img-wrapper {
  flex: 1;
  min-height: 0;
}

/* Imagens em si */
.sobre-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.sobre-img-wrapper:hover .sobre-img {
  transform: scale(1.05);
}

/* ===== ELEMENTO DECORATIVO (FOLHA PNG via ::after) ===== */
.sobre-imam {
  position: relative;
  overflow: hidden;
}

.sobre-container::after {
  content: "";
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 420px;
  background: url(assets/imagens/folha-decorativa.png) center center / contain no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}

/* Garante que o conteúdo fique acima do SVG */
.sobre-container {
  position: relative;
  z-index: 1;
}

/* ===== RESPONSIVO — SOBRE O IMAM ===== */
@media (max-width: 1024px) {
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sobre-col-esquerda {
    order: 1;
  }

  .sobre-col-direita {
    order: 2;
  }

  .sobre-titulo {
    font-size: 42px;
  }

  .sobre-imagens-grid {
    height: 440px;
  }

  .sobre-img-grande {
    min-height: 440px;
  }

  .sobre-imgs-stack {
    height: 440px;
  }

  .sobre-container::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .sobre-imam-section {
    padding: 64px 0;
  }

  .sobre-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .sobre-titulo {
    font-size: 38px;
  }

  .sobre-texto {
    font-size: 16px;
  }

  .sobre-imagens-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 14px;
  }

  .sobre-img-grande {
    height: 280px;
    width: 100%;
  }

  .sobre-imgs-stack {
    flex-direction: column;
    height: auto;
    gap: 14px;
  }

  .sobre-imgs-stack .sobre-img-wrapper {
    height: 220px;
    width: 100%;
  }
}

/* ==========================================================================
   [9] ÁREAS DE ATUAÇÃO (FRENTES TÉCNICAS)
   ========================================================================== */
#atuacao {
  background-color: #F8F7F2;
  padding-top: 56px;
  padding-bottom: 42px;
}

#atuacao .container {
  max-width: 1200px;
  margin: auto;
}

#atuacao .section-header {
  text-align: center;
  margin-bottom: 0;
  max-width: 100%;
}

#atuacao .section-tag,
#projetos .section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2F6B4F;
  background: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 8px;
  display: inline-block;
}

#atuacao .section-title,
#projetos .section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.15;
  color: #111111;
}

#atuacao .section-title {
  margin-bottom: 36px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.service-card {
  background-color: #FFFFFF;
  border: 1px solid #E6E6E6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
  padding: 28px 20px 24px;
  min-height: 280px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #E9EFE5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon-box svg,
.service-icon-box i {
  width: 28px !important;
  height: 28px !important;
  color: #0D5B38;
  stroke-width: 2px !important;
}

.service-title {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  color: #151515;
  margin-bottom: 14px;
}

.service-description {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #4F4F4F;
  margin-bottom: auto;
}

.service-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #0D5B38;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.service-link svg,
.service-link i {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.service-card:hover .service-link svg,
.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* ==========================================================================
   [10] PROJETOS EM DESTAQUE
   ========================================================================== */
#projetos {
  background-color: #F8F7F2;
  padding-top: 0;
  padding-bottom: 70px;
}

#projetos .container {
  max-width: 1200px;
  margin: auto;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  border: none;
  padding-bottom: 0;
}

.projects-header-text {
  text-align: left;
}

.btn-projects-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid #CBD5CC;
  border-radius: 6px;
  background-color: #FFFFFF;
  color: #111111;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-projects-all:hover {
  background-color: #F8F7F2;
  border-color: #99a69b;
  transform: translateY(-1px);
}

.btn-projects-all svg,
.btn-projects-all i {
  width: 14px;
  height: 14px;
  stroke-width: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.project-card {
  background-color: #FFFFFF;
  border: 1px solid #E6E6E6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
}

.project-thumb {
  height: 120px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
}

.project-status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  z-index: 2;
}

.project-status.status-ongoing {
  background-color: #147A4A;
}

.project-status.status-completed {
  background-color: #0D5B38;
}

.project-info {
  padding: 18px 18px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #151515;
  margin-bottom: 8px;
}

.project-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 12px;
}

.project-location svg,
.project-location i {
  width: 14px;
  height: 14px;
  color: #111111 !important;
}

.project-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #4F4F4F;
  margin-bottom: 18px;
}

.project-card-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #0D5B38;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.project-card-link svg,
.project-card-link i {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.project-card:hover .project-card-link svg,
.project-card:hover .project-card-link i {
  transform: translateX(4px);
}

/* ==========================================================================
   [11] PUBLICAÇÕES E NOTÍCIAS (BLOCO DIVIDIDO)
   ========================================================================== */
#publicacoes-noticias {
  background: linear-gradient(
    to right,
    #F3F6EC 0%,
    #F3F6EC 50%,
    #FBF7EF 50%,
    #FBF7EF 100%
  );
  padding-top: 46px;
  padding-bottom: 46px;
  position: relative;
}

#publicacoes-noticias .container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Coluna Esquerda - Publicações */
.publicacoes-box {
  position: relative;
  padding-right: 30px;
  overflow: hidden;
}

.publicacoes-box::after {
  content: "";
  position: absolute;
  width: 292px;
  height: 344px;
  right: 70px;
  top: 52%;
  transform: translateY(-50%);
  background-image: url("./assets/imagens/bg-publicacoes.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.publicacoes-tag,
.publicacoes-header,
.publicacoes-list {
  position: relative;
  z-index: 2;
}

.publicacoes-tag,
.noticias-tag {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2F6B4F;
  margin-bottom: 6px;
  display: inline-block;
}

.publicacoes-header,
.noticias-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.publicacoes-title,
.noticias-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  color: #111111;
  margin: 0;
}

.publicacoes-header-link,
.noticias-header-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.publicacoes-header-link:hover,
.noticias-header-link:hover {
  opacity: 0.8;
}

/* Lista de Publicações */
.publicacoes-list {
  display: flex;
  flex-direction: column;
}

.pub-row-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(13, 91, 56, 0.12);
}

.pub-row-item:last-child {
  border-bottom: none;
}

.pdf-box {
  width: 38px;
  height: 44px;
  border: 1px solid #E9B8B8;
  border-radius: 6px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-box svg,
.pdf-box i {
  color: #D05A5A;
  width: 22px !important;
  height: 22px !important;
}

.pub-row-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.pub-row-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #151515;
  line-height: 1.25;
  margin: 0 0 4px 0;
}

.pub-row-meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6A6A6A;
}

.pub-download-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #0D5B38;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.pub-download-link svg,
.pub-download-link i {
  width: 15px !important;
  height: 15px !important;
  transition: transform 0.2s ease;
}

.pub-download-link:hover svg,
.pub-download-link:hover i {
  transform: translateY(2px);
}

/* Coluna Direita - Notícias */
.noticias-box {
  padding-left: 20px;
}

.noticias-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-row-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}

.news-row-img {
  width: 120px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
}

.news-row-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.news-row-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #151515;
  line-height: 1.25;
  margin: 0 0 5px 0;
}

.news-row-title:hover {
  color: #0D5B38;
}

.news-row-date {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6A6A6A;
}

/* ==========================================================================
   [12] PARCEIROS ESTRATÉGICOS (CARROSSEL DE LOGOS — LOOP INFINITO)
   ========================================================================== */
.partners-section {
  background-color: #FFFFFF;
  width: 100%;
  padding: 80px 0 90px 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.partners-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partners-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
}

.partners-eyebrow {
  color: #2F6B4F;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.partners-title {
  color: #111111;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 0;
}

.partners-subtitle {
  font-family: 'Inter', sans-serif;
  text-align: center;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 14px auto 0 auto;
  font-size: 15.5px;
  line-height: 1.6;
}

/* Wrapper externo do carrossel */
.partners-carousel-wrapper {
  width: 100%;
  overflow: hidden;
}

/* Viewport com máscara de fade nas bordas esquerda e direita */
.partners-track-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

/* --- Animação do scroll infinito --- */
/*
  A track contém 12 logos (6 originais + 6 clones).
  Cada logo ocupa: (100% / 4) de largura visível no viewport,
  mas a track tem 12 itens, então traduzimos exatamente 50% (= 6 logos)
  para recomecar do início.
*/
@keyframes partners-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partners-track {
  display: flex;
  align-items: center;
  /* Largura total: 12 logos, cada um ocupa 25% do viewport = 300% total */
  width: max-content;
  animation: partners-scroll 22s linear infinite;
  will-change: transform;
}

/* Pausar ao passar o mouse na seção inteira */
.partners-section:hover .partners-track {
  animation-play-state: paused;
}

/* Cada logo: largura fixa para 4 itens visiveis */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 20vw = 1/5 da tela, mostrando 5 logos por vez */
  width: 20vw;
  max-width: 250px;
  min-width: 150px;
  flex-shrink: 0;
  padding: 0 25px;
  box-sizing: border-box;
}

.partner-logo img {
  filter: grayscale(1);
  opacity: 0.65;
  object-fit: contain;
  width: auto;
  max-width: 100%;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
  display: block;
}

.partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.06);
}

/* Responsividade */
@media (max-width: 992px) {
  .partners-section {
    padding: 60px 0;
  }
  .partners-header {
    margin-bottom: 35px;
  }
  .partners-title {
    font-size: 30px;
  }
  .partner-logo {
    /* 4 logos visíveis em tablet */
    width: 25vw;
    min-width: 130px;
    padding: 0 20px;
  }
  .partners-track {
    animation-duration: 18s;
  }
}

@media (max-width: 600px) {
  .partners-section {
    padding: 48px 0;
  }
  .partners-eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 10px;
  }
  .partners-title {
    font-size: 26px;
  }
  .partners-header {
    margin-bottom: 28px;
  }
  .partner-logo {
    /* 3 logos visíveis em mobile */
    width: 33.333vw;
    min-width: 100px;
    padding: 0 12px;
  }
  .partner-logo img {
    max-height: 44px !important;
  }
  .partners-track {
    animation-duration: 14s;
  }
}

/* ==========================================================================
   [13] PRÉ-RODAPÉ CTA FINAL
   ========================================================================== */
.cta-final-section {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.cta-final-container {
  width: 100%;
  min-height: 460px;
  height: 460px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-final-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/imagens/background-cta-final-2.webp');
  background-size: cover;
  background-position: center center;
  z-index: 1;
}

.cta-final-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(3, 34, 24, 0.82) 0%, rgba(4, 43, 31, 0.72) 50%, rgba(3, 34, 24, 0.86) 100%);
  z-index: 2;
}

.cta-final-deco-left,
.cta-final-deco-right {
  position: absolute;
  top: 0;
  height: 100%;
  width: 15%;
  z-index: 3;
  pointer-events: none;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.cta-final-deco-left {
  left: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400' preserveAspectRatio='none'%3E%3Cpath d='M-50,0 Q100,100 0,200 T50,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3Cpath d='M-30,0 Q120,100 20,200 T70,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3Cpath d='M-10,0 Q140,100 40,200 T90,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3Cpath d='M10,0 Q160,100 60,200 T110,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3Cpath d='M30,0 Q180,100 80,200 T130,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3Cpath d='M50,0 Q200,100 100,200 T150,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3Cpath d='M70,0 Q220,100 120,200 T170,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3C/svg%3E");
  background-position: left center;
  opacity: 0.28;
}

.cta-final-deco-right {
  right: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400' preserveAspectRatio='none'%3E%3Cpath d='M250,0 Q100,100 200,200 T150,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3Cpath d='M230,0 Q80,100 180,200 T130,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3Cpath d='M210,0 Q60,100 160,200 T110,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3Cpath d='M190,0 Q40,100 140,200 T90,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3Cpath d='M170,0 Q20,100 120,200 T70,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3Cpath d='M150,0 Q0,100 100,200 T50,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3Cpath d='M130,0 Q-20,100 80,200 T30,400' fill='none' stroke='rgba(190, 168, 95, 1)' stroke-width='1'/%3E%3C/svg%3E");
  background-position: right center;
  opacity: 0.28;
}

.cta-final-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 48px;
  gap: 64px;
}

.cta-final-col-left {
  display: flex;
  flex-direction: column;
}

.cta-final-title {
  font-family: 'Inter', sans-serif;
  font-size: 35px;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  max-width: 600px;
  margin: 0;
}

.cta-final-col-right {
  display: flex;
  flex-direction: column;
}

.cta-final-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255,255,255,.95);
  max-width: 500px;
  margin: 0 0 24px 0;
}

.cta-final-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cta-btn-primary {
  font-family: 'Inter', sans-serif;
  background: #D9B26D;
  color: #071F17;
  font-weight: 700;
  height: 48px;
  padding: 0 28px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  background: #E2BE7A;
  color: #0B1F17;
}

.cta-btn-secondary {
  font-family: 'Inter', sans-serif;
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
  color: #FFFFFF;
  font-weight: 700;
  height: 48px;
  padding: 0 28px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
  background: rgba(255,255,255,.08);
  color: #FFFFFF;
}

/* ==========================================================================
   [14] RODAPÉ COMPLETO & DIRETÓRIO
   ========================================================================== */

/* ── Wrapper externo do footer ── */
.site-footer {
  width: 100%;
  background-color: #071B18;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(13, 90, 58, 0.12) 0%, transparent 70%);
  color: #8eaaa0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── Corpo principal (4 colunas) ── */
.footer-main {
  padding: 32px 0 28px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.3fr 1.5fr 1.1fr 1.3fr;
  align-items: flex-start;
  gap: 48px;
}

/* ── Coluna base ── */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ──────────────────────────────────────────
   COLUNA 1 — MARCA / LOGO
   ────────────────────────────────────────── */
.footer-col-brand {
  justify-content: flex-start;
  padding-top: 4px;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.92;
}

/* ──────────────────────────────────────────
   COLUNA 2 — NAVEGAÇÃO
   ────────────────────────────────────────── */
.footer-col-nav {
  gap: 12px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 10px;
  display: block;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.footer-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav-extra {
  display: flex;
  gap: 6px;
  flex-direction: column;
  margin-top: 6px;
}

.footer-nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: #8eaaa0;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.footer-nav-link:hover {
  color: #ffffff;
}

/* ──────────────────────────────────────────
   COLUNA 3 — CONTATO
   ────────────────────────────────────────── */
.footer-col-contact {
  gap: 12px;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.footer-contact-icon {
  color: #2F6B4F;
  font-size: 0.72rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-link {
  color: #8eaaa0;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: #ffffff;
}

.footer-contact-text {
  color: #8eaaa0;
}

/* Ícones sociais */
.footer-social-row {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.footer-social-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social-btn:hover {
  background-color: #0d5a3a;
  color: #ffffff;
  border-color: transparent;
}

/* ──────────────────────────────────────────
   COLUNA 4 — NEWSLETTER
   ────────────────────────────────────────── */
.footer-col-newsletter {
  gap: 12px;
}

.footer-newsletter-text {
  font-size: 0.76rem;
  color: #8eaaa0;
  line-height: 1.55;
  margin-bottom: 4px;
}

.footer-form {
  display: flex;
  align-items: center;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  padding: 3px;
  max-width: 280px;
  gap: 0;
  transition: border-color 0.2s ease;
}

.footer-form:focus-within {
  border-color: rgba(47, 107, 79, 0.6);
}

.footer-input {
  background: none;
  border: none;
  color: #d0dbd8;
  font-size: 0.76rem;
  padding: 6px 10px;
  outline: none;
  flex-grow: 1;
  min-width: 0;
  font-family: var(--font-sans);
}

.footer-input::placeholder {
  color: rgba(142, 170, 160, 0.55);
}

.footer-form-btn {
  background-color: #1a7a50;
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.footer-form-btn:hover {
  background-color: #0d5a3a;
}

/* ──────────────────────────────────────────
   BARRA INFERIOR — COPYRIGHT
   ────────────────────────────────────────── */
.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 12px 0;
}

.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-size: 0.68rem;
  color: rgba(142, 170, 160, 0.45);
  letter-spacing: 0.01em;
  text-align: center;
}

/* ──────────────────────────────────────────
   RESPONSIVIDADE — FOOTER
   ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 0 32px;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-main {
    padding: 28px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 24px;
  }

  .footer-col-brand {
    grid-column: auto;
  }

  .footer-bottom-inner {
    padding: 0 24px;
  }

  .footer-form {
    max-width: 100%;
  }
}

/* ==========================================================================
   [15] RESPONSIVIDADE E ACESSIBILIDADE
   ========================================================================== */

/* Breakpoint Notebooks / Desktops Menores (1024px) */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .diferenciais-bar {
    margin-top: -45px;
  }

  .diferenciais-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .diferencial-item {
    padding: 18px 12px;
    gap: 10px;
    border-radius: 12px;
  }

  .diferencial-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .diferencial-icon svg,
  .diferencial-icon i {
    width: 18px;
    height: 18px;
  }

  .diferencial-text {
    font-size: 12.5px;
  }
  
  #publicacoes-noticias {
    background: #F3F6EC;
    padding-top: 48px;
    padding-bottom: 0;
  }

  #publicacoes-noticias .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .publicacoes-box {
    padding-right: 0;
    padding-bottom: 48px;
  }

  .noticias-box {
    background-color: #FBF7EF;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 48px;
    padding-bottom: 48px;
    margin-left: -24px;
    margin-right: -24px;
  }
  
  .cta-final-container {
    height: auto;
    min-height: auto;
  }

  .cta-final-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 50px 40px;
  }
  
  .cta-final-col-left, .cta-final-col-right {
    align-items: center;
  }

  .cta-final-title {
    font-size: 36px;
    max-width: 100%;
    margin-bottom: 24px;
  }
  
  .cta-final-actions {
    justify-content: center;
  }
}

/* Breakpoint Tablets / Mobile (991px) - Horizontal Scroll */
@media (max-width: 991px) {
  .diferenciais-bar {
    margin-top: -35px;
    padding-bottom: 10px;
  }

  .diferenciais-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px 1.5rem 20px 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .diferenciais-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .diferencial-item {
    flex: 0 0 250px; /* Fixed width so they are swipeable cards */
    scroll-snap-align: start;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    padding: 20px 16px;
  }
}

/* Breakpoint Tablets (768px) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .section {
    padding: 4rem 0;
  }

  .hero-section {
    padding: 4.5rem 0;
    min-height: auto;
  }

  .hero-slide__overlay {
    background: rgba(4, 46, 30, 0.78);
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

  .hero-arrow--prev {
    left: 12px;
  }

  .hero-arrow--next {
    right: 12px;
  }

  .hero-dots {
    bottom: 24px;
  }

  .top-bar {
    display: none !important;
  }

  .btn-nav {
    display: none !important;
  }

  .logo-img {
    height: 46px;
  }

  .site-header {
    z-index: 1000;
  }

  .main-nav {
    padding: 0.75rem 0;
  }
  
  /* Backdrop Overlay */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(7, 32, 22, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Sidebar Container */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -340px; /* Hidden off-screen initially */
    width: 340px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--color-white-warm);
    z-index: 999;
    padding: 2.5rem 1.5rem;
    box-shadow: var(--shadow-xl);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
    gap: 0;
  }

  .nav-links.active {
    transform: translateX(-340px); /* Slides in from right */
  }

  /* Sidebar Sub-components display override */
  .sidebar-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(13, 90, 58, 0.1);
  }

  .sidebar-logo {
    height: 38px;
    width: auto;
  }

  .sidebar-close {
    background: rgba(13, 90, 58, 0.05);
    border: none;
    color: var(--color-brand-deep);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .sidebar-close:hover {
    background: var(--color-brand-deep);
    color: white;
  }

  /* Sidebar Navigation list overrides and entry animations */
  .nav-links li {
    width: 100%;
    margin-bottom: 0.25rem;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  /* Staggered transition delays for list items */
  .nav-links.active li:nth-of-type(1) { transition-delay: 0.08s; }
  .nav-links.active li:nth-of-type(2) { transition-delay: 0.12s; }
  .nav-links.active li:nth-of-type(3) { transition-delay: 0.16s; }
  .nav-links.active li:nth-of-type(4) { transition-delay: 0.20s; }
  .nav-links.active li:nth-of-type(5) { transition-delay: 0.24s; }
  .nav-links.active li:nth-of-type(6) { transition-delay: 0.28s; }
  .nav-links.active li:nth-of-type(7) { transition-delay: 0.32s; }

  .nav-links li a {
    display: block;
    position: relative;
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text-dark);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    border-bottom: none !important;
    padding-bottom: 12px !important;
  }

  .nav-links li a::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-brand-medium);
    opacity: 0;
    transition: var(--transition-smooth);
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    background-color: rgba(13, 90, 58, 0.06);
    color: var(--color-brand-deep) !important;
    padding-left: 22px;
  }

  .nav-links li a:hover::after,
  .nav-links li a.active::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  /* Close Button rotation */
  .sidebar-close i {
    transition: transform 0.3s ease;
  }

  .sidebar-close:hover i {
    transform: rotate(90deg);
  }

  .sidebar-divider {
    display: block !important;
    border: none;
    height: 1px;
    background-color: rgba(13, 90, 58, 0.1);
    margin: 2rem 0;
  }

  /* Sidebar Footer details */
  .sidebar-footer {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 1rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .nav-links.active .sidebar-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
  }

  .sidebar-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
  }

  .sidebar-contact-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .sidebar-contact-item i {
    color: var(--color-brand-medium);
    font-size: 0.9rem;
  }

  .sidebar-contact-item a {
    color: var(--color-text-muted) !important;
    padding: 0 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    transition: var(--transition-smooth) !important;
  }

  .sidebar-contact-item a:hover {
    color: var(--color-brand-deep) !important;
    background: none !important;
    padding-left: 2px;
  }

  .sidebar-social-icons {
    display: flex;
    gap: 0.75rem;
  }

  .sidebar-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(13, 90, 58, 0.15);
    color: var(--color-brand-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
  }

  .sidebar-social-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }

  .sidebar-social-btn:active {
    transform: translateY(0) scale(0.95);
  }

  .sidebar-social-btn[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: transparent !important;
    color: white !important;
  }

  .sidebar-social-btn[aria-label="Facebook"]:hover {
    background: #1877f2 !important;
    border-color: #1877f2 !important;
    color: white !important;
  }

  .sidebar-social-btn[aria-label="YouTube"]:hover {
    background: #ff0000 !important;
    border-color: #ff0000 !important;
    color: white !important;
  }

  .btn-sidebar-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    background-color: var(--color-brand-deep) !important;
    color: white !important;
    transition: var(--transition-smooth) !important;
  }

  .btn-sidebar-cta:hover {
    background-color: var(--color-brand-medium) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(13, 90, 58, 0.25) !important;
  }

  .btn-sidebar-cta:active {
    transform: translateY(0) scale(0.98);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .btn-projects-all {
    width: 100%;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  #atuacao .container,
  #projetos .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  #atuacao .section-title,
  #projetos .section-title {
    font-size: 28px !important;
  }

  .publicacoes-title,
  .noticias-title {
    font-size: 24px !important;
  }

  .news-row-item {
    grid-template-columns: 100px 1fr;
  }

  .news-row-img {
    width: 100px;
    height: 64px;
  }

  .service-card,
  .project-card {
    min-height: auto !important;
  }
  
  .bento-grid {
    height: auto;
    grid-template-columns: 1fr;
  }
  
  .bento-item-large {
    grid-row: span 1;
    height: 300px;
  }
  
  .bento-item {
    height: 200px;
  }
  
  .cta-final-section {
    padding: 0 10px;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .cta-final-container {
    height: auto;
    min-height: auto;
  }

  .cta-final-content {
    padding: 40px 24px;
  }

  .cta-final-title {
    font-size: 28px;
  }

  .cta-final-text {
    font-size: 15px;
  }

  .cta-final-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .cta-btn-primary, .cta-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Breakpoint Celulares (480px) */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .top-bar-contact {
    justify-content: center;
  }
}

/* Ajustes responsivos para a marca d'água de publicações */
@media (max-width: 768px) {
  .publicacoes-box::after {
    width: 220px;
    height: 260px;
    right: 10px;
    top: 50%;
    opacity: 0.11;
  }
}

@media (max-width: 480px) {
  .publicacoes-box::after {
    width: 180px;
    height: 220px;
    right: -20px;
    opacity: 0.09;
  }
}

/* ==========================================================================
   [23] MODAL DE ÁREAS DE ATUAÇÃO (PREMIUM STYLING)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 65, 44, 0.48); /* Forest green overlay */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 1.5rem;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #FFFFFF;
  border: 1px solid rgba(13, 91, 56, 0.08);
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  box-shadow: 
    0 24px 64px -12px rgba(6, 65, 44, 0.18),
    0 8px 24px -8px rgba(0, 0, 0, 0.06),
    0 0 1px rgba(13, 91, 56, 0.15);
  position: relative;
  overflow: hidden;
  transform: scale(0.94) translateY(24px);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.visible .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #F3F6EC;
  border: none;
  color: #0D5B38;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.modal-close-btn:hover {
  background-color: #0D5B38;
  color: #FFFFFF;
  transform: rotate(90deg);
}

.modal-close-btn svg,
.modal-close-btn i {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.5px !important;
}

.modal-content {
  padding: 36px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(13, 91, 56, 0.1);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.modal-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-color: #E9EFE5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon-wrapper svg,
.modal-icon-wrapper i {
  width: 26px !important;
  height: 26px !important;
  color: #0D5B38;
  stroke-width: 2px !important;
}

.modal-title {
  font-family: 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #111111;
  line-height: 1.25;
  margin: 0;
}

.modal-body {
  text-align: left;
}

.modal-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 24px;
}

.modal-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2F6B4F;
  margin-top: 0;
  margin-bottom: 14px;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #444444;
}

.modal-list li span {
  flex-grow: 1;
}

.list-check-icon {
  color: #147A4A;
  font-size: 15px;
  margin-top: 3px;
  flex-shrink: 0;
}

.modal-footer {
  border-top: 1px solid rgba(13, 91, 56, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.modal-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 48px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

/* Modal Responsiveness */
@media (max-width: 576px) {
  .modal-overlay {
    padding: 1rem;
  }
  
  .modal-content {
    padding: 28px 20px;
  }
  
  .modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  
  .modal-title {
    font-size: 18px;
  }
  
  .modal-text {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .modal-footer {
    justify-content: stretch;
  }
  
  .modal-cta-btn {
    width: 100%;
  }
}

/* Formulários — honeypot e Turnstile invisível */
.imam-form-hp,
.imam-turnstile-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form,
.pub-request-form,
.footer-form,
.nn-form {
  position: relative;
}

