/* ===== RESET E BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background: #fafaf8;
  color: #1e2a2f;
  line-height: 1.6;
  padding-top: 80px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #2d4a2b;
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #4caf50;
  margin-top: 8px;
  border-radius: 2px;
}

/* ===== TÍTULO "TERRA NOSSA" COLORIDO ===== */
.terra-nossa {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.letra-t { color: #4CAF50; }
.letra-e { color: #8BC34A; }
.letra-r { color: #FFEB3B; }
.letra-r2 { color: #FF9800; }
.letra-a { color: #F44336; }
.espaco { display: inline-block; width: 4px; }
.letra-n { color: #2196F3; }
.letra-o { color: #00BCD4; }
.letra-s { color: #9C27B0; }
.letra-s2 { color: #E91E63; }
.letra-a2 { color: #FF5722; }

/* ===== CABEÇALHO ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  z-index: 1000;
  padding: 8px 0;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo a { text-decoration: none; }
nav ul { display: flex; list-style: none; gap: 30px; }
nav ul li a {
  text-decoration: none;
  color: #1e2a2f;
  font-weight: 600;
  transition: color 0.3s;
}
nav ul li a:hover { color: #4caf50; }
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; }

/* ===== BANNER ===== */
#banner {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}
.banner-slider { width: 100%; height: 100%; position: relative; }
.banner-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.banner-slide.active { opacity: 1; }
.banner-slide:nth-child(1) { background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('../images/1.jpg') center/cover no-repeat; }
.banner-slide:nth-child(2) { background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('../images/2.jpg') center/cover no-repeat; }
.banner-slide:nth-child(3) { background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('../images/3.jpg') center/cover no-repeat; }
.banner-content { max-width: 800px; padding: 20px; z-index: 2; animation: fadeUp 1.2s ease forwards; }
.banner-content h1 { font-size: 3.8rem; font-weight: 800; margin-bottom: 1rem; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.banner-content p { font-size: 1.4rem; margin-bottom: 2rem; opacity: 0.95; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.btn-primary {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #388e3c; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(76, 175, 80, 0.5); }
.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}
.slider-dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.slider-dot.active { background: #fff; }
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== SOBRE ===== */
.sobre { padding: 80px 0; background: #fff; }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.sobre-texto p { margin-bottom: 1rem; font-size: 1.05rem; }
.sobre-itens { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.sobre-itens span { background: #f0f4ee; padding: 6px 16px; border-radius: 30px; font-size: 0.9rem; font-weight: 600; color: #2d4a2b; }
.sobre-itens i { margin-right: 6px; color: #4caf50; }
.sobre-imagem img { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* ===== CARDS ===== */
.chacaras { padding: 80px 0; background: #f2f5f0; }
.filtro-busca { margin-bottom: 30px; }
.filtro-busca input {
  width: 100%;
  max-width: 400px;
  padding: 12px 20px;
  border: 2px solid #dce4dc;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
}
.filtro-busca input:focus { border-color: #4caf50; }
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.card-link { text-decoration: none; color: inherit; display: block; }
.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

/* ===== CARROSSEL DO CARD ===== */
.card-carousel {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #eee;
}
.carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.carousel-slides img {
  flex: 0 0 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.card-carousel .preco {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: #2d4a2b;
  color: #fff;
  padding: 6px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.2rem;
  z-index: 10;
  transition: background 0.3s;
}
.carousel-btn:hover { background: rgba(0,0,0,0.8); }
.prev { left: 8px; }
.next { right: 8px; }
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.carousel-dots span {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.carousel-dots span.active { background: #fff; }

/* ===== CARD BODY ===== */
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; color: #1e2a2f; }
.area { color: #4caf50; font-weight: 600; font-size: 0.95rem; margin: 4px 0 8px; }
.desc { color: #4a5a5f; font-size: 0.95rem; margin-bottom: 12px; }
.localizacao { font-size: 0.9rem; color: #6b7a7f; margin-bottom: 12px; }
.localizacao i { color: #4caf50; margin-right: 6px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f4ee;
  padding: 8px 16px;
  border-radius: 30px;
  text-decoration: none;
  color: #1e2a2f;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-icon i { color: #4caf50; }
.btn-icon:hover { background: #4caf50; color: #fff; }
.btn-icon:hover i { color: #fff; }

/* ===== GALERIA ===== */
.galeria { padding: 80px 0; background: #fff; }
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.galeria-item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s;
}
.galeria-item:hover { transform: scale(1.03); }
.galeria-item img { width: 100%; height: 200px; object-fit: cover; display: block; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute;
  top: 30px; right: 40px;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
}

/* ===== MAPA ===== */
#mapa { padding: 80px 0; background: #f2f5f0; }
.map-wrapper { border-radius: 20px; overflow: hidden; height: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* ===== CONTATO ===== */
.contato { padding: 80px 0; background: #fff; }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contato-info p { font-size: 1.1rem; margin-bottom: 16px; }
.contato-info i { width: 28px; color: #4caf50; }
.contato-form input, .contato-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 2px solid #e2e8e2;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
}
.contato-form input:focus, .contato-form textarea:focus { border-color: #4caf50; }
.contato-form button { width: 100%; }

/* ===== RODAPÉ ===== */
footer { background: #1e2a2f; color: #dbe4e0; padding: 50px 0 20px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-logo img { height: 50px; margin-bottom: 10px; }
.footer-logo p { opacity: 0.8; }
.footer-links h4, .footer-social h4 { color: #fff; margin-bottom: 12px; }
.footer-links a, .footer-social a { display: block; color: #dbe4e0; text-decoration: none; margin-bottom: 6px; transition: color 0.2s; }
.footer-links a:hover, .footer-social a:hover { color: #4caf50; }
.footer-social a { display: inline-block; margin-right: 16px; font-size: 1.4rem; }
.footer-bottom { border-top: 1px solid #314047; padding-top: 20px; text-align: center; font-size: 0.9rem; opacity: 0.7; }

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px; right: 30px;
  background: #25d366;
  color: #fff;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5); }

/* ===== PÁGINA INDIVIDUAL ===== */
.detalhes-chacara { padding: 120px 0 60px; }
.btn-voltar {
  display: inline-block;
  margin-bottom: 30px;
  color: #4caf50;
  text-decoration: none;
  font-weight: 600;
}
.btn-voltar i { margin-right: 8px; }
.detalhes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.detalhes-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #eee;
  height: 500px;
}
.detalhes-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.detalhes-slides img {
  flex: 0 0 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.detalhes-info { display: flex; flex-direction: column; gap: 16px; }
.preco-detalhe { font-size: 2.5rem; font-weight: 800; color: #2d4a2b; }
.area-detalhe { font-size: 1.2rem; color: #4caf50; font-weight: 600; }
.desc-detalhe { font-size: 1.1rem; color: #4a5a5f; line-height: 1.6; }
.localizacao-detalhe { font-size: 1rem; color: #6b7a7f; }

/* ===== RESPONSIVO ===== */
@media (max-width: 992px) {
  .sobre-grid, .contato-grid, .detalhes-grid {
    grid-template-columns: 1fr;
  }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 768px) {
  body { padding-top: 70px; }
  nav ul {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    padding: 20px;
    position: absolute;
    top: 70px; left: 0;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  nav ul.open { display: flex; }
  .menu-toggle { display: block; }
  .banner-content h1 { font-size: 2.4rem; }
  .banner-content p { font-size: 1.1rem; }
  .grid-cards { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.6rem; bottom: 20px; right: 20px; }
  .map-wrapper { height: 250px; }
  .card-carousel { height: 180px; }
  .detalhes-carousel { height: 300px; }
}
@media (max-width: 480px) {
  .galeria-grid { grid-template-columns: 1fr 1fr; }
  .galeria-item img { height: 140px; }
}