/* PDAM Tirta Nusantara — style.css */
:root {
  --primary: #0277bd;
  --primary-dark: #01579b;
  --primary-light: #0288d1;
  --accent: #b3e5fc;
  --bg: #e1f5fe;
  --bg2: #f0f9ff;
  --white: #ffffff;
  --text: #1a2332;
  --text2: #4a5568;
  --border: #b3e5fc;
  --success: #0277bd;
  --card-shadow: 0 2px 12px rgba(2,119,189,0.10);
}

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

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ===== DEMO BAR ===== */
.demo-bar {
  background: #01579b;
  color: #fff;
  text-align: center;
  padding: 7px 16px;
  font-size: 13px;
  letter-spacing: .02em;
}
.demo-bar a { color: #b3e5fc; font-weight: 600; }
.demo-bar a:hover { color: #fff; }

/* ===== TOP HEADER ===== */
.top-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 6px 16px;
  font-size: 12px;
  color: var(--text2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}
.top-bar a { color: var(--primary); }

/* ===== SITE HEADER ===== */
.site-header {
  background: var(--primary);
  color: var(--white);
  padding: 16px 24px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.header-brand { display: flex; align-items: center; gap: 14px; }
.logo-wrap {
  width: 60px; height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-text h1 { font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.brand-text p { font-size: 12px; opacity: .85; }

/* ===== NAV ===== */
#menu-toggle { display: none; }
.menu-icon {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.menu-icon span {
  display: block; width: 26px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: .3s;
}
.site-nav { background: var(--primary-dark); }
.site-nav ul {
  max-width: 1100px; margin: 0 auto;
  list-style: none;
  display: flex; flex-wrap: wrap;
}
.site-nav ul li a {
  display: block; padding: 12px 18px;
  color: var(--accent); font-size: 14px; font-weight: 500;
  transition: background .2s;
}
.site-nav ul li a:hover,
.site-nav ul li a.active { background: var(--primary-light); color: #fff; text-decoration: none; }

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

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0288d1 60%, #29b6f6 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%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero h2 { font-size: clamp(24px, 5vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero p { font-size: 17px; opacity: .9; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block;
  padding: 12px 28px; border-radius: 6px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: .2s;
}
.btn-primary { background: var(--white); color: var(--primary); }
.btn-primary:hover { background: var(--accent); text-decoration: none; }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.15); text-decoration: none; }

/* ===== QUICK LINKS ===== */
.quick-links {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  padding: 0;
}
.quick-links-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
}
.qlink {
  flex: 1 1 160px;
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 12px; gap: 8px;
  color: var(--primary); font-size: 13px; font-weight: 600;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.qlink:last-child { border-right: none; }
.qlink:hover { background: var(--accent); text-decoration: none; }
.qlink svg { width: 32px; height: 32px; }

/* ===== SECTIONS ===== */
.section { padding: 56px 24px; }
.section-alt { background: var(--bg2); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 28px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.section-head p { color: var(--text2); max-width: 600px; margin: 0 auto; }
.section-line {
  width: 48px; height: 4px; background: var(--primary);
  margin: 10px auto 0; border-radius: 2px;
}

/* ===== GRID ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(2,119,189,.18); transform: translateY(-2px); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--bg);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text2); }
.card-link {
  display: inline-block; margin-top: 12px;
  font-size: 13px; font-weight: 600; color: var(--primary);
}

/* ===== NEWS CARD ===== */
.news-card { display: flex; flex-direction: column; }
.news-thumb {
  width: 100%; height: 140px; border-radius: 8px;
  margin-bottom: 14px; overflow: hidden;
}
.news-cat {
  display: inline-block; padding: 3px 10px;
  background: var(--accent); color: var(--primary-dark);
  font-size: 11px; font-weight: 700; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 8px;
}
.news-date { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.news-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.news-card p { font-size: 13px; color: var(--text2); flex: 1; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
}
.stat-card .num { font-size: 32px; font-weight: 800; }
.stat-card .label { font-size: 13px; opacity: .85; margin-top: 4px; }

/* ===== PENGUMUMAN ===== */
.peng-list { list-style: none; }
.peng-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.peng-item:last-child { border-bottom: none; }
.peng-date {
  flex-shrink: 0;
  background: var(--primary); color: var(--white);
  border-radius: 8px; padding: 8px 12px;
  text-align: center; font-size: 12px; line-height: 1.3;
}
.peng-date strong { display: block; font-size: 22px; font-weight: 800; }
.peng-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.peng-info p { font-size: 13px; color: var(--text2); }
.badge {
  display: inline-block; padding: 2px 10px;
  border-radius: 12px; font-size: 11px; font-weight: 700;
  text-transform: uppercase;
}
.badge-blue { background: var(--accent); color: var(--primary-dark); }
.badge-green { background: #c8e6c9; color: #1b5e20; }
.badge-yellow { background: #fff9c4; color: #f57f17; }
.badge-red { background: #ffcdd2; color: #b71c1c; }

/* ===== PROFILE ===== */
.vision-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .vision-mission { grid-template-columns: 1fr; } }
.vm-box {
  border-radius: 10px; padding: 28px;
  border: 1px solid var(--border);
}
.vm-box.visi { background: var(--primary); color: var(--white); }
.vm-box.misi { background: var(--bg2); }
.vm-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.vm-box ul { list-style: none; }
.vm-box ul li { padding: 6px 0; padding-left: 20px; position: relative; font-size: 14px; }
.vm-box ul li::before { content: '✦'; position: absolute; left: 0; font-size: 10px; top: 9px; }
.vm-box.visi ul li::before { color: var(--accent); }
.vm-box.misi ul li::before { color: var(--primary); }

/* Org chart */
.org-chart { text-align: center; }
.org-level { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.org-box {
  background: var(--white); border: 2px solid var(--primary);
  border-radius: 8px; padding: 12px 20px;
  font-size: 13px; font-weight: 600; color: var(--primary-dark);
  min-width: 140px;
}
.org-box.top { background: var(--primary); color: var(--white); border-color: var(--primary-dark); }
.org-connector { width: 2px; height: 24px; background: var(--primary); margin: 0 auto; }
.org-line {
  display: flex; justify-content: center; align-items: flex-start;
  position: relative; margin-bottom: 8px;
}
.org-line::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 60%; height: 2px; background: var(--primary);
  transform: translateX(-50%);
}

/* ===== LAYANAN ===== */
.layanan-card {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; box-shadow: var(--card-shadow);
}
.layanan-header {
  background: var(--primary); color: var(--white);
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
}
.layanan-header svg { width: 28px; height: 28px; flex-shrink: 0; }
.layanan-header h3 { font-size: 16px; font-weight: 700; }
.layanan-body { padding: 20px; }
.syarat-list { list-style: none; margin-bottom: 14px; }
.syarat-list li { font-size: 13px; padding: 4px 0; padding-left: 18px; position: relative; color: var(--text2); }
.syarat-list li::before { content: '▸'; position: absolute; left: 0; color: var(--primary); }
.biaya-tag {
  display: inline-block; padding: 4px 14px;
  background: var(--accent); color: var(--primary-dark);
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.prosedur-steps { counter-reset: step; list-style: none; }
.prosedur-steps li {
  counter-increment: step; padding: 8px 0 8px 36px;
  position: relative; font-size: 13px; color: var(--text2);
  border-bottom: 1px solid var(--bg);
}
.prosedur-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* ===== BERITA ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-svg-thumb { width: 100%; height: 140px; border-radius: 8px; overflow: hidden; margin-bottom: 14px; }

/* ===== PENGUMUMAN PAGE ===== */
.peng-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.peng-table th {
  background: var(--primary); color: var(--white);
  padding: 12px 16px; text-align: left; font-size: 13px;
}
.peng-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.peng-table tr:nth-child(even) td { background: var(--bg2); }
.peng-table tr:hover td { background: var(--accent); }
.peng-table .doc-no { font-size: 12px; color: var(--text2); font-family: monospace; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 20px;
}
.contact-icon {
  width: 42px; height: 42px; background: var(--bg);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-info-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.contact-info-item p { font-size: 13px; color: var(--text2); }
.jam-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.jam-table td { padding: 7px 0; border-bottom: 1px solid var(--border); }
.jam-table td:last-child { text-align: right; font-weight: 600; color: var(--primary); }

/* ===== FORM ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-size: 14px; font-family: inherit; color: var(--text);
  background: var(--white); transition: border .2s;
}
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; cursor: pointer; }
.btn-submit {
  background: var(--primary); color: var(--white);
  padding: 12px 32px; border: none; border-radius: 6px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background .2s;
}
.btn-submit:hover { background: var(--primary-dark); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--bg); padding: 10px 24px;
  font-size: 13px; color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner { max-width: 1100px; margin: 0 auto; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(120deg, var(--primary) 0%, #0288d1 100%);
  color: var(--white); padding: 40px 24px; text-align: center;
}
.page-hero h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.page-hero p { opacity: .88; font-size: 15px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark); color: var(--accent);
  padding: 40px 24px 0;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand h3 { color: var(--white); font-size: 17px; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; opacity: .8; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--accent); font-size: 13px; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(179,229,252,.2);
  padding: 16px 0; text-align: center; font-size: 12px;
  opacity: .7; max-width: 1100px; margin: 0 auto;
}
.footer-copyright { max-width: 1100px; margin: 0 auto; padding: 14px 0; text-align: center; font-size: 12px; opacity: .7; }

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

/* ===== PEJABAT ===== */
.pejabat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .pejabat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .pejabat-grid { grid-template-columns: 1fr 1fr; } }
.pejabat-card {
  text-align: center; border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 12px;
  background: var(--white); box-shadow: var(--card-shadow);
}
.pejabat-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg); margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--accent);
}
.pejabat-avatar svg { width: 36px; height: 36px; }
.pejabat-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.pejabat-card p { font-size: 12px; color: var(--text2); }

/* ===== ALERT ===== */
.alert {
  padding: 14px 18px; border-radius: 8px; margin-bottom: 20px;
  font-size: 14px; display: flex; gap: 10px; align-items: flex-start;
}
.alert-info { background: var(--accent); border-left: 4px solid var(--primary); color: var(--primary-dark); }
.alert-warning { background: #fff9c4; border-left: 4px solid #f9a825; color: #6d4c00; }

/* ===== UTILS ===== */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none; }
