/**
 * CSS Fixes - Correções de Layout
 *
 * Corrige problemas de posicionamento e alinhamento
 */

/* ============================================
   BODY PADDING (compensa header fixo)
   ============================================ */

body {
  padding-top: 80px; /* Altura do header */
}

/* ============================================
   HEADER FIXES
   ============================================ */

.header {
  z-index: 1000;
}

.header .container-fluid {
  max-width: 1400px;
}

/* ============================================
   HERO SECTION FIXES
   ============================================ */

.hero {
  margin-top: -80px; /* Compensa padding do body */
  position: relative;
}

.hero-content {
  z-index: 5;
  padding: var(--spacing-xl);
}

.hero-content .lead {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ============================================
   SECTION SPACING
   ============================================ */

section {
  position: relative;
  z-index: 1;
}

/* ============================================
   CARDS GRID
   ============================================ */

.horizontal-scroll-container {
  padding-left: var(--spacing-md);
}

/* Garante que cards não quebrem layout */
.card-empreendimento {
  min-width: 280px;
}

@media (max-width: 767px) {
  .card-empreendimento {
    min-width: 250px;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  text-decoration: none;
  line-height: 1.5;
}

.btn i {
  vertical-align: middle;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  position: relative;
  z-index: 1;
}

.footer-column img {
  max-width: 150px;
  height: auto;
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */

.floating-whatsapp {
  z-index: 999;
  text-decoration: none;
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

@media (max-width: 767px) {
  .display-3 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.overflow-hidden {
  overflow: hidden;
}

/* Garante que imagens não quebrem layout */
img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   LOADING STATE
   ============================================ */

.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* ============================================
   GRID LAYOUT
   ============================================ */

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

/* ============================================
   INPUT GROUP (Newsletter)
   ============================================ */

.input-group {
  display: flex;
  width: 100%;
}

.input-group .form-control {
  flex: 1;
  border-radius: 4px 0 0 4px;
  border-right: none;
}

.input-group .btn {
  border-radius: 0 4px 4px 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ============================================
   LEAD TEXT
   ============================================ */

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ============================================
   BACKGROUND UTILITIES
   ============================================ */

.bg-light {
  background-color: #f8f9fa !important;
}

.bg-dark {
  background-color: #000000 !important;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */

.text-muted {
  color: #6c757d !important;
}

.text-center {
  text-align: center !important;
}

.text-white {
  color: #ffffff !important;
}

/* ============================================
   SPACING UTILITIES
   ============================================ */

.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-5 { margin-top: 3rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

/* ============================================
   DISPLAY UTILITIES
   ============================================ */

.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }

.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

.flex-wrap { flex-wrap: wrap !important; }

@media (min-width: 992px) {
  .d-lg-flex { display: flex !important; }
  .d-lg-none { display: none !important; }
}

/* ============================================
   POSITION UTILITIES
   ============================================ */

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }

.top-0 { top: 0 !important; }
.start-0 { left: 0 !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
