/* ===== Klinik Bunda Sehat (Opsi B) — style.css ===== */
:root {
  --accent: #B5534A;          /* warna utama — ganti di sini */
  --accent-dark: #8E3F37;
  --navy: #23324A;
  --navy-2: #2D3E59;
  --navy-line: #4A5A75;
  --ink: #23324A;
  --muted: #4A5668;
  --subtle: #5C6878;
  --peach: #FFF1EA;
  --blush: #F6DCD3;
  --line: #E5C9BE;
  --ground: #FFFBF8;
  --white: #FFFFFF;
  --shadow: 0 1px 0 #F0E3DC, 0 12px 30px rgba(35, 50, 74, 0.06);
  --font: 'Manrope', 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(--ground); 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: 52px; padding: 0 28px; border-radius: 16px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-sm { height: 46px; padding: 0 20px; font-size: 14px; border-radius: 14px; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { color: var(--accent); }
.btn-ghost-dark { background: transparent; color: var(--white); border-color: var(--navy-line); }
.btn-ghost-dark:hover { border-color: var(--white); }
.icon-btn { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn-dark { border: 1px solid var(--navy-line); background: transparent; color: var(--white); }
.icon-btn-dark:hover { border-color: var(--white); }
.remove-btn { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 999px; border: none; background: transparent; color: #8A94A3; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.remove-btn:hover { background: var(--peach); color: var(--ink); }

/* ===== Topbar & header ===== */
.topbar { background: var(--navy); color: #E9EDF3; font-size: 13px; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 251, 248, .94); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 42px; height: 42px; border-radius: 999px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex: 0 0 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 19px; }
.brand-sub { font-size: 12px; color: var(--subtle); }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.main-nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* ===== Hero ===== */
.hero-wrap { padding: 24px 0 80px; }
.hero { background: var(--peach); border-radius: 36px; padding: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; background: var(--white); color: var(--accent); font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-media { flex: 1 1 400px; min-width: 0; position: relative; }
.hero-media img { width: 100%; height: 460px; object-fit: cover; border-radius: 28px; }
.hero-badge { position: absolute; left: 20px; bottom: 20px; background: var(--white); border-radius: 18px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(35, 50, 74, .12); }
.hero-badge-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--blush); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.hero-badge-text { display: flex; flex-direction: column; line-height: 1.3; font-size: 13px; color: var(--subtle); }
.hero-badge-text strong { font-size: 14px; color: var(--ink); }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-services { padding-top: 40px; }
.section-dark { background: var(--navy); color: var(--white); }
.section-peach { background: var(--peach); padding: 80px 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.section-head.center { align-items: center; text-align: center; }
.section-head.center p { max-width: 520px; }
.section-head.split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head.split > div:first-child { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; }
.section-head p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.section-dark .section-head p { color: #C7D0DC; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow-light { color: #F2B8AC; }
.section-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ===== Layanan ===== */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-card { background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.service-card img { width: 100%; height: 170px; object-fit: cover; }
.service-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.service-card h3 { font-size: 19px; font-weight: 700; }
.service-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ===== Form ===== */
.add-form { background: var(--peach); border-radius: 22px; padding: 24px; margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.add-form[hidden] { display: none; }
.add-form-dark { background: var(--navy-2); }
.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: 700; color: var(--muted); }
.add-form-dark .field label { color: #C7D0DC; }
.field input[type="text"] { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; background: var(--white); color: var(--ink); }
.add-form-dark .field input[type="text"] { border-color: transparent; }
.field input[type="text"]:focus { border-color: var(--accent); outline: none; }
.field input[type="file"] { font-size: 14px; padding: 12px 0; }
.add-form-dark .field input[type="file"] { color: var(--white); }
.form-actions { display: flex; gap: 8px; }

/* ===== Geser horizontal ===== */
.hscroll { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--navy-line) transparent; }
.h-card { flex: 0 0 340px; scroll-snap-align: start; border-radius: 24px; overflow: hidden; background: var(--white); color: var(--ink); display: flex; flex-direction: column; }
.h-card .media { width: 100%; height: 230px; object-fit: cover; }
.h-card .body { padding: 20px 22px 24px; 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: 18px; font-weight: 700; }
.h-card p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ===== Gulir vertikal ===== */
.vscroll { max-height: 620px; overflow-y: auto; padding-right: 10px; display: flex; flex-direction: column; gap: 18px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.v-card { background: var(--white); border-radius: 24px; padding: 14px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; box-shadow: var(--shadow); }
.v-card .media { flex: 0 0 240px; width: 240px; height: 160px; border-radius: 18px; object-fit: cover; }
.v-card .body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.v-card .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--peach); padding: 5px 12px; border-radius: 999px; }
.v-card h3 { font-size: 20px; font-weight: 700; }
.v-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.placeholder { background: var(--blush); color: #8E5A50; display: flex; align-items: center; justify-content: center; font-size: 13px; text-align: center; padding: 8px; }

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

/* ===== CTA ===== */
.cta-wrap { padding: 0 0 88px; }
.cta { background: var(--accent); color: var(--white); border-radius: 32px; padding: 48px 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta > div { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.cta h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; }
.cta p { font-size: 16px; line-height: 1.6; color: #FBE7E2; }

/* ===== Kontak ===== */
.contact { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-intro { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.contact-intro h2 { font-size: clamp(28px, 3.4vw, 34px); font-weight: 800; }
.contact-intro p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.contact-grid { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-card { background: var(--white); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.contact-card span { font-size: 13px; font-weight: 700; color: var(--accent); }
.contact-card p { font-size: 16px; line-height: 1.6; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #C7D0DC; padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* ===== Mobile ===== */
@media (max-width: 860px) {
  .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(--ground); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 0; }
  .hero { padding: 32px 24px; border-radius: 28px; gap: 32px; }
  .hero-media img { height: 320px; }
  .section { padding: 64px 0; }
  .cta { padding: 36px 28px; }
  .h-card { flex-basis: 80%; }
  .v-card .media { flex-basis: 100%; width: 100%; height: 190px; }
}
