/**
 * HOTFIX CSS V2 - Correções Cirúrgicas
 * Apenas correções necessárias, sem quebrar o layout
 */

/* ============================================
   HEADER - CORRIGIR MENU
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(109.46deg, rgba(0,0,0,0.32) 1.57%, rgba(0,0,0,0.04) 100%);
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.95);
}

.header .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header-logo {
  display: block;
  z-index: 10;
}

.header-logo img {
  height: 50px;
  width: auto;
}

/* Desktop Navigation */
.navbar {
  display: none;
}

@media (min-width: 992px) {
  .navbar {
    display: flex;
    align-items: center;
    gap: 3rem;
  }
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar-nav li {
  margin: 0;
}

.navbar-nav a {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  display: block;
  transition: color 0.3s ease;
}

.navbar-nav a:hover {
  color: #FFAB00;
}

/* CTA Button Desktop */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* NO DESKTOP: esconder elementos exclusivos mobile */
@media (min-width: 992px) {
  #mobileNav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  #mobileBottomBar {
    display: none !important;
  }
}

@media (max-width: 991px) {
  /* Esconder navbar desktop no mobile */
  .navbar {
    display: none !important;
  }
}

/* ============================================
   BODY PADDING
   ============================================ */

body {
  padding-top: 80px;
}

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

.hero {
  margin-top: -80px;
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 3;
}

.hero-content {
  max-width: 900px;
  color: white;
  z-index: 4;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content .lead {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-content .btn {
  position: relative;
  z-index: 5;
  margin-top: 1rem;
}

/* Carousel Controls - DENTRO DO HERO APENAS */
.carousel-controls {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 5;
  pointer-events: none;
}

.carousel-controls button {
  pointer-events: auto;
}

/* Garantir que controles do carousel ficam APENAS no hero */
.hero .carousel-controls {
  position: absolute;
}

/* Evitar que apareçam fora do hero */
body > .carousel-controls,
section:not(.hero) .carousel-controls {
  display: none !important;
}

.carousel-prev,
.carousel-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #FFAB00;
  border-color: #FFAB00;
  color: #000;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #FFAB00;
  width: 30px;
  border-radius: 6px;
}

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

.btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: #FFAB00;
  color: #000;
  border-color: #FFAB00;
}

.btn-primary:hover {
  background: #000;
  color: #FFAB00;
  border-color: #FFAB00;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 6rem 0;
  position: relative;
}

@media (max-width: 767px) {
  section {
    padding: 4rem 0;
  }
}

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

.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9998;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

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

.horizontal-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0;
  margin: 0 -1rem;
}

.horizontal-scroll-container {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
}

.card-empreendimento {
  flex-shrink: 0;
  width: 300px;
}

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

  .hero {
    height: 70vh;
    min-height: 500px;
  }
}
