*{
    margin: 0;
    padding: 0;
}


body {
      margin: 0;
      font-family: 'Helvetica Neue', sans-serif;
      color: #333;
      background-color: #f8f8f8;
    }
header {
    position: relative;
    height: 100vh;
    overflow: hidden;
}
header video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 2rem;
    border-radius: 10px;
}
.hero-text h1 {
    font-size: 3rem;
    animation: fadeIn 2s ease-in-out;
}
@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.95);}
    to {opacity: 1; transform: scale(1);}
}
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
}
.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.parallax {
    background-image: url('house-highlight.jpg');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.highlights {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.highlight {
    flex: 1;
    min-width: 150px;
    text-align: center;
}
.gallery {
    margin-top: 2rem;
}
.swiper-container {
    width: 100%;
    max-width: 100vw;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.thumbnail-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.section-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 1em;
}
.section-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.section-gallery img:hover {
  transform: scale(1.03);
}
.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
  margin-top: 20px;
}
.thumbnail-grid img {
  width: 100%;
  border-radius: 4px;
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Imagem no popup */
.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Botão de fechar */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  font-weight: bold;
  z-index: 1001;
}


/* Responsivo geral */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .section-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .swiper-container {
    height: 350px;
  }

  .thumbnail-grid img {
    height: 100px;
  }
}

@media (max-width: 768px) {
  .hero-text {
    padding: 1.5rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .highlight {
    min-width: 120px;
  }

  .section-gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .swiper-container {
    height: 280px;
  }

  .thumbnail-grid img {
    height: 90px;
  }

  .lightbox-close {
    font-size: 1.5rem;
    top: 15px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero-text {
    padding: 1rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .highlight strong {
    font-size: 1.2rem;
  }

  .swiper-container {
    height: 220px;
  }

  .section-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .thumbnail-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .thumbnail-grid img {
    height: 70px;
  }
}
