/* public.css — situs publik. Minimalis, compact, putih + aksen. */

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 760px; }

/* ---------- Header sticky ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s, background-color .2s;
}
.header.is-scrolled { box-shadow: 0 4px 16px rgba(15, 23, 42, .06); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; text-decoration: none; min-width: 0; }
.logo:hover { text-decoration: none; }
.logo__img { object-fit: contain; }
.logo__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: color .15s, background-color .15s; }
.nav__link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav__link.is-active { color: var(--accent); background: var(--accent-soft); }

.header__toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); align-items: center; justify-content: center; }
.header__bars, .header__bars::before, .header__bars::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.header__bars { position: relative; }
.header__bars::before, .header__bars::after { content: ''; position: absolute; left: 0; }
.header__bars::before { top: -6px; }
.header__bars::after { top: 6px; }
.header__toggle[aria-expanded="true"] .header__bars { background: transparent; }
.header__toggle[aria-expanded="true"] .header__bars::before { transform: translateY(6px) rotate(45deg); }
.header__toggle[aria-expanded="true"] .header__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .header__toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: 280px; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px 20px 20px; background: var(--bg); border-left: 1px solid var(--border); box-shadow: -16px 0 24px rgba(15, 23, 42, .08);
    visibility: hidden; opacity: 0; transform: translateX(100%); transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; position: absolute; top: 0; height: 100vh; }
  .nav { z-index: 50; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 45; height: 100vh; }
  .nav-backdrop[hidden] { display: none; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 11px 12px; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav__cta { width: 100%; height: 44px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(40px, 7vw, 72px); text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 0%, transparent 72%);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__title { max-width: 15ch; margin: 0 0 20px; font-size: clamp(2.5rem, 7.2vw + .4rem, 5.25rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.hero__sub { max-width: 54ch; margin: 0 0 28px; color: var(--muted); font-size: clamp(1rem, .5vw + .9rem, 1.1875rem); line-height: 1.6; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero__actions .btn { height: 44px; padding: 0 22px; }

/* ---------- Section ---------- */
.section { padding: clamp(40px, 6vw, 64px) 0; }
.section--tint { background: var(--surface-2); border-block: 1px solid var(--border); }
.section--flush { padding-top: 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__title { margin: 0; font-size: clamp(1.5rem, 1.4vw + 1.1rem, 2rem); letter-spacing: -.03em; }
.section__desc { margin: 6px 0 0; color: var(--muted); max-width: 56ch; }
.section__action { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.section__action i { font-size: .75rem; transition: transform .15s; }
.section__action:hover i { transform: translateX(3px); }

.page-head { padding: 28px 0 24px; }
.page-head--detail { padding-bottom: 20px; }
.page-head .section__head { margin-bottom: 20px; }

/* ---------- Grid & kartu ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; gap: 16px; } }

.card-item {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card-item:hover { transform: translateY(-3px); border-color: var(--accent-border); box-shadow: 0 10px 28px rgba(15, 23, 42, .07); }
.card-item:focus-within { border-color: var(--accent); }
.card-item__media { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; border-bottom: 1px solid var(--border); }
.card-item__media img { width: 100%; height: 100%; object-fit: cover; }
.card-item__ph {
  width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 3.5rem; letter-spacing: -.04em;
  color: color-mix(in srgb, var(--accent) 38%, #fff);
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent) 4%, #fff));
}
.card-item__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.card-item__meta { display: flex; align-items: center; gap: 10px; min-height: 22px; }
.card-item__year { color: var(--muted); font-size: .8125rem; }
.card-item__title { margin: 0; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.015em; }
.card-item__title a { color: var(--text); text-decoration: none; }
.card-item__title a::after { content: ''; position: absolute; inset: 0; } /* seluruh kartu dapat diklik */
.card-item__title a:hover { text-decoration: none; color: var(--accent); }
.card-item__text { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: auto 0 0; padding: 4px 0 0; }
.tags li { padding: 1px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: .75rem; font-weight: 500; }

/* ---------- Layanan ---------- */
.service { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.service__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-size: 1.0625rem; margin-bottom: 14px; }
.service__title { margin: 0 0 6px; font-size: 1.0625rem; letter-spacing: -.015em; }
.service__text { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }

/* ---------- Tentang ---------- */
.about__text { max-width: 68ch; }
.about--img { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.about .section__title { margin-bottom: 14px; }
@media (max-width: 760px) { .about--img { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq { border-bottom: 1px solid var(--border); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; cursor: pointer; font-weight: 600; font-size: 1.0625rem; list-style: none; letter-spacing: -.01em; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__q:focus-visible { outline-offset: -2px; }
.faq__icon { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: .75rem; transition: transform .2s, background-color .2s, color .2s; }
.faq[open] .faq__icon { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent); }
.faq__a { padding: 0 2px 18px; color: var(--muted); max-width: 64ch; line-height: 1.7; }

/* ---------- Kontak ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.contact:not(:has(.map)) { grid-template-columns: 1fr; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact:not(:has(.map)) .contact__list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.contact__item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
a.contact__item:hover { border-color: var(--accent-border); text-decoration: none; transform: translateY(-1px); }
.contact__item strong { display: block; font-size: .9375rem; line-height: 1.3; }
.contact__item small { display: block; color: var(--muted); font-size: .8125rem; word-break: break-word; }
.contact__icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); }
.map { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 36px 0 28px; border-top: 1px solid var(--border); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 6px; max-width: 320px; }
.footer__tag { margin: 0; color: var(--muted); font-size: .875rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer__nav a { color: var(--muted); font-size: .9375rem; }
.footer__nav a:hover { color: var(--accent); }
.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social__link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s, background-color .15s; }
button.social__link { padding: 0; }
.social__link:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); text-decoration: none; }
.footer__copy { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .8125rem; }

/* ---------- Filter, pencarian, state kosong ---------- */
.filters { display: flex; flex-direction: column; gap: 14px; }
.search { position: relative; max-width: 420px; }
.search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .8125rem; pointer-events: none; }
.search__input { width: 100%; height: 42px; padding: 0 14px 0 38px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .9375rem; transition: border-color .15s, box-shadow .15s; }
.search__input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip__n { font-size: .75rem; opacity: .65; font-variant-numeric: tabular-nums; }
.result-count { color: var(--muted); font-size: .875rem; margin: 0 0 16px; }
.empty-state { text-align: center; padding: clamp(40px, 8vw, 80px) 16px; color: var(--muted); }
.empty-state i { font-size: 2rem; color: #cbd5e1; margin-bottom: 12px; display: block; }
.empty-state h1, .empty-state h2 { color: var(--text); font-size: 1.25rem; margin-bottom: 6px; }
.empty-state p { margin: 0 0 18px; }

.breadcrumb { margin-bottom: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; font-size: .8125rem; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin: 0 8px; color: #cbd5e1; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text); }

/* ---------- Detail ---------- */
.detail__title { font-size: clamp(1.875rem, 3.4vw + 1rem, 3rem); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 12px; text-wrap: balance; }
.detail__lead { font-size: 1.125rem; color: var(--muted); line-height: 1.6; margin: 0 0 20px; max-width: 62ch; }
.detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 14px 0; border-block: 1px solid var(--border); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.facts dt { font-size: .75rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: .9375rem; }
.detail__meta .tags { margin: 0; padding: 0; }
.detail__meta .btn { margin-left: auto; }
.detail__cover { margin: 0 0 32px; }
.detail__cover img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); aspect-ratio: 16 / 10; object-fit: cover; }
.detail__sub { margin: 40px 0 16px; font-size: 1.25rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.gallery-grid figcaption { font-size: .8125rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } .detail__meta .btn { margin-left: 0; } }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: .875rem; }
.byline a.badge:hover { text-decoration: none; }

/* Artikel: kolom nyaman dibaca ±70ch */
.prose--article { max-width: 70ch; margin-inline: auto; font-size: 1.0625rem; }
.container--narrow .prose { max-width: 70ch; }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--border); max-width: 70ch; }
.share ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share__label { font-weight: 600; font-size: .9375rem; }
.share__status { font-size: .8125rem; color: var(--success); }

/* ---------- Animasi masuk (satu momen: hero) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__inner > :nth-child(2) { animation-delay: .08s; }
  .hero__inner > :nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

@media (max-width: 600px) {
  .container { padding-inline: 16px; }
  .section__head { margin-bottom: 20px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; }
.modal__panel { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: min(420px, 92vw); box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.modal__panel h2 { margin: 0 0 16px; }
.modal .field { margin-bottom: 12px; }
.modal .field label { display: block; margin-bottom: 4px; font-size: 14px; }

.cta-box { text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 40px 20px; }
.cta-box h2 { margin: 0 0 10px; }
.cta-box p { color: var(--muted); margin: 0 0 20px; }

.chat-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; border: none; box-shadow: 0 10px 20px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; font-size: 22px; z-index: 55; }
.chat-float:hover { filter: brightness(.9); }
