/* RESET */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  background: #fff;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.page-main {
  flex: 1;
  width: 100%;
}

/* HEADER */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  transform: translateY(-120%);
  transition: transform .28s ease;
}

.topbar.show {
  transform: translateY(0);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}

.logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  min-width: 0;
  overflow: hidden;
}

.site-name {
  font-weight: 900;
  font-size: 15.7px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tagline {
  font-size: 15px;
  color: #666;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* NAV DESKTOP */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav > a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  line-height: 1.2;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-family: inherit;
}

.nav > a:hover,
.dropdown-toggle:hover,
.dropdown.open .dropdown-toggle {
  background: #f2f5ff;
  color: #0a58ca;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-toggle i {
  font-size: 12px;
  transition: transform .2s ease;
}

.dropdown.open .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 8px;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
  z-index: 100000;
}

.dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  color: #111;
}

.dropdown-menu a:hover {
  background: #f2f5ff;
  color: #0a58ca;
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
  z-index: 100001;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* TABLET */
@media (max-width: 1024px) {
  .topbar-inner {
    padding: 10px 14px;
  }

  .logo {
    width: 34px;
    height: 34px;
  }

  .site-name {
    font-size: 12px;
  }

  .tagline {
    font-size: 9.7px;
  }

  .nav {
    gap: 6px;
  }

  .nav > a,
  .dropdown-toggle {
    font-size: 12px;
    padding: 7px 8px;
  }

  .dropdown-menu {
    min-width: 200px;
  }

  .dropdown-menu a {
    font-size: 12px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .topbar-inner {
    padding: 10px 14px;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 52px);
    gap: 8px;
  }

  .logo {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    min-width: 0;
    overflow: hidden;
  }

  .site-name {
    font-size: 11px;
  }

  .tagline {
    font-size: 9.7px;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    z-index: 100000;
  }

  .nav.show {
    display: flex;
  }

  .nav > a,
  .dropdown-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 12px;
    text-align: left;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    min-width: 100%;
    margin-top: 4px;
    padding: 6px;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    background: #f8faff;
  }

  .dropdown-menu a {
    font-size: 13px;
    padding: 10px 12px;
    white-space: normal;
  }
}

/* HP KECIL */
@media (max-width: 480px) {
  .topbar-inner {
    padding: 9px 12px;
    gap: 8px;
  }

  .brand {
    gap: 7px;
    max-width: calc(100% - 48px);
  }

  .logo {
    width: 30px;
    height: 30px;
  }

  .site-name {
    font-size: 10px;
  }

  .tagline {
    font-size: 8.7px;
  }

  .nav {
    left: 12px;
    right: 12px;
  }

  .nav > a,
  .dropdown-toggle {
    font-size: 13px;
    padding: 11px 12px;
  }

  .dropdown-menu a {
    font-size: 12.5px;
    padding: 10px 11px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
}

/* =========================
   FOOTER PUBLIK
   ========================= */

.site-footer {
  margin-top: 0;
  background: #003b78;
  color: #fff;
}

.site-footer-top {
  background: #003b78;
  padding: 34px 24px 20px;
}

.site-footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.site-footer-col {
  min-width: 0;
}

/* KOLOM KIRI */
.site-footer-brand-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-footer-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.site-footer-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
}

.site-footer-logo-sikada {
  width: 56px;
  height: 56px;
}

.site-footer-brand-text {
  text-align: center;
}

.site-footer-brand-kicker {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}

.site-footer-brand-name {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  max-width: 360px;
  margin: 0 auto;
}

/* KOLOM TENGAH DAN KANAN */
.site-footer-contact-col,
.site-footer-social-col {
  text-align: center;
}

.site-footer-heading {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
}

.site-footer-heading::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  margin: 8px auto 14px;
}

.site-footer-text {
  font-size: 14px;
  line-height: 1.7;
  color: #fff;
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}

.site-footer-pin {
  color: #ff5a8c;
  margin-right: 4px;
}

/* SOSMED */
.site-footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.site-social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.20);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.site-social-link:hover {
  background: #f2f2f2;
  transform: translateY(-2px);
}

.site-social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* BAGIAN BAWAH */
.site-footer-bottom {
  background: #003b78;
  padding: 0 24px 22px;
}

.site-footer-bottom-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-top: 14px;
  border-top: 2px solid #ffffff;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
}

.site-footer-bottom-wrap p {
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .site-footer-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer-brand-name,
  .site-footer-text {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .site-footer-top {
    padding: 26px 16px 18px;
  }

  .site-footer-bottom {
    padding: 0 16px 18px;
  }

  .site-footer-logo {
    width: 54px;
    height: 54px;
  }

  .site-footer-logo-sikada {
    width: 48px;
    height: 48px;
  }

  .site-footer-logo-wrap {
    gap: 8px;
  }

  .site-footer-brand-kicker {
    font-size: 11px;
  }

  .site-footer-brand-name {
    font-size: 15px;
  }

  .site-footer-heading {
    font-size: 16px;
  }

  .site-footer-text,
  .site-footer-bottom-wrap {
    font-size: 13px;
  }

  .site-social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .site-social-link img {
    width: 20px;
    height: 20px;
  }
}