/* ===== Design tokens ===== */
:root {
  --ivory: #f7f4ee;
  --navy: #1c2433;
  --muted: #3d4657;
  --gold: #a8862f;
  --gold-light: #c9a25c;
  --text-on-navy: #f7f4ee;
  --text-on-navy-muted: rgba(247, 244, 238, 0.65);
  --hairline: rgba(28, 36, 51, 0.12);

  --font-serif: 'Instrument Serif', serif;
  --font-sans: 'Instrument Sans', sans-serif;

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

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

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

body {
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-sans);
  -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,
p,
div {
  margin: 0;
}

/* ===== Header ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  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" / "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: #fdfcf9;
  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-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 (<960px) ===== */
.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;
}

.btn {
  display: inline-block;
  cursor: pointer;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background-color 150ms ease;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-navy {
  background: var(--navy);
  color: var(--ivory);
  font-size: 13px;
  padding: 11px 22px;
  letter-spacing: 0.04em;
}

.btn-navy:hover {
  background: #10151f; /* ~8% darker than navy */
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  padding: 15px 30px;
  letter-spacing: 0.03em;
}

.btn-gold:hover {
  background: #93752a; /* ~8% darker than gold */
}

/* ===== Hero ===== */
.hero {
  padding: 96px var(--gutter) 88px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Single-column variant (e.g. a page intro with no side panel) */
.hero--single {
  grid-template-columns: 1fr;
}

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

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.05;
  margin: 0 0 24px;
  text-wrap: pretty;
}

.hero h1 em {
  font-style: italic;
}

.hero-copy {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.link-underline {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* Hero panel */
.hero-panel {
  background: var(--navy);
  color: var(--ivory);
  padding: 44px 40px;
  border-radius: var(--radius);
}

.hero-panel-title {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 28px;
}

.hero-panel-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-panel-item {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.hero-panel-item .num {
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 18px;
}

.hero-panel-item .item-title {
  font-weight: 600;
  font-size: 15px;
}

.hero-panel-item .item-desc {
  font-size: 13px;
  color: var(--text-on-navy-muted);
  line-height: 1.5;
  margin-top: 2px;
}

.hero-panel-item a.item-title {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

.hero-panel-item a.item-title:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ===== Process strip ===== */
.process {
  border-top: 1px solid var(--hairline);
  padding: 72px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* 3-column variant (e.g. the 6-item Services grid: 3x2) */
.process--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* Optional heading row spanning the full grid width (e.g. homepage "stages" intro) */
.process-heading {
  grid-column: 1 / -1;
}

.process-step .num {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--gold);
}

.process-step .step-title {
  font-weight: 600;
  margin: 10px 0 6px;
  font-size: 16px;
}

.process-step .step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.process-step a.step-title {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

.process-step a.step-title:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ===== Footer CTA ===== */
.site-footer {
  background: var(--navy);
  color: var(--ivory);
  padding: 56px var(--gutter) 24px;
}

.site-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-statement {
  font-family: var(--font-serif);
  font-size: 30px;
  max-width: 520px;
  line-height: 1.25;
}

.site-footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 244, 238, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer-brand {
  font-size: 12px;
  color: var(--text-on-navy-muted);
}

.footer-services-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
}

.footer-services-link:hover {
  text-decoration: underline;
}

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

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

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav,
  .header-right {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .mobile-nav-overlay,
  .mobile-nav-panel {
    display: block;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 24px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .process {
    grid-template-columns: 1fr;
  }
}
