/* ===== Klinik Bunda Sehat — style.css ===== */
:root {
  --accent: #2F6B5E;          /* warna utama — ganti di sini */
  --accent-dark: #1F4A41;
  --accent-soft: #EAF1EE;
  --ink: #1C2B28;
  --muted: #4A5A56;
  --subtle: #6B7C77;
  --line: #E6ECEA;
  --line-strong: #C9D6D2;
  --tint: #F6F8F7;
  --white: #FFFFFF;
  --radius: 20px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
button, input { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s;
}
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--ink); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.remove-btn {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 999px; border: none;
  background: transparent; color: #8A9894; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.remove-btn:hover { background: var(--tint); color: var(--ink); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.brand-name { font-weight: 700; font-size: 18px; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.main-nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.main-nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* ===== Hero ===== */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 72px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-media { flex: 1 1 400px; min-width: 0; height: 440px; border-radius: 28px; object-fit: cover; }

.placeholder {
  background: var(--accent-soft); color: #5E6F6A;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; text-align: center; padding: 8px;
}

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head > div:first-child { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 34px); font-weight: 700; }
.section-head p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.section-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ===== Layanan ===== */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.service-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.service-card h3 { font-size: 18px; font-weight: 600; }
.service-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ===== Form tambah konten ===== */
.add-form {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end;
}
.add-form[hidden] { display: none; }
.add-form-white { background: var(--white); }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.field-wide { flex: 2 1 300px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input[type="text"] { height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 15px; background: var(--white); color: var(--ink); }
.field input[type="text"]:focus { border-color: var(--accent); outline: none; }
.field input[type="file"] { font-size: 14px; padding: 10px 0; }
.form-actions { display: flex; gap: 8px; }

/* ===== Geser horizontal ===== */
.hscroll {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 16px; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.h-card {
  flex: 0 0 300px; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--white); display: flex; flex-direction: column;
}
.h-card .media { width: 100%; height: 210px; object-fit: cover; }
.h-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.h-card .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.h-card h3 { font-size: 17px; font-weight: 600; }
.h-card p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ===== Gulir vertikal ===== */
.vscroll {
  max-height: 560px; overflow-y: auto; padding-right: 8px;
  display: flex; flex-direction: column; gap: 16px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.v-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
}
.v-card .media { flex: 0 0 200px; width: 200px; height: 140px; border-radius: 14px; object-fit: cover; }
.v-card .body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.v-card .tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.v-card h3 { font-size: 19px; font-weight: 600; }
.v-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.hscroll::-webkit-scrollbar, .vscroll::-webkit-scrollbar { height: 8px; width: 8px; }
.hscroll::-webkit-scrollbar-thumb, .vscroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }

/* ===== Kontak ===== */
.contact { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-intro { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.contact-intro h2 { font-size: clamp(28px, 3.5vw, 34px); font-weight: 700; }
.contact-intro p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.contact-grid { flex: 2 1 480px; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.contact-grid dt { font-size: 13px; font-weight: 600; color: var(--subtle); margin-bottom: 6px; }
.contact-grid dd { margin: 0; font-size: 16px; line-height: 1.6; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--subtle); }

/* ===== Mobile ===== */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 0; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .hero { padding-top: 48px; padding-bottom: 48px; gap: 36px; }
  .hero-media { height: 280px; }
  .section { padding: 64px 0; }
  .h-card { flex-basis: 78%; }
  .v-card .media { flex-basis: 100%; width: 100%; height: 180px; }
}
