/* ============================================================
   LPPM STP St. Petrus Keuskupan Atambua — Stylesheet publik
   Palet: Navy #183153 · Royal #315B91 · Gold #D6A84F · BG #F5F7FA
   ============================================================ */
:root {
  --navy: #183153;
  --royal: #315B91;
  --gold: #D6A84F;
  --gold-soft: #F2E3C6;
  --bg: #F5F7FA;
  --white: #FFFFFF;
  --text: #273449;
  --muted: #64748b;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(24,49,83,.06), 0 4px 14px rgba(24,49,83,.05);
  --shadow-md: 0 8px 28px rgba(24,49,83,.10);
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.font-load { font-family: var(--font-body); color: var(--text); background: var(--bg); }
h1,h2,h3,h4,h5,h6,.font-head { font-family: var(--font-head); color: var(--navy); font-weight: 700; }
a { color: var(--royal); text-decoration: none; }
a:hover { color: var(--navy); }
::selection { background: var(--gold); color: var(--navy); }

/* ---------- Komponen dasar ---------- */
.btn { --bs-btn-font-weight: 600; border-radius: 10px; }
.btn-navy { background: var(--navy); color: #fff; border: none; }
.btn-navy:hover, .btn-navy:focus { background: #24446e; color: #fff; }
.btn-royal { background: var(--royal); color: #fff; border: none; }
.btn-royal:hover, .btn-royal:focus { background: #3a6ba6; color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); border: none; }
.btn-gold:hover, .btn-gold:focus { background: #e2b967; color: var(--navy); }
.btn-outline-navy { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

.site-badge { font-weight: 600; padding: .45em .85em; font-size: .72rem; letter-spacing: .02em; }
.card { border: none; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .25s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section-eyebrow { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--gold); margin-bottom: .5rem; }
.section-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; margin-bottom: .75rem; }
.section-desc { color: var(--muted); max-width: 640px; }

/* ---------- Demo banner ---------- */
.demo-banner { background: linear-gradient(90deg, #b3541e, #d67c2e); color: #fff; font-size: .82rem; padding: .45rem 1rem; text-align: center; }
.demo-banner a { color: #ffe9c9; text-decoration: underline; }

/* ---------- Navbar ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.75); font-size: .8rem; padding: .5rem 0; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--gold); }

.site-nav { background: var(--white); box-shadow: 0 1px 0 rgba(24,49,83,.08); position: sticky; top: 0; z-index: 1030; padding: .35rem 0; }
.site-nav .navbar-brand { display: flex; align-items: center; gap: .65rem; }
.logo-badge { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--royal)); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; flex: 0 0 auto; }
.logo-img { width: 46px; height: 46px; object-fit: contain; flex: 0 0 auto; }
.logo-title { font-family: var(--font-head); font-weight: 800; color: var(--navy); line-height: 1.1; font-size: 1rem; }
.logo-sub { font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.site-nav .nav-link { color: var(--text); font-weight: 600; font-size: .92rem; padding: .9rem .85rem !important; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--gold); }
.site-nav .navbar-toggler { border: none; }
.site-nav.nav-scrolled { box-shadow: var(--shadow-sm); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(140deg, var(--navy) 0%, #22406b 55%, var(--royal) 100%); color: #fff; padding: 4.5rem 0 5.5rem; }
.hero.hero-image { background: none; }
.hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(140deg, rgba(24,49,83,.92) 0%, rgba(24,49,83,.78) 55%, rgba(49,91,145,.85) 100%); }
.hero::after { content:""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; }
.hero-heroey { color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.hero p.lead-text { color: rgba(255,255,255,.85); max-width: 620px; }
.hero .btn-gold i { vertical-align: middle; }

.hero-wave svg { display: block; width: 100%; height: 52px; color: var(--bg); position: absolute; bottom: 0; left: 0; z-index: 2; }

/* ---------- Statistik ---------- */
.stat-strip { margin-top: -2.6rem; position: relative; z-index: 5; }
.stat-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 1.6rem 1.25rem; text-align: center; height: 100%; }
.stat-number { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--navy); line-height: 1; }
.stat-label { color: var(--muted); font-size: .85rem; margin-top: .35rem; }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto .8rem; background: rgba(49,91,145,.1); color: var(--royal); }

/* ---------- Kartu konten ---------- */
.content-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.content-card .thumb { aspect-ratio: 16/9.6; width: 100%; object-fit: cover; }
.thumb-wrap { position: relative; aspect-ratio: 16/9.6; overflow: hidden; background: linear-gradient(135deg, #e8edf4, #f5f7fa); }
.thumb-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.content-card:hover .thumb-wrap img { transform: scale(1.05); }
.thumb-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #b6c2d3; font-size: 2rem; }
.content-card .body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-meta { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center; }
.card-meta i { color: var(--gold); }
.card-title-link { color: var(--navy); font-family: var(--font-head); font-weight: 700; line-height: 1.35; font-size: 1.02rem; }
.card-title-link:hover { color: var(--royal); }
.tag-row .chip { display: inline-block; background: rgba(214,168,79,.14); color: #8a6420; border-radius: 999px; padding: .18rem .7rem; font-size: .72rem; font-weight: 600; }

/* ---------- Sambutan ---------- */
.quote-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 2rem; position: relative; }
.quote-box::before { content: "\201C"; position: absolute; top: -14px; left: 24px; font-family: var(--font-head); font-size: 4.5rem; color: var(--gold); opacity: .9; line-height: 1; }
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--royal); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }

/* ---------- Agenda item ---------- */
.agenda-item { display: flex; gap: 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: .95rem 1.1rem; align-items: flex-start; }
.agenda-date { flex: 0 0 auto; width: 62px; text-align: center; border-radius: 12px; background: rgba(214,168,79,.16); padding: .5rem 0 .55rem; }
.agenda-date .d { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--navy); line-height: 1; }
.agenda-date .m { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: #8a6420; text-transform: uppercase; }
.agenda-status { font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .15rem .6rem; }
.st-upcoming { background: rgba(49,91,145,.12); color: var(--royal); }
.st-running { background: rgba(25,135,84,.12); color: #146c43; }
.st-past { background: rgba(108,117,125,.12); color: #5f6d7e; }
.st-cancel { background: rgba(220,53,69,.1); color: #b02a37; }

/* ---------- Mitra ---------- */
.partner-tile { background: var(--white); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 1.1rem; text-align: center; font-weight: 600; color: #4a5a72; font-size: .85rem; display: grid; place-items: center; gap: .5rem; min-height: 84px; }
.partner-tile img { max-height: 44px; width: auto; }

/* ---------- Download item ---------- */
.dl-item { display: flex; align-items: center; gap: 1rem; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 1rem 1.15rem; }
.dl-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(214,168,79,.18); color: #8a6420; display: grid; place-items: center; font-size: 1.15rem; flex: 0 0 auto; }

/* ---------- Galeri ---------- */
.gallery-masonry { columns: 3; column-gap: 1rem; }
@media (max-width: 991px) { .gallery-masonry { columns: 2; } }
@media (max-width: 575px) { .gallery-masonry { columns: 2; column-gap: .6rem; } }
.gallery-masonry .gallery-item { break-inside: avoid; margin-bottom: 1rem; }
.gthumb { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); display: block; }
.gthumb img { width: 100%; height: auto; display: block; transition: transform .35s ease; }
.gthumb:hover img { transform: scale(1.04); }
.gthumb .gcap { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(24,49,83,.85)); color: #fff; font-size: .78rem; padding: 1.6rem .9rem .7rem; opacity: 0; transition: opacity .3s ease; }
.gthumb:hover .gcap { opacity: 1; }
.gthumb-ph { aspect-ratio: 4/3; display: grid; place-items: center; background: linear-gradient(135deg,#eef2f7,#e3e9f2); color: #b6c2d3; font-size: 1.8rem; border-radius: var(--radius); }

/* ---------- Halaman detail & banner ---------- */
.page-banner { background: linear-gradient(140deg, var(--navy) 0%, var(--royal) 100%); color: #fff; padding: 3rem 0 3.2rem; position: relative; overflow: hidden; }
.page-banner::after { content:""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px; }
.page-banner h1 { color: #fff; }
.page-banner .breadcrumb a { color: rgba(255,255,255,.8); }
.page-banner .breadcrumb .active, .page-banner .breadcrumb-item+.breadcrumb-item::before { color: var(--gold); }
.article-body { font-size: 1rem; line-height: 1.85; color: var(--text); }
.article-body h2, .article-body h3, .article-body h4 { margin: 1.5rem 0 .75rem; }
.article-body img { max-width: 100%; border-radius: var(--radius); }
.article-body blockquote { border-left: 4px solid var(--gold); background: var(--white); padding: 1rem 1.3rem; border-radius: 0 12px 12px 0; box-shadow: var(--shadow-sm); }

.sidebar-widget { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.35rem; }
.sidebar-widget h5 { font-size: .95rem; margin-bottom: 1rem; }
.link-list a { display: block; padding: .5rem 0; color: var(--text); border-bottom: 1px dashed rgba(24,49,83,.08); font-size: .9rem; }
.link-list a:last-child { border-bottom: none; }
.link-list a:hover { color: var(--royal); padding-left: .2rem; }

.filter-bar { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.1rem 1.25rem; }
.filter-bar .form-label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.empty-state { text-align: center; padding: 3.5rem 1.5rem; color: var(--muted); }
.empty-state .icon { font-size: 2.6rem; color: #c3cede; margin-bottom: .75rem; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); font-size: .9rem; }
.site-footer h6 { color: #fff; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--gold); }
.site-footer .gold-rule { width: 34px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 1rem; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .7rem; }
.footer-contact i { color: var(--gold); margin-top: .15rem; }
.site-footer .social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: .25s; }
.site-footer .social a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); font-size: .8rem; padding: 1.1rem 0; }
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--gold); }
.footer-admin-link { opacity: .75; }

/* ---------- Profil / struktur ---------- */
.org-node { display: flex; align-items: center; gap: 1rem; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-sm); padding: .9rem 1.15rem; }
.org-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--royal); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: 0 0 auto; }
.section-nav { position: sticky; top: 92px; }
.section-nav a.active { background: rgba(214,168,79,.15); color: var(--navy); font-weight: 700; }

/* ---------- Dark mode ---------- */
body.dark { --bg: #10192b; --white: #17233a; --text: #dbe4f0; --navy: #e7edf6; --muted: #93a3b8; }
body.dark .site-nav, body.dark .card, body.dark .content-card, body.dark .stat-card, body.dark .quote-box,
body.dark .agenda-item, body.dark .dl-item, body.dark .filter-bar, body.dark .sidebar-widget, body.dark .org-node,
body.dark .partner-tile, body.dark .article-body blockquote { background: #17233a; }
body.dark .hero { background: linear-gradient(140deg, #0d1524 0%, #17233a 100%); }
body.dark .section-title, body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5 { color: #e7edf6; }
body.dark .thumb-ph, body.dark .gthumb-ph { background: #1d2b45; color: #40506b; }

/* ---------- Utilitas animasi ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.chip { display: inline-block; background: rgba(214,168,79,.14); color: #8a6420; border-radius: 999px; padding: .2rem .7rem; font-size: .74rem; font-weight: 600; }

@media (max-width: 767px) {
  .section { padding: 2.75rem 0; }
  .hero { padding: 3.2rem 0 4.2rem; }
  .stat-strip { margin-top: -2rem; }
}
@media print {
  .site-nav, .topbar, .site-footer, .btn, .no-print, .filter-bar { display: none !important; }
  body { background: #fff; }
}
