/* ===== MohonIzin shared design system (post-redesign) =====
   Extracted from index.html's homepage redesign. This is now the single
   foundation stylesheet every page loads (replacing styles.css): tokens,
   reset, header/nav (including the dropdowns and mobile slide-out panel),
   buttons, section shell, card/tag patterns, FAQ accordion, dark "final"
   band, and footer. Page-specific stylesheets (e.g. peta-polygon.css)
   load after this one and only add layout unique to that page. */

:root {
  --cream: #F7F3EA;
  --cream-2: #FDFBF5;
  --line: #E6DFCE;
  --navy: #1E2536;
  --navy-2: #171D2B;
  --ink: #212A3D;
  --muted: #5F6674;
  --gold: #A9873F;
  --gold-2: #C9A55C;
  --gold-soft: #F0E6CF;
  --ok: #3E7C4F;

  /* Semantic aliases so every component below can be written once in
     terms of role (ivory bg / hairline border / text on navy / ...)
     rather than repeating the literal palette above. */
  --ivory: var(--cream);
  --hairline: var(--line);
  --gold-light: var(--gold-2);
  --text-on-navy: #EDEAE0;
  --text-on-navy-muted: #9AA3B5;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --gutter: 28px;
  --radius: 2px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* i18n.js removes this class after applying the saved language, so the
   page never flashes its (Indonesian) source-language markup first. */
html.i18n-pending body { visibility: hidden; }

h1, h2, h3, p, div, b { margin: 0; }

a { color: inherit; text-decoration: none; }

.serif { font-family: var(--font-serif); font-weight: 400; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
}

/* ===== Header — sticky, blurred cream bar ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 243, 234, .92);
  backdrop-filter: blur(8px);
  padding: 14px 28px;
  border-bottom: 1px solid var(--hairline);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
}

.logo-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.logo-accent { color: var(--gold); }

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.main-nav > a {
  display: inline-block;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
}

.main-nav > a:hover { color: var(--navy); border-bottom-color: var(--gold); }

.main-nav > a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--gold);
}

/* ===== Nav dropdowns ("Tahapan" / "Panduan" / "Alat Bantu") ===== */
.nav-dropdown { position: relative; }

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0 0 2px;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}

.nav-dropdown-btn:hover { color: var(--navy); border-bottom-color: var(--gold); }

.nav-dropdown-btn--active {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--gold);
}

.nav-chevron {
  flex-shrink: 0;
  color: currentColor;
  transition: transform 160ms ease-out;
}

.nav-dropdown-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--cream-2);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(28, 36, 51, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 0s linear 160ms;
  z-index: 50;
}

.nav-dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .nav-chevron, .nav-dropdown-panel { transition: none; }
}

.nav-dropdown-panel--stages { width: 680px; padding: 24px 0; }
.nav-dropdown-panel--tools { width: 400px; padding: 24px 0; }
.nav-dropdown-panel--guides { width: 420px; padding: 24px 0; }

.nav-dropdown-header { padding: 0 28px 16px; }

.nav-dropdown-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; }
.nav-dropdown-grid .nav-dropdown-item:nth-child(odd) { border-right: 1px solid var(--hairline); }
.nav-dropdown-list { display: flex; flex-direction: column; }

.nav-dropdown-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  padding: 14px 28px;
  text-decoration: none;
  color: inherit;
  transition: background-color 120ms ease;
}

a.nav-dropdown-item:hover { background: rgba(168, 134, 47, 0.06); }
a.nav-dropdown-item:hover .nav-dropdown-title { color: var(--gold); transition: color 120ms ease; }

.nav-dropdown-num {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
  width: 24px;
}

.nav-dropdown-marker {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
  width: 14px;
}

.nav-dropdown-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nav-dropdown-title { font-size: 15px; font-weight: 600; color: var(--navy); transition: color 120ms ease; }

.nav-dropdown-desc {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dropdown-item--soon { cursor: default; }
.nav-dropdown-item--soon .nav-dropdown-title { color: var(--muted); }

.nav-dropdown-soon-badge {
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 3px 7px;
  white-space: nowrap;
}

/* ===== Header right cluster (language switch + CTA) ===== */
.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 24px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.lang-btn {
  background: none;
  border: none;
  padding: 4px 2px;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  transition: color 150ms ease;
}

.lang-btn:hover { color: var(--navy); }
.lang-btn[aria-pressed="true"] { color: var(--gold); }
.lang-sep { color: var(--hairline); font-size: 12px; }

/* ===== Mobile hamburger + slide-out panel (<920px) ===== */
.nav-hamburger {
  display: none;
  position: relative;
  z-index: 95;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: 0;
}

.nav-hamburger-lines { display: flex; flex-direction: column; gap: 5px; width: 22px; }

.nav-hamburger-lines span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 160ms ease-out, opacity 160ms ease-out;
}

.nav-hamburger[aria-expanded="true"] .nav-hamburger-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] .nav-hamburger-lines span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] .nav-hamburger-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 36, 51, 0.35);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease-out;
}

.mobile-nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--ivory);
  border-left: 1px solid var(--hairline);
  z-index: 91;
  overflow-y: auto;
  padding: 24px var(--gutter) 32px;
  transform: translateX(100%);
  transition: transform 160ms ease-out;
}

.mobile-nav-panel.is-open { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .nav-hamburger-lines span, .mobile-nav-overlay, .mobile-nav-panel { transition: none; }
}

.mobile-nav-top { padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.mobile-nav-top a { font-size: 16px; font-weight: 600; color: var(--navy); text-decoration: none; }

.mobile-nav-group { padding: 20px 0; border-bottom: 1px solid var(--hairline); }

.mobile-nav-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.mobile-nav-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
}

.mobile-nav-item .nav-dropdown-num,
.mobile-nav-item .nav-dropdown-marker { width: auto; flex-shrink: 0; }
.mobile-nav-item .nav-dropdown-text { flex: 1; min-width: 0; }
.mobile-nav-item .nav-dropdown-desc { white-space: normal; }

.mobile-nav-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 24px;
}

.mobile-nav-bottom .btn-navy { width: 100%; text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  cursor: pointer;
  border-radius: 5px;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 26px;
  transition: background-color 150ms ease;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 6px 18px rgba(169, 135, 63, .28);
}

.btn-gold:hover { background: #94762F; }

.btn-ghost {
  display: inline-block;
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
  padding: 6px 2px;
  font-weight: 600;
  font-size: 15px;
}

.btn-ghost:hover { color: var(--gold); }

/* Compact variant for the header's own nav CTA, so it doesn't inherit
   the larger body-button padding above. */
.site-header .btn,
.mobile-nav-bottom .btn {
  padding: 11px 22px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ===== Navy "journey"/stepped-list panel — used by the homepage hero
   and any page needing a numbered list of linked steps with a status
   badge (e.g. tentang.html's "Perjalanan yang kami pandu"). ===== */
.journey {
  background: var(--navy);
  border-radius: 10px;
  padding: 34px 34px 26px;
  color: var(--text-on-navy);
  box-shadow: 0 24px 60px rgba(30, 37, 54, .28);
}

.journey h3 { font-family: var(--font-serif); font-size: 23px; margin-bottom: 4px; }
.journey p.sub { font-size: 13px; color: var(--text-on-navy-muted); margin-bottom: 20px; }

.j-step {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  align-items: baseline;
}

.j-step:last-of-type { border-bottom: none; }

.j-num { font-family: var(--font-serif); color: var(--gold-2); font-size: 19px; min-width: 26px; }
.j-step b { font-size: 14.5px; font-weight: 600; color: #fff; }
.j-step small { display: block; font-size: 12.5px; color: var(--text-on-navy-muted); }

.j-badge {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: .06em;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  align-self: center;
}

.j-ready { background: rgba(98, 168, 116, .18); color: #8FCBA1; }
.j-soon { background: rgba(255, 255, 255, .07); color: #8B94A7; }

.journey .foot { margin-top: 16px; font-size: 12.5px; color: var(--text-on-navy-muted); }
.journey .foot a { color: var(--gold-2); border-bottom: 1px solid rgba(201, 165, 92, .4); }

/* ===== Generic page intro hero — eyebrow + serif h1 + lead paragraph(s),
   optionally a second column (e.g. a .journey panel). Used by any page
   whose intro isn't the homepage's own richer hero. ===== */
.page-hero {
  padding: 76px 0 70px;
  display: grid;
  grid-template-columns: 1.15fr .95fr;
  gap: 56px;
  align-items: start;
}

.page-hero.page-hero--single { grid-template-columns: 1fr; }

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.08;
  margin: 14px 0 20px;
}

.page-hero h1 em { color: var(--gold); font-style: italic; }

.page-hero p.lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 16px;
}

.page-hero p.lead:last-of-type { margin-bottom: 0; }

@media (max-width: 920px) {
  .page-hero { grid-template-columns: 1fr; padding: 52px 0; }
}

/* ===== Section shell ===== */
section.block { padding: 84px 0; }

.head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.head-row h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.12;
  margin-top: 12px;
}

.head-row .more {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  border-bottom: 1.5px solid var(--gold);
}

/* ===== Card grid (light — e.g. "Tahapan") ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.step-card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 24px 22px;
  position: relative;
  transition: .22s;
  display: block;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(30, 37, 54, .10);
  border-color: #D9CFB6;
}

.step-card .num { font-family: var(--font-serif); font-size: 38px; color: var(--gold); }
.step-card h3 { font-size: 16.5px; font-weight: 700; margin: 6px 0 6px; }
.step-card p { font-size: 13.5px; color: var(--muted); }
.step-card .go { font-size: 13px; font-weight: 600; color: var(--gold); margin-top: 12px; display: inline-block; }

.tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 9px;
  border-radius: 99px;
}

.tag-ready { background: #E4EFE5; color: #3E7C4F; }
.tag-soon { background: #EFEAD9; color: #8A7A4E; }

/* ===== Card grid (dark — e.g. "Alat Bantu") ===== */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.tool {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 30px 26px;
  transition: .22s;
  display: block;
}

.tool:hover { transform: translateY(-4px); border-color: rgba(201, 165, 92, .5); }

.tool .ic {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(201, 165, 92, .14);
  color: var(--gold-2);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.tool h3 { font-family: var(--font-serif); font-size: 21px; color: #fff; margin-bottom: 8px; }
.tool p { font-size: 13.5px; color: var(--text-on-navy-muted); }
.tool .go { color: var(--gold-2); font-size: 13px; font-weight: 600; margin-top: 16px; display: inline-block; }

.tool .new {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--gold);
  color: #fff;
  border-radius: 99px;
  padding: 3px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* A full dark section (icon rows, prose columns, etc.) that isn't a
   card grid — e.g. homepage's "Kenapa MohonIzin" or any 3-column
   feature list on a restyled page. */
.dark-block { background: var(--navy); color: var(--text-on-navy); }
.dark-block .eyebrow { color: var(--gold-2); }
.dark-block h2 { color: #fff; }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 820px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 4px;
  margin: 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-serif); font-size: 22px; color: var(--gold); }
details[open] summary::after { content: "\2013"; }
details p { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 64ch; }

/* ===== CTA final (dark band) ===== */
.final { background: var(--navy); color: #fff; }
.final .wrap { padding: 76px 28px; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.final h2 { font-family: var(--font-serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; max-width: 22ch; }
.final .sub { color: var(--text-on-navy-muted); font-size: 14.5px; margin-top: 10px; }

/* ===== Footer ===== */
.home-footer { background: var(--navy-2); color: #8B94A7; font-size: 13px; }
.home-footer .wrap { padding: 40px 28px 34px; }
.home-footer .logo { color: #fff; font-size: 20px; margin-bottom: 10px; }
.home-footer .logo .logo-mark { width: 32px; height: 32px; }

.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; }
.foot-grid a { color: #C6CBD6; margin-right: 18px; }
.foot-grid a:hover { color: var(--gold-2); }

.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: #78819A;
  max-width: 900px;
}

.disclaimer b { color: #A8B0C2; }

/* ===== Fade-up on load (kept for pages that still use it) ===== */
.fade-up { opacity: 0; transform: translateY(12px); animation: fadeUp 500ms ease forwards; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .steps, .tool-grid { grid-template-columns: 1fr; }

  .main-nav, .header-right { display: none; }
  .nav-hamburger { display: block; }
  .mobile-nav-overlay, .mobile-nav-panel { display: block; }
}
