/* ==========================================================================
   SC Pemkab HTML — Tema 06 "Heritage" (sejarah & budaya, ornamen klasik)
   Template oleh sharecode.id — lisensi MIT
   Daftar isi:
   01. Font  02. Variabel  03. Dasar  04. Utilitas & ornamen  05. Topbar & header
   06. Hero  07. Komponen beranda  08. Halaman dalam  09. Komponen umum
   10. Galeri, lightbox, video  11. Formulir & toast  12. Footer  13. Animasi  14. Responsif
   ========================================================================== */

/* 01. Font (self-host, lihat NOTICE.md) ------------------------------------ */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("../fonts/crimson-pro-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("../fonts/crimson-pro-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("../fonts/crimson-pro-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("../fonts/crimson-pro-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* 02. Variabel — ganti warna/font di sini --------------------------------- */
:root {
  --maroon: #7b1e1e;
  --maroon-d: #4a0f12;
  --maroon-xd: #2b0b0d;
  --maroon-l: #a8443a;
  --gold: #d4a017;
  --gold-l: #ecc95a;
  --gold-p: #f4dfa0;
  --gold-text: #8a6410;      /* emas gelap untuk teks di latar terang (kontras) */
  --ivory: #fbf5e6;
  --parch: #f3e8cf;
  --parch-d: #e8d6ae;
  --ink: #2b1a14;
  --muted: #6b5446;
  --line: #dcc79a;
  --white: #fffdf7;
  --success: #2f6b3a;
  --danger: #a3261f;

  --font-head: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Crimson Pro", Georgia, "Times New Roman", serif;

  --container: 1220px;
  --radius: 4px;
  --shadow: 0 10px 30px -12px rgba(74, 15, 18, .35);
  --shadow-lg: 0 24px 60px -20px rgba(43, 11, 13, .55);
  --header-h: 92px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 03. Dasar ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.2rem; line-height: 1.6; color: var(--ink);
  background: var(--ivory); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon-l); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--maroon-d); margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-p); color: var(--maroon-d); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 999; background: var(--gold); color: var(--maroon-xd); padding: .6rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; vertical-align: -.15em; }

/* 04. Utilitas & ornamen -------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section--parch { background: var(--parch); }
.section--pattern { background: var(--parch) url("../img/ornamen-pola.svg") repeat; background-size: 64px; }
.section--maroon { background: var(--maroon) url("../img/ornamen-pola.svg"); background-size: 64px; color: var(--parch); }
.section--maroon h2, .section--maroon h3 { color: var(--ivory); }
.text-center { text-align: center; }
.lead { font-size: 1.35rem; color: var(--muted); font-style: italic; }
.small { font-size: .95rem; }
.muted { color: var(--muted); }

/* Kepala section: label "Bab" bernomor romawi + judul + pembatas ornamen */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.sec-head--left { text-align: left; margin-left: 0; }
.kicker { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-size: .82rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .8rem; }
.kicker::before, .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.sec-head--left .kicker::before { display: none; }
.section--maroon .kicker, .hero .kicker { color: var(--gold-l); }
.sec-head h2 { margin-bottom: .35em; }
.orn { display: block; width: 260px; height: 26px; margin: .4rem auto 1rem; background: url("../img/ornamen-pembatas.svg") center / contain no-repeat; }
.sec-head--left .orn { margin-left: 0; }
.sec-head p { color: var(--muted); font-size: 1.25rem; }
.section--maroon .sec-head p { color: var(--gold-p); }

/* Bingkai dengan sudut ornamen emas */
.frame { position: relative; background: var(--white); border: 1px solid var(--line); padding: 2rem; }
.frame::before, .frame::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold); pointer-events: none; }
.frame::before { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: 7px; right: 7px; border-left: 0; border-top: 0; }
.double-rule { border-top: 3px double var(--gold); }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.6rem; font-family: var(--font-head); font-weight: 700; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: var(--radius); transition: background .25s, color .25s, transform .25s, box-shadow .25s; position: relative; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-l), var(--gold)); color: var(--maroon-xd); box-shadow: inset 0 0 0 3px rgba(255,255,255,.25), 0 8px 20px -8px rgba(212,160,23,.7); }
.btn--gold:hover { color: var(--maroon-xd); background: var(--gold-l); }
.btn--maroon { background: var(--maroon); color: var(--ivory); box-shadow: inset 0 0 0 3px rgba(212,160,23,.35); }
.btn--maroon:hover { background: var(--maroon-d); color: var(--gold-l); }
.btn--ghost { border-color: var(--gold); color: var(--gold-l); background: transparent; }
.btn--ghost:hover { background: rgba(212,160,23,.15); color: var(--ivory); }
.btn--line { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn--line:hover { background: var(--maroon); color: var(--ivory); }
.btn--sm { min-height: 40px; padding: .45rem 1rem; font-size: .76rem; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--maroon); }
.link-more .icon { transition: transform .25s; }
.link-more:hover .icon { transform: translateX(4px); }

.badge { display: inline-block; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .28rem .7rem; background: var(--maroon); color: var(--gold-p); border-radius: 2px; }
.badge--gold { background: var(--gold); color: var(--maroon-xd); }
.badge--line { background: transparent; border: 1px solid var(--gold); color: var(--gold-text); }

/* 05. Topbar & header ----------------------------------------------------- */
.topbar { background: var(--maroon-xd); color: var(--gold-p); font-size: .95rem; border-bottom: 1px solid rgba(212,160,23,.4); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 1.3rem; }
.topbar a { color: var(--gold-p); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--gold-l); }
.topbar__date { font-style: italic; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--ivory); transition: box-shadow .3s; }
.site-header::after { content: ""; display: block; height: 7px; border-top: 1px solid var(--gold); border-bottom: 3px double var(--gold); background: var(--maroon); }
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(43,11,13,.6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); transition: min-height .3s; }
.is-stuck .header-inner { min-height: 72px; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--maroon-d); }
.brand img { width: 56px; height: 59px; transition: width .3s, height .3s; }
.is-stuck .brand img { width: 46px; height: 48px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__pre { font-family: var(--font-head); font-size: .7rem; letter-spacing: .3em; color: var(--gold-text); font-weight: 700; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; letter-spacing: .06em; color: var(--maroon); }
.brand__motto { font-style: italic; font-size: .95rem; color: var(--muted); }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .2rem; }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: .3rem; padding: .7rem .85rem; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; background: none; border: 0; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 50%; bottom: .25rem; width: 6px; height: 6px; background: var(--gold); transform: translateX(-50%) rotate(45deg) scale(0); transition: transform .25s; }
.nav__link:hover, .nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--maroon); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-active > .nav__link::after { transform: translateX(-50%) rotate(45deg) scale(1); }
.nav__link .icon { width: .9em; height: .9em; transition: transform .25s; }
.nav__sub { list-style: none; margin: 0; padding: .6rem; position: absolute; top: 100%; left: 50%; min-width: 250px; background: var(--maroon-d); border: 1px solid var(--gold); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .25s, transform .25s, visibility .25s; }
.nav__sub::before { content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; background: var(--maroon-d); border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); transform: translateX(-50%) rotate(45deg); }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub, .nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__sub a { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; color: var(--parch); text-decoration: none; font-size: 1.08rem; border-bottom: 1px dashed rgba(212,160,23,.25); }
.nav__sub li:last-child a { border-bottom: 0; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { color: var(--gold-l); background: rgba(212,160,23,.1); }
.nav__sub a::before { content: "\2756"; color: var(--gold); font-size: .7rem; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--gold); background: var(--maroon); color: var(--gold-l); border-radius: var(--radius); align-items: center; justify-content: center; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-backdrop { display: none; }

/* 06. Hero beranda -------------------------------------------------------- */
.hero { position: relative; background: var(--maroon-d) url("../img/ornamen-pola.svg"); background-size: 64px; color: var(--parch); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 40%, rgba(212,160,23,.22), transparent 55%), linear-gradient(90deg, rgba(43,11,13,.95) 0%, rgba(74,15,18,.75) 55%, rgba(74,15,18,.5)); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(3rem, 6vw, 5rem) 0 clamp(5.5rem, 8vw, 7rem); }
.hero h1 { color: var(--ivory); font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.08; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--gold-l); display: block; }
.hero__lead { font-size: 1.4rem; font-style: italic; color: var(--gold-p); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.4rem; }
.prasasti { display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; padding: .9rem 1.4rem .9rem .9rem; border: 1px solid rgba(212,160,23,.55); background: rgba(43,11,13,.55); }
.prasasti__year { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--gold-l); padding: .3rem 1rem; border-right: 1px solid rgba(212,160,23,.5); }
.prasasti__text { font-size: 1.02rem; color: var(--parch); line-height: 1.35; }
.prasasti__text strong { display: block; font-family: var(--font-head); font-size: .78rem; letter-spacing: .2em; color: var(--gold-l); }

/* Jendela lengkung (arch) berisi slider */
.arch { position: relative; justify-self: center; width: min(100%, 440px); }
.arch__frame { position: relative; aspect-ratio: 9 / 11; border-radius: 999px 999px 6px 6px; padding: 12px; background: linear-gradient(180deg, var(--gold-l), var(--gold) 50%, #9a7310); box-shadow: var(--shadow-lg); }
.arch__frame::after { content: ""; position: absolute; inset: 22px; border-radius: 999px 999px 2px 2px; border: 1px solid rgba(251,245,230,.6); pointer-events: none; z-index: 3; }
.arch__window { position: relative; width: 100%; height: 100%; border-radius: 999px 999px 2px 2px; overflow: hidden; background: var(--maroon-xd); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease), transform 6s linear; transform: scale(1.06); }
.slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.arch__caption { position: absolute; left: -2.5rem; bottom: 2.2rem; z-index: 4; max-width: 280px; background: var(--ivory); color: var(--ink); padding: 1rem 1.2rem; border-left: 4px solid var(--gold); box-shadow: var(--shadow); }
.arch__caption small { display: block; font-family: var(--font-head); font-size: .7rem; letter-spacing: .2em; color: var(--gold-text); font-weight: 700; }
.arch__caption p { margin: 0; font-size: 1.12rem; line-height: 1.3; font-weight: 600; color: var(--maroon-d); }
.arch__ctrl { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 1.2rem; }
.arch__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--gold-l); display: inline-flex; align-items: center; justify-content: center; transition: background .25s; }
.arch__btn:hover { background: rgba(212,160,23,.2); }
.arch__count { font-family: var(--font-head); color: var(--gold-l); letter-spacing: .2em; min-width: 6ch; text-align: center; }
.hero__orn { position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: var(--ivory); clip-path: polygon(0 100%, 0 60%, 2% 60%, 2.5% 20%, 3% 60%, 47% 60%, 48.5% 0, 50% 0, 51.5% 0, 53% 60%, 97% 60%, 97.5% 20%, 98% 60%, 100% 60%, 100% 100%); }

/* 07. Komponen beranda ---------------------------------------------------- */
/* Layanan cepat: ubin berlian */
.quick { position: relative; z-index: 2; margin-top: -3.2rem; }
.quick__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: .5rem; background: var(--white); border: 1px solid var(--line); padding: 1.6rem 1.2rem 1.3rem; box-shadow: var(--shadow); position: relative; }
.quick__grid::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold-p); pointer-events: none; }
.qtile { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: .6rem .3rem; text-decoration: none; color: var(--ink); text-align: center; font-weight: 600; font-size: 1.04rem; line-height: 1.2; }
.qtile__ico { width: 58px; height: 58px; display: grid; place-items: center; transform: rotate(45deg); border: 1px solid var(--gold); background: var(--parch); transition: background .3s, transform .4s var(--ease); margin-top: 8px; }
.qtile__ico .icon { transform: rotate(-45deg); width: 26px; height: 26px; color: var(--maroon); transition: color .3s; }
.qtile:hover .qtile__ico, .qtile:focus-visible .qtile__ico { background: var(--maroon); transform: rotate(225deg); }
.qtile:hover .qtile__ico .icon { color: var(--gold-l); }
.qtile:hover { color: var(--maroon); }

/* Sambutan bupati */
.sambutan { display: grid; grid-template-columns: 380px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.medallion { position: relative; width: 100%; max-width: 360px; aspect-ratio: 4 / 5; margin-inline: auto; }
.medallion::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed var(--gold); }
.medallion__img { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 8px solid var(--gold); box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--gold), var(--shadow-lg); }
.medallion__img img { width: 100%; height: 100%; object-fit: cover; }
.medallion__name { position: absolute; left: 50%; bottom: -1.4rem; transform: translateX(-50%); white-space: nowrap; background: var(--maroon); color: var(--ivory); padding: .55rem 1.4rem; text-align: center; clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%); }
.medallion__name strong { display: block; font-family: var(--font-head); font-size: .95rem; letter-spacing: .08em; }
.medallion__name span { font-size: .9rem; color: var(--gold-p); font-style: italic; }
.letter p { font-size: 1.24rem; }
.dropcap::first-letter { float: left; font-family: var(--font-head); font-size: 4.3rem; line-height: .82; padding: .35rem .6rem 0 0; color: var(--maroon); font-weight: 700; }
.letter__sign { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.letter__sign .sig { font-style: italic; font-size: 2rem; color: var(--maroon); transform: rotate(-4deg); font-weight: 600; }
.letter__sign small { display: block; color: var(--muted); font-size: 1rem; }

/* Statistik medalion */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat__ring { width: 168px; height: 168px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--gold); position: relative; background: radial-gradient(circle, rgba(212,160,23,.18), transparent 70%); }
.stat__ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px dashed rgba(236,201,90,.6); }
.stat__ring::after { content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.stat__num { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--gold-l); line-height: 1; }
.stat__unit { display: block; font-size: .95rem; font-style: italic; color: var(--gold-p); margin-top: .3rem; }
.stat__label { font-family: var(--font-head); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); }

/* Warta (berita) + maklumat */
.warta { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; }
.feature { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); }
.feature__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .feature__img img { transform: scale(1.04); }
.feature__body { padding: 1.6rem 1.8rem 1.8rem; }
.feature__body h3 { font-size: 1.55rem; }
.feature__body h3 a, .news h3 a, .ncard h3 a { color: inherit; text-decoration: none; }
.feature__body h3 a:hover, .news h3 a:hover, .ncard h3 a:hover { color: var(--maroon-l); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; color: var(--muted); font-size: .98rem; margin-bottom: .6rem; }
.meta span { display: inline-flex; align-items: center; gap: .35rem; }
.date-seal { position: absolute; top: 1rem; left: 1rem; width: 66px; height: 66px; border-radius: 50%; background: var(--maroon); color: var(--ivory); display: grid; place-content: center; text-align: center; box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--maroon); line-height: 1; z-index: 2; }
.date-seal b { font-family: var(--font-head); font-size: 1.4rem; }
.date-seal small { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-p); }
.news-list { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.news { display: grid; grid-template-columns: 130px 1fr; gap: 1.1rem; align-items: center; padding-bottom: 1.2rem; border-bottom: 1px dashed var(--line); }
.news:last-child { border-bottom: 0; }
.news img { aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid var(--white); outline: 1px solid var(--line); }
.news h3 { font-size: 1.02rem; margin: .2rem 0 .3rem; line-height: 1.35; }

.maklumat { position: relative; background: var(--parch); padding: 2.6rem 1.8rem 2rem; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.maklumat::before, .maklumat::after { content: ""; position: absolute; left: -10px; right: -10px; height: 22px; border-radius: 11px; background: linear-gradient(180deg, var(--maroon-l), var(--maroon-d)); box-shadow: inset 0 0 0 2px var(--gold); }
.maklumat::before { top: -11px; }
.maklumat::after { bottom: -11px; }
.maklumat h3 { text-align: center; font-size: 1.3rem; }
.maklumat__item { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.maklumat__item:hover strong { color: var(--maroon-l); }
.maklumat__item small { color: var(--gold-text); font-family: var(--font-head); font-size: .72rem; letter-spacing: .14em; font-weight: 700; }
.maklumat__item strong { display: block; font-weight: 600; line-height: 1.35; color: var(--maroon-d); }

/* Agenda — segel lilin */
.agenda-list { display: grid; gap: 1rem; }
.agenda { display: grid; grid-template-columns: 92px 1fr auto; gap: 1.4rem; align-items: center; padding: 1.2rem 1.4rem; background: var(--white); border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.agenda:hover { border-color: var(--gold); transform: translateX(4px); }
.seal { width: 82px; height: 82px; display: grid; place-content: center; text-align: center; line-height: 1; color: var(--ivory); background: var(--maroon); border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%; box-shadow: inset 0 0 0 5px rgba(0,0,0,.12), inset 0 0 0 7px rgba(236,201,90,.45), 0 6px 14px -6px rgba(74,15,18,.6); }
.seal b { font-family: var(--font-head); font-size: 1.7rem; }
.seal small { font-family: var(--font-head); font-size: .7rem; letter-spacing: .16em; color: var(--gold-p); margin-top: .2rem; }
.agenda h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.agenda .meta { margin: 0; }

/* Kartu lengkung wisata */
.arch-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.acard { text-decoration: none; color: var(--ink); display: block; }
.acard__img { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; border: 6px solid var(--white); outline: 1px solid var(--gold); outline-offset: 4px; box-shadow: var(--shadow); position: relative; }
.acard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.acard:hover .acard__img img { transform: scale(1.08); }
.acard__body { text-align: center; padding: 1.4rem .5rem 0; }
.acard__body h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.acard__body p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Kutipan pusaka */
.quote-band { text-align: center; max-width: 880px; margin-inline: auto; }
.quote-band blockquote { margin: 0; font-size: clamp(1.5rem, 3vw, 2.15rem); font-style: italic; line-height: 1.4; color: var(--ivory); }
.quote-band cite { display: block; margin-top: 1.2rem; font-style: normal; font-family: var(--font-head); letter-spacing: .2em; font-size: .85rem; color: var(--gold-l); }

/* Galeri ringkas: mozaik */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 230px); gap: .9rem; }
.mosaic a { position: relative; overflow: hidden; border: 1px solid var(--line); display: block; }
.mosaic a:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic span { position: absolute; left: .8rem; bottom: .8rem; background: rgba(43,11,13,.85); color: var(--gold-p); font-size: .95rem; padding: .25rem .7rem; }

/* CTA dua kolom */
.cta-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cta-card { position: relative; padding: 2.4rem; background: var(--maroon-d) url("../img/ornamen-pola.svg"); background-size: 64px; color: var(--parch); border: 1px solid var(--gold); overflow: hidden; }
.cta-card h3 { color: var(--ivory); font-size: 1.45rem; }
.cta-card p { color: var(--gold-p); }
.cta-card--light { background: var(--parch); color: var(--ink); border-color: var(--line); }
.cta-card--light h3 { color: var(--maroon-d); }
.cta-card--light p { color: var(--muted); }

/* 08. Halaman dalam ------------------------------------------------------- */
.page-hero { position: relative; background: var(--maroon-d) url("../img/ornamen-pola.svg"); background-size: 64px; color: var(--parch); text-align: center; padding: clamp(3rem, 6vw, 4.6rem) 0 clamp(3.6rem, 7vw, 5.2rem); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(212,160,23,.28), transparent 60%), linear-gradient(180deg, rgba(43,11,13,.6), rgba(74,15,18,.9)); }
.page-hero > * { position: relative; }
.page-hero h1 { color: var(--ivory); margin-bottom: .2em; }
.page-hero p { color: var(--gold-p); font-style: italic; font-size: 1.3rem; max-width: 640px; margin: 0 auto; }
.page-hero .orn { filter: brightness(1.1); }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.2rem; font-family: var(--font-head); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }
.breadcrumb li + li::before { content: "\2756"; color: var(--gold); margin-right: .5rem; }
.breadcrumb a { color: var(--gold-l); text-decoration: none; }
.breadcrumb [aria-current] { color: var(--parch); }
.page-hero__arch { position: absolute; bottom: -1px; left: 0; right: 0; height: 34px; background: var(--ivory); -webkit-mask: radial-gradient(circle at 50% 0, transparent 70%, #000 71%) 0 0 / 48px 34px repeat-x; mask: radial-gradient(circle at 50% 0, transparent 70%, #000 71%) 0 0 / 48px 34px repeat-x; }

/* Grid umum */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.layout-side { display: grid; grid-template-columns: 1fr 340px; gap: 2.8rem; align-items: start; }

/* Timeline sejarah (gulungan) */
.timeline { position: relative; max-width: 940px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 16px); transform: translateX(-50%); }
.tl { position: relative; width: 50%; padding: 0 3rem 2.4rem 0; }
.tl:nth-child(even) { margin-left: 50%; padding: 0 0 2.4rem 3rem; }
.tl__year { position: absolute; top: 0; right: -38px; width: 76px; height: 76px; border-radius: 50%; background: var(--maroon); color: var(--gold-l); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--gold); z-index: 1; }
.tl:nth-child(even) .tl__year { right: auto; left: -38px; }
.tl__card { background: var(--white); border: 1px solid var(--line); padding: 1.3rem 1.5rem; position: relative; }
.tl:nth-child(odd) .tl__card { margin-right: 1.5rem; text-align: right; }
.tl:nth-child(even) .tl__card { margin-left: 1.5rem; }
.tl__card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.tl__card p { margin: 0; color: var(--muted); }

/* Lambang & arti */
.lambang { display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: center; }
.lambang__img { padding: 2rem; background: radial-gradient(circle, var(--white), var(--parch)); border-radius: 50%; border: 1px solid var(--gold); aspect-ratio: 1; display: grid; place-items: center; }
.meaning { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.meaning li { padding-left: 2.2rem; position: relative; }
.meaning li::before { content: ""; position: absolute; left: .3rem; top: .45rem; width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--gold); }
.meaning strong { display: block; font-family: var(--font-head); font-size: .92rem; color: var(--maroon); letter-spacing: .06em; }

/* Visi misi */
.visi { text-align: center; padding: 3rem 2rem; }
.visi blockquote { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-style: italic; color: var(--maroon-d); line-height: 1.4; }
.misi { counter-reset: misi; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.misi li { counter-increment: misi; display: grid; grid-template-columns: 54px 1fr; gap: 1rem; align-items: start; }
.misi li::before { content: counter(misi, upper-roman); width: 54px; height: 54px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--gold-l); background: var(--maroon); border-radius: 50%; box-shadow: 0 0 0 3px var(--parch), 0 0 0 4px var(--gold); }

/* Kompas batas wilayah */
.compass { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, auto); gap: .6rem; text-align: center; }
.compass > div { padding: 1rem; background: var(--white); border: 1px solid var(--line); }
.compass small { display: block; font-family: var(--font-head); font-size: .72rem; letter-spacing: .2em; color: var(--gold-text); font-weight: 700; }
.compass .c-n { grid-column: 2; }
.compass .c-w { grid-column: 1; grid-row: 2; }
.compass .c-c { grid-column: 2; grid-row: 2; background: var(--maroon); color: var(--gold-l); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; border-color: var(--gold); }
.compass .c-e { grid-column: 3; grid-row: 2; }
.compass .c-s { grid-column: 2; grid-row: 3; }

/* Tabel */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.tbl { width: 100%; border-collapse: collapse; font-size: 1.08rem; min-width: 560px; }
.tbl caption { text-align: left; padding: .8rem 1rem; font-style: italic; color: var(--muted); caption-side: bottom; }
.tbl th { background: var(--maroon); color: var(--gold-p); font-family: var(--font-head); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-align: left; padding: .9rem 1rem; }
.tbl td { padding: .8rem 1rem; border-bottom: 1px solid var(--parch-d); vertical-align: top; }
.tbl tbody tr:nth-child(even) { background: rgba(243,232,207,.45); }
.tbl tbody tr:hover { background: var(--parch); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Pejabat */
.official { text-align: center; }
.official__img { width: 220px; aspect-ratio: 4 / 5; margin: 0 auto 1.6rem; border-radius: 50%; overflow: hidden; border: 6px solid var(--gold); box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--gold); }
.official__img img { width: 100%; height: 100%; object-fit: cover; }
.official h3 { font-size: 1.2rem; margin-bottom: .1rem; }
.official .role { font-style: italic; color: var(--gold-text); font-weight: 600; }
.official--sm .official__img { width: 150px; }
.opd { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; background: var(--white); border: 1px solid var(--line); transition: border-color .25s; }
.opd:hover { border-color: var(--gold); }
.opd__ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--parch); border: 1px solid var(--gold); color: var(--maroon); }
.opd__ico .icon { width: 22px; height: 22px; }
.opd h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.12rem; letter-spacing: 0; margin-bottom: .15rem; color: var(--maroon-d); }
.opd p { margin: 0; font-size: 1rem; color: var(--muted); }
.opd .badge { margin-top: .4rem; }

/* Kartu berita */
.ncard { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.ncard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ncard__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; }
.ncard__img .badge { position: absolute; right: .8rem; top: .8rem; }
.ncard__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.ncard h3 { font-size: 1.05rem; line-height: 1.35; }
.ncard p { color: var(--muted); font-size: 1.05rem; flex: 1; }

/* Artikel */
.article { font-size: 1.28rem; }
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article figure { margin: 1.8rem 0; }
.article figcaption { font-style: italic; color: var(--muted); font-size: 1rem; padding-top: .5rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.article blockquote { margin: 1.8rem 0; padding: 1.2rem 1.6rem; border-left: 4px solid var(--gold); background: var(--parch); font-style: italic; color: var(--maroon-d); }
.article__hero { aspect-ratio: 16 / 8; overflow: hidden; border: 1px solid var(--line); margin-bottom: 2rem; }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 1.2rem 0; border-top: 3px double var(--gold); border-bottom: 1px solid var(--line); margin-top: 2rem; }
.share a, .share button { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .35rem .9rem; border: 1px solid var(--line); background: var(--white); color: var(--maroon); text-decoration: none; font-size: 1rem; }
.share a:hover, .share button:hover { border-color: var(--gold); background: var(--parch); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags a { font-size: .95rem; padding: .2rem .8rem; border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.tags a:hover { border-color: var(--gold); color: var(--maroon); }

/* Sidebar */
.side-box { background: var(--white); border: 1px solid var(--line); padding: 1.5rem; margin-bottom: 1.6rem; }
.side-box h3 { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; padding-bottom: .7rem; margin-bottom: 1rem; border-bottom: 3px double var(--gold); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.35; display: block; }
.side-list a:hover { color: var(--maroon-l); }
.side-list small { color: var(--muted); }

/* Layanan publik */
.svc { display: flex; flex-direction: column; gap: .7rem; padding: 1.8rem; background: var(--white); border: 1px solid var(--line); position: relative; transition: border-color .3s, transform .3s; }
.svc:hover { border-color: var(--gold); transform: translateY(-3px); }
.svc__ico { width: 54px; height: 54px; display: grid; place-items: center; transform: rotate(45deg); background: var(--maroon); margin: .4rem 0 .6rem .4rem; }
.svc__ico .icon { transform: rotate(-45deg); width: 24px; height: 24px; color: var(--gold-l); }
.svc h3 { font-size: 1.08rem; margin: 0; }
.svc p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; text-align: center; position: relative; padding-top: 4.6rem; }
.steps li::before { content: counter(step, upper-roman); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); border: 2px solid var(--gold); color: var(--maroon); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: calc(50% + 40px); right: calc(-50% + 40px); border-top: 2px dotted var(--gold); }
.steps h3 { font-size: .98rem; margin-bottom: .3rem; }
.steps p { font-size: 1.02rem; color: var(--muted); margin: 0; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }

/* Info box */
.note { display: flex; gap: .9rem; padding: 1rem 1.2rem; background: var(--parch); border-left: 4px solid var(--gold); }
.note .icon { color: var(--maroon); margin-top: .25rem; }

/* Dokumen / pengumuman */
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; padding: 1.2rem 1.4rem; background: var(--white); border: 1px solid var(--line); }
.doc + .doc { margin-top: .8rem; }
.doc__ico { width: 52px; height: 60px; display: grid; place-items: center; background: var(--parch); border: 1px solid var(--gold); color: var(--maroon); font-family: var(--font-head); font-size: .7rem; font-weight: 700; position: relative; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.doc h3 { font-family: var(--font-body); font-size: 1.14rem; letter-spacing: 0; margin-bottom: .2rem; color: var(--maroon-d); }
.doc .meta { margin: 0; font-size: .95rem; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { text-align: center; padding: 1.4rem 1rem; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--maroon); }
.stat-card b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--maroon); }
.stat-card span { color: var(--muted); }

/* Wisata */
.dest { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border: 1px solid var(--line); }
.dest__img { min-height: 340px; position: relative; overflow: hidden; }
.dest__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dest__body { padding: clamp(1.6rem, 4vw, 3rem); }
.facts { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
.facts li { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.facts .icon { color: var(--gold-text); }

/* Kontak */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--maroon); color: var(--gold-l); border-radius: 50%; box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--gold); }
.contact-list strong { display: block; font-family: var(--font-head); font-size: .8rem; letter-spacing: .14em; color: var(--maroon); }
.map-frame { border: 6px solid var(--white); outline: 1px solid var(--gold); box-shadow: var(--shadow); line-height: 0; }
.map-frame iframe { width: 100%; height: 380px; border: 0; filter: sepia(.35); }

/* 09. Komponen umum: tab, akordeon, filter, pagination ------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding: 1rem; background: var(--parch); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { min-height: 40px; padding: .35rem 1rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--gold); color: var(--maroon); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--maroon); color: var(--gold-l); border-color: var(--maroon); }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search input { width: 100%; min-height: 44px; padding: .5rem 1rem .5rem 2.6rem; border: 1px solid var(--line); background: var(--white); border-radius: 2px; }
.search input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(212,160,23,.3); }
.search .icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.empty { display: none; text-align: center; padding: 2rem; color: var(--muted); font-style: italic; border: 1px dashed var(--line); }
.empty.is-show { display: block; }
[hidden] { display: none !important; }

.tabs__list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 3px double var(--gold); margin-bottom: 2rem; }
.tabs__btn { padding: .9rem 1.4rem; border: 0; background: none; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); position: relative; }
.tabs__btn[aria-selected="true"] { color: var(--maroon); background: var(--white); box-shadow: inset 0 3px 0 var(--maroon); }
.tabs__btn:hover { color: var(--maroon); }
.tabs__panel:focus-visible { outline-offset: 6px; }

.acc { display: grid; gap: .7rem; }
.acc__item { background: var(--white); border: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.3rem; border: 0; background: none; text-align: left; font-weight: 700; font-size: 1.15rem; color: var(--maroon-d); }
.acc__btn .icon { color: var(--gold-text); transition: transform .3s; }
.acc__btn[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc__btn[aria-expanded="true"] { border-bottom: 1px dashed var(--line); }
.acc__panel { padding: 1rem 1.3rem 1.2rem; }
.acc__panel ul { margin: .3rem 0 0; }

.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--font-head); background: var(--white); }
.pagination [aria-current] { background: var(--maroon); color: var(--gold-l); border-color: var(--maroon); }
.pagination a:hover { border-color: var(--gold); }

/* 10. Galeri, lightbox, video -------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gitem { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border: 6px solid var(--white); outline: 1px solid var(--line); box-shadow: 0 6px 18px -10px rgba(43,11,13,.5); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(43,11,13,.85)); opacity: 0; transition: opacity .3s; }
.gitem figcaption, .gitem .gcap { position: absolute; left: 1rem; right: 1rem; bottom: .8rem; color: var(--ivory); z-index: 1; font-size: 1.05rem; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.gitem:hover img { transform: scale(1.06); }
.gitem:hover::after, .gitem:focus-visible::after, .gitem:hover .gcap, .gitem:focus-visible .gcap { opacity: 1; transform: none; }
.gitem--tall { grid-row: span 2; aspect-ratio: auto; }

.lightbox, .vmodal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; background: rgba(28,7,8,.94); padding: 4.5rem 1rem 2rem; }
.lightbox.is-open, .vmodal.is-open { display: flex; }
.lightbox__fig { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox__fig img { max-height: 76vh; width: auto; margin: 0 auto; border: 8px solid var(--ivory); outline: 1px solid var(--gold); outline-offset: 5px; }
.lightbox__fig figcaption { color: var(--gold-p); margin-top: 1rem; font-style: italic; font-size: 1.15rem; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(74,15,18,.85); color: var(--gold-l); display: grid; place-items: center; }
.lb-btn:hover { background: var(--maroon); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 1.6rem; left: 1.4rem; font-family: var(--font-head); color: var(--gold-l); letter-spacing: .2em; }

.vcard { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); }
.vcard__thumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 6px solid var(--white); outline: 1px solid var(--line); }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vcard__play { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: var(--maroon); color: var(--gold-l); box-shadow: 0 0 0 4px rgba(212,160,23,.8), 0 0 0 12px rgba(212,160,23,.2); transition: transform .3s; }
.vcard__play .icon { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.vcard:hover .vcard__thumb img { transform: scale(1.05); }
.vcard:hover .vcard__play { transform: translate(-50%, -50%) scale(1.1); }
.vcard__dur { position: absolute; right: .7rem; bottom: .7rem; background: rgba(43,11,13,.85); color: var(--gold-p); padding: .1rem .6rem; font-size: .9rem; }
.vcard h3 { font-size: 1.05rem; margin: 1rem 0 .2rem; }
.vcard p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.vmodal__box { width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; border: 6px solid var(--ivory); outline: 1px solid var(--gold); outline-offset: 5px; }
.vmodal__box iframe { width: 100%; height: 100%; border: 0; display: block; }
.vmodal__title { position: absolute; top: 1.6rem; left: 1.4rem; right: 5rem; color: var(--gold-p); font-family: var(--font-head); letter-spacing: .08em; }

/* 11. Formulir & toast --------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--maroon-d); margin-bottom: .4rem; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .6rem .9rem; border: 1px solid var(--line); background: var(--white); border-radius: 2px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,160,23,.3); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field-error { display: none; color: var(--danger); font-size: .98rem; margin-top: .3rem; }
.field.is-invalid .field-error { display: block; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: 1.05rem; }
.check input { width: 20px; height: 20px; margin-top: .25rem; accent-color: var(--maroon); }

.toast { position: fixed; left: 50%; bottom: 2rem; z-index: 600; transform: translate(-50%, 150%); display: flex; align-items: flex-start; gap: .8rem; width: min(480px, calc(100% - 2rem)); padding: 1rem 1.2rem; background: var(--maroon-d); color: var(--ivory); border: 1px solid var(--gold); box-shadow: var(--shadow-lg); transition: transform .4s var(--ease); }
.toast.is-show { transform: translate(-50%, 0); }
.toast .icon { color: var(--gold-l); width: 24px; height: 24px; margin-top: .1rem; }
.toast strong { display: block; font-family: var(--font-head); font-size: .85rem; letter-spacing: .12em; color: var(--gold-l); }

.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 50px; height: 56px; border: 1px solid var(--gold); background: var(--maroon); color: var(--gold-l); border-radius: 999px 999px 4px 4px; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s; }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--maroon-d); }

/* 12. Footer ------------------------------------------------------------- */
.site-footer { position: relative; background: var(--maroon-xd) url("../img/ornamen-pola.svg"); background-size: 64px; color: var(--parch); margin-top: 0; }
.site-footer::before { content: ""; display: block; height: 14px; background: linear-gradient(90deg, var(--gold), var(--gold-l), var(--gold)); -webkit-mask: radial-gradient(circle at 50% 100%, #000 60%, transparent 62%) 0 0 / 28px 14px repeat-x; mask: radial-gradient(circle at 50% 100%, #000 60%, transparent 62%) 0 0 / 28px 14px repeat-x; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.footer-brand { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; text-decoration: none; }
.footer-brand img { width: 62px; height: 65px; }
.footer-brand b { display: block; font-family: var(--font-head); color: var(--ivory); font-size: 1.3rem; letter-spacing: .06em; }
.footer-brand span { color: var(--gold-l); font-style: italic; }
.site-footer h3 { color: var(--gold-l); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.2rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(212,160,23,.35); }
.site-footer p { color: var(--parch-d); }
.flinks { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.flinks a { color: var(--parch); text-decoration: none; }
.flinks a:hover { color: var(--gold-l); }
.flinks a::before { content: "\2756"; color: var(--gold); font-size: .65rem; margin-right: .55rem; vertical-align: .15em; }
.fcontact { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.fcontact li { display: flex; gap: .7rem; color: var(--parch-d); }
.fcontact .icon { color: var(--gold-l); margin-top: .3rem; }
.fcontact a { color: var(--parch); text-decoration: none; }
.socials { display: flex; gap: .5rem; margin-top: 1.2rem; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(212,160,23,.6); color: var(--gold-l); transform: rotate(45deg); transition: background .25s; }
.socials a .icon { transform: rotate(-45deg); }
.socials a:hover { background: var(--maroon); }
.footer-bottom { border-top: 1px solid rgba(212,160,23,.3); padding: 1.3rem 0; font-size: 1rem; color: var(--parch-d); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
.footer-bottom a { color: var(--gold-l); }

/* 404 */
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound__num { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 10rem); font-weight: 700; line-height: 1; color: var(--maroon); text-shadow: 4px 4px 0 var(--gold-p); }

/* 13. Animasi muncul saat scroll ----------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .slide { transform: none; }
}

/* 14. Responsif ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav__link { padding: .7rem .55rem; font-size: .74rem; letter-spacing: .08em; }
  .brand__motto { display: none; }
  .quick__grid { grid-template-columns: repeat(4, 1fr); row-gap: 1.4rem; }
  .arch-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  :root { --header-h: 78px; }
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--maroon-d) url("../img/ornamen-pola.svg"); background-size: 64px; border-left: 2px solid var(--gold); padding: 5.5rem 1.2rem 2rem; overflow-y: auto; transform: translateX(105%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; z-index: 210; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; color: var(--parch); font-size: .85rem; padding: 1rem .6rem; border-bottom: 1px solid rgba(212,160,23,.25); }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--gold-l); }
  .nav__sub { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; background: rgba(0,0,0,.2); min-width: 0; }
  .nav__sub::before { display: none; }
  .nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { transform: none; }
  .nav__item.is-open > .nav__sub { display: block; transform: none; }
  .nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
  .nav-close { position: absolute; top: 1.2rem; right: 1.2rem; }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(28,7,8,.6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 200; }
  .nav-backdrop.is-show { opacity: 1; visibility: visible; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .arch { width: min(100%, 380px); }
  .arch__caption { left: 50%; transform: translateX(-50%); bottom: -1.2rem; width: 86%; text-align: left; }
  .sambutan, .warta, .lambang, .layout-side, .split, .dest { grid-template-columns: 1fr; }
  .lambang__img { max-width: 300px; margin: 0 auto; }
  .stats, .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; text-align: left; gap: 1.4rem; }
  .steps li { padding: 0 0 0 5rem; min-height: 64px; }
  .steps li::before { left: 0; transform: none; }
  .steps li:not(:last-child)::after { top: 64px; left: 32px; right: auto; bottom: -1.4rem; border-top: 0; border-left: 2px dotted var(--gold); }
}
@media (min-width: 1025px) { .nav-close { display: none; } }
@media (max-width: 720px) {
  body { font-size: 1.12rem; }
  .topbar__left .hide-sm, .topbar__right .hide-sm { display: none; }
  .brand__pre { font-size: .6rem; letter-spacing: .2em; }
  .brand__name { font-size: 1.12rem; }
  .brand img { width: 44px; height: 46px; }
  .quick__grid { grid-template-columns: repeat(2, 1fr); }
  .stats, .grid-2, .grid-3, .grid-4, .cta-duo, .meaning, .form-row, .facts { grid-template-columns: 1fr; }
  .stat__ring { width: 140px; height: 140px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .gitem { border-width: 3px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px 140px; }
  .mosaic a:first-child { grid-column: span 2; grid-row: auto; }
  .agenda { grid-template-columns: 76px 1fr; }
  .agenda > :last-child { grid-column: 2; justify-self: start; }
  .seal { width: 70px; height: 70px; }
  .news { grid-template-columns: 100px 1fr; }
  .timeline::before { left: 30px; }
  .tl, .tl:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 2rem 4.6rem; }
  .tl__year, .tl:nth-child(even) .tl__year { left: -8px; right: auto; width: 70px; height: 70px; font-size: .9rem; }
  .tl:nth-child(odd) .tl__card, .tl:nth-child(even) .tl__card { margin: 0; text-align: left; }
  .doc { grid-template-columns: auto 1fr; }
  .doc > :last-child { grid-column: 1 / -1; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .frame { padding: 1.4rem; }
  .dest__img { min-height: 220px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}
@media (max-width: 420px) {
  .topbar__right { display: none; }
  .brand__pre { display: none; }
  .quick__grid { padding: 1.2rem .6rem; }
  .gallery { grid-template-columns: 1fr; }
}

/* Tambahan: baris pembuka judul hero */
.hero__pre { display: block; font-size: .42em; letter-spacing: .28em; color: var(--gold-p); margin-bottom: .5em; font-weight: 500; }
.article figure img, .article__hero img { width: 100%; }
