/* ============================================================
   base.css — Design System "Emerald Institutional Elegance"
   LPH Doa Bangsa · Poppins · Emerald/Teal/White/Gold
   ============================================================ */

/* ------------------------- Tokens (default; dioverride theme settings) */
:root {
  --c-primary: #087A50;
  --c-deep: #07533F;
  --c-teal: #073F3D;
  --c-accent: #159B76;
  --c-gold: #C9A64B;
  --c-gold-soft: #E6D6A5;
  --c-bg: #F5F9F9;
  --c-surface: #FFFFFF;
  --c-text: #173B38;
  --c-text-soft: #687B78;
  --c-line: #E3EEEA;
  --c-navbar-bg: #FFFFFF;
  --c-footer-bg: #073F3D;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-btn: 12px;
  --nav-h: 72px;
  --shadow-1: 0 1px 2px rgba(23, 59, 56, .05);
  --shadow-2: 0 10px 30px rgba(7, 63, 61, .10);
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pattern-opacity: .06;
  --w: 1200px;
}

/* ------------------------- Reset ringan */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-deep); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--c-teal); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: 24px; }

/* ------------------------- Tipografi */
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; margin: 0; color: var(--c-text); }
.h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-primary); margin: 0 0 12px;
}
.eyebrow .bi { color: var(--c-gold); font-size: 10px; }
.section-desc { color: var(--c-text-soft); max-width: 640px; margin-top: 10px; }

.section { padding: 46px 0; }
.section-dark { background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-deep) 100%); }

/* Kepala section: variasi left/center, tanpa pola kartu seragam */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .section-desc { margin-inline: auto; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--c-primary); white-space: nowrap; }
.link-more .bi { transition: transform .25s ease; }
.link-more:hover .bi { transform: translateX(4px); }

/* ------------------------- Ornamen geometris (dipakai selektif) */
.pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--pattern-opacity);
  background-image: var(--pattern-image, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23073F3D' stroke-width='1'%3E%3Cpath d='M16 16 H48 V48 H16 Z'/%3E%3Cpath d='M32 8 L56 32 L32 56 L8 32 Z'/%3E%3C/g%3E%3C/svg%3E"));
  background-size: 64px 64px;
}
.pattern-light {
  position: absolute; inset: 0; pointer-events: none; opacity: calc(var(--pattern-opacity) * .9);
  background-image: var(--pattern-image, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1'%3E%3Cpath d='M16 16 H48 V48 H16 Z'/%3E%3Cpath d='M32 8 L56 32 L32 56 L8 32 Z'/%3E%3C/g%3E%3C/svg%3E"));
  background-size: 64px 64px;
}

/* ------------------------- Tombol */
.btn-primary, .btn-ghost, .btn-gold, .btn-outline-light, .btn-nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; line-height: 1;
  padding: 13px 22px; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-sm { padding: 9px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--c-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-ghost { background: transparent; color: var(--c-teal); border-color: #C9DBD6; }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); background: #F2FAF7; transform: translateY(-1px); }
.btn-gold { background: var(--c-gold); color: #26200A; }
.btn-gold:hover { background: #B99334; color: #26200A; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(201, 166, 75, .35); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; transform: translateY(-1px); }
.btn-nav-cta {
  background: var(--c-primary); color: #fff; padding: 10px 18px; font-size: 13px; border-radius: 999px;
}
.btn-nav-cta:hover { background: var(--c-deep); color: #fff; }
.btn-primary:active, .btn-ghost:active, .btn-gold:active, .btn-outline-light:active, .btn-nav-cta:active { transform: translateY(0) scale(.98); transition-duration: .12s; }
.is-loading { opacity: .7; pointer-events: none; }

/* ------------------------- Navbar */
.site-navbar {
  position: sticky; top: 0; z-index: 90;
  background: var(--c-navbar-bg);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-navbar.is-scrolled { border-bottom-color: var(--c-line); box-shadow: 0 4px 18px rgba(7, 63, 61, .07); }
.nav-wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { max-height: 44px; width: auto; }
.nav-menu { flex: 1; display: flex; justify-content: center; }
.nav-menu > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link-item {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 10px 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--c-text);
  letter-spacing: .01em; transition: color .2s ease, background-color .2s ease;
}
.nav-link-item:hover { color: var(--c-primary); background: #F2FAF7; }
.nav-link-item.active { color: var(--c-primary); }
.drop-caret { font-size: 10px; color: var(--c-text-soft); transition: transform .25s ease; }
.has-drop:hover .drop-caret { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 6px);
  min-width: 230px; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: 12px;
  box-shadow: var(--shadow-2); padding: 8px;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.has-drop:hover .dropdown-panel,
.has-drop:focus-within .dropdown-panel,
.has-drop.is-open-tap .dropdown-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-drop.is-open-tap .drop-caret { transform: rotate(180deg); }
.dropdown-panel ul { list-style: none; margin: 0; padding: 0; }
.dropdown-panel a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--c-text);
}
.dropdown-panel a:hover, .dropdown-panel a.active { background: #F2FAF7; color: var(--c-primary); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: none; cursor: pointer;
  color: var(--c-text); font-size: 17px;
  transition: background-color .2s ease, color .2s ease;
}
.icon-btn:hover { background: #F2FAF7; color: var(--c-primary); }

.lang-switch { position: relative; }
#langBtn { gap: 6px; width: auto; padding-inline: 10px; }
.flag { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(23, 59, 56, .12); }
.lang-code { font-size: 12px; font-weight: 600; color: var(--c-text-soft); }
.lang-caret { font-size: 10px; color: var(--c-text-soft); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 190px; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: 12px;
  box-shadow: var(--shadow-2); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.lang-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--c-text); }
.lang-menu a:hover { background: #F2FAF7; }
.lang-menu a.is-cur { color: var(--c-primary); background: #F2FAF7; }

.burger { display: none; flex-direction: column; gap: 4.5px; width: 42px; height: 40px; }
.burger-bar { width: 19px; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform .25s ease; }

/* ------------------------- Panel mobile */
.mobile-panel {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 110;
  background: var(--c-surface); box-shadow: -16px 0 48px rgba(7, 63, 61, .18);
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
  transform: translateX(100%); transition: transform .3s ease;
}
.mobile-panel:not([hidden]) { transform: translateX(0); }
.mobile-backdrop { position: fixed; inset: 0; background: rgba(7, 63, 61, .45); z-index: 105; }
.mobile-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid #EFF5F3; }
.m-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 4px; background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-size: 14.5px; font-weight: 600; color: var(--c-text); text-align: left;
}
.m-link .bi { font-size: 12px; color: var(--c-text-soft); transition: transform .25s ease; }
.m-link.is-open .bi { transform: rotate(180deg); }
.m-link.active { color: var(--c-primary); }
.m-sub { list-style: none; margin: 0; padding: 0 4px 8px; display: none; }
.m-sub.is-open { display: block; }
.m-sub a { display: block; padding: 10px 14px; font-size: 14px; color: var(--c-text-soft); border-left: 2px solid var(--c-line); }
.m-sub a:hover, .m-sub a.active { color: var(--c-primary); border-left-color: var(--c-gold); }
.mobile-extra { margin-top: auto; display: grid; gap: 10px; }
.mobile-langs { display: flex; gap: 10px; }
.mobile-langs a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1px solid var(--c-line); border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--c-text); }
.mobile-langs a.is-cur { border-color: var(--c-primary); color: var(--c-primary); background: #F2FAF7; }

/* ------------------------- Search modal */
.search-modal { position: fixed; inset: 0; z-index: 120; }
.search-backdrop { position: absolute; inset: 0; background: rgba(7, 63, 61, .5); backdrop-filter: blur(3px); }
.search-panel { position: relative; padding-top: 12vh; }
.search-inner { max-width: 720px; background: var(--c-surface); border-radius: 18px; box-shadow: var(--shadow-2); padding: 26px; }
.search-form { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--c-line); border-radius: 14px; padding: 6px 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.search-form:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(8, 122, 80, .1); }
.search-form .bi { color: var(--c-text-soft); font-size: 18px; }
.search-form input { flex: 1; border: none; outline: none; background: none; font-family: var(--font-body); font-size: 15.5px; color: var(--c-text); padding: 10px 0; }
.search-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.search-hints-label { font-size: 12.5px; color: var(--c-text-soft); margin-right: 4px; }

/* ------------------------- Chip & badge */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  background: #F0F7F4; border: 1px solid var(--c-line);
  font-size: 12px; font-weight: 500; color: var(--c-teal);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
a.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip-cat { background: var(--c-gold-soft); border-color: #E3D29B; color: #6B5518; }

/* Chip filter kategori (halaman Fatwa & Regulasi) — aktif = hijau, tulisan putih */
.reg-filter-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.fchip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 17px; border-radius: 999px;
  background: var(--c-surface); border: 1.5px solid var(--c-line);
  font-size: 13.5px; font-weight: 500; line-height: 1.25; color: var(--c-teal);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.fchip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.fchip .fchip-n { font-size: 11.5px; opacity: .72; }
.fchip.is-active {
  background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(8, 122, 80, .22);
}
.fchip.is-active .fchip-n { opacity: .85; }
.fchip.is-active:hover { background: var(--c-deep); border-color: var(--c-deep); color: #fff; }
.badge-halal {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(201, 166, 75, .14); border: 1px solid rgba(201, 166, 75, .5);
  font-size: 11.5px; font-weight: 600; color: #7A611F; letter-spacing: .02em;
}
.badge-halal .bi { color: var(--c-gold); font-size: 12px; }

/* ------------------------- Page hero (halaman dalam) */
.page-hero {
  background:
    linear-gradient(180deg, #FBFDFC 0%, #F4F9F7 100%);
  border-bottom: 1px solid var(--c-line);
  padding: 40px 0 34px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle at center, rgba(8, 122, 80, .1), transparent 70%);
}
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--c-text-soft); margin-bottom: 14px; }
.crumbs a { color: var(--c-text-soft); font-weight: 500; }
.crumbs a:hover { color: var(--c-primary); }
.crumbs .bi { font-size: 9px; }
.crumbs [aria-current] { color: var(--c-text); font-weight: 500; }
.ph-title { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; letter-spacing: -.01em; }
.ph-desc { color: var(--c-text-soft); max-width: 680px; margin: 10px 0 0; }

/* ------------------------- Filter bar */
.filter-bar { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-1); margin-bottom: 32px; }
.filter-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.search-grow { flex: 1; min-width: 220px; }
.filter-label { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-soft); }
.filter-reset { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--c-text-soft); padding: 12px 0; }
.filter-reset:hover { color: #B4433A; }

/* ------------------------- Input */
input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="url"], input[type="date"], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--c-text);
  background: var(--c-surface); border: 1.5px solid #DCE9E5; border-radius: var(--radius-sm);
  padding: 11px 14px; transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(8, 122, 80, .1); }
textarea { resize: vertical; min-height: 110px; }
label { font-size: 13.5px; font-weight: 500; color: var(--c-text); }
.req { color: #C0392B; }

/* ------------------------- Paginasi */
.pgn { margin-top: 40px; }
.pgn ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pgn a, .pgn span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.pgn a { color: var(--c-teal); border: 1px solid var(--c-line); background: var(--c-surface); transition: all .2s ease; }
.pgn a:hover { border-color: var(--c-primary); color: var(--c-primary); background: #F2FAF7; }
.pgn a.is-off { opacity: .35; pointer-events: none; }
.pgn-cur { background: var(--c-primary); color: #fff; font-weight: 600; }
.pgn-dots { color: var(--c-text-soft); }

/* ------------------------- Empty state */
.empty-state {
  text-align: center; padding: 64px 24px;
  border: 1.5px dashed #D3E4DE; border-radius: 18px; background: #FAFDFC;
  max-width: 560px; margin-inline: auto;
}
.empty-state .bi { font-size: 40px; color: var(--c-accent); opacity: .6; }
.empty-state h3 { margin: 14px 0 6px; font-size: 1.15rem; }
.empty-state p { color: var(--c-text-soft); margin-bottom: 18px; }

/* ------------------------- Aside card (sidebar halaman dalam) */
.aside-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-1); }
.aside-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.aside-card p { font-size: 14px; color: var(--c-text-soft); }
.aside-card .btn { margin-top: 8px; }
.aside-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--c-teal); }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list li { border-bottom: 1px solid #EFF5F3; }
.aside-list li:last-child { border-bottom: none; }
.aside-list a { display: flex; align-items: flex-start; gap: 6px; padding: 10px 0; font-size: 13.5px; font-weight: 500; color: var(--c-text); line-height: 1.5; }
.aside-list a:hover { color: var(--c-primary); }
.aside-list .bi { color: var(--c-gold); margin-top: 3px; flex-shrink: 0; }
.aside-empty { color: var(--c-text-soft); font-size: 13.5px; }
.aside-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-value {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: #F2FAF7;
  border: 1px solid #D9EBE4; font-size: 12px; font-weight: 600; color: var(--c-deep);
}
.ip-value .bi { color: var(--c-gold); font-size: 11px; }

/* ------------------------- Accordion (FAQ, tahapan) */
.acc-list { display: grid; gap: 10px; }
.acc {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px;
  overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease;
}
.acc[open] { border-color: var(--c-primary); box-shadow: var(--shadow-1); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--c-text);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .bi { color: var(--c-text-soft); font-size: 13px; transition: transform .25s ease; flex-shrink: 0; }
.acc[open] summary .bi { transform: rotate(180deg); color: var(--c-primary); }
.acc-body { padding: 0 18px 16px; color: var(--c-text-soft); font-size: 14.5px; }
.acc-body p:last-child { margin-bottom: 0; }

/* ------------------------- Konten rich text (prose) */
.prose { font-size: 15.5px; line-height: 1.75; color: var(--c-text); }
.prose h1, .prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-size: 1.12rem; }
.prose p { margin-bottom: 1.1em; }
.prose a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; }
.prose th { background: #F2FAF7; font-weight: 600; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 3px solid var(--c-gold); background: #FBF7EC; border-radius: 0 10px 10px 0; color: #5C4B1E; }

/* ------------------------- Footer */
.site-footer { position: relative; background: var(--c-footer-bg); color: #D9E8E3; }
.footer-wave { position: relative; height: 60px; background: transparent; }
.footer-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.footer-wave-gold { opacity: .8; }
.footer-body { position: relative; }
.footer-body::before {
  content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1'%3E%3Cpath d='M16 16 H48 V48 H16 Z'/%3E%3Cpath d='M32 8 L56 32 L32 56 L8 32 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.footer-grid {
  position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px;
  padding: 52px 24px 40px;
}
.f-logo { max-height: 52px; width: auto; margin-bottom: 16px; }
.f-desc { font-size: 13.5px; line-height: 1.7; color: #AECBC4; max-width: 320px; }
.f-social { display: flex; gap: 8px; margin-top: 16px; }
.f-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: #E8F2EF; font-size: 16px; transition: all .2s ease;
}
.f-social a:hover { background: var(--c-gold); border-color: var(--c-gold); color: #26200A; transform: translateY(-2px); }
.f-title { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #FFFFFF; margin-bottom: 18px; padding-bottom: 10px; position: relative; }
.f-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--c-gold); border-radius: 2px; }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.f-links a { font-size: 13.5px; color: #C6DCD6; transition: color .2s ease, padding-left .2s ease; }
.f-links a:hover { color: var(--c-gold-soft); padding-left: 4px; }
.f-links a.f-ext { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: #D8E8E3; }
.f-ext > .bi:first-child { color: var(--c-gold); }
.f-ext-ic { font-size: 11px; opacity: .75; margin-left: 2px; }
.f-citem { display: flex; gap: 10px; font-size: 13.5px; color: #C6DCD6; margin-bottom: 12px; line-height: 1.6; }
.f-citem .bi { color: var(--c-gold); margin-top: 3px; flex-shrink: 0; }
.f-citem a { color: #C6DCD6; }
.f-citem a:hover { color: var(--c-gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.fb-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 24px; }
.fb-copy { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; color: #9DBBB4; margin: 0; }
.fb-dot { font-size: 5px; color: var(--c-gold); }
.fb-stats {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: #E8F2EF; font-family: var(--font-head); font-size: 12.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  transition: all .2s ease;
}
.fb-stats:hover { border-color: var(--c-gold); color: var(--c-gold-soft); }
.fb-stats .bi { color: var(--c-gold); }
.fb-legal { display: inline-flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.fb-legal a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; color: #9DBBB4;
  text-decoration: none; transition: color .2s ease;
}
.fb-legal a:hover { color: var(--c-gold-soft); }
.fb-legal .bi { color: var(--c-gold); font-size: 13px; }
@media (max-width: 640px) {
  .fb-legal { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ------------------------- Modal statistik pengunjung */
.visitor-modal { position: fixed; inset: 0; z-index: 120; }
.visitor-backdrop { position: absolute; inset: 0; background: rgba(7, 63, 61, .55); }
.visitor-panel {
  position: relative; width: min(480px, calc(100vw - 40px));
  margin: 14vh auto 0; background: var(--c-surface);
  border-radius: 20px; box-shadow: var(--shadow-2); padding: 34px 30px 26px;
  border-top: 4px solid var(--c-gold);
}
.vm-close { position: absolute; top: 14px; right: 14px; }
.vm-title { font-size: 1.05rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: var(--c-teal); }
.vm-orn { width: 56px; height: 3px; background: linear-gradient(90deg, var(--c-gold), transparent); margin: 12px auto 24px; border-radius: 2px; }
.vm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vm-item { text-align: center; padding: 16px 8px; background: #F7FBFA; border: 1px solid var(--c-line); border-radius: 14px; }
.vm-num { display: block; font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--c-primary); }
.vm-label { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--c-text-soft); margin-top: 6px; }
.vm-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--c-text-soft); margin: 20px 0 0; }
.vm-note .bi { color: var(--c-accent); }

/* ------------------------- WhatsApp mengambang */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa-color, #25D366); color: #fff;
  font-size: 26px; box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float.wa-left { right: auto; left: 22px; }
.wa-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--wa-color, #25D366); animation: waPulse 2.2s ease-out infinite; z-index: -1; }
@keyframes waPulse {
  0% { transform: scale(1); opacity: .55; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.wa-tip {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
  background: var(--c-teal); color: #fff; font-size: 12.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.wa-float:hover .wa-tip { opacity: 1; }
.wa-float.wa-left .wa-tip { right: auto; left: 66px; }

/* ------------------------- Tombol ke atas */
.to-top {
  position: fixed; right: 24px; bottom: 92px; z-index: 99;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  color: var(--c-teal); font-size: 16px; cursor: pointer;
  box-shadow: var(--shadow-2); transition: all .2s ease;
}
.to-top:hover { color: var(--c-primary); border-color: var(--c-primary); transform: translateY(-2px); }

/* ------------------------- Flash toast */
.toast-zone { position: fixed; top: 84px; left: 0; right: 0; z-index: 130; pointer-events: none; display: grid; gap: 10px; }
.flash-toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px;
  max-width: 560px; margin-inline: auto; width: 100%;
  background: var(--c-surface); border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent);
  border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow-2);
  font-size: 14px; animation: toastIn .35s ease;
}
.flash-success { border-left-color: #1F9D6B; } .flash-success .bi { color: #1F9D6B; }
.flash-danger { border-left-color: #C0392B; } .flash-danger .bi { color: #C0392B; }
.flash-warning { border-left-color: var(--c-gold); } .flash-warning .bi { color: var(--c-gold); }
.flash-close { margin-left: auto; background: none; border: none; font-size: 20px; color: var(--c-text-soft); cursor: pointer; line-height: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.flash-toast.is-out { opacity: 0; transform: translateY(-8px); transition: all .3s ease; }

/* ------------------------- Reveal halus */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------- Responsif global */
@media (max-width: 991.98px) {
  .nav-menu { display: none; }
  .burger { display: inline-flex; }
  .btn-nav-cta { display: none; }
  .section { padding: 38px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .nav-wrap { gap: 12px; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-logo { max-width: 150px; height: auto; }
  .section { padding: 32px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
  .section-head.center { align-items: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 42px 18px 32px; }
  .fb-wrap { justify-content: center; text-align: center; }
  .search-panel { padding-top: 8vh; }
  .vm-grid { grid-template-columns: 1fr; gap: 8px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .wa-tip { display: none; }
  .to-top { right: 18px; bottom: 78px; }
  .toast-zone { top: 76px; }
  .lang-code { display: none; }
}
