/* ==========================================
   PUSKESMAS SETIABUDI - MAIN STYLESHEET
   ========================================== */

:root {
  --green: #1B8B6F;
  --green-light: #25B08E;
  --green-dark: #0F5C48;
  --teal: #17A085;
  --accent: #F0A500;
  --accent-light: #FFEFC0;
  --bg: #F8FFFE;
  --bg2: #EDF7F5;
  --white: #FFFFFF;
  --text: #1A2E2A;
  --text-muted: #6B8C85;
  --border: #D4EDE8;
  --shadow: 0 4px 24px rgba(27,139,111,0.10);
  --shadow-lg: 0 8px 48px rgba(27,139,111,0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Fraunces', serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

em { font-family: var(--font-display); font-style: italic; color: var(--green); }

img { max-width: 100%; display: block; }

/* ========== TOPBAR ========== */
.topbar {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 10px; }
.social-link {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition);
}
.social-link:hover { background: var(--accent); color: var(--text); }

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon { font-size: 2rem; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-weight: 800; font-size: 1rem; color: var(--green-dark); line-height: 1.2; }
.logo-sub { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--green); background: var(--bg2); }
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 260px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--bg2); color: var(--green); }
.btn-daftar {
  background: var(--green);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-daftar:hover { background: var(--green-dark); transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,139,111,0.3); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--green);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--green);
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline:hover { background: var(--green); color: white; transform: translateY(-2px); }

/* ========== SECTIONS ========== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: #8B6500;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-badge.light {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.section-title.light { color: white; }
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
}
.section-desc.light { color: rgba(255,255,255,0.75); }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.blob1 {
  width: 600px; height: 600px;
  background: rgba(37,176,142,0.15);
  top: -200px; right: -200px;
  animation: float 8s ease-in-out infinite;
}
.blob2 {
  width: 400px; height: 400px;
  background: rgba(240,165,0,0.1);
  bottom: -100px; left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
.blob3 {
  width: 300px; height: 300px;
  background: rgba(27,139,111,0.12);
  top: 40%; left: 40%;
  animation: float 6s ease-in-out infinite 2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  font-family: var(--font-display);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}
.hero-image { display: flex; justify-content: center; }
.hero-card {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--border);
}
.hcard-header {
  background: var(--green);
  color: white;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hcard-body { padding: 24px; }
.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.schedule-item.open { background: rgba(27,139,111,0.08); border-color: var(--green); }
.schedule-item strong { color: var(--green-dark); font-weight: 700; }
.hcard-btn {
  display: block;
  text-align: center;
  padding: 18px;
  background: var(--accent-light);
  color: #7A5200;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}
.hcard-btn:hover { background: var(--accent); color: white; }

/* ========== DAFTAR SECTION ========== */
.daftar-section {
  padding: 80px 0;
  background: white;
  border-top: 1px solid var(--border);
}
.daftar-section .section-desc { margin-bottom: 40px; }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.app-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.app-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: white;
}
.app-card.featured {
  background: var(--green);
  border-color: var(--green);
}
.app-card.featured .app-name,
.app-card.featured .app-desc { color: white; }
.app-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.app-icon { font-size: 2.5rem; margin-bottom: 12px; }
.app-name { font-weight: 800; font-size: 1rem; color: var(--text); margin-bottom: 6px; }
.app-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* ========== LAYANAN SECTION ========== */
.layanan-section { padding: 80px 0; }
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.layanan-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  display: block;
  position: relative;
  overflow: hidden;
}
.layanan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.layanan-card:hover::before { transform: scaleX(1); }
.layanan-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.layanan-card.accent { background: var(--green); }
.layanan-card.accent h3,
.layanan-card.accent p { color: white; }
.layanan-card.accent .layanan-num,
.layanan-card.accent .layanan-link { color: rgba(255,255,255,0.7); }
.layanan-card.accent .layanan-icon { filter: brightness(5); }
.layanan-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.layanan-icon { font-size: 2rem; margin-bottom: 16px; }
.layanan-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.layanan-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.layanan-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ========== INOVASI SECTION ========== */
.inovasi-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--teal) 100%);
  position: relative;
  overflow: hidden;
}
.inovasi-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.inovasi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
}
.inovasi-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.inovasi-card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.4);
}
.inovasi-icon { font-size: 1.8rem; margin-bottom: 8px; }
.inovasi-name { font-weight: 800; font-size: 0.85rem; color: white; margin-bottom: 4px; }
.inovasi-desc { font-size: 0.72rem; color: rgba(255,255,255,0.65); line-height: 1.3; }

/* ========== ARTIKEL SECTION ========== */
.artikel-section { padding: 80px 0; background: white; }
.artikel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.artikel-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.artikel-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); }
.artikel-card.featured { background: var(--bg2); border-color: var(--green); }
.artikel-tag {
  display: inline-block;
  background: var(--accent-light);
  color: #7A5200;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.artikel-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.artikel-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 12px; color: var(--text); }
.artikel-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.artikel-readmore { font-size: 0.875rem; font-weight: 700; color: var(--green); }

/* ========== FASILITAS ========== */
.fasilitas-section {
  padding: 60px 0;
  background: var(--green);
}
.fasilitas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.fasilitas-item { text-align: center; padding: 24px; }
.fas-icon { font-size: 2.5rem; margin-bottom: 12px; }
.fasilitas-item h4 { font-weight: 800; color: white; font-size: 1rem; margin-bottom: 8px; }
.fasilitas-item p { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.5; }

/* ========== GALERI ========== */
.galeri-section { padding: 80px 0; }
.galeri-section .section-desc { margin-bottom: 40px; }
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 16px;
}
.galeri-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.g1 { background: linear-gradient(135deg, #2D8A6F, #1B5E4A); }
.g2 { background: linear-gradient(135deg, #1A7A9F, #0F4F6B); }
.g3 { background: linear-gradient(135deg, #8B4513, #5C2E0D); grid-row: span 2; }
.g4 { background: linear-gradient(135deg, #6B2D8B, #3D1A56); }
.g5 { background: linear-gradient(135deg, #C0392B, #7B2318); }
.g6 { background: var(--green-dark); display: flex; align-items: center; justify-content: center; }
.g6 a { color: white; font-weight: 800; text-align: center; font-size: 1.1rem; }
.galeri-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: var(--transition);
}
.galeri-item:hover .galeri-overlay { opacity: 1; }
.galeri-overlay span { display: block; color: white; font-weight: 700; font-size: 0.9rem; }
.galeri-overlay small { color: rgba(255,255,255,0.7); font-size: 0.8rem; }

/* ========== PUSTU ========== */
.pustu-section { padding: 80px 0; background: var(--bg2); }
.pustu-section .section-title { margin-bottom: 40px; }
.pustu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pustu-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.pustu-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.pustu-icon { font-size: 2rem; margin-bottom: 10px; }
.pustu-card h4 { font-weight: 800; color: var(--text); margin-bottom: 6px; }
.pustu-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ========== KONTAK ========== */
.kontak-section { padding: 80px 0; }
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.kontak-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 32px; }
.kontak-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.kontak-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.kontak-item strong { display: block; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.kontak-item p { color: var(--text-muted); font-size: 0.9rem; }
.kontak-info .btn-primary { margin-top: 16px; }
.kontak-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ========== FOOTER ========== */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 16px 0 24px;
  color: rgba(255,255,255,0.6);
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  background: rgba(255,255,255,0.12);
  color: white;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}
.social-links a:hover { background: var(--accent); }
.footer-col h4 { font-weight: 800; color: white; margin-bottom: 16px; font-size: 0.95rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: white; padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .layanan-grid { grid-template-columns: repeat(2, 1fr); }
  .inovasi-grid { grid-template-columns: repeat(4, 1fr); }
  .fasilitas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 20px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--border); gap: 0; }
  .nav.open { display: flex; }
  .nav-link { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); }
  .btn-daftar { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 60px 0; }
  .hero-title { font-size: 2.2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .layanan-grid, .artikel-grid, .pustu-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .inovasi-grid { grid-template-columns: repeat(3, 1fr); }
  .fasilitas-grid { grid-template-columns: 1fr 1fr; }
  .galeri-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .g3 { grid-row: auto; }
  .kontak-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; }
}

@media (max-width: 480px) {
  .apps-grid { grid-template-columns: 1fr; }
  .inovasi-grid { grid-template-columns: repeat(2, 1fr); }
  .fasilitas-grid { grid-template-columns: 1fr; }
  .galeri-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.7s ease forwards; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }
