/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  background: #f2f5f9;
}

/* ===== NAVBAR ===== */
.navbar {
  background: linear-gradient(135deg, #0d47a1, #08306b);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  letter-spacing: 1px;
}

.wa-btn {
  background: #25D366;
  color: #fff;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

/* ===== HERO / HEADER UTAMA ===== */
.hero {
  padding: 120px 20px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("img/perumahan.jpg") no-repeat center center;
  background-size: cover;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 16px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.cta {
  display: inline-block;
  margin-top: 18px;
  background: #0d47a1;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

/* ===== SECTION ===== */
.section {
  padding: 70px 20px;
  text-align: center;
  background: #fff;
}

.gray {
  background: linear-gradient(135deg, #f5f8ff, #eef2f7);
}

/* ===== GRID & CARD ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* ================================
   GALERI FOTO FINAL
================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 25px;
}

.photo {
  height: 200px;
  background-size: contain;     /* TIDAK KEPOTONG */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.photo span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.photo-link {
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.photo-link:hover {
  transform: scale(1.03);
  filter: brightness(0.9);
}

/* Responsive */
@media (max-width: 768px) {
  .photo { height: 180px; }
  .hero h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .photo { height: 150px; }
  .hero h1 { font-size: 24px; }
}

/* ================================
   LIGHTBOX POPUP
================================ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.7);
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

@keyframes zoomIn {
  from {transform: scale(0.7); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* ===== MAPS ===== */
.maps {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 12px;
}

/* ===== FORM ===== */
.form {
  max-width: 420px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form input,
.form select,
.form textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.form button {
  background: #0d47a1;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #0d47a1, #021b3a);
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
}/* ================================
   MENU GALERI ELEGAN (INDEX)
================================ */

.gallery-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 35px;
}

.gallery-card {
  height: 200px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.05)
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
}

.gallery-overlay h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.gallery-overlay span {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

/* Mobile */
@media (max-width: 480px) {
  .gallery-card {
    height: 160px;
  }
}
/* ================================
   HERO SLIDER FIX (WAJIB)
================================ */

.slider {
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* Konten hero di atas slider */
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: auto;
}

/* Promo badge */
.promo-badge {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff5722;
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: bold;
  z-index: 6;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
/* ================================
   KEUNGGULAN / BENEFIT CARD WARNA
================================ */

.grid .card {
  font-weight: bold;
  font-size: 15px;
  color: #0d47a1;
  background: linear-gradient(135deg, #ffffff, #f0f6ff);
  border-left: 6px solid #0d47a1;
  transition: all 0.3s ease;
}

.grid .card:nth-child(1) {
  border-color: #ff5722;
  color: #ff5722;
  background: linear-gradient(135deg, #fff5f0, #ffffff);
}

.grid .card:nth-child(2) {
  border-color: #4caf50;
  color: #4caf50;
  background: linear-gradient(135deg, #f1fff4, #ffffff);
}

.grid .card:nth-child(3) {
  border-color: #03a9f4;
  color: #03a9f4;
  background: linear-gradient(135deg, #f0fbff, #ffffff);
}

.grid .card:nth-child(4) {
  border-color: #ff9800;
  color: #ff9800;
  background: linear-gradient(135deg, #fff8e6, #ffffff);
}

.grid .card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}/* ================================
   LIGHTBOX NAV (NEXT / PREV)
================================ */

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  padding: 10px 18px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  user-select: none;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0,0,0,0.7);
}
/* ================================
   FLOATING WHATSAPP BUTTON
================================ */

/* ================================
   FLOATING WHATSAPP FIX FINAL
================================ */

.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 99999;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.wa-float:hover {
  transform: scale(1.1);
}

.wa-float img {
  width: 30px;
  height: 30px;
  display: block;
}

}

/* Icon WhatsApp pakai emoji (simple & aman) */
.wa-float::before {
  content: "🟢";
  margin-right: -6px;
}
/* ================================
   MOBILE OPTIMIZATION RENGGANIS
================================ */
@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  /* NAVBAR */
  .navbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .logo {
    font-size: 18px;
    font-weight: 800;
  }

  .wa-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
  }

  /* HERO */
  .hero {
    padding: 80px 15px;
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 900;
  }

  .hero p {
    font-size: 14px;
  }

  .cta {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* CARD KEUNGGULAN */
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card {
    font-size: 14px;
    font-weight: 700;
    padding: 14px;
  }

  /* GALERI MENU */
  .gallery-menu {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery-card {
    height: 160px;
  }

  .gallery-overlay h3 {
    font-size: 18px;
    font-weight: 900;
  }

  /* FOTO GALERI */
  .photo {
    height: 120px;
    font-size: 15px;
    font-weight: 800;
  }

  /* FORM */
  .form {
    padding: 10px;
  }

  .form input,
  .form select,
  .form textarea {
    font-size: 15px;
    padding: 12px;
  }

  .form button {
    font-size: 16px;
    padding: 14px;
    border-radius: 10px;
  }

  /* MAPS */
  .maps {
    height: 220px;
  }

  /* FOOTER */
  footer {
    font-size: 13px;
    padding: 15px;
  }

  /* FLOATING WA */
  .wa-float {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 15px;
  }

  .wa-float img {
    width: 28px;
    height: 28px;
  }

}


