/* Token & komponen bersama (landing page + halaman peta). Sumber: desain Figma "WEBGIS-SIG". */
:root {
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --merah: #fb4b60;
  --merah-tua: #952d39;
  --kuning: #fec631;
  --kuning-tua: #98761d;
  --hijau: #05c997;
  --hijau-tua: #02634a;
  --biru: #1a51f4;
  --biru-tua: #0f2f8e;

  --abu: #e9e9e9;
  --abu-pegangan: #d9d9d9;
  --abu-jalur: #a9a9a9;
  --abu-teks: #767676;

  /* palet kelas kerawanan (1 = sangat rendah … 5 = sangat tinggi) */
  --kelas-1: #fffbb4;
  --kelas-2: #fbe44b;
  --kelas-3: #fb944b;
  --kelas-4: #fb4b60;
  --kelas-5: #b12435;

  --bayang: 0 4px 4px rgba(0, 0, 0, .25);
  --tepi: clamp(16px, 6.95vw, 100px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); }
h1, h2, h3, h4 { margin: 0; }
button, select, input { font: inherit; color: inherit; }
img { display: block; }

/* ---------- navbar (dipakai di kedua halaman) */
.navbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 38px var(--tepi) 0; position: relative; z-index: 5;
}
.merek {
  display: inline-flex; align-items: center; gap: 19px;
  font-weight: 700; font-size: 20px; text-decoration: none; color: inherit; white-space: nowrap;
}
.merek img { width: 32px; height: 38px; }
.menu { display: flex; gap: clamp(20px, 6.9vw, 100px); margin-right: calc(92px - var(--tepi)); }
.menu a {
  font-weight: 500; font-size: 20px; text-decoration: none; color: inherit; opacity: .5;
  transition: opacity .15s ease;
}
.menu a:hover, .menu a[aria-current="page"] { opacity: 1; }
.menu a:focus-visible, .merek:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

@media (max-width: 800px) {
  .navbar { padding-top: 16px; }
  .merek { font-size: 17px; gap: 10px; }
  .merek img { width: 24px; height: 28px; }
  .menu { gap: 16px; margin-right: 0; }
  .menu a { font-size: 14px; }
}
@media (max-width: 480px) {
  .menu a[href$="#contact"] { display: none; }
}
