/* Klinik Nadi Harmoni — DEMO website bisnes oleh MHM CENTER.
   Klinik rekaan. Identiti visual sendiri (bukan gaya portfolio). */
:root {
  --teal-900: #08332f;
  --teal-800: #0b4a44;
  --teal-700: #0f6b61;
  --teal-600: #138277;
  --teal-100: #d9f1ec;
  --teal-50: #eef8f5;
  --coral: #e9775a;
  --coral-700: #b9472c;
  --ink: #12302c;
  --ink-soft: #3d5a55;
  --muted: #5d7370;
  --line: #d7e6e2;
  --bg: #fbfdfc;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgb(8 51 47 / 0.35);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 1rem; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-700); }
a:hover { color: var(--teal-900); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--teal-900); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--teal-900); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 0.6rem; }

/* demo ribbon */
.demo-bar { background: var(--teal-900); color: #e6f4f1; font-size: 0.82rem; text-align: center; padding: 0.45rem var(--gutter); }
.demo-bar strong { color: #ffd2c4; letter-spacing: 0.04em; }
.demo-bar a { color: #ffffff; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(251 253 252 / 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--teal-900); font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { width: 2.25rem; height: 2.25rem; border-radius: 11px; background: var(--teal-700); display: grid; place-items: center; }
.brand-mark svg { width: 1.25rem; height: 1.25rem; }
.brand small { display: block; font-weight: 600; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 0.55rem 0.85rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { background: var(--teal-50); color: var(--teal-900); }
.nav a[aria-current="page"] { color: var(--teal-900); background: var(--teal-100); }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 12px; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 1.3rem; height: 1.3rem; }
@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0.9rem; font-size: 1.05rem; }
  .nav .btn { margin-top: 0.5rem; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0 1.35rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: background-color .2s, color .2s, transform .2s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--coral-700); color: #fff; }
.btn-primary:hover { background: #9c3a22; color: #fff; }
.btn-ghost { border-color: var(--teal-700); color: var(--teal-800); background: transparent; }
.btn-ghost:hover { background: var(--teal-50); color: var(--teal-900); }
.btn-light { background: #fff; color: var(--teal-900); }
.btn-light:hover { background: var(--teal-100); color: var(--teal-900); }

/* hero */
.hero { background: linear-gradient(180deg, var(--teal-50), var(--bg)); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.85rem; font-weight: 600; color: var(--teal-800); margin-bottom: 1.1rem; }
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #9aa9a6; }
.dot.open { background: #1f9d55; box-shadow: 0 0 0 4px rgb(31 157 85 / 0.18); }
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--ink-soft); max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem; box-shadow: var(--shadow); }
.hero-card h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours td { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--teal-900); }
.hours tr.today td { color: var(--coral-700); font-weight: 700; }
.illus { aspect-ratio: 4 / 3; border-radius: 24px; background: radial-gradient(120% 90% at 80% 10%, var(--teal-100), transparent 60%), var(--teal-700); position: relative; overflow: hidden; }

/* sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--teal-50); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.kicker { display: block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-700); margin-bottom: 0.5rem; }
.grid { display: grid; gap: 1.1rem; }
.grid > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (min-width: 560px) and (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card p { color: var(--ink-soft); margin: 0; }
.icon { width: 2.75rem; height: 2.75rem; border-radius: 14px; background: var(--teal-100); color: var(--teal-800); display: grid; place-items: center; margin-bottom: 0.9rem; }
.icon svg { width: 1.35rem; height: 1.35rem; }
.list { padding: 0; margin: 0.8rem 0 0; list-style: none; }
.list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.4rem; color: var(--ink-soft); }
.list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--teal-600); }
.steps { counter-reset: s; display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); padding: 0; list-style: none; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal-700); color: #fff; font-weight: 800; margin-bottom: 0.7rem; }
.doctor { display: flex; gap: 1rem; align-items: flex-start; }
.avatar { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--teal-700); }
.avatar.c { background: var(--coral-700); }
.avatar.d { background: var(--teal-900); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--teal-800); background: var(--teal-100); border-radius: 999px; padding: 0.15rem 0.6rem; margin: 0.4rem 0.3rem 0 0; }
.notice { border-left: 4px solid var(--coral); background: #fff5f1; padding: 1rem 1.2rem; border-radius: 12px; color: #5a2a1d; }
.notice strong { color: #8a2e17; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.1rem; margin-bottom: 0.7rem; }
summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--teal-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--teal-700); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); }
.cta { background: var(--teal-800); color: #e9f6f3; border-radius: 28px; padding: clamp(1.8rem, 5vw, 3rem); display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 1fr; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #cfe9e3; margin: 0; }
@media (max-width: 880px) { .cta { grid-template-columns: 1fr; } }
.page-head { background: var(--teal-50); padding: clamp(2.2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.crumbs a { color: var(--muted); }
.map { aspect-ratio: 16 / 10; border-radius: var(--radius); border: 1px solid var(--line); background:
  linear-gradient(90deg, rgb(15 107 97 / 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(rgb(15 107 97 / 0.07) 1px, transparent 1px) 0 0 / 28px 28px, var(--white); position: relative; overflow: hidden; }
.map .road { position: absolute; background: #e6efed; }
.map .pin { position: absolute; left: 52%; top: 44%; transform: translate(-50%, -100%); }
.map .label { position: absolute; left: 52%; top: 48%; transform: translateX(-50%); background: var(--teal-900); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.65rem; border-radius: 8px; white-space: nowrap; }

/* form */
.form { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.2rem, 4vw, 2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 0.4rem; color: var(--teal-900); font-size: 0.95rem; }
.field .hint { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-600); outline: none; box-shadow: 0 0 0 4px rgb(19 130 119 / 0.15); }
.field [aria-invalid="true"] { border-color: var(--coral-700); }
.err { color: var(--coral-700); font-size: 0.88rem; margin-top: 0.35rem; }
.row2 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.row2 > * { min-width: 0; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.slots { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; padding: 0; margin: 0; }
.slots label { margin: 0; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: inline-block; padding: 0.5rem 0.85rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 0.9rem; cursor: pointer; background: var(--white); }
.slot input:checked + span { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.slot input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.slot input:disabled + span { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.preview { margin-top: 1.25rem; border: 1.5px dashed var(--teal-600); background: var(--teal-50); border-radius: 16px; padding: 1.1rem; }
.preview pre { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88rem; margin: 0.6rem 0 0; color: var(--ink); }

/* footer */
.site-footer { background: var(--teal-900); color: #cfe9e3; padding: 3rem 0 1.5rem; margin-top: 0; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 880px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #e6f4f1; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footnote { border-top: 1px solid rgb(255 255 255 / 0.12); margin-top: 2rem; padding-top: 1.2rem; font-size: 0.85rem; color: #a8cfc7; }
.footnote .wrap { display: block; }
@media (max-width: 880px) { #appt-wrap { grid-template-columns: minmax(0, 1fr) !important; } }
/* Nav CTA keeps button colours (nav link styles are more specific). */
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--coral-700); padding: 0 1.2rem; }
.nav a.btn-primary:hover { background: #9c3a22; }
