
/* Ocultar botões de compartilhamento (WhatsApp e LinkedIn) no corpo dos artigos */
#main-content a[href*="whatsapp"], 
#main-content a[href*="linkedin"],
.post-content a[href*="whatsapp"], 
.post-content a[href*="linkedin"],
.blog-content a[href*="wa.me/?text="], 
.blog-content a[href*="linkedin"],
.share-buttons a[href*="whatsapp"], 
.share-buttons a[href*="linkedin"] {
  display: none !important;
}

/* ============================================================
   Eco Smart Group - Folha de Estilos Final Corrigida
   ============================================================ */

:root {
  /* Cores Principais */
  --color-primary-dark: #1a5d3d;
  --color-primary: #2d8659;
  --color-primary-light: #4db371;
  --color-accent: #7ec850;
  --color-accent-light: #a8d963;

  /* Cores Neutras */
  --color-white: #ffffff;
  --color-light-gray: #f5f5f5;
  --color-gray: #e8e8e8;
  --color-dark-gray: #333333;
  --color-text: #2c2c2c;

  /* Espaçamento */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Tipografia */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 48px;

  /* Sombras e Bordas */
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition-base: 300ms ease-in-out;
}

/* ============================================================
   RESET E ESTILOS BASE
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
}

/* ============================================================
   ACESSIBILIDADE
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 2000;
  padding: 10px;
  color: white;
  background: var(--color-primary);
  text-decoration: none;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   TIPOGRAFIA RESPONSIVA
   ============================================================ */

h1,
h2,
h3 {
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  line-height: 1.2;
  word-wrap: break-word;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   BOTÕES
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  color: var(--color-white);
  background-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--color-white);
  background-color: var(--color-accent);
}

.btn-outline {
  color: var(--color-primary);
  background-color: transparent;
  border: 2px solid var(--color-primary);
}

/* ============================================================
   CABEÇALHO FIXO
   ============================================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  padding: 1.2rem 1rem;
  background-color: transparent;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.8rem 1rem;
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-white);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.logo img {
  height: 40px;
}

/* ============================================================
   NAVEGAÇÃO DESKTOP
   ============================================================ */

nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

nav a {
  color: var(--color-white);
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: var(--color-accent);
}

/* ============================================================
   MENU HAMBÚRGUER
   ============================================================ */

.menu-toggle {
  display: none;
  z-index: 1100;
  padding: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 6px 0;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 100vh;
  padding: 0 1.5rem;
  color: var(--color-white);
  text-align: center;
  background:
    linear-gradient(
      135deg,
      rgba(26, 93, 61, 0.65) 0%,
      rgba(45, 134, 89, 0.45) 100%
    ),
    url("../images/hero/hero-bg.jpg") center / cover no-repeat;
}

.hero-content {
  max-width: 900px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2.5rem;
}

/* ============================================================
   SEÇÕES E GRIDS
   ============================================================ */

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-title {
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-subtitle {
  margin-top: 0;
  margin-bottom: 3rem;
  color: var(--color-primary);
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 2.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  height: 100%;
  padding: 2.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

/* ============================================================
   FORMULÁRIO
   ============================================================ */

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--color-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
}

/* ============================================================
   CONSULTA CAR/PRODES
   ============================================================ */

#consulta-car-prodes {
  background-color: var(--color-light-gray);
  padding: 6rem 1.5rem;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.form-container .btn-primary {
  width: 100%;
  max-width: 250px;
  margin-top: var(--spacing-md);
}

.car-resultado-panel {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  text-align: left;
  min-height: 100px;
  display: block; /* Alterado de flex para block */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.resultado-car {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.car-resultado-panel.info {
  background-color: #e0f7fa;
  border: 1px solid #b2ebf2;
  color: #006064;
}

.car-resultado-panel.sucesso {
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
}

/* Estilo impactante para o alerta PRODES */
.car-resultado-panel.alerta {
  background-color: #fff8e1; 
  border: 2px solid #ff9800;
  color: #333333;
  box-shadow: 0 4px 8px rgba(255, 152, 0, 0.15);
}

.car-resultado-panel.alerta h2 {
  color: #d84315;
}

.car-resultado-panel.alerta .atencao-prodes,
.car-resultado-panel.alerta .solicite-analise {
  border-color: #fbc02d;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  white-space: normal;
}

.car-resultado-panel.alerta th {
  background-color: #ffb300;
  color: #ffffff;
  border-color: #ffa000;
}

/* Restauração das classes de erro e formatação base */
.car-resultado-panel.erro {
  background-color: #ffebee;
  border: 1px solid #ffcdd2;
  color: #c62828;
}

.car-resultado-panel h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: inherit;
}

.car-resultado-panel p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
  color: inherit;
}

/* Responsividade: permite que a tabela role para os lados no celular */
.tabela-responsiva {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  box-sizing: border-box;
}

.car-resultado-panel table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px; /* Força a rolagem horizontal em telas muito pequenas */
}

.car-resultado-panel th,
.car-resultado-panel td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.8rem;
  text-align: left;
}

.car-resultado-panel th {
  background-color: rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.car-resultado-panel .atencao-prodes,
.car-resultado-panel .solicite-analise {
  font-size: 0.9rem;
  margin-top: var(--spacing-sm);
  padding: var(--spacing-xs);
  border-left: 3px solid;
  padding-left: var(--spacing-sm);
}

.car-resultado-panel.erro .mensagem-erro {
  border-color: #c62828;
}

.car-resultado-panel .mensagem-info {
  border-left: 3px solid #006064;
  padding-left: var(--spacing-sm);
}

/* Responsividade para a seção de consulta */
@media (max-width: 768px) {
  .form-container {
    padding: 1.5rem 1rem;
  }
  .car-resultado-panel {
    padding: 1rem;
  }
}

/* ============================================================
   RODAPÉ INSTITUCIONAL
   ============================================================ */

footer {
  max-width: none;
  margin-top: 4rem;
  padding: 5rem 1.5rem 0;
  color: var(--color-white);
  background: #111111;
  border-top: 4px solid var(--color-primary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-section h4 {
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p {
  margin-bottom: 1.5rem;
  color: #aaaaaa;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #aaaaaa !important;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  padding-left: 5px;
  color: var(--color-white) !important;
}

/* ============================================================
   REDES SOCIAIS NO RODAPÉ
   ============================================================ */

.social-links-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
}

/*
  Ajuste de alinhamento: Adicionado !important e reforçado o display flex 
  para garantir que ícones (Instagram, LinkedIn, YouTube) fiquem centralizados
  mesmo com interferências externas comuns em páginas de blog.
*/
.social-links-footer .social-icon {
  display: inline-flex !important;
  flex: 0 0 40px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #222222;
  border: 1px solid #333333;
  border-radius: 50% !important;
  line-height: 0 !important;
  vertical-align: middle !important;
  text-decoration: none !important;
  transition: 0.3s;
}

.social-links-footer .social-icon:hover {
  background: var(--color-primary);
  border-color: var(--color-primary-light);
  transform: translateY(-3px);
}

.social-links-footer .social-icon svg {
  display: block !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  fill: #ffffff !important;
}

/* ============================================================
   RODAPÉ INFERIOR
   ============================================================ */

.footer-bottom {
  padding: 2rem 0;
  color: #666666;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid #222222;
}

.footer-bottom a {
  margin-left: 10px;
  color: #888888 !important;
  text-decoration: none !important;
}

.footer-bottom a:hover {
  color: var(--color-white) !important;
}

/* ============================================================
   SUBMENU (DROPDOWN) - CORREÇÃO
   ============================================================ */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-dropbtn {
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--color-white) !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s ease;
}

.nav-dropbtn:hover,
.nav-dropdown.active .nav-dropbtn {
  color: var(--color-accent) !important;
}

.nav-dropdown-content {
  display: none; /* Oculto por padrão */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  padding: 0.5rem 0;
  z-index: 9999;
  margin-top: 1.2rem;
  flex-direction: column;
}

/* Ponte invisível para evitar que o menu feche ao mover o mouse */
.nav-dropdown-content::after {
  content: "";
  position: absolute;
  top: -1.5rem;
  left: 0;
  width: 100%;
  height: 1.5rem;
  background-color: transparent;
}

/* Seta indicativa no topo do submenu */
.nav-dropdown-content::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent var(--color-white) transparent;
}

/* Exibe o submenu ao passar o mouse */
.nav-dropdown:hover .nav-dropdown-content {
  display: flex;
}

.nav-dropdown-content a {
  color: var(--color-primary-dark) !important;
  padding: 0.8rem 1.5rem !important;
  display: block !important;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  border-bottom: 1px solid var(--color-gray);
  transition: all 0.3s ease;
}

.nav-dropdown-content a:last-child {
  border-bottom: none;
}

.nav-dropdown-content a:hover {
  background-color: var(--color-light-gray) !important;
  color: var(--color-primary) !important;
  padding-left: 1.8rem !important; /* Efeito de deslocamento suave */
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */

@media (max-width: 992px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }

  /* Menu Mobile Estilo Gaveta */
  .menu-toggle {
    display: block !important;
  }

        nav {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 1050;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 60%; /* Metade da tela ou um pouco mais para acomodar o texto */
    height: 100vh;
    padding: 5rem 1rem 2rem;
    background: var(--color-primary-dark);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  nav.active {
    right: 0;
    display: flex;
  }

        nav a {
    width: 90%;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
  }

  nav a:last-child {
    border-bottom: none;
  }
 /* Ajustes do Submenu para Mobile */
  .nav-dropdown {
    width: 90%;
    height: auto; /* Esta linha corrige o espaçamento excessivo */
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-dropbtn {
    width: 100%;
    padding: 0.9rem 0;
    justify-content: center;
    font-size: 1.1rem;
  }

  .nav-dropdown-content {
    position: static;
    display: none;
    background-color: rgba(0, 0, 0, 0.15); /* Fundo levemente escurecido */
    box-shadow: none;
    margin-top: 0;
    width: 100%;
    padding: 0.5rem 0;
    transform: none;
    border-radius: var(--border-radius);
  }

  /* Remove a seta indicativa no celular */
  .nav-dropdown-content::before {
    display: none;
  }

  .nav-dropdown.active .nav-dropdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-dropdown-content a {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: none !important;
    padding: 0.7rem 0 !important;
    font-size: 1rem;
    text-align: center;
  }

  .nav-dropdown-content a:hover {
    background-color: transparent !important;
    padding-left: 0 !important;
    color: var(--color-accent) !important;
  }

  /* Hero Mobile */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    padding: 1rem;
  }

  /* Grids Mobile */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Inverter ordem na apresentação */
  #apresentacao .grid-2 {
    display: flex;
    flex-direction: column;
  }

  #apresentacao .grid-2 div:nth-child(2) {
    order: -1;
    margin-bottom: 2.5rem;
  }

  /* Contact Section */
  #contato .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
}

  .footer-section ul li a:hover {
    padding-left: 0;
  }
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   EQUIPE
   ============================================================ */

#team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

#team-grid .card {
  flex: 1;
  min-width: 300px;
  max-width: 380px;
}

/* ============================================================
   GRADE DE LOGOTIPOS
   ============================================================ */

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  opacity: 0.8;
}

.logo-grid img {
  max-width: 150px;
  max-height: 80px;
  transition: all 0.3s ease;
}

.logo-grid img:hover {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .logo-grid {
    gap: 2rem;
  }

  .logo-grid img {
    max-width: 120px;
  }
}