:root {
  --green: #21c45d;
  --green-dark: #0f6f3d;
  --green-soft: #e9f9ef;
  --ink: #17211b;
  --muted: #65736a;
  --line: #dce8df;
  --paper: #fbfefc;
  --accent: #e72f26;
  --shadow: 0 18px 45px rgba(23, 33, 27, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 254, 252, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand, .admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand strong { display: block; font-size: 1rem; }
.brand small { color: var(--muted); display: block; margin-top: -4px; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .94rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 7px;
  color: #304139;
}

.site-nav a:hover, .site-nav a.active, .site-nav .nav-admin {
  background: var(--green-soft);
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
  padding: clamp(44px, 8vw, 92px) clamp(18px, 5vw, 72px) 34px;
  background:
    linear-gradient(115deg, rgba(33, 196, 93, .14), transparent 46%),
    radial-gradient(circle at 85% 18%, rgba(231, 47, 38, .10), transparent 28%),
    #f8fdf9;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.7rem, 7vw, 6.5rem);
  line-height: .95;
}

.hero-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #3b4b42;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.hero-actions, .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn, .admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.btn.primary, .admin-btn.primary {
  border-color: var(--green);
  background: var(--green);
  color: #062413;
}

.btn.ghost { background: rgba(255, 255, 255, .72); }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  border: 1px solid rgba(15, 111, 61, .18);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #ecfff2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 44px;
  border: 1px dashed rgba(15, 111, 61, .28);
  border-radius: 50%;
}

.hero-visual img {
  width: min(62%, 330px);
  filter: drop-shadow(0 22px 28px rgba(15, 111, 61, .16));
}

.metric-card {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 150px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.metric-card:first-of-type {
  left: 24px;
  top: 28px;
  right: auto;
  bottom: auto;
}

.metric-card strong { display: block; font-size: 2rem; }
.metric-card span { color: var(--muted); font-size: .9rem; }

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.page-hero {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(115deg, rgba(33, 196, 93, .16), transparent 48%),
    #f8fdf9;
  border-bottom: 1px solid var(--line);
}

.page-hero h1, .page-contact h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: #3b4b42;
  font-size: 1.08rem;
}

.compact-section { padding-top: 22px; padding-bottom: 22px; }

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2, .contact-copy h2, .two-column h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.06;
}

.inline-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 800;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.trust-strip span {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  text-align: center;
}

.service-grid, .info-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card, .article-card, .project-timeline article, .info-board article, .folder, .contact-form, .legal-list, .org-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-card {
  padding: 22px;
}

.service-card h3, .article-card h3, .project-timeline h3, .info-board h3 {
  margin: 12px 0 8px;
  line-height: 1.18;
}

.service-card p, .article-card p, .project-timeline p, .info-board p, .muted {
  color: var(--muted);
  margin: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--green-dark);
  font-weight: 900;
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.icon-box i {
  font-size: 1.1rem;
}

.split-section {
  background: #f1fbf4;
}

.article-list {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

.article-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 14px;
}

.article-card.feature {
  grid-template-columns: minmax(220px, .85fr) 1fr;
}

.article-card-media {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #102118;
}

.media-placeholder, .gallery-tile {
  min-height: 150px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(33, 196, 93, .22), rgba(231, 47, 38, .10)),
    repeating-linear-gradient(45deg, #f7fbf8 0 12px, #eef8f1 12px 24px);
}

.media-placeholder.video, .gallery-tile.video {
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-weight: 900;
}

.tag, .status, .badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 900;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid figure { margin: 0; }
.gallery-tile { min-height: 210px; }
.gallery-tile.tall { min-height: 310px; }
.gallery-grid figcaption { margin-top: 8px; color: var(--muted); }

.gallery-image {
  width: 100%;
  min-height: 210px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
}

.gallery-image.tall {
  min-height: 310px;
}

.project-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-timeline article, .info-board article { padding: 22px; }
.status.done { background: #e9f9ef; }
.status.progress { background: #fff4d8; color: #916500; }

.two-column, .contact-section {
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: clamp(22px, 5vw, 64px);
  align-items: start;
}

.org-preview, .legal-list {
  padding: 24px;
}

.org-image {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.org-preview {
  display: grid;
  gap: 14px;
  text-align: center;
}

.org-preview div, .org-row span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--green-soft);
  font-weight: 800;
}

.org-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.legal-list dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.legal-list dl:last-child { border-bottom: 0; }
.legal-list dt { font-weight: 900; }
.legal-list dd { margin: 0; color: var(--muted); }

.folder-browser {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}

.folder {
  padding: 20px;
}

.folder strong, .folder span { display: block; }
.folder span { color: var(--muted); }

.folder-children {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.folder-children a, .nested-folder {
  padding: 10px 12px;
  border-radius: 7px;
  background: #f5fbf7;
  color: #385144;
}

.document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.document-toolbar strong, .document-toolbar span {
  display: block;
}

.document-toolbar span {
  color: var(--muted);
  margin-top: 3px;
}

.document-search {
  width: min(100%, 360px);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
  font: inherit;
}

.document-manager {
  display: grid;
  gap: 10px;
}

.doc-folder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.doc-folder summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.doc-folder summary::-webkit-details-marker {
  display: none;
}

.doc-folder summary::after {
  content: "Buka";
  margin-left: auto;
  color: var(--green-dark);
  font-weight: 900;
  font-size: .86rem;
}

.doc-folder[open] > summary::after {
  content: "Tutup";
}

.doc-folder strong, .doc-file strong {
  display: block;
}

.doc-folder small, .doc-file small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.doc-children {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px 44px;
}

.doc-file {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefc;
}

.doc-file:hover {
  border-color: rgba(33, 196, 93, .55);
  background: var(--green-soft);
}

.doc-icon {
  display: inline-grid;
  place-items: center;
  gap: 2px;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: .74rem;
  font-weight: 900;
}

.doc-icon small {
  font-size: .58rem;
  line-height: 1;
}

.download-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-dark);
  font-size: .86rem;
  font-weight: 900;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

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

.contact-section {
  background: #122119;
  color: #fff;
}

.contact-section .eyebrow, .contact-section p, .contact-section address { color: #cae8d5; }

.contact-form {
  padding: 22px;
  background: #fff;
  color: var(--ink);
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #31483b;
  font-weight: 800;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 14px;
  font: inherit;
}

.form-alert {
  padding: 12px 14px;
  border-radius: 7px;
  font-weight: 800;
}

.form-alert.success {
  background: var(--green-soft);
  color: var(--green-dark);
}

.form-alert.error {
  background: #fff0ef;
  color: #9d211b;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.article-detail-media {
  position: sticky;
  top: 104px;
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 196, 93, .22), rgba(231, 47, 38, .10)),
    repeating-linear-gradient(45deg, #f7fbf8 0 12px, #eef8f1 12px 24px);
  color: var(--green-dark);
  font-weight: 900;
}

.article-detail-media img,
.article-detail-media video {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
}

.article-detail-media.video {
  background:
    linear-gradient(135deg, rgba(16, 33, 24, .84), rgba(15, 111, 61, .6)),
    repeating-linear-gradient(45deg, #f7fbf8 0 12px, #eef8f1 12px 24px);
  color: #fff;
}

.article-content {
  max-width: 820px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-content p {
  margin: 0 0 18px;
  color: #35463d;
  font-size: 1.06rem;
}

.rich-content img {
  display: block;
  width: auto !important;
  max-width: min(100%, 760px) !important;
  height: auto !important;
  margin: 18px auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.rich-content video,
.article-content video {
  display: block;
  width: 100% !important;
  max-width: 760px !important;
  height: auto !important;
  margin: 18px auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #102118;
}

.rich-content iframe {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 18px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rich-content figure {
  margin: 22px 0;
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.rich-content td,
.rich-content th {
  border: 1px solid var(--line);
  padding: 10px;
}

.rich-content h2,
.rich-content h3 {
  line-height: 1.12;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p { margin: 6px 0 0; color: var(--muted); }
.site-footer a { color: var(--green-dark); font-weight: 800; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 77px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .hero, .two-column, .contact-section, .article-list { grid-template-columns: 1fr; }
  .article-body { grid-template-columns: 1fr; }
  .article-detail-media { position: static; }
  .service-grid, .project-timeline, .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, .folder-browser { grid-template-columns: 1fr 1fr; }
  .document-toolbar { align-items: stretch; flex-direction: column; }
  .document-search { width: 100%; }
}

@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .brand img { width: 42px; height: 42px; }
  .hero { min-height: auto; padding-top: 38px; }
  .hero-visual { min-height: 330px; }
  .metric-card { width: 128px; padding: 14px; }
  .service-grid, .project-timeline, .trust-strip, .gallery-grid, .folder-browser, .info-board { grid-template-columns: 1fr; }
  .article-card, .article-card.feature { grid-template-columns: 1fr; }
  .inline-head, .site-footer { display: block; }
  .legal-list dl { grid-template-columns: 1fr; gap: 4px; }
  .doc-children { padding-left: 14px; }
  .doc-file { grid-template-columns: 42px minmax(0, 1fr); }
  .download-label { grid-column: 2; }
}
