/* ==========================================================
   COMPROMISSO INSTITUCIONAL
========================================================== */

.conformidade {

  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background: linear-gradient(180deg, #f8faf9 0%, #eef4f2 100%);
}

.conformidade::before {

  content: "";

  position: absolute;

  top: -250px;
  right: -250px;

  width: 600px;
  height: 600px;

  border-radius: 50%;

  background: rgba(15, 108, 77, 0.05);

  filter: blur(30px);
}

.conformidade-grid {

  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 70px;
  align-items: center;
}

/* ==========================================================
   TEXTO
========================================================== */

.conformidade-tag {

  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 24px;
  padding: 10px 18px;

  border-radius: 999px;

  background: #dff3ea;

  color: #0f6c4d;
  font-size: 0.9rem;
  font-weight: 700;
}

.conformidade h2 {

  margin-bottom: 25px;

  color: #1b1b1b;
  font-size: 2.5rem;
  line-height: 1.2;
}

.conformidade p {

  margin-bottom: 30px;

  color: #555;
  font-size: 1.08rem;
  line-height: 1.8;
}

.conformidade ul {

  margin: 0;
  padding: 0;

  list-style: none;
}

.conformidade li {

  position: relative;

  margin-bottom: 18px;
  padding-left: 34px;

  color: #444;
  line-height: 1.7;
}

.conformidade li::before {

  content: "✓";

  position: absolute;

  top: 0;
  left: 0;

  color: #0f8b61;
  font-size: 1.15rem;
  font-weight: 800;
}

/* ==========================================================
   LINKS
========================================================== */

.conformidade-links {

  display: flex;
  flex-wrap: wrap;
  gap: 18px;

  margin-top: 40px;
}

.conformidade-links a {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 26px;

  border-radius: 14px;

  background: #0f6c4d;

  color: #fff;
  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 10px 30px rgba(15, 108, 77, 0.20);

  transition: all 0.30s ease;
}

.conformidade-links a:hover {

  background: #0b5b41;

  transform: translateY(-4px);

  box-shadow: 0 18px 42px rgba(15, 108, 77, 0.28);
}

/* ==========================================================
   CREDENCIAL
========================================================== */

.conformidade-card {

  text-align: center;
}

.credencial-link {

  display: block;

  padding: 0;

  border: none;
  background: none;

  cursor: pointer;
}

.conformidade-card img {

  display: block;

  width: 100%;

  border-radius: 22px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);

  transition: all 0.35s ease;

  animation: respirar 8s ease-in-out infinite;
}

.credencial-link:hover img {

  transform: translateY(-10px) scale(1.02);

  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

@keyframes respirar {

  0%,
  100% {

    transform: scale(1);
  }

  50% {

    transform: scale(1.015);
  }
}

.credencial-legenda {

  margin-top: 18px;

  color: #5b5b5b;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;

  text-align: center;
}

/* ==========================================================
   VISUALIZADOR DA CREDENCIAL
========================================================== */

.credencial-modal {

  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(7, 12, 10, 0.82);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  opacity: 0;
  visibility: hidden;

  transition: all 0.35s ease;

  z-index: 999999;
}

.credencial-modal.ativo {

  opacity: 1;
  visibility: visible;
}

.credencial-container {

  display: flex;
  flex-direction: column;

  width: min(92vw, 760px);
  max-height: 90vh;

  overflow: hidden;

  background: #ffffff;

  border-radius: 24px;

  box-shadow:
      0 35px 90px rgba(0, 0, 0, 0.35);

  animation: abrirCredencial 0.35s ease;
}

/* ==========================================================
   CABEÇALHO
========================================================== */

.credencial-header {

  position: sticky;
  top: 0;
  z-index: 20;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  padding: 18px 24px;

  background: #f7f7f7;

  border-bottom: 1px solid #e4e7e6;
}

.credencial-titulo {

  display: flex;
  flex-direction: column;
}

.credencial-titulo strong {

  color: #145b43;
  font-size: 1.2rem;
  font-weight: 700;
}

.credencial-titulo span {

  margin-top: 4px;

  color: #666;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: .08em;
}

/* ==========================================================
   AÇÕES
========================================================== */

.credencial-acoes {

  display: flex;
  align-items: center;
  gap: 10px;
}

.credencial-download,
.credencial-nova-guia {

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 0 18px;

  border-radius: 12px;

  background: #0f6c4d;

  color: #ffffff;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;

  transition: all .25s ease;
}

.credencial-download:hover,
.credencial-nova-guia:hover {

  background: #0b5b41;

  transform: translateY(-2px);
}

.credencial-fechar {

  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border: none;
  border-radius: 50%;

  background: #e8ecea;

  color: #145b43;

  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition: all .25s ease;
}

.credencial-fechar:hover {

  background: #145b43;

  color: #ffffff;

  transform: rotate(90deg);
}

/* ==========================================================
   CONTEÚDO
========================================================== */

.credencial-conteudo {

  flex: 1;

  overflow-y: auto;

  padding: 24px;

  background: #ececec;
}

.credencial-conteudo img {

  display: block;

  width: 100%;
  height: auto;

  margin: 0 auto;

  border-radius: 16px;

  box-shadow:
      0 15px 45px rgba(0, 0, 0, .18);

  transition: transform .3s ease;
}

.credencial-conteudo img:hover {

  transform: scale(1.01);
}

/* ==========================================================
   RODAPÉ
========================================================== */

.credencial-footer {

  position: sticky;
  bottom: 0;
  z-index: 20;

  padding: 20px 24px;

  background: #f7f7f7;

  border-top: 1px solid #e4e7e6;

  color: #555;
  font-size: .9rem;
  line-height: 1.65;
}

.credencial-footer strong {

  display: block;

  margin-bottom: 8px;

  color: #145b43;
}

.credencial-footer p {

  margin: 10px 0;
}

.credencial-footer small {

  display: block;

  margin-top: 14px;

  color: #888;
  font-size: .8rem;
}

/* ==========================================================
   ANIMAÇÃO
========================================================== */

@keyframes abrirCredencial {

  from {

    opacity: 0;

    transform: translateY(30px) scale(.92);
  }

  to {

    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

/* ==========================================================
   RESPONSIVO
========================================================== */

@media (max-width: 1024px) {

  .conformidade-grid {

    grid-template-columns: 1fr;

    gap: 50px;
  }

  .conformidade-card {

    max-width: 430px;

    margin: auto;
  }
}

@media (max-width: 768px) {

  .conformidade {

    padding: 80px 0;
  }

  .conformidade h2 {

    font-size: 2rem;
  }

  .conformidade-links {

    flex-direction: column;
  }

  .conformidade-links a {

    width: 100%;
  }

  .credencial-container {

    width: 95vw;

    max-height: 96vh;
  }

  .credencial-header {

    flex-direction: column;
    align-items: stretch;
  }

  .credencial-acoes {

    width: 100%;

    flex-wrap: wrap;
  }

  .credencial-download,
  .credencial-nova-guia {

    flex: 1;
  }

  .credencial-fechar {

    width: 100%;
    border-radius: 14px;
  }

  .credencial-conteudo {

    padding: 16px;
  }
}