/* Reset e configurações base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  font-display: swap;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  overflow-x: hidden;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

/* Loading Screen */
#loading-screen {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(251, 191, 36, 0.3);
  border-radius: 50%;
  border-top-color: #FBBF24;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Seções com scroll-margin para compensar header fixo */
section {
  scroll-margin-top: 100px;
  contain: content;
  padding: 5rem 1rem;
}

@media (max-width: 768px) {
  section {
    padding: 3rem 1rem;
  }
}

/* Header melhorado */
header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation Links */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #D97706, #F59E0B);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown melhorado */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile Menu */
#mobile-menu {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-image: url('/images/galeria/DSC_3746.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Fallback caso a imagem não carregue 
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  z-index: -1;
}*/

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.7) 0%, rgba(30, 64, 175, 0.5) 50%, rgba(37, 99, 235, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.hero-text {
  max-width: 600px;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(217, 119, 6, 0.9);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(0.875rem, 4vw, 1.25rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 200px;
  justify-content: center;
}

.hero-btn-primary {
  background: #D97706;
  color: white;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3);
}

.hero-btn-primary:hover {
  background: #B45309;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(217, 119, 6, 0.4);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Swiper customização */
.swiper-button-next,
.swiper-button-prev {
  color: #D97706;
  background: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #D97706;
  transform: scale(1.2);
}

/* Floating Buttons */
.floating-btn {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  will-change: transform;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Cards melhorados */
.benefit-card, .empreendimento-card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
  will-change: transform;
  backface-visibility: hidden;
}

.benefit-card:hover {
  border-color: #F59E0B;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.empreendimento-card:hover {
  border-color: #D97706;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.coming-soon-card {
  transition: all 0.3s ease;
}

.coming-soon-card:hover {
  border-color: #D97706;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Formulários melhorados */
input, textarea, select {
  font-size: 16px; /* Evita zoom indesejado no iOS */
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #D97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* Botões melhorados */
button,
.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #D97706, #F59E0B);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 9999;
}

/* Botões de redes sociais MAIORES */
.social-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  transform: scale(1);
}

.social-btn:hover {
  transform: scale(1.1);
}

.social-btn i {
  font-size: 1.75rem;
}

/* Scroll down indicator */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  animation: bounce 2s infinite;
  z-index: 10;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Classes utilitárias */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Responsividade */
@media (max-width: 1024px) {
  .social-btn {
    width: 48px;
    height: 48px;
  }

  .social-btn i {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-btn {
    min-width: auto;
    width: 100%;
  }
  
  .floating-btn {
    width: 50px;
    height: 50px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px;
  }

  .social-btn {
    width: 44px;
    height: 44px;
  }

  .social-btn i {
    font-size: 1.375rem;
  }
}

@media (max-width: 640px) {
  .floating-btn {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }

  .social-btn {
    width: 40px;
    height: 40px;
  }

  .social-btn i {
    font-size: 1.25rem;
  }
}

/* Focus states melhorados */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #D97706;
  outline-offset: 2px;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}