/* ==========================================================================
   Seção de Empreendimentos
   ========================================================================== */
.empreendimentos-section {
  padding: 80px 0;
  background-color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.empreendimentos-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(27, 73, 101, 0.05), transparent);
  pointer-events: none;
}

.empreendimentos-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(0deg, rgba(27, 73, 101, 0.04), transparent);
  pointer-events: none;
}

.empreendimentos-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azul-aco);
  background: rgba(42, 83, 109, 0.08);
  border: 1px solid rgba(42, 83, 109, 0.2);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 15px;
}

.empreendimentos-title {
  font-size: 3.2rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--azul-escuro), var(--dourado-claro));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  font-weight: 700;
  line-height: 1.2;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--cinza-pedra);
  margin-bottom: 28px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  font-weight: 400;
}

/* Linha de Destaques (Featured cards) */
.featured-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
  justify-content: center;
}

.featured-card {
  flex: 1;
  min-width: 300px;
  max-width: calc(50% - 15px);
}

/* Grid Geral */
.empreendimentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Estilo especial para CONVIVA ITACOA ser maior */
.conviva-itacoa-large {
  grid-column: span 2;
  max-width: 100%;
}

.section-action {
  text-align: center;
  margin-top: 50px;
}

.section-action .btn {
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   Cards dos Empreendimentos
   ========================================================================== */
.empreendimento-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.08);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
  background: white;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}

.empreendimento-card:hover {
  transform: translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 18px 40px rgba(13, 27, 42, 0.18);
}

.card-image {
  position: relative;
  height: 515px;
  background: linear-gradient(135deg, var(--azul-escuro), var(--azul-medio));
  overflow: hidden;
  transform-style: preserve-3d;
}

.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  filter: saturate(1.05) contrast(1.05);
}

.empreendimento-card:hover .card-bg {
  transform: scale(1.08);
}

/* Efeito de Reflexo no Hover */
.card-image::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.18) 45%, rgba(255,255,255,0) 60%);
  transform: translateX(-60%) rotate(15deg);
  transition: transform 0.8s ease;
  pointer-events: none;
  z-index: 2;
}

.empreendimento-card:hover .card-image::after {
  transform: translateX(80%) rotate(15deg);
}

.card-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.18), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(200, 169, 120, 0.15), rgba(224, 225, 221, 0.1));
}

.image-icon {
  width: 150px;
  height: 150px;
  color: var(--dourado-claro);
  opacity: 0.5;
  transition: all 0.5s ease;
  z-index: 1;
}

.empreendimento-card:hover .image-icon {
  opacity: 0.2;
  transform: scale(1.1);
}

/* Badge (Obra Pronta / Em Construção) */
.card-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--dourado-claro);
  color: var(--azul-noite);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(200, 169, 120, 0.3);
  display: flex;
  align-items: center;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
}

.empreendimento-card:hover .card-badge {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 6px 20px rgba(200, 169, 120, 0.5);
}

/* Overlay Inicial (Visível) */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: white;
  transition: all 0.4s ease;
  opacity: 1;
  z-index: 2;
}

.empreendimento-card:hover .card-overlay {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.overlay-content {
  animation: fadeInUp 0.6s ease-out;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
}

.location-badge svg {
  color: var(--dourado-claro);
}

.card-title-overlay {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
}

.card-description-overlay {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

/* Botão de Call to Action Inicial - Simples, Elegante e Refinado */
.cta-button {
  background: rgba(11, 31, 47, 0.65);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  animation: pulse 2s infinite;
}

.cta-button .cta-text {
  color: #ffffff !important;
  font-weight: 600;
  white-space: nowrap;
}

.cta-button .cta-arrow {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.cta-button:hover {
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.cta-button:hover .cta-text {
  color: var(--azul-marinho) !important;
  text-shadow: none;
}

.cta-button:hover .cta-arrow {
  color: var(--azul-marinho) !important;
  stroke: var(--azul-marinho) !important;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cta-arrow {
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   Overlay de Detalhes no Hover
   ========================================================================== */
.card-details-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 31, 47, 0.98), rgba(18, 50, 71, 0.98));
  backdrop-filter: blur(10px);
  padding: 35px;
  color: white;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
}

.empreendimento-card.hovered .card-details-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.details-content {
  font-size: 0.9rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.details-content::-webkit-scrollbar {
  width: 5px;
}

.details-content::-webkit-scrollbar-track {
  background: transparent;
}

.details-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.details-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--dourado-claro);
  line-height: 1.2;
}

.details-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 25px 0;
}

/* Lista de Diferenciais */
.details-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-10px);
}

.empreendimento-card.hovered .feature-item {
  opacity: 1;
  transform: translateX(0);
  animation: slideInFeature 0.4s ease forwards;
}

@keyframes slideInFeature {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-item svg {
  color: var(--dourado-claro);
  flex-shrink: 0;
}

/* Botões de Ação na Ficha Técnica */
.details-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.btn-details {
  flex: 1;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
}

.btn-primary-details {
  background: var(--dourado-claro);
  color: var(--azul-noite) !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(200, 169, 120, 0.3);
}

.btn-primary-details:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 169, 120, 0.5);
  background: #B8956A;
}

.btn-secondary-details {
  background: transparent;
  color: white;
  border: 2px solid var(--azul-aco);
}

.btn-secondary-details:hover {
  background: var(--azul-aco);
  color: white;
  border-color: var(--azul-aco);
}

/* ==========================================================================
   Tooltip de Investimento (Finanças)
   ========================================================================== */
.investment-tooltip {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--dourado-claro);
  font-weight: 600;
}

.status-badge {
  background-color: #ff9800;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-ready {
  background-color: #4caf50;
}

.tooltip-content {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tooltip-label {
  color: rgba(255, 255, 255, 0.6);
}

.tooltip-value {
  font-weight: 600;
}

.tooltip-value.highlight {
  color: var(--dourado-claro);
}

.tooltip-small {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  display: block;
}

.tooltip-details {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Tabelas e Fluxo Especiais (CONVIVA ITACOA) */
.precos-especiais {
  font-size: 0.8rem;
}

.preco-section h5 {
  color: var(--dourado-claro);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  text-align: center;
  text-transform: uppercase;
}

.preco-opcao {
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--dourado-claro);
}

.preco-titulo {
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.fluxo-pagamento {
  padding-left: 10px;
}

.fluxo-item {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  margin-bottom: 3px;
}

.fluxo-detalhe {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  margin-bottom: 2px;
}

.slogan {
  margin-top: 10px;
  padding: 8px;
  background: rgba(200, 169, 120, 0.08);
  border-radius: 6px;
  font-style: italic;
  color: var(--dourado-claro);
  text-align: center;
  font-size: 0.75rem;
  border: 1px solid rgba(200, 169, 120, 0.15);
}

/* Indicador de Linha inferior no Card */
.hover-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--dourado-claro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 7;
}

.empreendimento-card:hover .hover-indicator {
  transform: scaleX(1);
}

.indicator-line {
  height: 100%;
  background: linear-gradient(90deg, var(--dourado-claro), var(--areia-suave));
  box-shadow: 0 0 10px rgba(200, 169, 120, 0.6);
}

/* ==========================================================================
   Media Queries & Responsividade
   ========================================================================== */
/* Primeiro item do grid segue o fluxo normal do grid */

@media (max-width: 1200px) {
  .empreendimentos-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
  }
  .conviva-itacoa-large {
    grid-column: span 1;
  }
  .featured-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .empreendimentos-section {
    padding: 60px 0;
  }
  
  .empreendimentos-title {
    font-size: 2.2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .featured-row {
    gap: 20px;
  }

  .empreendimentos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-image {
    height: 420px;
  }

  .card-title-overlay {
    font-size: 1.8rem;
  }

  .card-details-overlay {
    padding: 25px;
  }

  .details-title {
    font-size: 1.5rem;
  }

  .details-features {
    grid-template-columns: 1fr;
  }

  .details-actions {
    flex-direction: column;
    gap: 10px;
  }

  .cta-button {
    font-size: 0.85rem;
    padding: 10px 20px;
  }
}
