/* ==========================================================================
   KIBALA SERVICE - UNIFIED NAVIGATION & FOOTER STYLESHEET
   Desain responsif, sinkron, mudah diakses di HP dan Komputer
   ========================================================================== */

:root {
  --nav-bg: rgba(21, 17, 13, 0.95);
  --nav-border: rgba(255, 190, 110, 0.2);
  --nav-text: #f6efe4;
  --nav-muted: #c9bda9;
  --nav-orange: #ff8c00;
  --nav-amber: #ffc83d;
  --nav-wa: #25d366;
  --nav-wa-dark: #128c7e;
  --nav-radius: 12px;
}

/* NAVBAR UTAMA */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 70px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* BRAND LOGO */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--nav-text);
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--nav-orange);
  object-fit: cover;
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text small {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--nav-muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* DESKTOP LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nav-muted);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--nav-text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--nav-amber);
  background: rgba(255, 200, 61, 0.1);
  font-weight: 700;
}

/* DROPDOWN MENU */
.nav-item {
  position: relative;
}

.nav-item .arrow {
  font-size: 9px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-item:hover .arrow,
.nav-item.open .arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 270px;
  background: #1c150e;
  border: 1px solid var(--nav-border);
  border-radius: var(--nav-radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.nav-item.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--nav-text);
  transition: background 0.15s ease, transform 0.15s ease;
}

.drop-item:hover {
  background: rgba(255, 140, 0, 0.14);
  transform: translateX(2px);
}

.drop-item.current {
  background: rgba(255, 200, 61, 0.14);
  border-left: 3px solid var(--nav-amber);
}

.drop-item .d-ic {
  font-size: 20px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.drop-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--nav-text);
  line-height: 1.2;
}

.drop-item small {
  display: block;
  font-size: 11.5px;
  color: var(--nav-muted);
  line-height: 1.25;
  margin-top: 2px;
}

/* RIGHT ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
}

.nav-btn.game {
  color: #1a1100;
  background: linear-gradient(135deg, var(--nav-amber), var(--nav-orange));
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.3);
}

.nav-btn.wa {
  color: #fff;
  background: linear-gradient(135deg, var(--nav-wa), var(--nav-wa-dark));
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* HAMBURGER TOGGLE BUTTON */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--nav-border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE DRAWER NAVIGATION */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s ease;
}

.mobile-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open .drawer-backdrop {
  opacity: 1;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #17120c;
  border-left: 1px solid var(--nav-border);
  box-shadow: -10px 0 36px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--nav-border);
  background: rgba(25, 19, 13, 0.95);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--nav-text);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nav-amber);
  margin-bottom: 6px;
  padding-left: 6px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--nav-text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.drawer-link:hover,
.drawer-link.active {
  background: rgba(255, 140, 0, 0.14);
  border-color: rgba(255, 140, 0, 0.35);
  color: var(--nav-amber);
}

.drawer-link .d-ic {
  font-size: 18px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.drawer-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--nav-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #130f0a;
}

.drawer-footer .btn {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

/* BREADCRUMB SINKRON DI HALAMAN SERVIS */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--nav-muted);
}

.breadcrumb a {
  color: var(--nav-amber);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--nav-orange);
}

.breadcrumb .sep {
  opacity: 0.5;
  font-size: 12px;
}

.breadcrumb .current {
  color: var(--nav-text);
  font-weight: 600;
}

/* UNIFIED RICH FOOTER */
.kibala-footer {
  margin-top: 60px;
  padding: 48px 0 28px;
  font-size: 14.5px;
  color: var(--nav-muted);
  border-top: 1px solid var(--nav-border);
  background: rgba(18, 14, 10, 0.96);
  position: relative;
  z-index: 10;
}

.kibala-footer .foot-wrap {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

.kibala-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.kibala-footer .foot-brand h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--nav-text);
  margin: 0 0 10px;
}

.kibala-footer .foot-brand p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.kibala-footer h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--nav-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}

.kibala-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kibala-footer a {
  color: var(--nav-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.kibala-footer a:hover {
  color: var(--nav-amber);
}

.kibala-footer .foot-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.kibala-footer .foot-bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.kibala-footer .foot-bottom a:hover {
  color: var(--nav-amber);
}

/* MEDIA QUERIES UNTUK RESPONSIVE */
@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .kibala-footer .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .brand-text small {
    display: none;
  }
  .nav-btn.game {
    display: none;
  }
  .nav-btn.wa span {
    display: none;
  }
  .nav-btn.wa {
    padding: 8px 12px;
  }
  .kibala-footer .foot-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .kibala-footer .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
