:root {
  --brand: #f26b1d;
  --brand-dark: #d65a12;
  --ink: #2a1608;
  --muted: #7a6a5f;
  --bg: #fdf8f4;
  --line: #eee4dc;
  --ok: #1f9d55;
  --ok-bg: #e6f7ee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 10px; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-weight: 400; }
.grow { flex: 1; }
.btn-block { width: 100%; }

/* HEADER */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-weight: 800; font-size: 26px; letter-spacing: -0.5px; text-decoration: none; }
.nav .link { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 0; }
.nav .link.active { color: var(--brand); border-bottom: 2px solid var(--brand); }
.spacer { flex: 1; }

/* BUTTON */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-ghost { background: none; color: var(--ink); }
.btn-outline { background: #fff; border: 1.5px solid var(--brand); color: var(--brand); }

/* HERO */
.hero {
  margin: 20px 0 0;
  background: linear-gradient(120deg, #fde3cc, #fbc79b);
  border-radius: 20px;
  padding: 44px 40px;
}
.hero h1 { font-family: Georgia, serif; font-size: 44px; line-height: 1.1; margin-bottom: 10px; color: #3d1a05; }
.hero p { font-size: 17px; color: #5b3517; margin-bottom: 22px; }
.search {
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  max-width: 640px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.search input { flex: 1; border: 0; outline: 0; font-size: 16px; padding: 0 14px; font-family: inherit; background: none; }

/* KATEGORI */
h2.section { font-size: 20px; margin: 34px 0 14px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 10px;
  text-align: center;
  text-decoration: none;
  transition: 0.15s;
  display: block;
}
.cat:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06); }
.cat.active { border-color: var(--brand); background: #fff4ec; }
.cat .ic { font-size: 28px; display: block; margin-bottom: 6px; }
.cat .nm { font-size: 13px; font-weight: 600; display: block; }
.cat .sub { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }

/* LAYOUT */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-top: 10px; }
.filter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 90px;
}
.filter-head { display: flex; justify-content: space-between; align-items: center; }
.filter h3 { font-size: 16px; }
.filter h4 { font-size: 14px; margin-bottom: 6px; }
.filter label { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 8px 0; cursor: pointer; }
.filter .reset { color: var(--brand); font-size: 13px; text-decoration: none; }
.filter hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.filter .btn { margin-top: 14px; }

.results-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; gap: 12px; }
.results-title { font-size: 20px; }
.count { color: var(--muted); font-size: 13px; }
select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-family: inherit; background: #fff; }

/* KARTU */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card .top { display: flex; gap: 12px; align-items: center; }
.card h4 { font-size: 16px; }
.role { color: var(--muted); font-size: 13px; margin-top: 2px; }
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f3d9c4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #8a4a1f;
  font-size: 18px;
  flex-shrink: 0;
}
.avatar-lg { width: 72px; height: 72px; font-size: 24px; }
.badge {
  display: inline-block;
  font-size: 12px;
  background: var(--ok-bg);
  color: var(--ok);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-off { background: #f3f0ee; color: var(--muted); }
.rating { font-size: 14px; font-weight: 700; }
.price { font-weight: 700; font-size: 15px; }
.price small { color: var(--muted); font-weight: 400; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; background: #f5efe9; padding: 3px 8px; border-radius: 8px; color: #5b4536; }
.card .btn { margin-top: auto; }
.empty { color: var(--muted); padding: 40px; text-align: center; grid-column: 1 / -1; }

/* PROFIL */
.back { margin: 20px 0 0; }
.back a { color: var(--brand); text-decoration: none; font-weight: 600; }
.profile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  max-width: 640px;
  margin: 16px auto 0;
}
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.profile-head h2 { font-size: 22px; }
.profile h3 { font-size: 15px; margin: 18px 0 8px; }
.svc {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.actions { display: flex; gap: 10px; margin-top: 22px; }
.actions .btn { flex: 1; }

/* LAIN-LAIN */
.section-block { margin-top: 50px; }
.steps { line-height: 1.8; padding-left: 20px; }
.center { text-align: center; }
.site-footer { margin: 50px 0 30px; color: var(--muted); font-size: 13px; text-align: center; }
.proto {
  display: inline-block;
  background: #fff4ec;
  color: var(--brand-dark);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 50;
}

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .filter { position: static; }
  .hero { padding: 28px 22px; }
  .hero h1 { font-size: 30px; }
  .hide-sm { display: none; }
  .results-head { flex-direction: column; align-items: stretch; }
}
