/* AgenPDAM — Pembayaran Tagihan PDAM & Air Bersih */
/* Palet: #0277bd (primer), #4fc3f7 (aksen), #e1f5fe (background) */

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

:root {
  --primary: #0277bd;
  --primary-dark: #01579b;
  --accent: #4fc3f7;
  --accent-light: #b3e5fc;
  --bg: #e1f5fe;
  --bg-white: #ffffff;
  --text: #1a2a3a;
  --text-muted: #546e7a;
  --border: #b0bec5;
  --success: #2e7d32;
  --warning: #f57c00;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(2,119,189,0.10);
  --shadow-lg: 0 6px 28px rgba(2,119,189,0.16);
}

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

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

/* ===== DEMO BAR ===== */
.demo-bar {
  background: #01579b;
  color: #fff;
  text-align: center;
  padding: 7px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.demo-bar a { color: var(--accent); font-weight: 600; }
.demo-bar a:hover { color: #fff; }

/* ===== HEADER / NAV ===== */
header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 36px;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(1,87,155,0.25);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 22px; height: 22px; }
.logo span { color: var(--accent); }

/* Mobile menu checkbox hack */
#menu-toggle { display: none; }
.menu-btn {
  display: none;
  cursor: pointer;
  padding: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
}
.menu-btn svg { display: block; }

nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
nav ul li a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.88);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover, nav ul li a.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 680px) {
  .menu-btn { display: block; }
  nav {
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: var(--primary-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
  }
  #menu-toggle:checked ~ nav { max-height: 360px; }
  nav ul { flex-direction: column; padding: 10px 0; }
  nav ul li a { border-radius: 0; padding: 12px 24px; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #0288d1 100%);
  color: #fff;
  padding: 72px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 80px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(79,195,247,0.22);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 540px;
  margin: 0 auto 32px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  font-family: var(--font);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.18); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-primary:hover { background: #81d4fa; }
.btn-sm { padding: 9px 20px; font-size: 0.87rem; }

/* hero water decoration */
.hero-water {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 44px;
  position: relative;
  z-index: 1;
}
.water-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.water-drop .drop-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.water-drop .drop-label { font-size: 0.78rem; opacity: 0.85; }

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

/* ===== SECTION ===== */
section { padding: 60px 0; }
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 40px;
}
.section-line {
  width: 48px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 10px auto 36px;
}

/* ===== STAT BAR ===== */
.stat-bar {
  background: var(--primary);
  color: #fff;
  padding: 24px 20px;
}
.stat-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-item strong { display: block; font-size: 1.7rem; font-weight: 900; color: var(--accent); }
.stat-item span { font-size: 0.83rem; opacity: 0.85; }

/* ===== PRODUCT CARDS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  border-top: 4px solid var(--primary);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .card-icon {
  width: 46px; height: 46px;
  background: var(--bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.product-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--primary-dark); }
.product-card .price { font-size: 1.22rem; font-weight: 800; color: var(--primary); }
.product-card .price-note { font-size: 0.78rem; color: var(--text-muted); }
.product-card .badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

/* ===== KEUNGGULAN ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.feature-card .feat-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.feature-card .feat-icon svg { width: 28px; height: 28px; color: #fff; }
.feature-card h3 { font-size: 0.97rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 52px 20px;
  text-align: center;
}
.cta-band h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 10px; }
.cta-band p { opacity: 0.88; margin-bottom: 24px; }

/* ===== HOW IT WORKS ===== */
.steps { display: flex; gap: 0; flex-wrap: wrap; justify-content: center; position: relative; }
.step {
  flex: 1; min-width: 160px; max-width: 220px;
  text-align: center;
  padding: 28px 16px;
  position: relative;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 0.83rem; color: var(--text-muted); }
.steps-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.92rem; }
thead { background: var(--primary); color: #fff; }
thead th { padding: 13px 16px; text-align: left; font-weight: 700; }
tbody tr:nth-child(even) { background: #f0f8ff; }
tbody td { padding: 12px 16px; border-bottom: 1px solid #e3f2fd; vertical-align: middle; }
tbody tr:hover { background: var(--accent-light); }
.pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.pill-blue { background: #e3f2fd; color: var(--primary); }
.pill-green { background: #e8f5e9; color: #2e7d32; }
.pill-orange { background: #fff3e0; color: #e65100; }

/* ===== FORM ===== */
.form-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  max-width: 560px;
  margin: 0 auto;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: #f9fdff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2,119,189,0.12);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* ===== STATUS BOX ===== */
.status-box {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
  display: none;
}
.status-box.show { display: block; }
.status-success { background: #e8f5e9; border: 1.5px solid #a5d6a7; }
.status-pending { background: #fff8e1; border: 1.5px solid #ffe082; }
.status-box h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.status-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.07); font-size: 0.9rem; }
.status-row:last-child { border-bottom: none; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 680px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.contact-item .ci-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.contact-item h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 3px; }
.contact-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 6px;
}
.wa-btn:hover { background: #128C7E; text-decoration: none; color: #fff; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}
.faq-a {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 52px 20px 48px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; margin-bottom: 10px; }
.page-hero p { opacity: 0.88; font-size: 1rem; max-width: 540px; margin: 0 auto; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 12px 20px;
  background: var(--bg-white);
  border-bottom: 1px solid #e3f2fd;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); }

/* ===== NOTICE BAND ===== */
.notice-band {
  background: var(--accent-light);
  border-left: 4px solid var(--primary);
  padding: 14px 20px;
  font-size: 0.9rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 28px;
  color: var(--primary-dark);
}

/* ===== JAM OP ===== */
.jam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.jam-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}
.jam-card .jam-day { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 4px; }
.jam-card .jam-time { font-size: 1rem; font-weight: 700; color: var(--primary); }

/* ===== FOOTER ===== */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 20px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: 0.95rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.72); font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom span { color: var(--accent); font-weight: 600; }

@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stat-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-water { gap: 16px; }
  .form-card { padding: 24px 18px; }
}

/* ===== MISC ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.chip {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  margin: 2px;
}
.alert {
  background: #fff3e0;
  border-left: 4px solid var(--warning);
  padding: 13px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #4a2700;
  margin-bottom: 20px;
}
