/* ---------------------------------------------
   DiPStrategy -- Hamburger Drawer
   style/hamburger.css
   Right slide-in drawer panel
   --------------------------------------------- */

.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0);
  z-index: 190; pointer-events: none;
  transition: background 0.4s ease;
}

.drawer-overlay.open { background: rgba(0,0,0,0.5); pointer-events: all; }

.drawer {
  position: fixed; top: 0; right: 0;
  width: 380px; height: 100vh;
  background: #05213F;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 195; transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
  padding: 100px 48px 48px; overflow-y: auto;
}

.drawer.open { transform: translateX(0); }

.drawer-nav-desktop { display: flex; flex-direction: column; gap: 0; }
.drawer-nav-mobile  { display: none;  flex-direction: column; gap: 0; }

.drawer-label {
  font-family: 'Barlow', sans-serif;
  font-weight: 500; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px; margin-top: 32px;
}

.drawer-label:first-child { margin-top: 0; }

.drawer-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200; font-size: 26px;
  letter-spacing: -0.02em; color: rgba(255,255,255,0.75);
  text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s, padding-left 0.2s;
  display: flex; align-items: center; gap: 10px;
}

.drawer-link:last-child { border-bottom: none; }
.drawer-link:hover { color: #DEFF2D; padding-left: 8px; }
.drawer-link img { width: 22px; height: 22px; opacity: 0.85; }

.drawer-cta {
  margin-top: auto; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.drawer-cta p {
  font-family: 'Barlow', sans-serif; font-size: 12px;
  color: rgba(255,255,255,0.35); line-height: 1.6; margin-bottom: 16px;
}

.drawer-cta a {
  display: block; font-family: 'Barlow', sans-serif; font-size: 13px;
  color: rgba(255,255,255,0.5); text-decoration: none;
  padding: 6px 0; transition: color 0.2s;
}

.drawer-cta a:hover { color: #DEFF2D; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .drawer-nav-desktop { display: none; }
  .drawer-nav-mobile  { display: flex; }
  .drawer { width: 100%; }
}

/* --- ACCORDION SUBMENU --- */
.drawer-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.drawer-chevron {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.4);
  transition: transform 0.3s ease;
}

.drawer-accordion-btn.open .drawer-chevron {
  transform: rotate(180deg);
}

.drawer-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  margin: 0 0 4px;
}

.drawer-submenu.open {
  /* max-height set via JS */
}

.drawer-submenu-group {
  padding: 12px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.drawer-submenu-group:last-child { border-bottom: none; }

.drawer-submenu-header {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #DEFF2D;
  display: block; margin-bottom: 8px;
}

.drawer-submenu-link {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-weight: 400; font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s, padding-left 0.15s;
}

.drawer-submenu-link:hover {
  color: #fff;
  padding-left: 6px;
}

/* Submenu tanpa group (Industries, About) */
.drawer-submenu > .drawer-submenu-link {
  padding: 10px 16px;
}

.drawer-submenu > .drawer-submenu-link:first-child { padding-top: 14px; }
.drawer-submenu > .drawer-submenu-link:last-child  { padding-bottom: 14px; }
