/**
 * Empreendimento Page Styles
 * Estilos específicos para a página individual de empreendimentos
 * Design: Luxo, Elegância, Preto + Dourado
 */

/* ===================================
   SECTIONS CONTAINER SPACING
   =================================== */
#sectionsContainer > [id^="secao-"] {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#sectionsContainer > [id^="secao-"]:last-child {
  border-bottom: none;
}

/* ===================================
   NAVIGATION TABS COM SCROLL SPY
   =================================== */
.emp-nav-tabs {
  position: relative;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 0 !important;
}

.nav-tabs-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  padding: 1.25rem 2rem;
  color: #666;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.nav-tab:hover {
  color: var(--color-gold);
  background: rgba(201, 161, 92, 0.05);
}

.nav-tab.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
  background: rgba(201, 161, 92, 0.05);
}

/* ===================================
   GALERIA CATEGORIZADA
   =================================== */
.gallery-categorized {
  margin-top: 2rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.gallery-filter {
  padding: 0.625rem 1.5rem;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  color: #333;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filter:hover {
  border-color: var(--color-gold);
  background: rgba(201, 161, 92, 0.1);
  color: var(--color-gold);
  transform: translateY(-2px);
}

.gallery-filter.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(201, 161, 92, 0.3);
}

.gallery-grid-categorized {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
  opacity: 0.85;
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

.gallery-item-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.gallery-item-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gold);
  margin-top: 0.25rem;
}

/* ===================================
   PLANTAS BAIXAS
   =================================== */
.plantas-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #e9ecef;
}

.plantas-section h3 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.plantas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.planta-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.planta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(201, 161, 92, 0.2);
  border-color: var(--color-gold);
}

.planta-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: #f8f9fa;
}

.planta-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.planta-card:hover .planta-card-image img {
  transform: scale(1.05);
}

.planta-card-zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.planta-card:hover .planta-card-zoom {
  opacity: 1;
}

.planta-card-info {
  padding: 1.5rem;
}

.planta-card-tipo {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #000;
}

.planta-card-area {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.planta-card-area i {
  color: var(--color-gold);
}

.planta-card-actions {
  display: flex;
  gap: 0.75rem;
}

.planta-card-actions .btn {
  flex: 1;
  font-size: 0.875rem;
}

/* ===================================
   ANDAMENTO DA OBRA
   =================================== */
.obra-progress {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 2px solid var(--color-gold);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(201, 161, 92, 0.15);
}

.obra-progress h3 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
}

.progress-card {
  max-width: 600px;
  margin: 0 auto;
}

.progress-percentage {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
}

.progress-bar-container {
  height: 24px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #c9a15c 0%, #d4b574 50%, #c9a15c 100%);
  background-size: 200% 100%;
  border-radius: 50px;
  transition: width 1.5s ease;
  position: relative;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #666;
}

.progress-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-info-item i {
  color: var(--color-gold);
  font-size: 1.125rem;
}

.progress-info-label {
  font-weight: 600;
  color: #000;
  display: block;
  margin-bottom: 0.25rem;
}

/* ===================================
   CARD CORRETOR RESPONSÁVEL
   =================================== */
.corretor-card {
  background: #fff;
  border: 2px solid var(--color-gold);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 1.5rem;
  box-shadow: 0 4px 20px rgba(201, 161, 92, 0.15);
}

.corretor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold) 0%, #d4b574 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.corretor-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.corretor-card h5 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #000;
}

.corretor-card p {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.corretor-card .btn {
  width: 100%;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.corretor-card .btn:last-child {
  margin-bottom: 0;
}

.corretor-card .btn-success {
  background: #25D366;
  border-color: #25D366;
}

.corretor-card .btn-success:hover {
  background: #1da851;
  border-color: #1da851;
}

/* ===================================
   VIDEO CONTAINER
   =================================== */
.video-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #e9ecef;
}

.video-section h3 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===================================
   SIDEBAR STICKY
   =================================== */
@media (min-width: 992px) {
  .card-sticky {
    position: sticky;
    top: 100px;
  }
}

/* ===================================
   RESPONSIVIDADE
   =================================== */

/* Tablet */
@media (max-width: 991px) {
  .card-sticky {
    position: static !important;
  }
  .nav-tab {
    padding: 1rem 1.5rem;
  }

  .gallery-grid-categorized {
    grid-template-columns: repeat(2, 1fr);
  }

  .plantas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .progress-percentage {
    font-size: 2.5rem;
  }

  .corretor-card {
    margin-top: 2rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .emp-nav-tabs {
    /* non-sticky, sem offset */
  }

  .nav-tab {
    padding: 1rem 1.25rem;
    font-size: 0.8125rem;
  }

  .gallery-filters {
    gap: 0.5rem;
  }

  .gallery-filter {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .gallery-grid-categorized {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .plantas-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .obra-progress {
    padding: 1.5rem;
  }

  .progress-percentage {
    font-size: 2rem;
  }

  .progress-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .corretor-card {
    padding: 1.5rem;
  }

  .corretor-avatar {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

  /* Quick info bar - 2 colunas em mobile */
  .quick-info-bar .row {
    gap: 0.75rem;
  }

  .quick-info-bar .col-lg-3 {
    flex: 0 0 calc(50% - 0.375rem);
    max-width: calc(50% - 0.375rem);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .nav-tab {
    padding: 0.875rem 1rem;
    font-size: 0.75rem;
  }

  .gallery-filter {
    padding: 0.5rem 0.875rem;
    font-size: 0.7rem;
  }

  .progress-percentage {
    font-size: 1.75rem;
  }

  .planta-card-info {
    padding: 1rem;
  }

  .obra-progress h3,
  .plantas-section h3,
  .video-section h3 {
    font-size: 1.5rem;
  }
}

/* ===================================
   ANIMAÇÕES E MICRO-INTERAÇÕES
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease;
}

/* Loading state for gallery */
.gallery-item.loading {
  background: #f0f0f0;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.nav-tab:focus,
.gallery-filter:focus,
.planta-card:focus,
.corretor-card .btn:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ===================================
   LUXURY REFINEMENTS v2.0
   =================================== */

/* --- SIDEBAR CARDS LUXURY --- */
.card-sticky .card {
  background: #fff;
  border: none;
  border-top: 2px solid var(--color-gold);
  border-radius: 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.card-sticky .bg-light {
  background: #fff !important;
}

.card-sticky .card-body {
  padding: 1.75rem;
}

.card-sticky .card-body h4,
.card-sticky .card-body h5 {
  font-size: 0.688rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(201, 161, 92, 0.2);
}

/* --- QUICK INFO BAR - SEM STICKY + FUNDO GRANULADO --- */
.quick-info-bar {
  position: relative !important;
  top: auto !important;
  z-index: 1;
  background: #0a0a0a !important;
  overflow: hidden;
}

.quick-info-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(255, 171, 0, 0.015) 2px,
    rgba(255, 171, 0, 0.015) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.quick-info-bar .container {
  position: relative;
  z-index: 1;
}

/* --- QUICK INFO BAR LUXURY --- */
.quick-info-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.25rem;
  display: block;
}

.quick-info-value {
  font-size: 1.063rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  display: block;
}

.quick-info-item i {
  font-size: 1.375rem;
}

/* Separador vertical entre itens (desktop) */
@media (min-width: 992px) {
  .quick-info-bar .col-lg-3:not(:last-child) .quick-info-item {
    border-right: 1px solid rgba(255, 171, 0, 0.15);
  }
}

/* --- GALLERY FILTERS LUXURY --- */
.gallery-filters {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 0;
  gap: 0;
  margin-bottom: 2.5rem;
}

.gallery-filter {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #999;
  font-size: 0.688rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: -1px;
}

.gallery-filter:hover {
  color: #333;
  background: transparent;
  border-bottom-color: rgba(201, 161, 92, 0.35);
  transform: none;
}

.gallery-filter.active {
  color: var(--color-gold);
  background: transparent;
  border-bottom-color: var(--color-gold);
  box-shadow: none;
}

/* --- DESCRIÇÃO — tipografia premium --- */
.text-content p {
  font-size: 1.05rem;
  line-height: 1.95;
  color: #2e2e2e;
  letter-spacing: 0.012em;
  margin-bottom: 1.25rem;
}

.text-content p:first-child::first-letter {
  font-size: 4rem;
  font-weight: 700;
  color: #FFAB00;
  float: left;
  line-height: 0.82;
  margin-right: 0.12em;
  padding-top: 0.06em;
}

/* --- SECTION SUBTITLE (Diferenciais / Lazer h3) --- */
.section-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a0a0a;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem !important;
  display: inline-block;
}

.section-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: #FFAB00;
}

/* --- PREMIUM CARDS (Diferenciais / Lazer) --- */
.premium-card {
  background: #fff;
  border: 1px solid #e8e3d8;
  border-left: 3px solid #FFAB00;
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.premium-card:hover {
  border-color: rgba(255, 171, 0, 0.6);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.premium-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 171, 0, 0.08);
  border: 1px solid rgba(255, 171, 0, 0.25);
  color: #FFAB00;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.premium-card-text {
  color: #2e2e2e;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
