/* ================================================
   Klinik Pratama Rawat Inap St. Martina Sidikalang
   Main Stylesheet — v2 (Responsive + Mobile Menu)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=DM+Sans:wght@300;400;500&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #f8faf9;
  color: #1a2e22;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* ================================================
   NAVIGASI
   ================================================ */
nav {
  background: #fff;
  border-bottom: 1px solid #e0ece5;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: #1a6b47;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 600; color: #1a2e22; line-height: 1.2;
}
.nav-logo-sub { font-size: 10px; color: #5a7a67; font-weight: 400; letter-spacing: 0.5px; }

.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a {
  font-size: 13px; color: #3d5c49; text-decoration: none;
  font-weight: 500; transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #1a6b47; }

.nav-cta {
  background: #1a6b47; color: #fff;
  border: none; padding: 8px 18px; border-radius: 6px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none; display: inline-block;
  white-space: nowrap; transition: background 0.2s;
}
.nav-cta:hover { background: #155c3b; }

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  border-radius: 6px; transition: background 0.2s;
}
.nav-hamburger:hover { background: #f0f6f2; }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #1a2e22; border-radius: 2px; transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 199;
  padding: 1rem 1.5rem 2rem;
  flex-direction: column;
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 16px; color: #1a2e22;
  text-decoration: none; font-weight: 500;
  padding: 15px 0;
  border-bottom: 1px solid #f0f6f2;
  transition: color 0.2s;
}
.nav-drawer a:hover, .nav-drawer a.active { color: #1a6b47; }
.nav-drawer .nav-drawer-cta {
  margin-top: 1.2rem;
  background: #1a6b47; color: #fff;
  text-align: center; padding: 15px;
  border-radius: 10px; font-size: 15px;
  border-bottom: none;
}
.nav-drawer .nav-drawer-cta:hover { background: #155c3b; color: #fff; }

/* ================================================
   TOMBOL UMUM
   ================================================ */
.btn-primary {
  background: #1a6b47; color: #fff;
  border: none; padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none; display: inline-block; transition: background 0.2s;
}
.btn-primary:hover { background: #155c3b; }

.btn-secondary {
  background: transparent; color: #1a6b47;
  border: 1.5px solid #1a6b47; padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none; display: inline-block; transition: background 0.2s;
}
.btn-secondary:hover { background: #eaf5ee; }

/* ================================================
   SECTION UMUM
   ================================================ */
.section-inner { padding: 4rem 3rem; }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: #0d2117; margin-bottom: 0.5rem;
}
.section-header p { font-size: 14px; color: #5a7a67; }

/* ================================================
   PILLS / TAGS
   ================================================ */
.pill {
  display: inline-block; background: #eaf5ee; color: #1a6b47;
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
  margin-top: 6px; font-weight: 500;
}
.pill.bpjs { background: #e6f0fb; color: #1a5fa5; }
.pill.red  { background: #fdeaea; color: #a32d2d; }

.poli-tag {
  display: inline-block; background: #eaf5ee; color: #1a6b47;
  font-size: 11px; padding: 2px 8px; border-radius: 20px;
  margin-top: 8px; font-weight: 500;
}
.poli-tag.blue  { background: #e6f0fb; color: #1a5fa5; }
.poli-tag.red   { background: #fdeaea; color: #a32d2d; }
.poli-tag.amber { background: #fef3e2; color: #854f0b; }

/* ================================================
   POLI ICON
   ================================================ */
.poli-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 20px; flex-shrink: 0;
}
.poli-icon.green { background: #eaf5ee; }
.poli-icon.blue  { background: #e6f0fb; }
.poli-icon.amber { background: #fef3e2; }
.poli-icon.red   { background: #fdeaea; }
.poli-icon.teal  { background: #e1f5ee; }

/* ================================================
   INFO BAR (Beranda)
   ================================================ */
.info-bar { background: #1a6b47; padding: 2rem 2.5rem; }

.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 12px;
}
.info-card {
  background: rgba(255,255,255,0.12);
  border-radius: 12px; padding: 16px 18px;
  transition: background 0.2s;
}
.info-card:hover { background: rgba(255,255,255,0.18); }
.info-icon   { font-size: 18px; margin-bottom: 8px; }
.info-title  { font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 3px; }
.info-sub    { font-size: 12px; color: #a0cfb8; }

.info-imunisasi {
  background: rgba(0,0,0,0.25);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.info-imunisasi-icon   { font-size: 16px; }
.info-imunisasi-label  { font-size: 13px; font-weight: 500; color: #a0cfb8; }
.info-imunisasi-jadwal { font-size: 13px; color: rgba(255,255,255,0.75); }

/* ================================================
   FOOTER
   ================================================ */
footer {
  background: #0d2117; color: #a0cfb8;
  padding: 2rem 2.5rem;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-brand { font-family: 'Playfair Display', serif; color: #fff; font-size: 14px; }
.footer-copy  { font-size: 12px; }
footer a { color: #a0cfb8; text-decoration: none; }
footer a:hover { color: #fff; }

/* ================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ================================================ */
@media (max-width: 1024px) {
  nav { padding: 0 1.5rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 12px; }
  .section-inner { padding: 3rem 2rem; }
  .info-bar { padding: 1.8rem 2rem; }
  footer { padding: 1.8rem 2rem; }
}

/* ================================================
   RESPONSIVE — Mobile (≤ 768px)
   ================================================ */
@media (max-width: 768px) {
  nav { padding: 0 1.2rem; height: 56px; }
  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { top: 56px; }

  .section-inner { padding: 2.5rem 1.2rem; }
  .section-header h2 { font-size: 1.6rem; }
  .info-bar  { padding: 1.5rem 1.2rem; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }

  footer { padding: 1.5rem 1.2rem; flex-direction: column; align-items: flex-start; }
}

/* ================================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ================================================ */
@media (max-width: 480px) {
  .nav-logo-text { font-size: 13px; }
  .nav-logo-sub  { display: none; }
  .info-grid     { grid-template-columns: 1fr 1fr; gap: 8px; }
  .info-card     { padding: 12px; }
  .info-title    { font-size: 13px; }
  .section-header h2 { font-size: 1.4rem; }
}
.hero {
      background: linear-gradient(135deg, #eaf5ee 0%, #d4ede0 100%);
      padding: 5rem 3rem;
      display: flex; align-items: center; gap: 4rem; min-height: 460px;
    }
    .hero-text { flex: 1; min-width: 0; }
    .hero-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: #1a6b47; color: #fff;
      font-size: 11px; letter-spacing: 1px;
      padding: 5px 12px; border-radius: 20px; margin-bottom: 1.2rem; font-weight: 500;
    }
    .hero-badge span { width:6px;height:6px;background:#7fe0a0;border-radius:50%;display:inline-block; }
    .hero h1 {
      font-family: 'Playfair Display', serif;
      font-size: 2.8rem; font-weight: 600; color: #0d2117; line-height: 1.2; margin-bottom: 1rem;
    }
    .hero p { font-size: 15px; color: #3d5c49; line-height: 1.7; margin-bottom: 2rem; max-width: 420px; }
    .hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
    .hero-visual { flex: 0 0 300px; display: flex; flex-direction: column; gap: 10px; }
    .hero-card { background: #fff; border-radius: 12px; padding: 14px 18px; border: 1px solid #d4ede0; }
    .hero-card-label { font-size: 11px; color: #5a7a67; margin-bottom: 3px; font-weight: 500; }
    .hero-card-val   { font-size: 14px; font-weight: 500; color: #0d2117; }
    .hero-cards-row  { display: flex; gap: 10px; }
    .hero-card.small { flex: 1; }
    @media (max-width: 900px) {
      .hero { flex-direction: column; padding: 3rem 2rem; gap: 2.5rem; min-height: auto; }
      .hero-visual { flex: none; width: 100%; }
      .hero h1 { font-size: 2.2rem; }
    }
    @media (max-width: 480px) {
      .hero { padding: 2.5rem 1.2rem; }
      .hero h1 { font-size: 1.9rem; }
      .hero-btns .btn-primary, .hero-btns .btn-secondary { flex:1; text-align:center; }
    }
    .gallery-note { background:#eaf5ee;border:1px dashed #9fe1cb;border-radius:10px;padding:12px 16px;font-size:13px;color:#1a6b47;margin-bottom:1.5rem;text-align:center; }
    .gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
    .gallery-item { border-radius:14px;overflow:hidden;aspect-ratio:4/3;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #e0ece5; }
    .gallery-item.tall { grid-row:span 2; aspect-ratio:unset; min-height:300px; }
    .ph       { font-size:2rem; opacity:0.3; }
    .ph-label { font-size:12px; color:#5a7a67; margin-top:8px; font-weight:500; }
    @media(max-width:768px){ .gallery-grid{grid-template-columns:repeat(2,1fr);gap:10px;} .gallery-item.tall{grid-row:span 1;min-height:auto;aspect-ratio:4/3;} }
    @media(max-width:480px){ .gallery-grid{grid-template-columns:1fr 1fr;gap:8px;} }

    .jadwal-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; }
    .jadwal-card { background:#fff; border:1px solid #e0ece5; border-radius:14px; padding:1.4rem; }
    .jadwal-card-header { display:flex; align-items:center; gap:10px; margin-bottom:1rem; }
    .jadwal-card-icon { width:40px;height:40px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0; }
    .jadwal-card-icon.green{background:#eaf5ee;} .jadwal-card-icon.blue{background:#e6f0fb;} .jadwal-card-icon.amber{background:#fef3e2;} .jadwal-card-icon.red{background:#fdeaea;} .jadwal-card-icon.teal{background:#e1f5ee;}
    .jadwal-card h3 { font-size:14px; font-weight:500; color:#0d2117; }
    .jadwal-card .sub-doc { font-size:12px; color:#5a7a67; margin-top:2px; }
    .jadwal-rows { display:flex; flex-direction:column; gap:8px; }
    .jadwal-row { display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f8faf9;border-radius:8px;border:1px solid #e0ece5; }
    .jadwal-hari { font-size:12px; color:#3d5c49; font-weight:500; }
    .jadwal-jam  { font-size:12px; color:#1a6b47; font-weight:500; white-space:nowrap; }
    .jadwal-note { font-size:11px;color:#5a7a67;margin-top:8px;padding:6px 10px;background:#eaf5ee;border-radius:8px; }
    .igd-badge { display:inline-flex;align-items:center;gap:6px;background:#fdeaea;color:#a32d2d;font-size:12px;font-weight:500;padding:4px 12px;border-radius:20px;margin-top:8px; }
    .igd-dot { width:6px;height:6px;background:#e24b4a;border-radius:50%; }
    @media(max-width:900px){ .jadwal-grid{grid-template-columns:repeat(2,1fr);} }
    @media(max-width:520px){ .jadwal-grid{grid-template-columns:1fr;} .jadwal-row{flex-direction:column;align-items:flex-start;gap:2px;} }

    .contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:start; }
    .contact-info h2 { font-family:'Playfair Display',serif; font-size:1.8rem; color:#0d2117; margin-bottom:1.5rem; }
    .contact-row { display:flex; gap:14px; margin-bottom:1.2rem; align-items:flex-start; }
    .contact-icon { width:38px;height:38px;background:#eaf5ee;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0; }
    .contact-label { font-size:11px; color:#5a7a67; margin-bottom:2px; }
    .contact-val   { font-size:14px; color:#0d2117; font-weight:500; line-height:1.5; }
    .contact-val a { color:#1a5fa5; text-decoration:none; }
    .contact-val a:hover { text-decoration:underline; }
    .jam-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:1.5rem; }
    .jam-card { background:#f8faf9; border:1px solid #e0ece5; border-radius:10px; padding:12px 14px; }
    .jam-card .poli-name { font-size:11px; color:#5a7a67; margin-bottom:4px; }
    .jam-card .jam-time  { font-size:12px; font-weight:500; color:#0d2117; }
    .map-box { border-radius:14px; overflow:hidden; border:1px solid #d4ede0; }
    .map-box iframe { width:100%; height:340px; border:none; display:block; }
    .map-placeholder { background:#eaf5ee;height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:2rem; }
    .map-placeholder p { font-size:13px; color:#5a7a67; text-align:center; }
    @media(max-width:768px){ .contact-grid{grid-template-columns:1fr;gap:2rem;} .map-box iframe,.map-placeholder{height:260px;} }
    @media(max-width:480px){ .jam-grid{grid-template-columns:1fr;} }


    .poli-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; }
    .poli-card { background:#fff; border:1px solid #e0ece5; border-radius:14px; padding:1.6rem; transition:box-shadow 0.2s; }
    .poli-card:hover { box-shadow:0 4px 20px rgba(26,107,71,0.10); }
    .poli-card h3 { font-size:15px; font-weight:500; color:#0d2117; margin-bottom:6px; }
    .poli-card p  { font-size:13px; color:#5a7a67; line-height:1.65; }
    @media(max-width:900px){ .poli-grid{grid-template-columns:repeat(2,1fr);} }
    @media(max-width:520px){ .poli-grid{grid-template-columns:1fr;} }


    .about-grid { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:start; }
    .about-text h2 { font-family:'Playfair Display',serif; font-size:1.9rem; color:#0d2117; margin-bottom:1rem; }
    .about-text p  { font-size:14px; color:#3d5c49; line-height:1.8; margin-bottom:1rem; }
    .insurance-row { display:flex; gap:12px; margin-top:1.2rem; flex-wrap:wrap; }
    .ins-badge { display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #e0ece5;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:500; }
    .ins-badge.bpjs { color:#1a5fa5; border-color:#b5d4f4; }
    .ins-badge.umum { color:#1a6b47; border-color:#9fe1cb; }
    .about-values { display:flex; flex-direction:column; gap:12px; }
    .value-item { background:#fff;border:1px solid #e0ece5;border-radius:12px;padding:16px;display:flex;gap:12px;align-items:flex-start; }
    .value-icon { font-size:18px; flex-shrink:0; margin-top:2px; }
    .value-item h4 { font-size:14px; font-weight:500; color:#0d2117; margin-bottom:4px; }
    .value-item p  { font-size:13px; color:#5a7a67; line-height:1.6; }
    @media(max-width:768px){ .about-grid{grid-template-columns:1fr;gap:2rem;} .about-text h2{font-size:1.6rem;} }