/* Dinas Pariwisata Kab. Indah — style.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #00695c;
  --primary-dark: #004d40;
  --primary-light: #00897b;
  --accent: #ffd54f;
  --accent-dark: #f9a825;
  --bg: #f0fdf9;
  --white: #ffffff;
  --text: #1a2e2a;
  --text-muted: #4a6660;
  --border: #b2dfdb;
  --card-bg: #ffffff;
  --shadow: 0 2px 12px rgba(0,105,92,0.10);
  --radius: 12px;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* DEMO BAR */
.demo-bar {
  background: #1a1a1a;
  color: #f0fdf9;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.demo-bar a { color: var(--accent); text-decoration: none; font-weight: 600; }
.demo-bar a:hover { text-decoration: underline; }

/* HEADER & NAV */
header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 36px;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-top {
  background: var(--primary-dark);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.header-identity h1 {
  font-size: 15px; font-weight: 700; line-height: 1.2;
}
.header-identity p {
  font-size: 11px; opacity: 0.8;
}
nav {
  display: flex; align-items: center;
  padding: 0 20px;
  overflow-x: auto;
}
nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 14px 14px;
  font-size: 13.5px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: block;
}
nav a:hover, nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* MOBILE NAV */
.nav-toggle { display: none; }
.nav-label {
  display: none;
  cursor: pointer;
  padding: 12px 20px;
  color: var(--white);
  align-items: center;
  gap: 8px;
  font-size: 14px;
  justify-content: space-between;
}
.hamburger { width: 22px; height: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.nav-menu { display: flex; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 64px 20px 48px;
  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%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero h2 { font-size: clamp(22px,5vw,38px); font-weight: 800; line-height: 1.2; margin-bottom: 12px; position: relative; }
.hero p { font-size: 15px; opacity: 0.88; 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: 50px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }

/* STATS BAR */
.stats-bar {
  background: var(--primary-dark);
  color: var(--white);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.stat-item {
  padding: 18px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--accent); display: block; }
.stat-lbl { font-size: 11px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.5px; }

/* SECTION */
section { padding: 48px 20px; }
.section-alt { background: var(--white); }
.container { max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(20px,4vw,28px); font-weight: 800; color: var(--primary-dark); margin-bottom: 8px; }
.section-head p { color: var(--text-muted); font-size: 14.5px; }
.section-head .tag {
  display: inline-block;
  background: #e0f2f1;
  color: var(--primary);
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 10px;
}

/* CARDS */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,105,92,0.16); }
.card-thumb {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.card-body { padding: 18px; }
.card-body h3 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.card-body p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.card-meta { font-size: 12px; color: var(--text-muted); margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-green { background: #e0f2f1; color: var(--primary); }
.badge-yellow { background: #fff9c4; color: #795548; }
.badge-blue { background: #e3f2fd; color: #1565c0; }

/* SERVICE CARDS */
.svc-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--primary);
  transition: transform 0.2s;
}
.svc-card:hover { transform: translateY(-3px); }
.svc-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.svc-card h3 { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.svc-card p { font-size: 13px; color: var(--text-muted); }

/* NEWS */
.news-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.news-thumb {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
}
.news-body { padding: 16px; }
.news-body h3 { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; line-height: 1.35; }
.news-body p { font-size: 13px; color: var(--text-muted); }
.news-date { font-size: 11.5px; color: var(--text-muted); margin-top: 10px; }

/* PENGUMUMAN LIST */
.announce-list { list-style: none; }
.announce-item {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-left: 4px solid var(--accent);
}
.announce-icon {
  width: 42px; height: 42px;
  background: #fff9c4;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.announce-body h3 { font-size: 14.5px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.announce-body p { font-size: 12.5px; color: var(--text-muted); }
.announce-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

/* PAGE HERO (inner pages) */
.page-hero {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 40px 20px 36px;
  text-align: center;
}
.page-hero h2 { font-size: clamp(20px,4vw,30px); font-weight: 800; margin-bottom: 8px; }
.page-hero p { opacity: 0.85; font-size: 14px; }
.breadcrumb { font-size: 12px; opacity: 0.7; margin-bottom: 10px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }

/* PROFIL */
.visi-misi { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white); border-radius: var(--radius); padding: 32px; margin-bottom: 28px; }
.visi-misi h3 { font-size: 18px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.visi-misi p { opacity: 0.9; }
.misi-list { list-style: none; margin-top: 10px; }
.misi-list li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 14px; opacity: 0.9; }
.misi-list li::before { content: '✓ '; color: var(--accent); font-weight: 700; }

.org-chart { text-align: center; padding: 20px; }
.org-box {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  min-width: 180px;
  box-shadow: var(--shadow);
}
.org-box.accent { background: var(--accent); color: var(--primary-dark); }
.org-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.org-line { width: 2px; height: 24px; background: var(--border); margin: 0 auto; }
.org-hline { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 0; }

.pejabat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--primary);
}
.pejabat-avatar {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.pejabat-card h3 { font-size: 15px; font-weight: 700; color: var(--primary-dark); }
.pejabat-card .jabatan { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.pejabat-card .nip { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; font-style: italic; }

/* LAYANAN */
.layanan-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}
.layanan-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 20px;
  display: flex; align-items: center; gap: 14px;
}
.layanan-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.18); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.layanan-head h3 { font-size: 16px; font-weight: 700; }
.layanan-body { padding: 20px; }
.layanan-body h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); font-weight: 700; margin-bottom: 6px; margin-top: 14px; }
.layanan-body ul { list-style: none; }
.layanan-body ul li { font-size: 13px; color: var(--text-muted); padding: 3px 0; }
.layanan-body ul li::before { content: '• '; color: var(--primary); }
.biaya-badge { display: inline-block; background: #e8f5e9; color: #2e7d32; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-top: 10px; }

/* KONTAK */
.kontak-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.kontak-info { display: flex; flex-direction: column; gap: 16px; }
.kontak-item {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex; gap: 14px; align-items: flex-start;
}
.kontak-item-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kontak-item h4 { font-size: 13px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.kontak-item p { font-size: 13px; color: var(--text-muted); }
.jam-tabel { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.jam-tabel td { padding: 4px 0; color: var(--text-muted); }
.jam-tabel td:first-child { font-weight: 600; color: var(--text); width: 120px; }

/* FORM */
.form-card { background: var(--card-bg); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  background: var(--primary);
  color: var(--white);
  padding: 12px 32px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* FOOTER */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 40px 20px 20px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 32px; max-width: 1100px; margin: 0 auto 28px; }
.footer-col h4 { color: var(--accent); font-size: 14px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col p, .footer-col li { font-size: 13px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; font-size: 12px; opacity: 0.65; max-width: 1100px; margin: 0 auto; }

/* SEJARAH */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 24px; }
.tl-dot { position: absolute; left: -24px; top: 4px; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--primary); }
.tl-year { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.tl-item h3 { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.tl-item p { font-size: 13px; color: var(--text-muted); }

/* BERITA LIST */
.berita-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.berita-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0,105,92,0.08);
}
.berita-thumb {
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
}
.berita-body { padding: 18px; }
.berita-body .cat { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.berita-body h3 { font-size: 15px; font-weight: 700; color: var(--primary-dark); line-height: 1.35; margin-bottom: 8px; }
.berita-body p { font-size: 13px; color: var(--text-muted); }
.berita-body .meta { font-size: 11.5px; color: var(--text-muted); margin-top: 10px; display: flex; gap: 12px; }

/* ALERT */
.alert-info {
  background: #e8f5e9;
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

/* UTILS */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-label { display: flex; }
  .nav-toggle:not(:checked) ~ .nav-menu { display: none; }
  .nav-toggle:checked ~ .nav-menu { display: flex; flex-direction: column; background: var(--primary-dark); }
  .nav-toggle:checked ~ .nav-menu a { border-bottom: 1px solid rgba(255,255,255,0.1); border-left: none; }
  nav { flex-direction: column; align-items: stretch; padding: 0; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .kontak-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) {
  .kontak-grid { grid-template-columns: 1fr 1.4fr; }
}
