
:root{
  --bg:#EEF3EA;
  --card:#F7FAF4;
  --text:#2D3A2F;
  --muted:#6B7A6E;
  --primary:#5BBE9C;   /* teal */
  --primary-2:#8FCB9B; /* green */
  --accent:#FFC857;    /* yellow */
  --accent-2:#FFAD8A;  /* peach */
  --danger:#FF5C5C;
  --shadow: 0 12px 30px rgba(0,0,0,.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", "Noto Sans", "Liberation Sans", sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: linear-gradient(180deg, var(--bg), #F7FBF5);
}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:18px}
.nav{
  position:sticky; top:0; z-index:5;
  background:rgba(247,250,244,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(0,0,0,.05);
}
.nav-inner{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; max-width:var(--max); margin:0 auto}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px}
.logo{
  width:38px; height:38px; border-radius:14px;
  display:grid; place-items:center;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--primary));
  box-shadow: var(--shadow);
  color:#fff; font-weight:900;
}
.nav-links{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.pill{
  padding:9px 12px; border-radius:999px;
  background:rgba(91,190,156,.12);
  border:1px solid rgba(91,190,156,.25);
  font-weight:600;
}
.pill:hover{background:rgba(91,190,156,.18)}
.pill.alt{
  background:rgba(255,200,87,.18);
  border-color:rgba(255,200,87,.35);
}
.pill.danger{
  background:rgba(255,92,92,.10);
  border-color:rgba(255,92,92,.25);
}

.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:20px;
  align-items:center;
  padding:28px 0;
}
@media (max-width: 880px){
  .hero{grid-template-columns:1fr}
}
.h-title{font-size:clamp(30px, 4vw, 44px); line-height:1.05; margin:0 0 10px}
.h-sub{margin:0 0 16px; color:var(--muted); font-size:15.5px}
.card{
  background:var(--card);
  border:1px solid rgba(0,0,0,.06);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card.pad{padding:18px}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.col-4{grid-column: span 4}
.col-6{grid-column: span 6}
.col-8{grid-column: span 8}
.col-12{grid-column: span 12}
@media (max-width: 900px){
  .col-4,.col-6,.col-8{grid-column: span 12}
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 14px;
  border-radius:14px;
  border:0;
  cursor:pointer;
  font-weight:800;
  color:#113326;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 18px rgba(91,190,156,.18);
}
.btn:hover{filter:brightness(1.02)}
.btn.secondary{
  background: linear-gradient(135deg, rgba(255,200,87,.9), rgba(255,173,138,.95));
  color:#3a2c10;
  box-shadow: 0 10px 18px rgba(255,200,87,.18);
}
.btn.ghost{
  background:transparent;
  border:1px solid rgba(0,0,0,.12);
  box-shadow:none;
  font-weight:700;
  color:var(--text);
}
.btn.danger{
  background: linear-gradient(135deg, #FF7070, #FF3E3E);
  color:white;
}
.btn.small{padding:9px 12px; border-radius:12px; font-weight:800}
.form{
  display:grid;
  gap:12px;
}
.field label{display:block; font-weight:800; font-size:13px; margin-bottom:6px}
.field input,.field select,.field textarea{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.7);
  outline:none;
}
.field textarea{min-height:92px; resize:vertical}
.help{font-size:12px; color:var(--muted); margin-top:6px}
.row{display:flex; gap:12px; flex-wrap:wrap}
.row > * {flex:1}
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.6);
  font-weight:800; font-size:12px;
}
.badge.ok{border-color:rgba(91,190,156,.35); background:rgba(91,190,156,.12)}
.badge.warn{border-color:rgba(255,200,87,.45); background:rgba(255,200,87,.16)}
.badge.no{border-color:rgba(255,92,92,.35); background:rgba(255,92,92,.10)}
.table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
.table th,.table td{
  padding:10px 10px;
  border-bottom:1px solid rgba(0,0,0,.06);
  vertical-align:top;
}
.table th{font-size:12px; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); text-align:left}
.flash{
  padding:12px 14px;
  border-radius:14px;
  margin:12px 0;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.7);
}
.flash.ok{border-color:rgba(91,190,156,.35); background:rgba(91,190,156,.12)}
.flash.err{border-color:rgba(255,92,92,.35); background:rgba(255,92,92,.10)}

.kpi{
  display:flex; flex-direction:column; gap:6px;
}
.kpi .n{font-size:28px; font-weight:900}
.kpi .t{color:var(--muted); font-weight:800; font-size:12px; letter-spacing:.4px; text-transform:uppercase}
hr.sep{border:0;border-top:1px solid rgba(0,0,0,.06); margin:14px 0}
video, canvas, img.preview{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
}

.nav-dd{
  position: relative;
  display: inline-block;
}

.nav-dd-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 8px;
  display: none;
  backdrop-filter: blur(10px);
  z-index: 50;
}

/* --- HOME HERO LAYOUT --- */
.hero-home{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items:center;
}

.hero-illus{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height: 320px;
}

.hero-img{
  width: min(360px, 100%);
  height: auto;
  display:block;
}

.hero-mini{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top: 12px;
}

.pill.small{
  padding: 8px 12px;
  font-size: 13px;
}

/* --- NAV DROPDOWN (Masuk ▾) --- */
.nav-dd{
  position: relative;
  display: inline-block;
}

.nav-dd-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 8px;
  display: none;
  backdrop-filter: blur(10px);
  z-index: 50;
}

.nav-dd-menu a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.nav-dd-menu a:hover{
  background: rgba(125, 208, 171, .18);
}

.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu{
  display: block;
}

@media (max-width: 900px){
  .hero-home{
    grid-template-columns: 1fr;
  }
  .hero-illus{
    min-height: 240px;
  }
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== FOOTER (FINAL - PASTIKAN INI PALING BAWAH) ===== */
footer.footer{
  background:#f4f8f4;
  border-top:1px solid #e2eadf;
  margin-top:36px;
  text-align:left; /* PENTING: reset dari rule lama yang center */
}

footer.footer .footer-inner{
  max-width:1200px;
  margin:0 auto;
  padding:28px 18px;
  display:grid;
  grid-template-columns: 1.4fr 2fr 1.2fr;
  gap:22px;
  align-items:start;
}

footer.footer .footer-col{
  color:#3e4b3e;
  text-align:left; /* jaga-jaga */
}

footer.footer .footer-title{
  font-weight:800;
  letter-spacing:.2px;
  margin-bottom:10px;
}

footer.footer .footer-line{
  font-size:14px;
  line-height:1.6;
  color:#5a655a;
  margin:0 0 12px; /* stabil, jangan auto center */
}

footer.footer .footer-links{
  display:flex;
  flex-direction:column;
  gap:10px;
}

footer.footer .footer-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#2f855a;
  text-decoration:none;
  font-size:14px;
  width:fit-content;
}

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

footer.footer .footer-link .icon{
  width:30px;
  height:30px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#e9f6ee;
  color:#2f855a;
  border:1px solid #d6eadb;
  flex:0 0 auto;
}

footer.footer .map-wrap{
  border:1px solid #e2eadf;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}

footer.footer .map-wrap iframe{
  width:100%;
  height:220px;
  border:0;
  display:block;
}

footer.footer .footer-right{
  text-align:right;
}

footer.footer .footer-copy{
  margin-top:14px;
  font-size:13px;
  color:#6b756b;
  line-height:1.6;
}

/* Mobile */
@media (max-width: 900px){
  footer.footer .footer-inner{
    grid-template-columns:1fr;
  }
  footer.footer .footer-right{
    text-align:left;
  }
}
