/* ====== Color System (Leaf Green Theme) ====== */
:root {
  --leaf-600: #1e7d34; /* utama */
  --leaf-500: #27a745;
  --leaf-400: #58c27d;
  --leaf-300: #8ed7a8;
  --leaf-100: #e7f6ec;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --surface: #ffffff;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    "Helvetica Neue", "Noto Sans", Arial, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  color: var(--ink-700);
}
a {
  text-decoration: none;
}
/* Navbar */
#mainNav .nav-link {
  padding: 0.6rem 1rem;
  font-weight: 500;
}
#mainNav .nav-link.active,
#mainNav .nav-link:hover {
  color: var(--leaf-600);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--leaf-100), #fff);
  padding: 4rem 0 2rem;
}
.hero .badge {
  border-radius: 999px;
}
.fill-success-50 {
  fill: var(--leaf-100);
}

/* Sections */
.section-title {
  font-weight: 800;
  color: var(--ink-900);
}
.badge-card {
  background: #fff;
  border-radius: 1rem;
  padding: 0.9rem;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.05);
}

/* Cards */
.service-card:hover {
  transform: translateY(-3px);
  transition: 0.2s;
}
.cat-card img {
  object-fit: cover;
  height: 200px;
}

/* Buttons */
.btn-success {
  background: var(--leaf-600);
  border-color: var(--leaf-600);
}
.btn-success:hover {
  background: var(--leaf-500);
  border-color: var(--leaf-500);
}
.btn-outline-success {
  color: var(--leaf-600);
  border-color: var(--leaf-600);
}
.btn-outline-success:hover {
  background: var(--leaf-600);
  border-color: var(--leaf-600);
}

/* Gallery */
.filter-group .btn.active {
  background: var(--leaf-600);
  color: #fff;
}
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Footer */
.footer {
  background: var(--leaf-600);
}
.footer h6 {
  font-weight: 700;
}
.footer .tiny {
  font-size: 12px;
}

/* Float buttons */
.float-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  z-index: 1040;
}
.to-top {
  position: fixed;
  right: 16px;
  bottom: 84px;
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  z-index: 1040;
}

/* Form */
.form-control:focus {
  border-color: var(--leaf-400);
  box-shadow: 0 0 0 0.2rem rgba(39, 167, 69, 0.15);
}

/* Utilities */
.bg-success-50 {
  background: var(--leaf-100);
}
.text-success {
  color: var(--leaf-600) !important;
}

/* Responsive tweaks */
@media (min-width: 992px) {
  .hero {
    padding: 6rem 0 3rem;
  }
}
.badge-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.badge-card i {
  color: #198754; /* warna hijau Bootstrap */
  transition: color 0.3s ease;
}

.badge-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background: #198754; /* hijau saat hover */
  color: #fff;
}

.badge-card:hover i {
  color: #fff; /* ikon jadi putih saat hover */
}

.badge-card p {
  margin-top: 10px;
  font-weight: 500;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: all 0.35s ease;
  cursor: pointer;
}

.service-card i {
  color: #198754; /* hijau daun */
  transition: color 0.35s ease;
}

.service-card h5,
.service-card p {
  transition: color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.05);
  background: #198754; /* hijau saat hover */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card:hover i,
.service-card:hover h5,
.service-card:hover p {
  color: #fff; /* semua jadi putih agar kontras */
}
/* Efek hover untuk service-card */
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: all 0.35s ease;
  cursor: pointer;
}

.service-card i {
  color: #198754;
  transition: transform 0.35s ease, color 0.35s ease;
  display: inline-block;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.05);
  background: #198754;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card:hover i {
  color: #fff;
  animation: icon-bounce 0.6s ease;
}

.service-card:hover h5,
.service-card:hover p {
  color: #fff;
}

/* Animasi ikon */
@keyframes icon-bounce {
  0% {
    transform: scale(1) rotate(0);
  }
  30% {
    transform: scale(1.2) rotate(-8deg);
  }
  50% {
    transform: scale(1.1) rotate(8deg);
  }
  70% {
    transform: scale(1.2) rotate(-4deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
/* Trust Badges Hover */
.badge-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.badge-card i {
  transition: color 0.3s ease;
}

.badge-card:hover {
  background: #198754; /* hijau Bootstrap (success) */
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.badge-card:hover i {
  color: #fff !important; /* ikon jadi putih */
}

.badge-card:hover p {
  color: #fff; /* teks ikut putih */
}
.service-card:hover i.text-success {
  color: #fff !important;
}
.custom-toggler {
  padding: 0;
  outline: none;
  box-shadow: none !important;
}

.toggler-icon {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #000;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
}

/* Change to X when open */
.navbar-toggler.collapsed .top-bar {
  transform: rotate(0) translateY(0);
}
.navbar-toggler.collapsed .middle-bar {
  opacity: 1;
}
.navbar-toggler.collapsed .bottom-bar {
  transform: rotate(0) translateY(0);
}

.navbar-toggler:not(.collapsed) .top-bar {
  transform: rotate(45deg) translateY(7px);
}
.navbar-toggler:not(.collapsed) .middle-bar {
  opacity: 0;
}
.navbar-toggler:not(.collapsed) .bottom-bar {
  transform: rotate(-45deg) translateY(-7px);
}
/* Overlay background */
/* Overlay background */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* Konten popup */
.popup-content {
  position: relative;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  max-width: 500px; /* batas max desktop */
  width: 90%; /* fleksibel di tablet & phone */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

/* Gambar iklan */
.popup-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Tombol X (bubble red, teks pas di tengah) */
.close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px; /* lebih besar sedikit */
  height: 32px;
  border-radius: 50%;
  border: none;
  background: red;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
  padding: 0;
}

.close-btn svg {
  width: 70%; /* isi 70% dari lingkaran, tapi tidak sampai tepi */
  height: 70%;
}

.close-btn:hover {
  transform: scale(1.1);
}

/* Animasi */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsif */
@media (min-width: 768px) {
  .popup-content {
    max-width: 600px; /* tablet */
  }
}
@media (min-width: 1200px) {
  .popup-content {
    max-width: 700px; /* desktop besar */
  }
}
body {
  background: #ffffff; /* putih bersih */
  color: #333;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

h2 {
  font-weight: 600;
  color: #222;
}

.scroll-container {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 250px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.scroll-content {
  display: flex;
  gap: 30px;
  will-change: transform;
}

.scroll-content img {
  height: 158px;
  width: 200px; /* ukuran seragam */
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.scroll-container {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}
.scroll-row {
  display: flex;
  gap: 30px;
}
.scroll-row img {
  width: 200px;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
}
.scroll-container.reverse {
  transform: scaleX(-1); /* balik seluruh baris secara horizontal */
}

/* Karena container dibalik, kebalikan gambar agar tidak terbalik */
.scroll-container.reverse .scroll-row img {
  transform: scaleX(-1); /* balik ulang setiap gambar */
}
@media (max-width: 768px) {
  .scroll-row img,
  .scroll-content img {
    width: 300px;
    height: 200px;
  }
  .scroll-container {
    height: 200px;
    padding: 12px;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .scroll-row img,
  .scroll-content img {
    width: 250px;
    height: 150px;
  }
  .scroll-container {
    height: 160px;
    padding: 10px;
    gap: 20px;
  }
}
.menu-list {
  list-style-type: disc; /* tampilkan titik bullet */
  padding-left: 20px; /* beri indentasi */
  margin: 0;
}

.menu-list li {
  margin-bottom: 6px; /* jarak antar menu */
}

.menu-list a {
  text-decoration: none; /* hilangkan garis bawah */
  color: #f8f9fa; /* tetap putih (link-light) */
  transition: color 0.2s;
}

.menu-list a:hover {
  color: #ffc107; /* warna hover kuning misalnya */
}
/* ===== Counter Section ===== */
#counters {
  padding: 60px 0;
  background: #f8f9fa;
}

#counters .counter-box {
  margin-bottom: 30px;
}

#counters .counter-box h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #198754; /* Bootstrap success */
  margin-bottom: 10px;
  line-height: 1;
}

#counters .counter-box .counter {
  display: inline-block;
  min-width: 2.5ch; /* cegah loncat layout saat angka bertambah */
}

#counters .counter-box p {
  font-size: 1rem;
  color: #555;
  margin: 0;
}

/* Efek kecil saat selesai menghitung */
#counters .counter-done {
  animation: pop 260ms ease-out;
}
@keyframes pop {
  0% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
/* Timeline */
.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  overflow-x: auto;
  padding-bottom: 20px;
}

/* Item */
.timeline-item {
  min-width: 250px;
  position: relative;
  padding-top: 30px;
  text-align: left; /* rata kiri */
}

/* Dot sejajar dengan garis */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background: #198754;
  border-radius: 50%;
  z-index: 2;
}

/* Garis horizontal (desktop) */
.timeline-line {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: #198754;
  z-index: 1;
}

/* Text */
.timeline-year {
  font-weight: bold;
  font-size: 1.25rem;
  color: #198754;
  margin-bottom: 8px;
}
.timeline-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* RESPONSIVE: Vertical di HP */
@media (max-width: 767px) {
  .timeline {
    flex-direction: column;
    gap: 30px;
  }

  /* Garis vertikal di sisi kiri */
  .timeline-line {
    top: 0;
    left: 7px; /* sejajar dengan dot */
    width: 2px;
    height: 100%;
  }

  /* Dot pindah ke kiri, tepat di garis */
  .timeline-item::before {
    left: -1px;
    top: 0;
  }

  .timeline-item {
    padding-left: 40px;
    padding-top: 0; /* ✅ teks mentok ke atas */
    text-align: left;
  }
}
/* === Wrapper Unik === */
.cvas-timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* === Garis Tengah (Desktop & Tablet) === */
.cvas-timeline {
  position: relative;
  margin: 0 auto;
}
.cvas-timeline::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #198754;
  left: 50%;
  margin-left: -2px;
}

/* === Item Umum === */
.cvas-timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}
.cvas-timeline-dot {
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background: #198754;
  border-radius: 50%;
  z-index: 2;
}
.cvas-timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
.cvas-timeline-content h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

/* === Desktop (≥ 992px) === */
@media (min-width: 992px) {
  .cvas-timeline-item.left {
    left: 0;
    text-align: right;
  }
  .cvas-timeline-item.left .cvas-timeline-dot {
    right: -10px;
  }

  .cvas-timeline-item.right {
    left: 50%;
    text-align: left;
  }
  .cvas-timeline-item.right .cvas-timeline-dot {
    left: -10px;
  }
}

/* === Tablet (768px – 991px) === */
@media (min-width: 768px) and (max-width: 991px) {
  .cvas-timeline::after {
    left: 50%;
  }
  .cvas-timeline-item {
    width: 100%;
    left: 0;
    padding-left: 80px;
    text-align: left !important;
  }
  .cvas-timeline-item .cvas-timeline-dot {
    left: 40px;
    right: auto;
  }
}

/* === Phone (≤ 767px) === */
@media (max-width: 767px) {
  .cvas-timeline::after {
    left: 25px;
  }
  .cvas-timeline-item {
    width: 100%;
    left: 0;
    padding-left: 60px;
    padding-right: 20px;
    text-align: left !important;
  }
  .cvas-timeline-item .cvas-timeline-dot {
    left: 15px;
    right: auto;
  }
}
/* === Marketplace Section === */
.marketplace-section {
  background: #f9fafb;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  justify-items: center;
}

.marketplace-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  width: 100%;
  max-width: 200px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.marketplace-card img {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
}

.marketplace-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
/* === Layanan Kami Section === */
.layanan-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: none;
}

.layanan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.layanan-card i {
  color: #198754;
  transition: transform 0.3s ease, color 0.3s ease;
}

.layanan-card:hover i {
  transform: scale(1.2);
  color: #157347;
}
.marketplace-card a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.marketplace-card a:hover {
  transform: scale(1.08);
}
.category-img {
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.category-card {
  transition: all 0.3s ease;
  position: relative;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-card .btn-sm {
  font-size: 0.85rem;
  padding: 6px 12px;
  transition: all 0.3s ease;
}

.category-card .btn-sm:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
/* ===== Styles khusus Jasa Pembelian ===== */
.service-card {
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
  border-radius: 12px;
  padding: 18px;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.28s;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(18, 38, 63, 0.06);
  outline: none;
}
.service-card:focus,
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(18, 38, 63, 0.12);
}
.icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(18, 38, 63, 0.06);
}
.btn-gradient {
  background: linear-gradient(90deg, #198754, #37c07f);
  border: 0;
  color: #fff;
}
.btn-gradient:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}
.card[data-animate] {
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.card[data-animate].in-view {
  transform: translateY(0);
  opacity: 1;
}
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: linear-gradient(90deg, #198754, #28a745);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 1060;
  transition: transform 0.2s ease;
  text-decoration: none;
}
.floating-cta:hover {
  transform: translateY(-6px);
  text-decoration: none;
  color: #fff;
}
@media (max-width: 991px) {
  .floating-cta {
    display: none !important;
  }
}
/* small improvements for inputs */
input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
  box-shadow: 0 8px 24px rgba(25, 135, 84, 0.12);
  border-color: #198754;
}
