/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #0e6b58;
  color: white;
}

.container-full {
  overflow-x: hidden;
}
/* ======================================
   NAVBAR
====================================== */
.navbar {
  width: 100%;
  padding: 22px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  background: #0e6b58;
  z-index: 1000;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  /* gap: 2px; */
}

.logo img {
  width: 55px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

/* LINKS */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* AUTH BUTTONS */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-masuk {
  color: white;
  padding: 9px 20px;
  border-radius: 6px;
  border: 2px solid white;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}

.btn-masuk:hover {
  background-color: white;
  color: #0e6b58;
}

.btn-daftar {
  background: white;
  color: #0e6b58;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

/* MOBILE */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #084c3e;
  padding: 20px;
  padding-top: 120px;
  gap: 18px;
  text-align: center;
}

.mobile-menu.open {
  display: flex;
}

.btn-masuk-mobile {
  border: 2px solid white;
  padding: 10px;
  border-radius: 6px;
}

.btn-daftar-mobile {
  background: white;
  color: #0e6b58;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
}

/* ======================================
   HERO SECTION
====================================== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 140px 60px 80px;
  gap: 40px;
}

.hero-text {
  width: 50%;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  animation: fadeInUp 1s ease forwards;
}

.hero-text span {
  color: #ffffff;
}

.hero-text p {
  margin: 20px 0;
  font-size: 15px;
  max-width: 400px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: white;
  color: #0e6b58;
  padding: 14px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
}

.btn-primary span {
  margin-left: 8px;
  font-size: 18px;
}

.hero-img img {
  width: 500px;
  border-radius: 10px;
  animation: float 3s ease-in-out infinite;
}

/* FLOAT ANIMATION */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ======================================
   LAYANAN
====================================== */
.services {
  text-align: center;
  padding: 80px 60px;
  background: #e8fff6;
  color: #0e6b58;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 5px;
}

.section-subtitle {
  font-size: 16px;
  margin-bottom: 50px;
  color: #444;
}

.service-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.service-card {
  background: white;
  width: 300px;
  padding: 35px 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: 0.3s ease;
}

.service-card.active {
  background: linear-gradient(135deg, #008f6a, #0e6b58);
  color: white;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card .image-box {
  display: flex;
  justify-content: center;
}

.service-card img {
  width: 70px;
  margin-bottom: 20px;
}

/* ======================================
   REKOMENDASI RUMAH
====================================== */
.rekomendasi-section {
  padding: 80px 60px;
  background: #fff;
  color: #0e6b58;
}

.rekom-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 35px;
}

.rekom-grid {
  display: flex;
  /* grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); */
  /* gap: 25px; */
}

.swiper {
  width: 100%;
  max-width: 50vw; /* Lebar maksimal container */
  /* padding: 20px 50px 50px 50px; Padding untuk memberi ruang pada panah dan dots */
}

/* Styling Kartu (Slide) */
.card-slide {
  position: relative;
  border-radius: 20px; /* Sudut membulat seperti di gambar */
  overflow: hidden;
  border: 2px solid #d4af37; /* Warna emas/coklat sesuai gambar */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3; /* Menjaga proporsi gambar */
}

/* Gambar di dalam kartu */
.card-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Overlay Teks di bagian bawah */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 10px;
  box-sizing: border-box;
  /* Gradasi background coklat ke transparan seperti di gambar */
  background: linear-gradient(
    to top,
    rgba(88, 63, 29, 0.95) 0%,
    rgba(88, 63, 29, 0) 100%
  );
  text-align: center;
}

.card-content h3 {
  color: white;
  font-size: 16px;
  margin: 0;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Kustomisasi Navigasi (Panah) */
.swiper-button-next,
.swiper-button-prev {
  color: #d4af37; /* Warna panah emas */
  background: rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

/* Kustomisasi Pagination (Titik-titik bawah) */
.swiper-pagination-bullet-active {
  background-color: #d4af37;
}

.swiper .rekom-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: 0.3s ease;
  width: 350px;
}

.rekom-card:hover {
  transform: translateY(-10px);
}

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

.rekom-body {
  padding: 15px 20px;
}

/* ======================================
   FITUR SLIDER
====================================== */
.fitur-section {
  padding: 80px 40px;
  background: #beffe4;
}

.fitur-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.fitur-header h1 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #0e6b58;
}

.btn-lihat-semua {
  text-decoration: none;
  color: #0e6b58;
  font-weight: bold;
}

.fitur-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.fitur-container {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.fitur-container::-webkit-scrollbar {
  display: none;
}

.fitur-card {
  min-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: 0.3s ease;
}

.fitur-card img {
  width: 100%;
  height: 300px;
  object-fit: unset;
}

.fitur-highlight {
  min-width: 350px;
  border: 5px solid #0e6b58;
}

.fitur-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
}

.fitur-btn-primary {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  background: #0e6b58;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.fitur-btn {
  background: #0e6b58;
  color: white;
  border: none;
  font-size: 28px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  margin: 0 10px;
  transition: 0.2s;
}

.fitur-btn:hover {
  background: #095f4d;
}

/* --- Container Kartu --- */
.fitur-card {
  position: relative; /* Wajib: agar overlay tidak keluar dari kartu */
  width: 300px; /* Sesuaikan lebar */
  height: 400px; /* Sesuaikan tinggi */
  border-radius: 12px;
  overflow: hidden; /* Agar gambar tidak menembus sudut membulat */
  background: #f0fdf4; /* Background hijau sangat muda (opsional) */

  /* Border default transparan/tipis */
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Gambar Utama */
.fitur-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease; /* Animasi zoom halus */
}

/* --- Overlay (Bagian Gelap + Teks) --- */
.fitur-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;

  /* Gradient Hitam ke Transparan (Mirip referensi kanan) */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));

  /* State Awal: Sembunyi */
  opacity: 0;
  transform: translateY(20px); /* Geser sedikit ke bawah */
  transition: all 0.3s ease-in-out;

  /* Susunan Layout Teks */
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Styling Teks di dalam Overlay */
.fitur-overlay h3 {
  color: #fff;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.fitur-overlay p {
  color: #e2e8f0; /* Putih agak abu */
  margin: 5px 0 0;
  font-size: 14px;
}

/* Baris Harga & Tombol */
.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.price {
  color: #fff;
  font-weight: bold;
  font-size: 16px;
}

.btn-lihat {
  background-color: #10b981; /* Hijau Emerald */
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-lihat:hover {
  background-color: #059669; /* Hijau lebih gelap saat tombol di-hover */
}

/* --- EFEK HOVER (Saat mouse diarahkan ke kartu) --- */

/* 1. Munculkan Border Hijau pada container */
.fitur-card:hover {
  border-color: #10b981; /* Warna border hijau */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 2. Zoom gambar sedikit */
.fitur-card:hover img {
  transform: scale(1.05);
}

/* 3. Munculkan Overlay */
.fitur-card:hover .fitur-overlay {
  opacity: 1; /* Jadi terlihat */
  transform: translateY(0); /* Kembali ke posisi semula */
}

/* ======================================
   KONTAK + MAPS
====================================== */
.contact-section {
  /* padding: 80px 60px; */
  padding-top: 80px;
  background: #f7f8fa;
  color: #222;
}

.contact-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-info {
  flex: 1 1 350px;
  background: white (252, 252, 252);
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-title {
  font-size: 28px;
  font-weight: 700;
  color: #0e6b58;
  margin-bottom: 10px;
}

.contact-description {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

.contact-details {
  margin-top: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
}

.contact-item i {
  font-size: 20px;
  color: #0e6b58;
}

/* FORM */
.contact-form {
  flex: 1 1 380px;
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0e6b58;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #444;
  display: block;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.form-group textarea {
  height: 120px;
  resize: none;
}

.contact-btn {
  width: 100%;
  padding: 14px;
  background: #0e6b58;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}

/* MAPS */
.maps-container {
  margin-top: 50px;
  text-align: center;
}

.maps-container h3 {
  color: #0e6b58;
  font-size: 24px;
  margin-bottom: 15px;
}

.maps-frame {
  width: 100%;
  height: 350px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.maps-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    width: 100%;
  }
  .hero-img img {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .auth-buttons {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 120px 20px 50px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .fitur-card {
    min-width: 220px;
  }

  .contact-container {
    flex-direction: column;
  }
}
