/* =========================================================
   OVERLAY PRINCIPAL
========================================================= */
#sobreOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
}

#sobreOverlay.aberto {
  display: flex;
}

/* =========================================================
 PAINEL / MODAL
========================================================= */
#sobrePanel {
  position: relative;
  width: 1040px;
  max-width: 94vw;
  height: 640px;
  max-height: 82vh;

  display: flex;
  flex-direction: column;

  border-radius: 16px;
  background: #1a73e8;
  padding: 32px 20px 0 44px;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  transform: translateY(24px);
  opacity: 0;
  transition:
      transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.28s ease;
  overflow: hidden;
}

#sobreOverlay.aberto #sobrePanel {
  transform: translateY(0);
  opacity: 1;
}

/* Área rolável — tudo, exceto o rodapé */
.sobre-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 40px 0; 
}

.sobre-scroll::-webkit-scrollbar {
  width: 5px;
}
.sobre-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
.sobre-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 10px;
}
.sobre-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.55);
}

/* =========================================================
 BOTÃO FECHAR
========================================================= */
#sobreFechar {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

#sobreFechar:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* =========================================================
 TAGLINE NO TOPO
========================================================= */
.sobre-tagline-topo {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 24px 0 32px;
  letter-spacing: -0.01em;
  text-align: center;
}

.sobre-hero-destaque {
  color: rgb(255, 213, 79);
  animation: pulsar 3s ease-in-out infinite;
}

/* =========================================================
 TOPO — logo à esquerda, divisor vertical, texto à direita
========================================================= */
.sobre-topo {
  display: grid;
  grid-template-columns: 280px 1px 1fr;
  gap: 32px;
  margin-bottom: 32px;
  align-items: start;
}

.sobre-topo-esquerda {
  display: flex;
  align-items: flex-start;      
  justify-content: center;    
  padding-top: 140px;

}

.sobre-logo-plataforma {
  display: inline-block;
}

.sobre-logo-plataforma svg {
  height: 62px;
  width: auto;
  display: block;
}

.sobre-divisor-vertical {
  width: 1px;
  background: linear-gradient(
      to bottom,
      rgba(255, 213, 79, 0) 0%,
      rgba(255, 213, 79, 0.7) 20%,
      rgba(255, 213, 79, 0.7) 80%,
      rgba(255, 213, 79, 0) 100%
  );
}

.sobre-topo-direita {
  display: flex;
  flex-direction: column;
}

@media (max-width: 700px) {
  .sobre-topo {
      grid-template-columns: 1fr;
  }
  .sobre-topo-esquerda {
      justify-content: flex-start;
  }
  .sobre-divisor-vertical {
      display: none;
  }
}

/* =========================================================
 DIVISOR AMARELO (horizontal)
========================================================= */
.sobre-divisor {
  height: 2px;
  background: linear-gradient(
      to right,
      rgba(255, 213, 79, 0) 0%,
      rgba(255, 213, 79, 0.9) 20%,
      rgba(255, 213, 79, 0.9) 80%,
      rgba(255, 213, 79, 0) 100%
  );
  margin: 24px 0;
}

/* =========================================================
 LABELS / PARÁGRAFOS
========================================================= */
.sobre-col-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd54f;
  margin: 0 0 8px;
  text-align: left;
}

.sobre-col-p {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin: 0 0 10px;
  text-align: justify;
}

.sobre-col-p:last-child {
  margin: 0;
}

/* =========================================================
 TÍTULO "Explore por / Categorias"
========================================================= */
.sobre-explore-label {
  margin-bottom: 4px;
  text-align: left;
}

.sobre-categorias-titulo {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px;
}

/* =========================================================
 GRID DE CATEGORIAS
========================================================= */
.sobre-grid-categorias {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .sobre-grid-categorias { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .sobre-grid-categorias { grid-template-columns: 1fr; }
  #sobrePanel { padding: 24px 20px 0; }
}

.sobre-card-categoria {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 22px 20px;
  min-height: 150px;
  transition: background 0.15s, transform 0.15s;
  opacity: 0;
  transform: translateX(16px);
}

#sobreOverlay.aberto .sobre-card-categoria {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.15s;
}

#sobreOverlay.aberto .sobre-card-categoria:nth-child(1) { transition-delay: 0.06s; }
#sobreOverlay.aberto .sobre-card-categoria:nth-child(2) { transition-delay: 0.11s; }
#sobreOverlay.aberto .sobre-card-categoria:nth-child(3) { transition-delay: 0.16s; }
#sobreOverlay.aberto .sobre-card-categoria:nth-child(4) { transition-delay: 0.21s; }
#sobreOverlay.aberto .sobre-card-categoria:nth-child(5) { transition-delay: 0.26s; }
#sobreOverlay.aberto .sobre-card-categoria:nth-child(6) { transition-delay: 0.31s; }
#sobreOverlay.aberto .sobre-card-categoria:nth-child(7) { transition-delay: 0.36s; }

.sobre-card-categoria:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.sobre-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.sobre-card-categoria .sobre-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sobre-card-categoria .sobre-icon svg {
  width: 26px;
  height: 26px;
  stroke: #ffffff;
}

/* Etiqueta do card Imobiliário */
.sobre-card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px 9px;
}

.sobre-card-titulo {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  position: relative;
  padding-bottom: 8px;
}

.sobre-card-titulo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: #ffd54f;
}

.sobre-card-desc {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* =========================================================
 TAGS / FORMATOS
========================================================= */
.sobre-formatos-bloco {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 8px 0 40px; 
}

.sobre-formatos-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}

.sobre-formatos-barra {
  width: 3px;
  height: 36px;
  align-self: stretch;
  background: #ffd54f;
  border-radius: 2px;
  flex-shrink: 0;
}

.sobre-formatos-textos {
  flex-shrink: 0;
}

.sobre-formatos-label-mini {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd54f;
  margin: 0 0 2px;
}

.sobre-formatos-titulo {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.sobre-formato-tag {
  font-size: 12px;
  padding: 6px 16px;
  border: 1.5px solid #ffd54f; /* contorno amarelo, era branco translúcido */
  border-radius: 20px;
  color: #ffd54f; /* texto amarelo também, para casar com a referência */
  background: transparent;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s;
}

.sobre-formato-tag:hover {
  background: rgba(255, 213, 79, 0.12);
}

#sobreOverlay.aberto .sobre-formato-tag { opacity: 1; transform: translateY(0); }
#sobreOverlay.aberto .sobre-formato-tag:nth-child(1) { transition-delay: 0.40s; }
#sobreOverlay.aberto .sobre-formato-tag:nth-child(2) { transition-delay: 0.46s; }
#sobreOverlay.aberto .sobre-formato-tag:nth-child(3) { transition-delay: 0.52s; }
#sobreOverlay.aberto .sobre-formato-tag:nth-child(4) { transition-delay: 0.58s; }

/* =========================================================
 RODAPÉ — fixo fora da área de scroll
========================================================= */
.sobre-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 0 22px;
  text-align: center;
  background: #1a73e8;
}

.sobre-footer-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}

.sobre-footer-img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Brasão já vem em branco (versão vazada oficial) — sem o filtro de
   .sobre-footer-img, que apagaria os detalhes. */
.sobre-footer-brasao {
  height: 45px;
  width: auto;
  opacity: 0.85;
}

.sobre-footer-sep {
  width: 1px;
  height: 40px;
  align-self: center;
  background: rgba(255, 255, 255, 0.3);
}

.sobre-footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* =========================================================
 ANIMAÇÕES
========================================================= */
@keyframes pulsar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}