/* ============================================
   KLINIKKU – Template Klinik/Praktik Dokter
   By IndoKoding.net
   Bootstrap 5.3 + Custom CSS
   Identitas: deep forest ink + fresh emerald green
   di atas kanvas mint-white, tipografi Newsreader +
   Plus Jakarta Sans — navigasi standar, nuansa
   klinik modern yang segar, bukan klise teal-rumah
   sakit maupun hijau bumi ala tema desa.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ────────────────────────── */
:root {
  --ink:          #16261E;
  --ink-deep:     #0E1913;
  --slate:        #4B5D54;
  --green:        #17A653;
  --green-deep:   #0F7F3F;
  --green-soft:   #8FE6B3;
  --alert:        #B23B3B;

  --text:         #16221B;
  --text-soft:    #57685F;
  --mint:         #F6FBF7;
  --surface:      #EAF6EE;
  --card:         #FFFFFF;
  --line:         #DCEEE1;
  --white:        #FFFFFF;

  --font-display: 'Newsreader', ui-serif, Georgia, serif;
  --font-base:    'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;

  --radius-sm:    6px;
  --radius:       12px;
  --shadow:       0 14px 34px rgba(15,25,19,.12);
  --shadow-sm:    0 4px 14px rgba(15,25,19,.09);
  --transition:   all .25s ease;
}

/* ── Base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  font-size: 1rem;
  color: var(--text);
  background: var(--mint);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.22; }
a { color: var(--green-deep); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; }
.cursor-pointer { cursor: pointer; }

/* ── Section utility ─────────────────────── */
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 50px 0; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: .7rem;
}
.section-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--green); }
.section-title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: .5rem; }
.section-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.bg-surface { background: var(--surface) !important; }
.bg-ink { background: var(--ink) !important; }
.text-green { color: var(--green-deep) !important; }
.text-soft { color: var(--text-soft) !important; }
.lede { max-width: 60ch; color: var(--text-soft); font-size: 1.06rem; }

/* ── Buttons ─────────────────────────────── */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .68rem 1.4rem; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-outline-ink { border-color: var(--ink); color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.btn-outline-light2 { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light2:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ── Badges (BPJS / status) ──────────────── */
.badge-bpjs { display: inline-flex; align-items: center; gap: .35rem; background: var(--green-soft); color: #2F4A34; font-size: .7rem; font-weight: 700; letter-spacing: .03em; padding: .32rem .65rem; border-radius: 999px; }
.badge-nonbpjs { display: inline-flex; align-items: center; gap: .35rem; background: var(--surface); color: var(--text-soft); font-size: .7rem; font-weight: 700; letter-spacing: .03em; padding: .32rem .65rem; border-radius: 999px; border: 1px solid var(--line); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.available { background: var(--green); }
.status-dot.busy { background: #D9A441; }
.status-dot.off { background: #B7C4BB; }

/* ── Top utility bar ─────────────────────── */
.topbar { background: var(--ink-deep); color: #D6E4DA; font-size: .78rem; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #D6E4DA; opacity: .9; }
.topbar a:hover { opacity: 1; color: var(--green-soft); }
.topbar .sep { opacity: .3; }
@media (max-width: 576px) { .topbar .hide-xs { display: none; } }

/* ── Main navbar ─────────────────────────── */
.navbar-custom { background: var(--mint); border-bottom: 1px solid var(--line); padding: 16px 0; transition: var(--transition); }
.navbar-custom.scrolled { box-shadow: var(--shadow-sm); padding: 11px 0; }
.navbar-custom .navbar-brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--green-soft); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; color: var(--ink); line-height: 1.15; display: block; }
.brand-sub { font-size: .68rem; color: var(--text-soft); letter-spacing: .03em; line-height: 1.2; display: block; margin-top: 1px; }
.navbar-custom .nav-link { color: var(--text-soft); font-weight: 500; padding: .5rem 1rem !important; }
.navbar-custom .nav-link.active, .navbar-custom .nav-link:hover { color: var(--green-deep); }
.navbar-toggler { border: none; box-shadow: none !important; }

/* ── Hero ────────────────────────────────── */
.hero-section { padding: 58px 0 78px; position: relative; }
.hero-title { font-size: clamp(2.2rem, 3.4vw + 1rem, 3.4rem); line-height: 1.1; letter-spacing: -.01em; margin: 14px 0 16px; }
.hero-lede { max-width: 48ch; color: var(--text-soft); font-size: 1.08rem; }
.hero-stats { display: flex; gap: 32px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats .n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--green-deep); }
.hero-stats .l { font-size: .78rem; color: var(--text-soft); }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.hero-media img { width: 100%; height: 420px; object-fit: cover; display: block; }
.hero-media .float-card { position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 12px; }
.hero-media .float-card .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--green-soft); color: #2F4A34; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.hero-media .float-card .t { font-size: .78rem; color: var(--text-soft); }
.hero-media .float-card .v { font-weight: 700; color: var(--ink); font-size: .95rem; }

/* ── Page head (inner pages) ─────────────── */
.page-head { background: var(--ink); padding: 46px 0; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0; }
.page-head p { color: #AFC7B8; margin: 8px 0 0; max-width: 60ch; }

/* ── Stat row ────────────────────────────── */
.stat-cluster { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 760px) { .stat-cluster { grid-template-columns: repeat(2,1fr); } }
.stat-tile { background: var(--card); padding: 24px 18px; display: flex; flex-direction: column; gap: 6px; }
.stat-tile .n { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; color: var(--green-deep); }
.stat-tile .l { font-size: .8rem; color: var(--text-soft); }

/* ── Pull quote ──────────────────────────── */
.pull { border-left: 3px solid var(--green); padding-left: 18px; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--ink); margin: 18px 0; }

/* ── Doctor cards ────────────────────────── */
.doctor-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: var(--transition); }
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.doctor-card .photo { position: relative; }
.doctor-card .photo img { width: 100%; height: 260px; object-fit: cover; display: block; }
.doctor-card .status-chip { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.94); border-radius: 999px; padding: .3rem .65rem; font-size: .7rem; font-weight: 700; display: flex; align-items: center; gap: .35rem; color: var(--text); }
.doctor-card .body { padding: 20px; }
.doctor-card .name { font-size: 1.08rem; margin-bottom: 2px; }
.doctor-card .spec { color: var(--green-deep); font-size: .82rem; font-weight: 600; margin-bottom: 10px; }
.doctor-card .sched { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; color: var(--text-soft); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.doctor-card .sched .row { display: flex; justify-content: space-between; }

.doctor-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-pill { border: 1px solid var(--line); background: var(--card); color: var(--text-soft); border-radius: 999px; padding: 7px 16px; font-size: .85rem; cursor: pointer; }
.filter-pill.active, .filter-pill:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Service / poli cards ────────────────── */
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; height: 100%; transition: var(--transition); display: flex; flex-direction: column; }
.service-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.service-card .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--surface); color: var(--green-deep); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { font-size: .89rem; color: var(--text-soft); margin-bottom: 14px; flex-grow: 1; }
.service-card .price-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; font-size: .85rem; }
.service-card .price-row .price { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.02rem; }

/* ── Booking form ────────────────────────── */
.booking-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.booking-steps { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.booking-steps .step { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-soft); }
.booking-steps .step .num { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); color: var(--text-soft); display: flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 700; }
.booking-steps .step.active { color: var(--ink); font-weight: 600; }
.booking-steps .step.active .num { background: var(--green); color: #fff; }
.poli-select-card { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; transition: var(--transition); height: 100%; }
.poli-select-card input { position: absolute; opacity: 0; pointer-events: none; }
.poli-select-card:hover { border-color: var(--green-soft); }
.poli-select-card.selected, .poli-select-card:has(input:checked) { border-color: var(--green); background: #EAF8EE; }
.poli-select-card .ic { color: var(--green-deep); font-size: 1.15rem; margin-bottom: 6px; }
.poli-select-card .t { font-size: .88rem; font-weight: 600; color: var(--ink); }
.booking-summary { background: var(--surface); border-radius: var(--radius); padding: 22px; position: sticky; top: 100px; }
.booking-summary .row-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.booking-summary .row-item:last-child { border-bottom: none; }
.booking-summary .row-item span:first-child { color: var(--text-soft); }
.booking-summary .row-item span:last-child { font-weight: 600; color: var(--ink); text-align: right; }

/* ── Testimonial ─────────────────────────── */
.testi-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; height: 100%; }
.testi-card .stars { color: var(--green); font-size: .85rem; margin-bottom: 12px; }
.testi-card p { color: var(--text); font-size: .95rem; }
.testi-card .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi-card .who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testi-card .who .name { font-weight: 700; font-size: .88rem; color: var(--ink); }
.testi-card .who .role { font-size: .76rem; color: var(--text-soft); }

/* ── Article / news cards ────────────────── */
.article-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: var(--transition); }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-card .thumb { height: 175px; object-fit: cover; width: 100%; display: block; }
.article-card .body { padding: 20px; }
.article-card .cat { font-size: .68rem; font-weight: 700; color: var(--green-deep); letter-spacing: .05em; text-transform: uppercase; }
.article-card h3 { font-size: 1.05rem; margin: 8px 0 8px; }
.article-card p { color: var(--text-soft); font-size: .88rem; }
.article-card .meta { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--text-soft); margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }

.article-featured { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.article-featured .thumb { height: 240px; object-fit: cover; width: 100%; display: block; }
.article-featured .body { padding: 24px; }

/* ── Article detail ──────────────────────── */
.article-body p { margin-bottom: 1.1rem; color: var(--text-soft); }
.article-body h2, .article-body h3 { margin: 1.8rem 0 .8rem; }
.sidebar-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; }
.sidebar-card h4 { font-size: .92rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--green-deep); }
.tag-pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .78rem; color: var(--text-soft); margin: 0 6px 6px 0; }

/* ── Info card / facility card ───────────── */
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; height: 100%; }
.info-card .k { font-size: .7rem; color: var(--green-deep); letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.info-card h3 { font-size: 1.05rem; margin: 8px 0; }

.facility-card { border-radius: var(--radius); overflow: hidden; position: relative; }
.facility-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.facility-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(180deg, transparent, rgba(24,32,41,.75)); }

/* ── Org / team simple card ──────────────── */
.value-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; }
.value-card .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); color: var(--green-deep); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 14px; }

/* ── Contact page ─────────────────────────── */
.map-plate { height: 100%; min-height: 260px; border-radius: var(--radius); background: repeating-linear-gradient(45deg, transparent 0 18px, rgba(15,25,19,.06) 18px 19px), var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.map-plate .pin { width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: var(--green); transform: rotate(-45deg); }
.map-plate span { font-size: .76rem; color: var(--text-soft); }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--text-soft); }
.info-row span:last-child { font-weight: 600; text-align: right; }
.emergency-card { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 14px; }
.emergency-card .ic { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #FBEAEA; color: var(--alert); font-size: 1.2rem; flex-shrink: 0; }

/* ── Forms ───────────────────────────────── */
.form-control, .form-select { border-color: var(--line); background: var(--card); color: var(--text); border-radius: var(--radius-sm); padding: .68rem .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 .2rem rgba(23,166,83,.14); background: var(--card); color: var(--text); }
label { font-size: .85rem; font-weight: 600; color: var(--text-soft); margin-bottom: .35rem; }
.form-text { font-size: .78rem; }
.invalid-feedback { font-size: .78rem; }

/* ── Accordion (FAQ) ─────────────────────── */
.accordion-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: 10px; overflow: hidden; }
.accordion-button { background: var(--card); color: var(--ink); font-weight: 600; font-family: var(--font-base); }
.accordion-button:not(.collapsed) { background: var(--surface); color: var(--green-deep); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--green-soft); }

/* ── Pagination ──────────────────────────── */
.page-link { color: var(--text); border-color: var(--line); background: var(--card); }
.page-item.active .page-link { background: var(--ink); border-color: var(--ink); }
.page-link:hover { color: var(--green-deep); background: var(--surface); }

/* ── CTA band ─────────────────────────────── */
.cta-band { background: var(--ink); border-radius: var(--radius); padding: 48px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #AFC7B8; }

/* ── Footer ──────────────────────────────── */
footer.site-footer { border-top: 1px solid var(--line); padding: 46px 0 26px; font-size: .88rem; color: var(--text-soft); background: var(--surface); }
footer.site-footer .fmark { font-family: var(--font-display); color: var(--ink); font-size: 1.2rem; font-weight: 600; }
footer.site-footer h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green-deep); margin-bottom: 14px; font-weight: 700; }
footer.site-footer a { color: var(--text-soft); }
footer.site-footer a:hover { color: var(--green-deep); }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; }
.footer-social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Back to top ─────────────────────────── */
#backToTop { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; border: none; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: var(--transition); z-index: 1020; }
#backToTop.show { opacity: 1; pointer-events: auto; }

/* ── Toast (submit feedback) ─────────────── */
.toast-success { position: fixed; top: 90px; right: 22px; z-index: 2000; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; transform: translateX(120%); transition: transform .3s ease; }
.toast-success.show { transform: translateX(0); }
.toast-success .ic { color: var(--green); font-size: 1.2rem; }

/* ── Reduced motion ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── Responsive tweaks ────────────────────── */
@media (max-width: 991px) {
  .booking-summary { position: static; margin-top: 24px; }
}
@media (max-width: 576px) {
  .hero-media img { height: 280px; }
  .cta-band { padding: 32px 22px; }
}
