/* Puskesmas Sehat Bersama — style.css */
:root {
  --primary: #00838f;
  --primary-dark: #005f6b;
  --primary-light: #4fb3bf;
  --accent: #e0f7fa;
  --bg: #f0fdff;
  --white: #ffffff;
  --text: #1a2e35;
  --text-muted: #546e7a;
  --border: #b2ebf2;
  --card-shadow: 0 2px 12px rgba(0,131,143,0.10);
  --radius: 10px;
}

*, *::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(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* DEMO BAR */
.demo-bar {
  background: #00363d;
  color: #b2ebf2;
  text-align: center;
  font-size: 13px;
  padding: 7px 16px;
  letter-spacing: .02em;
}
.demo-bar a { color: #80deea; text-decoration: underline; margin: 0 4px; }
.demo-bar a:hover { color: #e0f7fa; }

/* HEADER & NAV */
header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,131,143,0.18);
}
.header-top {
  background: var(--primary-dark);
  padding: 6px 20px;
  font-size: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.header-top span { opacity: .85; }
.header-top svg { vertical-align: middle; margin-right: 4px; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.brand-text { line-height: 1.2; }
.brand-text strong { font-size: 17px; display: block; }
.brand-text span { font-size: 11px; opacity: .82; letter-spacing: .03em; text-transform: uppercase; }

/* CHECKBOX HACK MENU */
#nav-toggle { display: none; }
.nav-label {
  display: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.3);
}
.nav-label svg { display: block; }

nav { display: flex; align-items: center; }
nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
nav ul li a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
  display: block;
}
nav ul li a:hover, nav ul li a.active {
  background: rgba(255,255,255,.18);
  color: var(--white);
}

@media (max-width: 700px) {
  .nav-label { display: block; }
  nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--primary-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    width: 100%;
  }
  #nav-toggle:checked ~ .header-main nav {
    max-height: 400px;
  }
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
  }
  nav ul li a { border-radius: 0; padding: 10px 20px; }
}

/* PAGE WRAPPER */
main { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 56px 20px 48px;
  text-align: center;
  margin-bottom: 40px;
}
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; opacity: .9; max-width: 620px; margin: 0 auto; }

/* HERO BERANDA */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #00acc1 100%);
  color: var(--white);
  padding: 56px 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; font-weight: 700; position: relative; z-index: 1; }
.hero p { font-size: 1.05rem; opacity: .9; max-width: 600px; margin: 0 auto 28px; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.7); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }

/* STAT STRIP */
.stat-strip {
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.stat-item strong { display: block; font-size: 1.6rem; color: var(--primary); font-weight: 700; }
.stat-item span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* SECTIONS */
section { margin: 40px 0; }
.section-header { text-align: center; margin-bottom: 28px; }
.section-header h2 { font-size: 1.6rem; color: var(--primary-dark); margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: .97rem; }
.section-divider { width: 48px; height: 4px; background: var(--primary); border-radius: 2px; margin: 10px auto 0; }

/* CARDS */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,131,143,.16); }

/* LAYANAN GRID */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.layanan-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  padding: 24px 18px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.layanan-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,131,143,.16); }
.layanan-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.layanan-icon svg { color: var(--primary); }
.layanan-card h3 { font-size: .95rem; color: var(--primary-dark); margin-bottom: 6px; }
.layanan-card p { font-size: .82rem; color: var(--text-muted); }

/* BERITA GRID */
.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.berita-card { padding: 0; }
.berita-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.berita-body { padding: 16px; }
.berita-meta { display: flex; gap: 8px; font-size: 11px; margin-bottom: 8px; flex-wrap: wrap; }
.tag {
  background: var(--accent);
  color: var(--primary);
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 600;
  font-size: 11px;
}
.date { color: var(--text-muted); }
.berita-card h3 { font-size: .97rem; margin-bottom: 6px; color: var(--text); }
.berita-card p { font-size: .85rem; color: var(--text-muted); }
.read-more { display: inline-block; margin-top: 10px; font-size: .85rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* PENGUMUMAN */
.pengumuman-list { display: flex; flex-direction: column; gap: 14px; }
.pengumuman-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--card-shadow);
  transition: border-color .2s;
}
.pengumuman-item:hover { border-color: var(--primary-light); }
.pengumuman-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pengumuman-content h4 { font-size: .97rem; margin-bottom: 4px; color: var(--primary-dark); }
.pengumuman-content p { font-size: .83rem; color: var(--text-muted); }
.pengumuman-content .doc-no { font-size: .78rem; color: var(--primary); margin-top: 4px; font-style: italic; }

/* PROFIL */
.visi-misi { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
@media (max-width: 600px) { .visi-misi { grid-template-columns: 1fr; } }
.vm-card {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--primary);
  padding: 24px;
  box-shadow: var(--card-shadow);
}
.vm-card h3 { color: var(--primary); margin-bottom: 12px; font-size: 1.1rem; }
.vm-card ul { padding-left: 20px; }
.vm-card ul li { margin-bottom: 8px; font-size: .93rem; }

/* ORG CHART */
.org-chart { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-level { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.org-box {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 12px 18px;
  text-align: center;
  min-width: 140px;
  box-shadow: var(--card-shadow);
  position: relative;
}
.org-box.top { background: var(--primary); color: var(--white); }
.org-box strong { display: block; font-size: .9rem; }
.org-box span { font-size: .78rem; color: var(--text-muted); }
.org-box.top span { color: rgba(255,255,255,.8); }
.org-connector {
  width: 2px; height: 28px;
  background: var(--primary);
  margin: 0 auto;
}
.org-connector-h {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 20px; flex-wrap: wrap;
}

/* PEJABAT */
.pejabat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.pejabat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
}
.pejabat-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--primary-light);
}
.pejabat-card h4 { font-size: .95rem; color: var(--text); margin-bottom: 4px; }
.pejabat-card p { font-size: .82rem; color: var(--primary); font-weight: 600; }
.pejabat-card small { color: var(--text-muted); font-size: .78rem; }

/* LAYANAN DETAIL */
.layanan-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.layanan-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.layanan-detail-header {
  background: var(--primary);
  color: var(--white);
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
}
.layanan-detail-header svg { flex-shrink: 0; }
.layanan-detail-header h3 { font-size: 1rem; }
.layanan-detail-body { padding: 18px; }
.info-row { display: flex; gap: 10px; margin-bottom: 10px; font-size: .87rem; }
.info-label { font-weight: 600; color: var(--text-muted); min-width: 100px; flex-shrink: 0; }
.info-val { color: var(--text); }
.biaya-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 6px;
  padding: 2px 10px;
  font-weight: 700;
  font-size: .85rem;
}

/* KONTAK */
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .kontak-grid { grid-template-columns: 1fr; } }
.kontak-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  padding: 24px;
}
.kontak-info-card h3 { color: var(--primary); margin-bottom: 16px; font-size: 1.1rem; }
.kontak-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.kontak-row-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kontak-row-text strong { display: block; font-size: .88rem; color: var(--text-muted); }
.kontak-row-text p { font-size: .93rem; }

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

/* JAM LAYANAN */
.jam-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 10px; }
.jam-table th { background: var(--primary); color: var(--white); padding: 10px 14px; text-align: left; }
.jam-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.jam-table tr:last-child td { border-bottom: none; }
.jam-table tr:nth-child(even) td { background: var(--accent); }
.jam-open { color: #1b5e20; font-weight: 600; }
.jam-closed { color: #b71c1c; font-weight: 600; }

/* MAP PLACEHOLDER */
.map-box {
  background: linear-gradient(135deg, #b2ebf2 0%, #e0f7fa 100%);
  border-radius: var(--radius);
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: .95rem;
  margin-top: 20px;
}

/* SEJARAH TIMELINE */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--primary-light); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-dot {
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  left: -24px;
  top: 4px;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year { font-size: .8rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.timeline-item h4 { font-size: .97rem; color: var(--text); margin-bottom: 4px; }
.timeline-item p { font-size: .87rem; color: var(--text-muted); }

/* ALERT BOX */
.alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: .92rem;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert-info { background: #e0f7fa; border-left: 4px solid var(--primary); color: #004d5f; }
.alert-warn { background: #fff8e1; border-left: 4px solid #f9a825; color: #5f4100; }

/* FOOTER */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  padding: 36px 20px 20px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 20px; } }
.footer-brand h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; }
footer h4 { color: #80deea; font-size: .9rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 6px; }
footer ul li a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .87rem; }
footer ul li a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1100px; margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .82rem; color: rgba(255,255,255,.55);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* UTILITIES */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.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; }
.content-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 24px;
}
