/* =========================
   Reset & Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  background: #232323; /* fundo escuro, consistente com o site */
  color: #e5e5ea;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.logo-area-link {
  text-decoration: none;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none; /* <-- ADICIONE ESTA LINHA */
}

/* =========================
   Navbar (igual à página Sobre)
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  padding: 1rem 2rem;
  z-index: 10000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: transform 0.4s ease;
}
.navbar.hide {
  transform: translateY(-100%);
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  height: 60px;
}
.brand-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #f7931e;
}

.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* Menu mobile com ANIMAÇÃO suave (abrir/fechar) */
.mobile-menu {
  display: flex; /* importante: não usar display:none para animar */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;

  /* estado fechado */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  padding: 0 1rem;

  transition: max-height 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 220ms ease, transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    padding 200ms ease;
}
.mobile-menu a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid #333;
}
.mobile-menu.show {
  max-height: 320px; /* ajuste conforme qtd de links */
  opacity: 1;
  transform: translateY(0);
  padding: 0.75rem 1rem;
}

/* =========================
   Footer (igual à página Sobre)
========================= */
.footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 4rem 2rem 2rem;
  font-size: 0.95rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-info,
.footer-mapa {
  flex: 1 1 300px;
}
.footer h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-family: "Montserrat", sans-serif;
}
.footer a {
  color: #ccc;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: #f7931e;
}
.footer-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.footer-line img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.footer-social img {
  width: 22px;
  height: 22px;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.footer-social img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-mapa p {
  margin-bottom: 0.5rem;
  color: #ccc;
}
.mapa-embed iframe {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  border: 0;
  margin-top: 0.5rem;
}
.footer-copy {
  border-top: 1px solid #333;
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

/* =========================
   Miolo — Empreendimentos
========================= */

/* offset da navbar fixa */
.page {
  padding-top: 96px;
}

/* Cabeçalho + filtros + tabs */
/* ===== Cabeçalho/painel do topo ===== */
.page-header {
    background: transparent;
    padding: 24px 20px 0; /* Adicionado padding lateral para telas menores */
  }
  
  /* CORREÇÃO PRINCIPAL: 
    Seu HTML usa a classe 'page-header__inner', mas o CSS usava 'page-header__panel'.
    Corrigi o nome da classe e adicionei as propriedades flex para alinhar os itens.
  */
  .page-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    background: #262627;
    border: 1px solid #343437;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
    padding: 18px 24px;
    
    /* --- Propriedades adicionadas para o alinhamento --- */
    display: flex;
    align-items: center;
    justify-content: space-between; /* ESSA É A PROPRIEDADE CHAVE que joga o título para a esquerda e os filtros para a direita */
    gap: 24px;
    flex-wrap: wrap; /* Permite que os filtros quebrem para a linha de baixo em telas pequenas */
  }
  
  /* AJUSTE DE ESTILO: 
    Para ficar igual à referência, o título precisa de uma fonte serifada e sem negrito.
  */
  .page-header h1 {
    margin: 0;
    font-weight: 400; /* <--- MUDANÇA para peso normal */
    font-size: clamp(1.8rem, 3vw, 2.5rem); /* Tamanho ajustado para elegância */
    color: #e9e7e4; /* Cor mais suave como na referência */
    letter-spacing: .2px;
  }
  
  /* ====== FILTROS (estilo “vazado” com borda fina) ====== */
  .filters {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    flex-wrap: wrap; /* Permite que os filtros quebrem a linha se não houver espaço */
  }
  
  .filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  /* Esconde os rótulos */
  .filter span {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
  }
  
  .filter select {
    appearance: none;
    background: transparent;
    border: 1px solid #6e6961;
    color: #e9e7e4;
    font-family: 'Poppins', sans-serif; /* Garante a fonte correta no select */
    font-size: 0.9rem;
    border-radius: 8px;
    padding: 12px 30px 12px 14px; /* Adiciona espaço para a seta */
    height: 46px;
    outline: none;
    min-width: 250px; /* Largura ajustada */
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
    
    /* Adiciona a seta do select customizada */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23e9e7e4'%3E%3Cpath d='M6 9l-6-6h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
  }
  
  .filter select:hover,
  .filter select:focus {
    border-color: #9a9085;
    background-color: rgba(255,255,255,0.02);
  }
  
  .btn-clear {
    background: transparent;
    color: #e9e7e4;
    border: 1px solid #6e6961;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    border-radius: 8px;
    height: 46px;
    padding: 0 16px;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
  }
  .btn-clear:hover {
    border-color: #9a9085;
    color: #ffffff;
    background: rgba(255,255,255,.03);
  }
  

/* Esconde as abas antigas (se ainda existirem no HTML) */
.tabs{ display: none !important; }

.tabs {
  display: flex;
  gap: 18px;
  margin-top: 4px;
}
.tab {
  background: transparent;
  color: #cfcfd6;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tab.is-active {
  background: #1f1f1f;
  color: #fff;
  border-color: #3a3a3a;
}

/* Grid de cards */
.grid-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card__media {
  position: relative;
  overflow: hidden;
  display: block;
}
.card__media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.card:hover .card__media img {
  transform: scale(1.04);
}
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card__body {
  padding: 16px 16px 8px;
}
.card__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.card__title a {
  color: #fff;
  text-decoration: none;
}
.card__title a:hover {
  text-decoration: underline;
}
.card__meta {
  font-size: 0.95rem;
  color: #cfcfd6;
}

.card__footer {
  padding: 0 16px 16px;
  display: flex;
  justify-content: flex-end;
}
.pill {
  background: #2b2b2b;
  color: #d8d8de;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  text-transform: capitalize;
}

/* =========================
   Responsivo
========================= */
@media (max-width: 992px) {
  .container {
    padding-inline: 0.5rem;
  }
}
@media (max-width: 768px) {
  /* navbar */
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }

  /* filtros/abas */
  .filter select {
    min-width: auto;
    width: 100%;
  }
  .tab {
    padding: 9px 14px;
  }

  /* cards */
  .card__media img {
    height: 250px;
  }

  /* footer ajustes */
  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-copy {
    font-size: 0.75rem;
  }
}
