/* Dinas Kesehatan Kota Sejahtera — style.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #00695c;
  --primary-dark: #004d40;
  --primary-light: #26a69a;
  --accent: #e8f5e9;
  --bg: #f0fdf9;
  --white: #ffffff;
  --text: #1a2e2a;
  --text-muted: #4a6760;
  --border: #b2dfdb;
  --shadow: 0 2px 12px rgba(0,105,92,0.10);
  --radius: 10px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* DEMO BAR */
.demo-bar {
  background: #004d40;
  color: #e8f5e9;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.demo-bar a { color: #a5d6a7; font-weight: 600; }
.demo-bar a:hover { color: #fff; }

/* TOP BAR */
.top-bar {
  background: var(--primary-dark);
  color: #c8e6c9;
  font-size: 12px;
  padding: 4px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.top-bar a { color: #a5d6a7; }

/* HEADER */
header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 52px; height: 52px; flex-shrink: 0; }
.logo-text h1 { font-size: 16px; font-weight: 700; color: var(--primary-dark); line-height: 1.2; }
.logo-text p { font-size: 11px; color: var(--text-muted); }

/* NAV */
nav ul { list-style: none; display: flex; gap: 4px; }
nav ul li a {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover, nav ul li a.active { background: var(--accent); color: var(--primary); text-decoration: none; }

/* HAMBURGER */
.nav-toggle { display: none; }
.hamburger {
  display: none; cursor: pointer; flex-direction: column; gap: 5px;
  padding: 8px; background: none; border: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: 0.3s; }
.nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:checked ~ nav { display: block; }

/* CONTAINER */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: -80px; left: -40px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px; padding: 4px 14px; font-size: 12px; margin-bottom: 16px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.hero h2 { font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.hero p { font-size: 16px; opacity: 0.9; margin-bottom: 28px; max-width: 540px; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: 0.2s; }
.btn-white { background: var(--white); color: var(--primary-dark); }
.btn-white:hover { background: #e8f5e9; text-decoration: none; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); margin-left: 10px; }
.btn-outline:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }

/* STATS BAR */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 20px 16px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* SECTIONS */
section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 26px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.section-title p { color: var(--text-muted); font-size: 15px; max-width: 520px; margin: 0 auto; }
.section-title .line { width: 48px; height: 4px; background: var(--primary); border-radius: 2px; margin: 12px auto 0; }

/* LAYANAN CARDS */
.layanan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.layanan-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 22px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.layanan-card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,105,92,0.15); }
.layanan-icon { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--primary); }
.layanan-card h3 { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.layanan-card p { font-size: 13px; color: var(--text-muted); }

/* BERITA GRID */
.berita-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.berita-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.berita-card:hover { transform: translateY(-3px); }
.berita-thumb {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.berita-body { padding: 16px; }
.berita-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 12px; }
.badge-primary { background: var(--accent); color: var(--primary); }
.badge-info { background: #e3f2fd; color: #1565c0; }
.badge-warn { background: #fff8e1; color: #f57f17; }
.berita-date { font-size: 12px; color: var(--text-muted); }
.berita-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.berita-card p { font-size: 13px; color: var(--text-muted); }
.read-more { font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 10px; display: inline-block; }

/* PENGUMUMAN */
.pengumuman-list { display: flex; flex-direction: column; gap: 12px; }
.pengumuman-item {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 16px 20px;
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: var(--shadow);
}
.pengumuman-icon { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.pengumuman-item h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pengumuman-item p { font-size: 12px; color: var(--text-muted); }
.pengumuman-item .nomor { font-size: 11px; color: var(--primary); font-weight: 600; }

/* PROFIL */
.visi-misi { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.vm-card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 2px solid var(--border); }
.vm-card.visi { border-color: var(--primary); }
.vm-card h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.vm-card p { color: var(--text); font-size: 15px; line-height: 1.7; }
.vm-card ul { padding-left: 20px; color: var(--text); font-size: 14px; }
.vm-card ul li { margin-bottom: 6px; line-height: 1.5; }

.org-chart { text-align: center; padding: 32px 0; }
.org-box {
  display: inline-block; background: var(--primary); color: #fff;
  border-radius: 8px; padding: 12px 24px; font-weight: 600; font-size: 14px;
  min-width: 200px;
}
.org-box.secondary { background: var(--primary-light); }
.org-box.tertiary { background: var(--white); color: var(--primary-dark); border: 2px solid var(--border); font-size: 13px; min-width: 140px; }
.org-line { width: 2px; height: 24px; background: var(--border); margin: 0 auto; }
.org-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.org-col { display: flex; flex-direction: column; align-items: center; }

.pejabat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.pejabat-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.pejabat-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px; font-weight: 700;
}
.pejabat-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pejabat-card p { font-size: 12px; color: var(--text-muted); }
.pejabat-card .jabatan { font-size: 12px; color: var(--primary); font-weight: 600; margin-top: 4px; }

/* LAYANAN PAGE */
.layanan-full-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.layanan-full-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.layanan-full-card .icon-wrap { color: var(--primary); margin-bottom: 14px; }
.layanan-full-card h3 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.layanan-full-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.req-list { padding-left: 18px; font-size: 13px; color: var(--text); }
.req-list li { margin-bottom: 4px; }
.biaya-tag { display: inline-block; background: var(--accent); color: var(--primary); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 12px; margin-top: 10px; }

/* BERITA PAGE */
.berita-full-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.berita-full-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.berita-full-thumb {
  height: 160px; display: flex; align-items: center; justify-content: center; font-size: 56px;
}
.berita-full-body { padding: 20px; flex: 1; }
.berita-full-body h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.5; }
.berita-full-body p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

/* PENGUMUMAN PAGE */
.pengumuman-full-list { display: flex; flex-direction: column; gap: 16px; }
.pengumuman-full-item {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px 24px;
  box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
}
.pk-tanggal { text-align: center; background: var(--accent); border-radius: 8px; padding: 8px 14px; min-width: 72px; }
.pk-tanggal .tgl { font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1; }
.pk-tanggal .bln { font-size: 11px; color: var(--text-muted); }
.pk-content h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pk-content .nomor { font-size: 12px; color: var(--primary); font-weight: 600; }
.pk-content p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.pk-action a { font-size: 13px; font-weight: 600; color: var(--primary); white-space: nowrap; }

/* KONTAK PAGE */
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.info-block { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.info-block h3 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.info-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.info-row svg { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.info-row .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
.info-row .val { font-size: 14px; color: var(--text); }

.jam-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jam-table td { padding: 6px 0; }
.jam-table td:last-child { text-align: right; color: var(--primary); font-weight: 600; }

/* FORM */
.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 textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: 14px; background: var(--white);
  transition: border-color 0.2s; color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* FOOTER */
footer { background: var(--primary-dark); color: #c8e6c9; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.6; opacity: 0.8; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #a5d6a7; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; text-align: center; font-size: 12px; opacity: 0.7; }

/* BG colors for berita thumbs */
.bg-teal { background: linear-gradient(135deg, #004d40, #00695c); }
.bg-green { background: linear-gradient(135deg, #2e7d32, #43a047); }
.bg-blue { background: linear-gradient(135deg, #1565c0, #1976d2); }
.bg-amber { background: linear-gradient(135deg, #f57f17, #ffa000); }
.bg-red { background: linear-gradient(135deg, #b71c1c, #c62828); }
.bg-indigo { background: linear-gradient(135deg, #283593, #3949ab); }
.bg-cyan { background: linear-gradient(135deg, #00838f, #00acc1); }
.bg-purple { background: linear-gradient(135deg, #4527a0, #5e35b1); }

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 48px 0 40px;
}
.page-header h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.page-header p { font-size: 15px; opacity: 0.85; }
.breadcrumb { font-size: 13px; opacity: 0.75; margin-bottom: 10px; }
.breadcrumb a { color: #a5d6a7; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.1); padding: 8px 0; }
  nav ul { flex-direction: column; gap: 0; }
  nav ul li a { padding: 12px 20px; border-radius: 0; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .hero h2 { font-size: 22px; }
  .layanan-grid { grid-template-columns: 1fr 1fr; }
  .berita-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--border); }
  .visi-misi { grid-template-columns: 1fr; }
  .pejabat-grid { grid-template-columns: 1fr 1fr; }
  .layanan-full-grid { grid-template-columns: 1fr; }
  .berita-full-grid { grid-template-columns: 1fr; }
  .kontak-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .pengumuman-full-item { grid-template-columns: 1fr; }
  .pk-tanggal { display: none; }
}
@media (max-width: 480px) {
  .layanan-grid { grid-template-columns: 1fr; }
  .pejabat-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 0 32px; }
  .org-row { gap: 12px; }
  .org-box { min-width: 120px; font-size: 12px; padding: 10px 14px; }
}
