/* Dinas Perhubungan Kab. Maju — style.css */
/* Warna: primer #e65100, aksen #fff3e0, bg #fffaf5 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #e65100;
  --primary-dark: #bf360c;
  --primary-light: #ff8a50;
  --accent: #fff3e0;
  --accent2: #ffe0b2;
  --bg: #fffaf5;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --white: #ffffff;
  --border: #e0d0c0;
  --success: #2e7d32;
  --shadow: 0 2px 8px rgba(230,81,0,0.10);
  --radius: 8px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* DEMO BAR */
.demo-bar {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.demo-bar a { color: #ffcc80; text-decoration: underline; }
.demo-bar a:hover { color: #fff; }

/* HEADER & NAV */
.site-header {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top {
  background: var(--primary-dark);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.header-title { line-height: 1.2; }
.header-title strong { font-size: 15px; display: block; }
.header-title span { font-size: 12px; opacity: 0.85; }

/* NAV CHECKBOX HACK */
.nav-toggle { display: none; }
.nav-label {
  display: none;
  cursor: pointer;
  padding: 12px 24px;
  color: var(--white);
  font-size: 22px;
  user-select: none;
}
nav { background: var(--primary); }
nav ul {
  display: flex;
  list-style: none;
  padding: 0 16px;
  gap: 0;
  flex-wrap: wrap;
}
nav ul li a {
  display: block;
  padding: 14px 18px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  border-bottom: 3px solid transparent;
}
nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,255,255,0.12);
  border-bottom-color: var(--accent2);
}

@media (max-width: 700px) {
  .nav-label { display: block; }
  nav ul {
    display: none;
    flex-direction: column;
    padding: 0;
  }
  .nav-toggle:checked ~ nav ul { display: flex; }
  nav ul li a { padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* MAIN */
main { min-height: 60vh; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-icon {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  display: block;
}
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 12px; position: relative; }
.hero p { font-size: 1.05rem; opacity: 0.9; max-width: 560px; margin: 0 auto 28px; position: relative; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }

/* LAYANAN CARDS HOME */
.section { padding: 56px 24px; }
.section-alt { background: var(--accent); }
.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 0.97rem;
}
.container { max-width: 1100px; margin: 0 auto; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 22px;
  transition: transform 0.18s, box-shadow 0.18s;
  border-top: 4px solid var(--primary);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(230,81,0,0.14); }
.card-icon { width: 48px; height: 48px; margin-bottom: 14px; }
.card h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--text-muted); }
.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* BERITA GRID */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s;
}
.news-card:hover { transform: translateY(-3px); }
.news-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
}
.news-body { padding: 18px; }
.news-cat {
  display: inline-block;
  background: var(--accent2);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.news-body h3 { font-size: 0.95rem; margin-bottom: 8px; line-height: 1.4; }
.news-body p { font-size: 0.88rem; color: var(--text-muted); }
.news-date { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; }

/* STATISTIK */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.stat-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 16px;
  box-shadow: var(--shadow);
}
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.88rem; color: var(--text-muted); margin-top: 8px; }

/* PENGUMUMAN HOME */
.pengumuman-list { list-style: none; }
.pengumuman-list li {
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.pengumuman-list li .pdate {
  font-size: 12px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 600;
  margin-top: 2px;
}
.pengumuman-list li a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}
.pengumuman-list li a:hover { color: var(--primary); }

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 40px 24px 32px;
  text-align: center;
}
.page-header h1 { font-size: 1.8rem; font-weight: 700; }
.page-header p { opacity: 0.88; margin-top: 8px; }
.breadcrumb { font-size: 13px; margin-bottom: 10px; opacity: 0.8; }
.breadcrumb a { color: var(--accent2); text-decoration: none; }

/* PROFIL */
.profil-section { padding: 48px 24px; }
.profil-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 28px;
}
.profil-box h2 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--accent2);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .vm-grid { grid-template-columns: 1fr; } }
.vm-box { background: var(--accent); border-radius: var(--radius); padding: 20px; }
.vm-box h3 { color: var(--primary-dark); margin-bottom: 10px; font-size: 1rem; }
.vm-box p, .vm-box ul { font-size: 0.93rem; color: var(--text-muted); }
.vm-box ul { padding-left: 18px; }
.vm-box ul li { margin-bottom: 6px; }

/* ORG CHART */
.org-chart { text-align: center; overflow-x: auto; padding: 10px 0; }
.org-level { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 0; }
.org-box {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 13px;
  text-align: center;
  min-width: 140px;
}
.org-box.sub { background: var(--primary-light); color: var(--primary-dark); font-size: 12px; }
.org-box strong { display: block; font-size: 14px; }
.org-connector {
  display: flex; justify-content: center;
  padding: 4px 0;
}
.org-connector::before {
  content: '';
  width: 2px; height: 24px;
  background: var(--primary);
  display: block;
}
.org-h-line {
  height: 2px; background: var(--primary);
  width: 60%; margin: 0 auto 0;
}
.pejabat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.pejabat-card {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border-top: 3px solid var(--primary);
}
.pejabat-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
}
.pejabat-card h4 { font-size: 0.93rem; color: var(--text); }
.pejabat-card p { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* LAYANAN */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.layanan-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border-top: 4px solid var(--primary);
}
.layanan-card .l-icon { width: 52px; height: 52px; margin-bottom: 14px; }
.layanan-card h3 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 10px; }
.layanan-card .badge {
  font-size: 12px;
  background: var(--accent2);
  color: var(--primary-dark);
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 600;
}
.req-list { list-style: none; font-size: 0.88rem; color: var(--text-muted); }
.req-list li { padding: 4px 0; border-bottom: 1px solid var(--border); display: flex; gap: 8px; }
.req-list li:last-child { border-bottom: none; }
.req-list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.biaya-tag {
  margin-top: 14px;
  font-size: 13px;
  background: var(--accent);
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text);
}
.biaya-tag strong { color: var(--primary-dark); }

/* PROSEDUR */
.prosedur { list-style: none; counter-reset: step; margin-top: 10px; }
.prosedur li {
  counter-increment: step;
  padding: 8px 0 8px 40px;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
}
.prosedur li:last-child { border-bottom: none; }
.prosedur li::before {
  content: counter(step);
  position: absolute; left: 0; top: 8px;
  width: 26px; height: 26px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
}

/* BERITA PAGE */
.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.berita-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s;
}
.berita-card:hover { transform: translateY(-3px); }
.berita-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
}
.berita-body { padding: 18px; }
.berita-body .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.berita-body .cat-badge {
  font-size: 11px;
  background: var(--accent2);
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
}
.berita-body .date { font-size: 12px; color: var(--text-muted); }
.berita-body h3 { font-size: 0.97rem; margin-bottom: 8px; line-height: 1.4; color: var(--text); }
.berita-body p { font-size: 0.88rem; color: var(--text-muted); }
.read-more { font-size: 0.88rem; color: var(--primary); font-weight: 600; margin-top: 10px; display: inline-block; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* PENGUMUMAN PAGE */
.pengumuman-page-list { list-style: none; }
.pengum-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary);
  padding: 18px 22px;
  margin-bottom: 16px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.pengum-date-box {
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  padding: 8px 12px;
  min-width: 60px;
  flex-shrink: 0;
}
.pengum-date-box .day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.pengum-date-box .mon { font-size: 11px; text-transform: uppercase; }
.pengum-content h3 { font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.pengum-content .nomor { font-size: 12px; color: var(--primary-dark); font-weight: 600; margin-bottom: 6px; }
.pengum-content p { font-size: 0.88rem; color: var(--text-muted); }
.tag-jenis {
  font-size: 11px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  display: inline-block;
  margin-top: 8px;
}

/* KONTAK */
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) { .kontak-grid { grid-template-columns: 1fr; } }
.kontak-info-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.kontak-info-box h2 { color: var(--primary-dark); font-size: 1.1rem; margin-bottom: 18px; border-bottom: 2px solid var(--accent2); padding-bottom: 10px; }
.info-row { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.info-row svg { flex-shrink: 0; margin-top: 2px; }
.info-row div { font-size: 0.9rem; }
.info-row div strong { display: block; color: var(--text); }
.info-row div span { color: var(--text-muted); }
.jam-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.jam-table td { padding: 7px 4px; border-bottom: 1px solid var(--border); }
.jam-table td:last-child { text-align: right; color: var(--text-muted); }
.jam-table tr:last-child td { border-bottom: none; }

/* FORM */
.form-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.form-box h2 { color: var(--primary-dark); font-size: 1.1rem; margin-bottom: 18px; border-bottom: 2px solid var(--accent2); padding-bottom: 10px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  width: 100%;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--primary-dark); }
.alert-info {
  background: var(--accent);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 18px;
}

/* FOOTER */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 48px 24px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand strong { color: #fff; font-size: 1rem; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #bbb; text-decoration: none; font-size: 13px; }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid #333;
  text-align: center;
  padding-top: 20px;
  font-size: 12px;
  color: #888;
  max-width: 1100px;
  margin: 0 auto;
}

/* UTILS */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }

/* DIVIDER */
.divider {
  border: none;
  border-top: 2px solid var(--accent2);
  margin: 24px 0;
}
