/*
Theme Name:        GKI Bungur
Description:       Theme satu halaman untuk GKI Bungur. Isi diatur lewat plugin "GKI Bungur – Konten Gereja".
Version:           1.0.2
Requires at least: 6.4
Requires PHP:      7.4
Author:            GKI Bungur
Text Domain:       gki-bungur
License:           GPL-2.0-or-later
*/

/* ---------- Token ---------- */
:root {
	--navy: #14213D;
	--navy-deep: #0E1830;
	--navy-line: #34436A;
	--blue: #1E4B8F;
	--gold: #E3B04B;
	--surface: #F4F6FA;
	--line: #D5DCE8;
	--line-soft: #E3E8F0;
	--muted: #4A5568;
	--muted-on-dark: #B9C3D8;
	--text-on-dark: #D5DCEA;
	--white: #FFFFFF;
	--radius: 4px;
	--wrap: 1240px;
	--pad: 24px;
	--font: "Plus Jakarta Sans", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--navy); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 100; padding: 12px 18px; background: var(--white); color: var(--navy); font-weight: 700; border-radius: 999px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: 104px 0; }
.section--surface { background: var(--surface); }
.section--tight-top { padding-top: 48px; }
.section--navy { background: var(--navy); color: var(--white); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.section--navy .eyebrow, .hero .eyebrow { color: var(--gold); }
.h2 { font-size: 44px; line-height: 1.12; font-weight: 800; }
.lead { font-size: 17px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.split-head { display: flex; flex-wrap: wrap; gap: 24px 64px; margin-bottom: 56px; }
.split-head > * { flex: 1 1 420px; min-width: 0; }
.split-head .lead { align-self: flex-end; }
.text-link { font-weight: 700; text-decoration: none; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #EDC26B; color: var(--navy); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--surface); color: var(--navy); }
.btn--ghost { border-color: var(--white); color: var(--white); background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn--outline:hover { background: var(--surface); color: var(--navy); }
.btn--blue { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn--blue:hover { background: var(--surface); }
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: #FF5A5F; flex: none; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; background: var(--navy); color: var(--white); }
.is-home .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand__mark { width: 52px; height: 52px; border-radius: 12px; background: var(--white); display: flex; align-items: center; justify-content: center; flex: none; }
.brand__mark img { width: 42px; height: 42px; object-fit: contain; }
.brand__name { font-weight: 800; font-size: 19px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.site-nav a { display: inline-block; padding: 10px 0; color: var(--white); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; color: var(--white); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }
.site-nav .only-mobile { display: none; }

@media (max-width: 959px) {
	.js .nav-toggle { display: inline-flex; }
	.js .site-header__actions .only-desktop { display: none; }
	.js .site-nav { display: none; flex-basis: 100%; order: 3; }
	.js .site-nav.is-open { display: block; background: var(--navy); border-radius: 12px; padding: 8px 20px 20px; }
	.js .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
	.js .site-nav li { width: 100%; border-bottom: 1px solid var(--navy-line); }
	.js .site-nav a { display: block; padding: 14px 0; font-size: 17px; }
	.js .site-nav .only-mobile { display: block; border-bottom: 0; padding-top: 16px; }
	.js .site-nav .only-mobile a { display: inline-flex; padding: 0 22px; font-size: 15px; }
	.brand__name { font-size: 17px; }
}

/* ---------- Pembuka ---------- */
.hero { position: relative; min-height: 760px; display: flex; color: var(--white); background: var(--navy-deep); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 24, 48, 0.6) 0%, rgba(14, 24, 48, 0.3) 30%, rgba(14, 24, 48, 0.9) 100%); }
.hero__body { position: relative; z-index: 1; align-self: flex-end; width: 100%; padding-top: 180px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 68px; line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; max-width: 860px; }
.hero__verse { font-size: 19px; color: var(--text-on-dark); max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Siapa kami ---------- */
.about { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.about .eyebrow { flex: 0 1 220px; padding-top: 10px; }
.about__text { flex: 1 1 600px; min-width: 0; font-size: 30px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
.stats { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.stats li { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 6px; }
.stats strong { font-size: 60px; font-weight: 800; line-height: 1; color: var(--blue); }
.stats span { color: var(--muted); }

/* ---------- Sejarah ---------- */
.history { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.history__figure { flex: 1 1 480px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.history__figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.history__figure figcaption { font-size: 14px; color: var(--muted); }
.history__body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.history__body > .btn { align-self: flex-start; }
.vm { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 8px; }
.vm > div { border-top: 2px solid var(--navy); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.vm strong { color: var(--navy); font-size: 16px; }
.vm ul { margin: 2px 0 0; padding-left: 18px; }
.timeline { margin-top: 48px; display: flex; flex-direction: column; gap: 20px; }
.timeline[hidden] { display: none; }
.timeline h3 { font-size: 24px; font-weight: 800; }
.timeline ol { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.timeline li { display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.timeline__year { flex: 0 0 140px; font-size: 22px; font-weight: 800; color: var(--blue); line-height: 1.3; }
.timeline__text { flex: 1 1 420px; min-width: 0; color: #2D3748; }

/* ---------- Ibadah ---------- */
.ibadah-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.ibadah-head .stack { max-width: 640px; }
.ibadah-head p { max-width: 420px; color: var(--text-on-dark); }
.sunday { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--navy-line); }
.sunday li { padding: 32px 28px 32px 0; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--navy-line); }
.sunday__time { font-size: 64px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.sunday__name { font-size: 19px; font-weight: 700; }
.sunday__note { color: var(--muted-on-dark); }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.group h3 { margin-bottom: 12px; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.group ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--navy-line); }
.group li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 11px 0; border-top: 1px solid var(--navy-line); }
.group__name { flex: 1 1 150px; min-width: 0; font-weight: 600; }
.group__day { color: var(--muted-on-dark); }
.group__time { flex: 0 0 98px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Panorama ---------- */
.panorama { background: var(--navy-deep); }
.panorama img { width: 100%; height: 520px; object-fit: cover; object-position: center 45%; }

/* ---------- Komisi ---------- */
.komisi-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 28px; }
.komisi { display: flex; flex-direction: column; gap: 12px; }
.komisi__img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.komisi__no { font-size: 14px; font-weight: 700; color: var(--blue); }
.komisi h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.komisi p { font-size: 15px; color: var(--muted); }

/* ---------- Jaringan ---------- */
.jaringan h2 { font-size: 36px; font-weight: 800; margin-bottom: 40px; }
.jaringan-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); border-top: 1px solid #C9D2E0; }
.jaringan-item { padding: 28px 28px 0 0; display: flex; flex-direction: column; gap: 8px; }
.jaringan-item .label { font-size: 14px; font-weight: 700; color: var(--blue); }
.jaringan-item h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.jaringan-item__body { font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.jaringan-item__body ul { list-style: none; margin: 0; padding: 10px 0; border-top: 1px solid #C9D2E0; border-bottom: 1px solid #C9D2E0; color: var(--navy); }
.jaringan-item__body li { padding: 2px 0; }
.jaringan-item__body a { font-weight: 600; text-decoration: none; }

/* ---------- Gembala & pengerja ---------- */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 36px 24px; }
.person { display: flex; flex-direction: column; gap: 10px; }
.person__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); background: var(--line); }
.person__name { font-weight: 800; line-height: 1.3; }
.person__role { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- Persembahan ---------- */
.giving { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 56px; }
.giving__intro { flex: 1 1 340px; min-width: 0; }
.giving__cards { flex: 2 1 620px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.account { background: var(--white); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.account__title { font-weight: 800; font-size: 18px; }
.account__bank, .account__holder { color: var(--muted); }
.account__bank { font-size: 14px; }
.account__number { font-size: 32px; font-weight: 800; letter-spacing: 0.03em; color: var(--blue); line-height: 1.2; font-variant-numeric: tabular-nums; }
.account .btn { align-self: flex-start; margin-top: 6px; }
.qris { grid-column: 1 / -1; background: var(--white); border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; }
.qris img { width: 200px; height: 200px; object-fit: contain; flex: none; }
.qris__body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.qris__body strong { color: var(--navy); font-size: 18px; }
.qris__body .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Kontak ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact__item { display: flex; flex-direction: column; gap: 4px; }
.contact__item strong { font-weight: 800; }
.contact__item span { color: var(--muted); }
.contact__item a { font-weight: 600; text-decoration: none; }
.contact__map { flex: 1 1 480px; min-width: 0; min-height: 440px; border-radius: var(--radius); overflow: hidden; background: #DDE3EC; }
.contact__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
.map-card { height: 100%; min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--navy); text-decoration: none; }
.map-card:hover { color: var(--navy); background: #D5DCE8; }
.map-card__title { font-size: 20px; font-weight: 800; }
.map-card__sub { color: var(--muted); font-size: 15px; }
.map-card__cta { font-weight: 700; color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C3CCDD; font-size: 15px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 32px; }
.site-footer .brand__name { font-size: 20px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid #24304D; font-size: 14px; }
.site-footer__bottom a { color: #C3CCDD; text-decoration: none; }
.gkb-social.wp-block-social-links { gap: 10px; margin: 0; padding: 0; }
.gkb-social .wp-social-link { border: 1px solid #3A4A70; border-radius: 999px; }
.gkb-social .wp-social-link a { padding: 11px; }
.gkb-social .wp-social-link svg { width: 20px; height: 20px; }
.gkb-social .wp-social-link:hover { border-color: var(--white); }

/* ---------- Halaman biasa (mis. Sejarah lengkap) ---------- */
.page-hero { background: var(--navy); color: var(--white); }
.page-hero .wrap { padding-top: 40px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 20px; }
.page-hero__back { align-self: flex-start; color: var(--text-on-dark); text-decoration: none; font-weight: 600; padding: 10px 0; }
.page-hero__back:hover { color: var(--white); }
.page-hero h1 { font-size: 60px; line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; max-width: 900px; }
.page-hero p { font-size: 19px; color: var(--text-on-dark); max-width: 680px; }
.entry { padding: 72px 0 104px; }
.entry-content { max-width: 820px; }
.entry-content > * + * { margin-top: 20px; }
.entry-content p, .entry-content li { font-size: 18px; line-height: 1.75; color: #2D3748; }
.entry-content h2 { font-size: 30px; line-height: 1.25; font-weight: 800; margin-top: 12px; }
.entry-content .gkb-bab { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--blue); }
.entry-content .gkb-bab:first-child { margin-top: 0; }
.entry-content .gkb-bab + h2 { margin-top: 8px; }
.entry-content h2:not(.gkb-bab + h2) { margin-top: 64px; }
.entry-content .wp-block-table { margin: 24px 0 0; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line-soft); }
.entry-content th { font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--navy); }
.entry-content td:first-child { white-space: nowrap; color: var(--muted); }
.entry-content .wp-block-image img { border-radius: var(--radius); }

/* ---------- Daftar hamba Tuhan di halaman sejarah (seperti desain) ---------- */
.entry-content [class*="gkb-daftar-"] { overflow: visible; margin-top: 28px; }
.entry-content [class*="gkb-daftar-"] table,
.entry-content [class*="gkb-daftar-"] tbody,
.entry-content [class*="gkb-daftar-"] tr,
.entry-content [class*="gkb-daftar-"] td { display: block; width: auto; border: 0; padding: 0; white-space: normal; }
.entry-content [class*="gkb-daftar-"] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.entry-content [class*="gkb-daftar-"] td:empty { display: none; }

/* Pendeta Jemaat: nomor · masa · nama + nama Mandarin */
.entry-content .gkb-daftar-pendeta tbody { border-bottom: 1px solid var(--line); }
.entry-content .gkb-daftar-pendeta tr { display: grid; grid-template-columns: 48px 130px minmax(0, 1fr); column-gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.entry-content .gkb-daftar-pendeta td:nth-child(1) { font-weight: 800; color: var(--blue); }
.entry-content .gkb-daftar-pendeta td:nth-child(2) { color: var(--muted); white-space: nowrap; }
.entry-content .gkb-daftar-pendeta td:nth-child(3) { grid-column: 3; font-weight: 700; color: var(--navy); font-size: 16px; }
.entry-content .gkb-daftar-pendeta td:nth-child(4) { grid-column: 3; font-size: 14px; color: var(--muted); }

/* Pendeta Tugas Khusus: masa · nama + tugas */
.entry-content .gkb-daftar-khusus tbody { border-bottom: 1px solid var(--line); }
.entry-content .gkb-daftar-khusus tr { display: grid; grid-template-columns: 130px minmax(0, 1fr); column-gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.entry-content .gkb-daftar-khusus td:nth-child(1) { color: var(--muted); white-space: nowrap; }
.entry-content .gkb-daftar-khusus td:nth-child(2) { grid-column: 2; font-weight: 700; color: var(--navy); font-size: 16px; }
.entry-content .gkb-daftar-khusus td:nth-child(3) { grid-column: 2; font-size: 14px; color: var(--muted); }

/* Hamba Tuhan & yang berasal dari jemaat: tiga kolom */
.entry-content .gkb-daftar-hamba,
.entry-content .gkb-daftar-asal { width: min(1192px, calc(100vw - 48px)); max-width: none; }
.entry-content .gkb-daftar-hamba tbody { columns: 3 340px; column-gap: 40px; }
.entry-content .gkb-daftar-hamba tr { display: grid; grid-template-columns: 118px minmax(0, 1fr); column-gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); break-inside: avoid; }
.entry-content .gkb-daftar-hamba td:nth-child(1) { font-size: 14px; color: var(--muted); }
.entry-content .gkb-daftar-hamba td:nth-child(2) { grid-column: 2; font-weight: 600; font-size: 15px; color: var(--navy); }
.entry-content .gkb-daftar-hamba td:nth-child(3) { grid-column: 2; font-size: 14px; color: var(--muted); }
.entry-content .gkb-daftar-asal tbody { columns: 3 300px; column-gap: 40px; }
.entry-content .gkb-daftar-asal tr { padding: 10px 0; border-top: 1px solid var(--line-soft); break-inside: avoid; }
.entry-content .gkb-daftar-asal td:nth-child(1) { font-weight: 600; font-size: 15px; color: var(--navy); }
.entry-content .gkb-daftar-asal td:nth-child(2) { font-size: 14px; color: var(--muted); }

@media (max-width: 600px) {
	.entry-content .gkb-daftar-pendeta tr { grid-template-columns: 36px minmax(0, 1fr); }
	.entry-content .gkb-daftar-pendeta td:nth-child(2) { grid-column: 2; }
	.entry-content .gkb-daftar-pendeta td:nth-child(3), .entry-content .gkb-daftar-pendeta td:nth-child(4) { grid-column: 2; }
	.entry-content .gkb-daftar-khusus tr, .entry-content .gkb-daftar-hamba tr { grid-template-columns: minmax(0, 1fr); }
	.entry-content .gkb-daftar-khusus td, .entry-content .gkb-daftar-hamba td { grid-column: 1 !important; }
}

/* ---------- Layar kecil ---------- */
@media (max-width: 782px) {
	.section { padding: 72px 0; }
	.h2 { font-size: 34px; }
	.hero { min-height: 640px; }
	.hero h1 { font-size: 44px; }
	.hero__verse { font-size: 17px; }
	.hero__body { padding-bottom: 64px; }
	.about__text { font-size: 23px; }
	.stats strong { font-size: 46px; }
	.sunday__time { font-size: 52px; }
	.group__time { flex-basis: auto; text-align: left; }
	.panorama img { height: 300px; }
	.page-hero h1 { font-size: 40px; }
	.entry-content h2 { font-size: 25px; }
	.account__number { font-size: 27px; }
}
