:root {
  --bg-color: #252525;
  --basic-color: #F9F9F9;
  --grey-light-button: #ececec;
  --grey-button: #999999;
  --rgb-grey-button: rgba(255, 255, 255, 0.4);
  --box-shadow: rgba(0, 0, 0, 0.1);
  --wa-button: #158b42;
  --wa-button-dark: #1a5d3b;
}

/* --- UTILITIES & COMMON BUTTONS --- */
.link-disabled {
  cursor: not-allowed;
  opacity: 0.4;
  color: var(--grey-button) !important;
  text-decoration: none;
}

.btn-wa {
  display: inline-block;
  text-align: center;
  padding: 12px 24px;
  background: var(--wa-button);
  color: #fff !important;
  text-decoration: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: all .3s cubic-bezier(.175,.885,.32,1.275);
}

.btn-wa:hover {
  transform: scale(.98);
  background: var(--wa-button-dark);
}

/* --- DESKTOP HEADER NAVIGATION --- */
.desk-header {
  display: block; /* Hapus !important agar patuh pada pembungkus .desktop-view */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  background: var(--basic-color);
  border-bottom: 1px solid var(--basic-color);
  z-index: 1000;
}

.desk-header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  width: 100%;
}

.desk-header-logo {
  display: flex;
  align-items: center;
  max-width: 180px;
}

.desk-header-logo img {
  height: 40px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.desk-nav {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.desk-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

.desk-menu-item {
  position: relative;
}

.desk-menu-item > a {
  text-decoration: none;
  color: var(--bg-color);
  font-weight: 500;
  padding: 8px 0;
  line-height: 1;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.desk-menu-item > a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--bg-color);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.desk-menu-item > a:hover::before,
.desk-menu-item > a.active::before {
  width: 100%;
}

.desk-menu-item-has-children > a {
  padding-right: 18px;
}

.desk-menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--bg-color);
  border-bottom: 2px solid var(--bg-color);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.25s ease;
}

.desk-menu-item-has-children:hover > a::after {
  transform: translateY(-50%) rotate(-135deg);
}

.desk-sub-menu {
  position: absolute;
  margin-top: 15px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px); 
  background: var(--basic-color);
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 10px 30px var(--box-shadow);
  opacity: 0;
  visibility: hidden; 
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.desk-sub-menu::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

.desk-menu-item-has-children:hover > .desk-sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.desk-sub-menu li {
  list-style: none;
}

.desk-sub-menu a {
  display: block;
  padding: 8px 20px;
  text-decoration: none;
  color: var(--bg-color);
  background-color: var(--grey-light-button);
  margin-bottom: 6px;
  font-weight: 400;
  white-space: nowrap;
  border-radius: 4px;
  transition: background-color 0.5s ease;
}

.desk-sub-menu a:hover {
  background-color: var(--grey-button);
}

/* --- MOBILE NAVIGATION DRAWER --- */
@media (max-width: 768px) {
  .mob-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mob-menu-item {
    margin-bottom: 15px;
  }

  .mob-menu-link {
    text-decoration: none;
    color: #312a36;
    font-weight: 600;
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }

  .mob-menu-link.disabled {
    cursor: default;
    color: #999;
  }

  .mob-hero-container {
    padding-top: 30px; 
  }

  .mob-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 16px 20px;
    box-sizing: border-box;
    z-index: 999;
  }

  .mob-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .mob-header-logo img {
    height: 38px;
    width: auto;
    display: block;
  }

  .mob-burger-btn-wrapper {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 9999;
  }

  .mob-burger-menu-toggle {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
  }

  .mob-burger-line {
    width: 20px;
    height: 2.5px;
    background-color: #555555;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Logika Buka Tutup Hambuger Menu dikontrol class .active via JS */
  .mob-drawer-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 9998;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    padding: 80px 24px 24px;
    box-sizing: border-box;
  }

  .mob-drawer-menu.active {
    right: 0;
  }

  .mob-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9997;
    display: none;
  }

  .mob-menu-overlay.active {
    display: block;
  }

  .mob-submenu {
    display: none;
    padding-left: 20px;
    list-style: none;
    margin-top: 10px;
  }

  .mob-menu-item.has-submenu.active .mob-submenu {
    display: block;
  }

  .submenu-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #312a36;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
  }

  .mob-cta-wrapper {
    margin: 30px 0;
  }

  .mob-cta-wa {
    display: block;
    width: 100%;
    background-color: #25d366; 
    color: #ffffff;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
    transition: background 0.3s ease;
  }

  .mob-cta-wa:active {
    background-color: #1eb957;
  }

  .mob-socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center; 
  }
  
  .mob-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #312a36;
    font-size: 18px;
    text-decoration: none;
  }
}