/* assets/style.css - VERSI PREMIUM MERGED (25 Nov 2025) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f4f5f7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* TOP BAR */
.top-bar {
  background: #333;
  color: #f5f5f5;
  font-size: 13px;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.top-left { display: none; }
.top-right { display: flex; align-items: center; gap: 14px; }
.btn-small {
  background: #7cc611;
  border-radius: 2px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  transition: background 0.3s ease;
}
.btn-small:hover { background: #6ab00f; }

/* HEADER */
header {
  background: #ffffff;
  border-bottom: 1px solid #e1e4ea;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e1e4ea;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text span:first-child {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2c7b16;
}
.logo-text span:last-child {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #555;
}

/* HAMBURGER ICON */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 6px;
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.35s ease;
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========================= */
/*   NAV DESKTOP (PREMIUM)   */
/* ========================= */

nav ul {
  list-style: none;
  display: flex;
  gap: 10px; /* Rapat spacing */
  align-items: center;
  font-size: 14px;
}
nav li { position: relative; }

/* Bubble premium effect */
nav a {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: #333;
  display: block;
  padding: 6px 10px; /* Kecilkan padding */
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transition:
    color 0.3s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

nav a:hover {
  color: #2c7b16;
  background: #f4f7f5;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* ▼ arrow untuk menu ada submenu */
.has-submenu > a::after {
  content: " ▼";
  font-size: 9px;
  margin-left: 4px;
  display: inline-block;
  transform: translateY(-1px);
  opacity: 0.7;
}

.has-submenu > a { cursor: pointer; }

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
  border-top: 2px solid #7cc611;
}
.submenu li { padding: 8px 16px; margin: 0; }
.submenu li a {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: #333;
  display: block;
  width: 100%;
  padding: 4px 0;
  transition: all 0.2s ease;
}
.submenu li a:hover {
  color: #2c7b16;
  background: #f8f9fa;
  padding-left: 20px;
}
@media (min-width: 901px) {
  .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ========================= */
/*     MOBILE RESPONSIVE     */
/* ========================= */

@media (max-width: 900px) {

  .nav-container { padding-inline: 16px; }
  .nav-toggle { display: flex; }

  nav ul {
    position: fixed;
    top: 63px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid #e1e4ea;
    display: none;
    max-height: calc(100vh - 63px);
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
    transition: all 0.3s ease;
  }

  nav ul.show {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  nav li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  nav a {
    padding: 12px 0;
    font-size: 14px;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  nav a:hover {
    background: #f8f9fa;
    transform: none;
  }

  /* MOBILE SUBMENU ▼ ▲ */
  .submenu {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-submenu.active .submenu {
    display: block;
    max-height: 500px;
  }

  .has-submenu > a::after {
    content: " ▼";
    font-size: 11px;
    margin-left: 6px;
    float: right;
    transition: transform 0.3s ease;
  }

  .has-submenu.active > a::after {
    content: " ▲";
  }

  .submenu li { padding: 0; border-bottom: none; }

  .submenu li a {
    font-size: 13px;
    padding: 10px 0 10px 20px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
  }

  .submenu li a:hover {
    background: #e9ecef;
    border-left-color: #2c7b16;
    padding-left: 25px;
  }

  .footer-inner { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 600px) {
  .top-bar { padding: 6px 15px; font-size: 12px; justify-content: center; }
  .logo-text span:first-child { font-size: 16px; }
  .logo-text span:last-child { font-size: 10px; }
  .nav-container { padding: 10px 16px; }
}

/* PAGE & FOOTER */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 20px 60px; }
.page-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.page-card h1 { font-size: 24px; margin-bottom: 16px; color: #2c7b16; }
.page-card p { font-size: 14px; color: #444; margin-bottom: 12px; line-height: 1.7; }

footer {
  background: #22282d;
  color: #bfc6ce;
  padding: 20px;
  font-size: 12px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-inner a { color: #e5f8cf; }
