:root {
  --ldc-green: #1f7a3d;
  --ldc-green-dark: #145a2b;
  --ldc-green-light: #eaf6ee;
  --ldc-dark: #101613;
  --ldc-text-muted: #5c6b63;
  --ldc-radius: 14px;
  --ldc-shadow: 0 10px 30px rgba(16, 22, 19, 0.08);
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  color: #1c231e;
  background: #fff;
}

h1, h2, h3, h4, .display-font {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-ldc-green { color: var(--ldc-green) !important; }
.bg-ldc-green { background-color: var(--ldc-green) !important; }
.bg-ldc-dark { background-color: var(--ldc-dark) !important; }
.bg-ldc-light { background-color: var(--ldc-green-light) !important; }

.btn-ldc {
  background: var(--ldc-green);
  border-color: var(--ldc-green);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.65rem 1.4rem;
  transition: all 0.2s ease;
}
.btn-ldc:hover { background: var(--ldc-green-dark); border-color: var(--ldc-green-dark); color: #fff; }

.btn-outline-ldc {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.35rem;
}
.btn-outline-ldc:hover { background: #fff; color: var(--ldc-dark); }

/* Navbar */
.navbar-ldc { padding-top: 0.9rem; padding-bottom: 0.9rem; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.navbar-ldc .nav-link { font-weight: 600; color: #1c231e; }
.navbar-ldc .nav-link.active, .navbar-ldc .nav-link:hover { color: var(--ldc-green); }
.topbar-info { background: var(--ldc-dark); color: #cfe9d8; font-size: 0.85rem; }
.topbar-info a { color: #cfe9d8; text-decoration: none; }

/* Hero */
.hero-section {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero-section::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,20,13,0.88) 0%, rgba(10,20,13,0.55) 55%, rgba(10,20,13,0.25) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
}

.calc-card {
  background: #fff; color: #1c231e; border-radius: var(--ldc-radius); box-shadow: var(--ldc-shadow);
  padding: 1.5rem;
}

/* Cards */
.ldc-card {
  border: none; border-radius: var(--ldc-radius); box-shadow: var(--ldc-shadow);
  overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; height: 100%;
}
.ldc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,22,19,0.14); }
.ldc-card img { height: 190px; object-fit: cover; width: 100%; }

.icon-tile {
  width: 56px; height: 56px; border-radius: 14px; background: var(--ldc-green-light);
  display: flex; align-items: center; justify-content: center; color: var(--ldc-green); font-size: 1.4rem;
}

.counter-number { font-size: 2.4rem; font-weight: 800; color: var(--ldc-green); }

/* Footer */
footer.site-footer { background: var(--ldc-dark); color: #b9c4bd; }
footer.site-footer a { color: #b9c4bd; text-decoration: none; }
footer.site-footer a:hover { color: #fff; }

/* Floating action buttons (WhatsApp, phone, email) */
.floating-actions {
  position: fixed; right: 22px; bottom: 22px; z-index: 1050;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.wa-float {
  position: static;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(37,211,102,0.45); animation: wa-pulse 2.2s infinite;
  transition: transform 0.2s ease;
}
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-float.fab-secondary {
  width: 46px; height: 46px; font-size: 1.2rem;
  background: var(--ldc-dark); box-shadow: 0 6px 16px rgba(16,22,19,0.35); animation: none;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Section spacing */
.section { padding: 5rem 0; }
.section-eyebrow { color: var(--ldc-green); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }

/* Premium feature cards: icon tile, glow border, zoom-on-hover image */
.feature-card {
  position: relative; border: none; border-radius: var(--ldc-radius);
  background: #fff; box-shadow: var(--ldc-shadow); overflow: hidden;
  padding: 1.75rem; height: 100%; transition: transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, var(--ldc-green), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease; z-index: -1;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(16,22,19,0.16); }
.feature-card:hover::before { opacity: 1; }
.feature-card .feature-icon {
  width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; background: var(--ldc-green-light); color: var(--ldc-green); margin-bottom: 1rem;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); background: var(--ldc-green); color: #fff; }
.feature-card .feature-img { overflow: hidden; border-radius: 12px; margin-bottom: 1rem; }
.feature-card .feature-img img { transition: transform .4s ease; }
.feature-card:hover .feature-img img { transform: scale(1.08); }
.feature-card .badge-corner {
  position: absolute; top: 14px; right: 14px; font-size: .7rem; font-weight: 700;
  background: var(--ldc-green); color: #fff; padding: .25rem .6rem; border-radius: 999px;
}

/* Marquee logo klien
   - Setiap logo diberi "chip" berlatar abu terang + border sehingga logo
     berwarna putih / transparan TETAP TERLIHAT (tidak hilang di background putih).
   - Default grayscale, hover -> full color (dan animasi berhenti).
   - Ukuran otomatis (object-fit: contain), tidak pernah blur karena tidak
     di-upscale melebihi tinggi natural. */
.logo-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee-track { display: flex; gap: 1.25rem; width: max-content; animation: marquee 26s linear infinite; align-items: center; will-change: transform; }
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-marquee-track img {
  height: 64px;
  max-height: 64px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  padding: .65rem 1.1rem;
  background: #eef2ef;
  border: 1px solid #e2e8e3;
  border-radius: 12px;
  opacity: .85;
  filter: grayscale(1);
  transition: opacity .25s ease, filter .25s ease, box-shadow .25s ease, background .25s ease;
}
.logo-marquee-track img:hover {
  opacity: 1;
  filter: grayscale(0);
  background: #fff;
  box-shadow: 0 8px 20px rgba(16,22,19,.10);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* Hero video background (fallback otomatis ke background-image bila gagal) */
.hero-video-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-section::before { z-index: 1; }

/* Testimoni: avatar foto, bintang rating, logo perusahaan */
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ldc-green-light); flex: 0 0 auto; }
.testi-stars { color: #f5b301; font-size: .95rem; letter-spacing: 1px; }
.testi-company-logo { height: 30px; max-width: 110px; object-fit: contain; }

/* Loading screen */
#ldc-loader {
  position: fixed; inset: 0; background: var(--ldc-dark); z-index: 9999;
  display: flex; align-items: center; justify-content: center; transition: opacity 0.4s ease;
}
#ldc-loader.hide { opacity: 0; pointer-events: none; }
.loader-leaf { width: 46px; height: 46px; border: 4px solid rgba(255,255,255,0.15); border-top-color: var(--ldc-green); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 767px) {
  .hero-section { min-height: auto; padding: 6rem 0 3rem; }
  .section { padding: 3rem 0; }
}

/* ==========================================================
   ICON CLOSE (X) - konsisten, jelas di desktop & mobile
   ========================================================== */
.ldc-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #495057;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
  flex: 0 0 auto;
}
.ldc-close i,
.ldc-close .bi {
  font-size: 18px;
  font-weight: 600;
  -webkit-text-stroke: .4px currentColor; /* bi-x-lg tampil lebih tegas */
}
.ldc-close:hover,
.ldc-close:focus-visible {
  background: #f5f5f5;
  border-radius: 6px;
  color: #dc3545;
  outline: none;
}
.ldc-close-alert {
  position: absolute;
  top: 50%;
  right: .75rem;
  transform: translateY(-50%);
}
.alert-dismissible { padding-right: 3.25rem; }

/* Fallback: btn-close bawaan Bootstrap yang ikonnya rusak/kotak */
.btn-close {
  background-image: none !important;
  font-size: 0;
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  opacity: 1;
  transition: background .15s ease, color .15s ease;
  color: #495057;
}
.btn-close::before {
  content: "\f659"; /* bootstrap-icons: bi-x-lg */
  font-family: "bootstrap-icons";
  font-size: 18px;
  font-weight: 600;
  line-height: 32px;
  display: block;
  color: inherit;
}
.btn-close:hover,
.btn-close:focus {
  background: #f5f5f5;
  border-radius: 6px;
  color: #dc3545;
  box-shadow: none;
}
