/* artikel-nav.css — format navbar halaman /artikel/ disamakan dengan navbar utama (beranda).
   Aturan di bawah diekstrak apa adanya dari style.css + home-editorial.css (beranda),
   khusus komponen header. Dibuat 11 Nov 2026 atas perintah akira. */

/* Variabel yang dipakai aturan header beranda */
.site-header, .mobile-modal-open {
  --header-h: 72px; --c-primary: #0f766e; --c-primary-dark: #115e59;
  --c-primary-soft: #14b8a6; --c-accent: #f59e0b; --c-ink: #0f172a;
  --c-body: #475569; --c-muted: #94a3b8; --c-surface: #ffffff;
  --c-surface-alt: #f8fafc; --c-border: #e2e8f0;
  --font-head: 'Sora', sans-serif;
  --radius-sm: 10px; --radius: 16px; --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
}

/* ===== Aturan dasar header dari style.css beranda ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
/* ===== Aturan dasar header dari style.css beranda ===== */
.site-header.scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 6px 24px rgba(15, 23, 42, .06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 44px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-text span { color: var(--c-primary); }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--c-body);
  border-radius: var(--radius-sm);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--c-primary); }
.nav-link.active { color: var(--c-primary); background: #f0fdfa; font-weight: 600; }
.nav-dropdown { position: relative; }
.nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: none;
  border: none;
  font-size: .92rem;
  font-weight: 500;
  color: var(--c-body);
  border-radius: var(--radius-sm);
  transition: color .2s ease, background .2s ease;
}
.nav-dropdown > button:hover { color: var(--c-primary); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--c-body);
}
.nav-dropdown-menu a:hover { background: var(--c-surface-alt); color: var(--c-primary); }
.nav-dropdown-menu a .ic-md { color: var(--c-primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switcher {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: #fff;
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-primary);
  transition: all .2s ease;
}
.lang-switcher:hover { border-color: var(--c-primary); background: #f0fdfa; }
.menu-btn {
  display: none;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-ink);
  transition: all .2s ease;
}
.menu-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.ic-xs { width: 14px; height: 14px; flex: none; }
.nav-link--ext .ic-xs { color: var(--c-primary-soft); }
.ic-sm { width: 16px; height: 16px; flex: none; }
.ic-md { width: 22px; height: 22px; flex: none; }
.mobile-modal-open {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.mobile-modal-card {
  background: #fff;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.mobile-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--c-border); }
.mobile-modal-head .brand { gap: 10px; }
.mobile-modal-head .close-btn { background: none; border: none; padding: 8px; color: var(--c-body); }
.mobile-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); color: var(--c-body); font-weight: 500; }
.mobile-nav-item:hover { background: var(--c-surface-alt); color: var(--c-primary); }
.mobile-nav-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px; background: none; border: none; border-radius: var(--radius-sm); color: var(--c-body); font-weight: 500; font-size: .95rem; }
.mobile-nav-submenu { display: none; flex-direction: column; gap: 2px; padding-left: 16px; }
.mobile-nav-submenu.open { display: flex; }
.mobile-nav-submenu a { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--c-body); font-size: .9rem; }
.mobile-nav-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 14px; border-radius: var(--radius); background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; font-weight: 600; }

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .header-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .brand-logo { height: 36px; }
  .brand-text { font-size: 1.05rem; }
}

/* ===== Penyesuai tema editorial beranda (home-editorial.css) ===== */
.site-header {
  background: rgba(250, 247, 240, .94);
  border-bottom: 3px double #1e1a13;
}
.site-header.scrolled { box-shadow: 0 2px 0 rgba(30, 26, 19, .08); border-bottom: 3px double #1e1a13; }
.brand-text { font-family: Georgia, 'Times New Roman', serif; color: #1e1a13; }
.brand-text span { color: #0e6b5c; }
.nav-link {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 13px;
  font-weight: 600;
  color: #5c554a;
}
.nav-link:hover, .nav-link.active { color: #1e1a13; background: rgba(30, 26, 19, .06); }
.nav-link--ext { color: #0e6b5c; }
.lang-switcher { border: 1.5px solid #1e1a13; border-radius: 3px; background: transparent; color: #1e1a13; font-family: ui-monospace, Menlo, Consolas, monospace; }
.lang-switcher:hover { background: #fffdf8; }
.menu-btn { border: 1.5px solid #1e1a13; border-radius: 3px; background: #fffdf8; color: #1e1a13; }
.nav-dropdown > button {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-weight: 600; color: #5c554a;
}
.nav-dropdown-menu { background: #fffdf8; border: 1.5px solid #1e1a13; border-radius: 3px; box-shadow: 6px 6px 0 #e2d8bf; }

/* ===== Penyesuaian khusus halaman artikel ===== */
/* Header menempel saat gulir (sticky) menggantikan fixed beranda,
   agar tata letak konten artikel tidak bergeser. */
.site-header { position: sticky; }
/* Netralkan aturan .nav milik layanan.css pada elemen nav di dalam header baru. */
.site-header .nav { position: static; background: transparent; border-bottom: none; }

/* Perbaikan 11 Nov 2026: hilangkan penanda bullet daftar pada menu header.
   Beranda menekan bullet lewat aturan global ul di style.css; halaman artikel
   tidak memuat style.css, jadi perlu aturan khusus ini. */
.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-dropdown-menu { list-style: none; margin: 0; }

/* Samakan ukuran tombol Konsultasi dengan beranda (11 Nov 2026):
   beranda memakai .btn inline-flex, font DM Sans, line-height 1.6, tanpa min-height;
   .btn layanan.css adalah inline-block, font sistem, line-height 1.7, min-height 48px. */
.site-header .header-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 0; line-height: 1.6; font-family: 'DM Sans', sans-serif; }

/* Jarak Konsultasi ke tombol EN disamakan dengan beranda (11 Nov 2026). */
.site-header .lang-switcher { margin-left: 0; }

/* Kontainer header disamakan dengan beranda: padding samping 24px (11 Nov 2026). */
.site-header .container { padding: 0 24px; }
