:root {
  --green: #2ecc71;
  --dark-green: #2d9719;
  --yellow: #f1c40f;
  --orange: #f39c12;
  --dark: #1f2933;
  --light: #f9fafb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif
}

body {
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

img {
  max-width: 100%;
  display: block
}

/* NAVBAR */
/* ================= NAVBAR FLOATING ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 16px 18px;
}

.nav-wrapper {
  max-width: 1400px;
  margin: auto;
  padding: 0 20px;
}

.nav {
  background: #f9fffbf2;
  border-radius: 18px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;

  transition: all .35s ease;
  /* ✨ penting */
}

/* ===== NAVBAR SAAT SCROLL ===== */
.header.scrolled .nav {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* opsional: teks jadi lebih gelap */
.header.scrolled .menu a {
  color: #333;
}

.header.scrolled .menu a:hover {
  color: var(--green);
}


/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--dark-green);
}

.logo img {
  height: 38px;
  width: auto;
  max-width: 100%;
}

/* MENU */
.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu li {
  list-style: none;
  position: relative;
}

.menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}

.menu a:hover {
  color: var(--green);
}

/* DROPDOWN */
.dropdown {
  position: absolute;
  top: 140%;
  left: 0;
  background: #fff;
  border-radius: 14px;
  min-width: 220px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .3s ease;
}

/* Hover bridge to keep dropdown open */
.dropdown::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
}

.dropdown a {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
}

.dropdown a:hover {
  background: #f2fff7;
}

.menu li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* CTA */
.cta {
  background: #2d9719;
  padding: 11px 20px;
  border-radius: 12px;
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(45, 151, 25, 0.28);
}

.cta:hover {
  background: #25801a;
}

/* ===== DROPDOWN ARROW ===== */
.has-dropdown>a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.has-dropdown i {
  font-size: 10px;
  transition: .3s ease;
}

/* panah muter saat hover */
.has-dropdown:hover i {
  transform: rotate(180deg);
}

/* opsional: hover warna */
.has-dropdown:hover>a {
  color: var(--green);
}

@media (max-width: 1366px) {

  /* NAVBAR */
  .menu {
    gap: 28px;
  }

  .menu a {
    font-size: 14px;
  }

  .nav {
    padding: 18px 22px;
  }

  /* HERO */
  .hero h1 {
    font-size: 38px;
  }

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

  /* SECTION */
  section {
    padding: 80px 20px;
  }
}

/* ================= MOBILE NAVBAR ================= */
.menu-toggle {
  display: none;
  font-size: 22px;
  color: #1e8449;
  cursor: pointer;
}

/* MOBILE + TABLET (hamburger) */
@media (max-width: 991px) {

  .menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, .12);
    padding-bottom: 8px;
    display: none;
  }

  .menu li {
    width: 100%;
  }

  .menu a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
  }

  /* Sembunyikan dropdown secara native di mobile */
  .menu li .dropdown {
    display: none !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    padding-left: 14px;
  }

  /* Tampilkan hanya saat diklik dan JS menambah class .open */
  .menu li.open .dropdown {
    display: block !important;
  }
  
  .menu li.open i {
    transform: rotate(180deg);
  }

  .menu-toggle {
    display: block;
  }

  /* MENU AKTIF */
  .menu.active {
    display: flex;
  }

  .menu .cta {
    width: calc(100% - 44px);
    margin: 16px auto 12px auto;
    text-align: center;
    border-radius: 14px;
    padding: 14px 0;
    font-size: 14px;
  }
}