/* ==========================================================
   THEME URUS - gaya neo-brutalism (garis tebal, bayangan keras)
   Ganti warna cukup lewat variabel di :root
   ========================================================== */

/* Font Space Grotesk dipasang sendiri di folder theme (tanpa Google Fonts) */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:    #111111;   /* hitam: teks, garis, bayangan */
  --cream:  #f1ede2;   /* latar header, hero, footer */
  --lime:   #d8ff3d;   /* warna aksen: tombol, label */
  --white:  #ffffff;
  --muted:  #4b4b4b;
  --border: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.65 "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { background: var(--lime); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- TOMBOL (global) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--lime);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { background: var(--lime); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn-light { background: var(--white); }
.btn-light:hover { background: var(--white); }
.btn-lg { padding: 13px 26px; font-size: 16px; text-transform: uppercase; letter-spacing: .3px; }
.wa-ico { flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: var(--border);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}
.brand:hover { background: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-left: auto; }
.nav a {
  padding: 7px 14px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover { background: none; border-color: var(--ink); }
.nav a.btn {
  padding: 9px 18px;
  border: var(--border);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
}
.nav a.btn:hover { background: var(--lime); border-color: var(--ink); box-shadow: 1px 1px 0 var(--ink); }

/* Tombol hamburger (hanya tampil di layar kecil) */
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 10px 9px;
  background: var(--lime);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--ink); transition: transform .15s, opacity .15s; }
.nav-toggle:active { transform: translate(3px, 3px); box-shadow: none; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }

.nav a.active {
  background: var(--lime);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 84px;
  text-align: center;
  background: var(--cream);
}
.hero-kicker {
  min-height: 1.6em;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.cursor { margin-left: 2px; animation: kedip 1s steps(1) infinite; }
@keyframes kedip { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

.hero h1 {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: clamp(34px, 7vw, 60px);
  letter-spacing: -1px;
  line-height: 1.08;
}
.hero p { max-width: 620px; margin: 0 auto 30px; font-size: 18px; font-weight: 600; }
.hero .hero-kicker { max-width: none; margin: 0 0 14px; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* Angka di bawah tombol hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 56px;
  margin-top: 48px;
}
.stat { max-width: 150px; text-align: center; }
.stat b { display: block; font-size: clamp(30px, 5vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -1px; }
.stat span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--muted); }

/* ---------- Bagian-bagian beranda ---------- */
.section { padding: 72px 0; scroll-margin-top: 70px; }
.section-alt { background: var(--cream); border-top: var(--border); border-bottom: var(--border); }
.section-title { font-size: clamp(26px, 4vw, 38px); text-align: center; }
.section-desc { max-width: 560px; margin: 0 auto 40px; text-align: center; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

/* ---------- Kartu (global) ---------- */
.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Layanan */
.service { display: flex; flex-direction: column; overflow: hidden; }
.service-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: var(--lime);
  border-bottom: var(--border);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
}
.service:nth-child(3n+2) .service-art { background: #bfe3ff; }
.service:nth-child(3n+3) .service-art { background: #ffd1dc; }
.service-body { flex: 1; padding: 20px 22px 18px; }
.service-body h3 { font-size: 20px; margin-bottom: 8px; }
.service-body p { margin: 0; color: var(--muted); }
.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 22px 18px;
  border-top: var(--border);
}
.price { font-size: 22px; font-weight: 700; }

/* Portofolio */
.pf { display: block; overflow: hidden; text-decoration: none; transition: transform .08s, box-shadow .08s; }
.pf:hover { background: var(--white); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.pf-thumb {
  aspect-ratio: 16 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: repeating-linear-gradient(45deg, var(--cream) 0 10px, #e9e4d6 10px 20px);
  border-bottom: var(--border);
  font-weight: 700;
  text-align: center;
}
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-body { padding: 18px 22px 22px; }
.pf-body h3 { font-size: 19px; margin-bottom: 6px; }
.pf-body p { margin: 0; color: var(--muted); font-size: 15px; }

.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 1px 9px;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Ajakan kontak */
.cta { background: var(--lime); text-align: center; border-top: var(--border); }
.cta h2 { font-size: clamp(26px, 4vw, 38px); }
.cta p { margin: 0 0 26px; font-weight: 600; }

/* ---------- Halaman blog & artikel ---------- */
.page { padding-top: 44px; padding-bottom: 64px; min-height: 50vh; }
.page-title { font-size: 30px; margin-bottom: 28px; }
.meta { margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.meta a { color: var(--muted); }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { display: block; aspect-ratio: 16 / 10; background: var(--cream); border-bottom: var(--border); }
.post-thumb:hover { background: var(--cream); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 18px 22px 22px; }
.post-card h2 { font-size: 20px; }
.post-card h2 a { text-decoration: none; }
.excerpt { color: var(--muted); font-size: 15px; }
.excerpt p { margin: 0 0 8px; }

.breadcrumbs { margin-bottom: 14px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 600; }

.article { max-width: 760px; margin: 0 auto; }
.article-title { font-size: clamp(28px, 5vw, 42px); letter-spacing: -.5px; }
.article-image { margin: 0 0 26px; }
.article-image img { display: block; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.article-body { font-size: 17px; overflow-wrap: break-word; }
.article-body h2 { margin-top: 1.8em; padding-top: .6em; border-top: var(--border); }
.article-body img { border: var(--border); border-radius: var(--radius); }
.article-body blockquote { margin: 1.2em 0; padding: 4px 20px; background: var(--cream); border-left: 6px solid var(--ink); }
.article-body pre { padding: 14px; overflow-x: auto; background: var(--ink); color: #f1ede2; border-radius: var(--radius); }
.article-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }
.article-tags { margin-top: 30px; padding-top: 14px; border-top: var(--border); color: var(--muted); font-size: 14px; }

.article-body :not(pre) > code {
  padding: 1px 6px;
  margin-right: 6px;
  margin-left: 4px;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: .88em;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Navigasi artikel: [<]  [Komentar (N)]  [>] */
.post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 36px auto 0;
}
.post-nav-prev { grid-column: 1; justify-self: start; }
.post-nav-comment { grid-column: 2; }
.post-nav-next { grid-column: 3; justify-self: end; }
.btn.is-loading { opacity: .7; cursor: wait; }

/* Bagian komentar */
.comments { max-width: 760px; margin: 28px auto 0; padding: 22px; scroll-margin-top: 80px; }
.comments[hidden] { display: none; }
.comments-title { font-size: 22px; margin: 0 0 12px; }
.comments-status { margin: 0 0 12px; font-weight: 600; }
.comments-status:empty { display: none; }

.pagination { margin-top: 36px; }
.pagination ul, .pagination ol { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pagination a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--lime);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.pagination a:hover { background: var(--lime); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.notice { text-align: center; padding: 60px 0; }
.notice h1 { font-size: 44px; }
.search-form { display: flex; gap: 10px; max-width: 380px; margin: 18px auto 0; }
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 14px;
  border: var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); border-top: var(--border); padding-top: 44px; }
.site-footer h3 {
  margin-bottom: 14px;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.site-footer p { margin: .4em 0 0; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; }
.footer-about { max-width: 420px; }
.copyright { padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(17, 17, 17, .2); text-align: center; font-size: 14px; }

/* ---------- Layar kecil ---------- */
@media (max-width: 760px) {
  .nav { margin-left: 0; width: 100%; order: 3; }
  .js .nav-toggle { display: inline-flex; flex-direction: column; }
  .js .nav { display: none; flex-direction: column; align-items: stretch; gap: 6px; padding-top: 8px; }
  .js .site-header.open .nav { display: flex; }
  .js .nav a { padding: 11px 14px; }
  .js .nav a.btn { justify-content: center; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 52px 0; }
  .hero p { font-size: 16px; }
}

/* ---------- Halaman Daftar Isi ---------- */
.daftar-total { margin: 0 0 18px; padding-bottom: 12px; border-bottom: var(--border); }
.daftar-batch { margin: 0; padding-left: 34px; }
.daftar-batch li { padding: 5px 0; line-height: 1.45; }
.daftar-batch li::marker { font-weight: 700; }
.daftar-batch a { text-decoration: none; }
.daftar-more { margin: 26px 0 0; text-align: center; }

/* Ruang Lingkup */
.scope-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.scope { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; }
.scope-no {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--lime);
  border: var(--border);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
}
.scope h3 { font-size: 18px; margin-bottom: 6px; }
.scope p { margin: 0; color: var(--muted); font-size: 15px; }

@media (max-width: 760px) {
  .scope-grid { grid-template-columns: 1fr; }
}