/* =========================================================
   KLINIK BAHTERA KASIH — styles shared by every page.
   Colors, fonts and sizes are the "tokens" right below.
   Change a color here and it changes everywhere.
   ========================================================= */
:root {
  /* Brand colors */
  --purple: #6C68D8;          /* buttons, accent words in headings */
  --purple-600: #5752C4;      /* hover, small purple text (easier to read) */
  --purple-800: #3B3594;      /* opening-hours card header */
  --navy: #221F66;            /* logo text color, header links */
  --lavender: #ABA8E8;        /* header background */
  --lavender-100: #ECEBFB;    /* icon circles, soft highlights */

  /* Neutrals */
  --bg: #F7F6F3;              /* page background (warm off-white, like the draft) */
  --wash: #EFEEF7;            /* alternate section background */
  --surface: #FFFFFF;         /* cards */
  --ink: #17152E;             /* main text */
  --muted: #55536B;           /* secondary text */
  --line: #E2E0EC;            /* borders */

  /* Status colors */
  --wa: #188A47;              /* WhatsApp buttons only */
  --wa-deep: #12703A;
  --open: #1C7A4A;
  --error: #B3261E;

  /* Type */
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(34, 31, 102, .05), 0 10px 30px rgba(34, 31, 102, .08);
  --header-h: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
/* Smooth scrolling to #booking etc. only on wide screens: the phone layout is so long
   that a smooth jump takes seconds, so on phones it jumps straight there. */
@media (min-width: 821px) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--purple-600); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 860px; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 12px; }

/* Line icons (drawn by main.js) */
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Headings: serif, with one word in purple ---------- */
.display {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.25rem);
  line-height: 1.08; letter-spacing: -0.015em;
}
.display-2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.12; letter-spacing: -0.01em;
}
.display-3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  line-height: 1.2;
}
.display span, .display-2 span, .display-3 span { display: inline; }
.accent { color: var(--purple); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  font: inherit; font-weight: 700; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--purple);
  border: 2px solid var(--purple); border-radius: var(--radius-sm);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--purple-600); border-color: var(--purple-600); }
/* Buttons grow a little on hover. Only on devices with a mouse (on phones a tap would leave
   them stuck big), and not for people who turned on "reduce motion" in their system settings. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover, .chip:hover { transform: scale(1.04); }
  .btn:hover { box-shadow: 0 6px 16px rgba(34, 31, 102, .14); }
  .wa-fab:hover { transform: scale(1.06); }
}
.btn:active, .chip:active { transform: scale(.98); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .8125rem; }
.btn-outline { background: transparent; color: var(--purple-600); border-color: var(--purple); }
.btn-outline:hover { background: var(--lavender-100); color: var(--purple-600); }
.btn-block { width: 100%; }
.btn .i { width: 22px; height: 22px; }
.btn-wa { background: var(--wa); border-color: var(--wa); text-transform: none; letter-spacing: 0; font-size: 1rem; }
.btn-wa:hover { background: var(--wa-deep); border-color: var(--wa-deep); }
a.btn:not([href]) { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link { align-self: flex-start; font-weight: 700; text-decoration: none; color: var(--purple-600); border-bottom: 2px solid var(--lavender); padding-bottom: 2px; }
.text-link::after { content: " →"; }
/* Invisible padding that makes small links and buttons at least 44px tall for fingers,
   without changing how they look. */
.text-link, .contact-list a, .lang-switch button { position: relative; }
.text-link::before, .contact-list a::before, .lang-switch button::before {
  content: ""; position: absolute; left: -4px; right: -4px; top: 50%;
  height: 44px; transform: translateY(-50%);
}
.lang-switch button::before { left: 0; right: 0; }
.text-link:hover { border-color: var(--purple); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--lavender); box-shadow: 0 1px 0 rgba(34, 31, 102, .08); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); text-decoration: none; flex: none; }
.brand-logo { height: 52px; width: auto; }
.brand-name { display: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand--fallback .brand-logo { height: 40px; }
.brand--fallback .brand-name { display: inline; }

.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9875rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: rgba(34, 31, 102, .35); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--navy); }
.main-nav .nav-book { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: flex; padding: 3px; background: rgba(255, 255, 255, .55); border-radius: 999px; }
.lang-switch button {
  font: inherit; font-size: .8125rem; font-weight: 700;
  min-width: 40px; height: 36px; border: 0; border-radius: 999px;
  background: transparent; color: var(--navy); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.header-book { background: var(--navy); border-color: var(--navy); }
.header-book:hover { background: #16134d; border-color: #16134d; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; color: var(--navy); }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Photos (with a placeholder when the file is missing) ---------- */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--lavender-100); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.photo.round { aspect-ratio: 1; border-radius: 50%; }
.photo.is-missing img { display: none; }
.photo.is-missing {
  display: grid; place-items: center; padding: 16px;
  background: repeating-linear-gradient(135deg, var(--lavender-100) 0 14px, #E4E3F8 14px 28px);
  border: 2px dashed #C9C7EE;
}
.photo.is-missing::after {
  content: attr(data-label) "\A" attr(data-file);
  white-space: pre-wrap; text-align: center;
  font-size: .8125rem; line-height: 1.5; font-weight: 600; color: var(--purple-800);
  background: rgba(255, 255, 255, .85); padding: 8px 12px; border-radius: 10px;
  max-width: 100%; overflow-wrap: anywhere;
}

/* ---------- Status chip ---------- */
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  font-weight: 600; font-size: .875rem; color: var(--ink);
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9A98AE; }
.status.is-open::before { background: var(--open); box-shadow: 0 0 0 4px rgba(28, 122, 74, .16); }
.status:empty { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #F4ECEA 0%, #EFEAF4 55%, var(--bg) 100%);
  padding: 56px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy .display span { display: block; }
.hero-copy .lead { max-width: 44ch; }
.hero-copy .btn-row { margin-top: 8px; }
.hero-copy .btn { min-width: 220px; }
.hero-tagline {
  margin-top: 16px; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--purple);
  font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.4;
}
.hero-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.stats { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 22px 26px;
}
.stat strong { font-size: 1.0625rem; line-height: 1.3; color: var(--navy); }
.stat strong::after { content: ""; display: block; width: 32px; height: 2px; background: var(--purple); margin: 12px auto 0; border-radius: 2px; }
.stat p { font-size: .9375rem; color: var(--muted); line-height: 1.55; }

.ico-circle {
  display: grid; place-items: center; flex: none;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--lavender-100); color: var(--purple-600);
}
.ico-circle .i { width: 28px; height: 28px; }
.ico-badge {
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: #fff; color: var(--purple); box-shadow: var(--shadow); margin-bottom: 20px;
}
.ico-badge .i { width: 40px; height: 40px; stroke-width: 2; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 56px 0; }
.section-wash { background: var(--wash); }
/* A thin line between neighbouring sections, so each one reads as its own block */
main > section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; }
.center .lead { margin: 16px auto 0; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
/* Services */
.card-photo { display: flex; flex-direction: column; gap: 12px; }
.card-photo .photo { margin-bottom: 8px; }
.card-photo h3, .card-round h3 { font-family: var(--serif); font-weight: 400; font-size: 1.375rem; color: var(--purple-600); }
.card-photo p { color: var(--muted); font-size: .9688rem; flex: 1; }

/* Facilities */
.card-round { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.card-round .photo { width: 100%; max-width: 250px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card-round h3 { font-size: 1.25rem; }
.card-round p { color: var(--muted); font-size: .9375rem; max-width: 30ch; }

/* ---------- Opening hours ---------- */
.hours-section {
  background:
    linear-gradient(rgba(247, 246, 243, .88), rgba(239, 238, 247, .94)),
    url("../assets/images/jadwal-bg.jpg") center / cover no-repeat,
    var(--wash);
}
.hours-section .btn { margin-top: 32px; min-width: 260px; }
.hours-card {
  width: 100%; max-width: 640px; margin-top: 32px;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
  text-align: left;
}
.hours-card-head {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--purple-800); color: #fff; padding: 20px 24px;
  font-weight: 800; font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase;
}
.hours-card-head .i { width: 30px; height: 30px; }

.hours-rows { list-style: none; margin: 0; padding: 0; }
.hours-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 28px; border-top: 1px solid var(--line);
}
.hours-row:first-child { border-top: 0; }
.hours-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lavender-100); color: var(--purple-600); }
.hours-day { font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .02em; line-height: 1.3; }
.hours-time { font-weight: 800; font-size: 1.5rem; color: var(--purple-800); text-align: right; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hours-time small { display: block; font-size: .75rem; letter-spacing: .08em; color: var(--muted); }
.hours-row.is-closed .hours-time { font-size: 1.25rem; text-transform: uppercase; }
.hours-row.is-today { background: #F6F5FE; box-shadow: inset 4px 0 0 var(--purple); }
.today-tag {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  padding: 2px 8px; border-radius: 999px; background: var(--purple); color: #fff;
  font-size: .6875rem; letter-spacing: .04em;
}

/* Compact version inside the info cards */
.hours-rows.compact .hours-row { grid-template-columns: 1fr auto; padding: 12px 0; gap: 12px; }
.hours-rows.compact .hours-ico { display: none; }
.hours-rows.compact .hours-day { font-size: .875rem; text-transform: none; }
.hours-rows.compact .hours-time { font-size: 1rem; }
.hours-rows.compact .hours-time small { display: inline; margin-left: 4px; }
.hours-rows.compact .hours-row.is-today { box-shadow: none; background: transparent; }
.hours-rows.compact .is-closed .hours-time { font-size: .9375rem; }

/* ---------- Booking ---------- */
.booking { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.booking-intro { display: grid; gap: 16px; }
.steps { list-style: none; counter-reset: step; margin: 20px 0 8px; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; }
.steps li::before {
  content: counter(step);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lavender-100); color: var(--purple-600); font-weight: 800;
}

.note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .9063rem; line-height: 1.5; }
.note .i { width: 20px; height: 20px; color: var(--purple-600); margin-top: 1px; flex: none; }
.booking-intro .note { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 46ch; }

.booking-panel { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.booking-form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 700; font-size: .9375rem; }
.optional { font-weight: 500; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  min-height: 52px; padding: 12px 16px;
  background: #fff;
  border: 1.5px solid #CFCDE3; border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 0; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235752C4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
input:hover, select:hover, textarea:hover { border-color: var(--lavender); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(108, 104, 216, .18); }
.hint { font-size: .875rem; color: var(--muted); }
.error { font-size: .875rem; color: var(--error); font-weight: 600; }
.error:empty { display: none; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.doctor-hint {
  margin-top: -6px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--lavender-100); color: var(--purple-800); font-size: .9063rem; font-weight: 500; line-height: 1.5;
}
.booking-form .btn { margin-top: 8px; }

.booking-done { display: grid; gap: 14px; justify-items: start; }
.booking-done:focus { outline: none; }
.booking-done h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; }
.booking-done p { color: var(--muted); }
.message-preview {
  width: 100%; margin: 4px 0 8px; padding: 18px 20px;
  background: var(--wash); border-radius: var(--radius-sm);
  font: inherit; font-size: .9375rem; white-space: pre-wrap; word-break: break-word;
}

/* ---------- Visit / contact ---------- */
.visit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: stretch; }
.visit-info { display: grid; gap: 20px; align-content: start; }
.visit-info .btn-row { margin-top: 12px; }
.contact-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.contact-list strong { display: block; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list div > span, .contact-list a { font-size: 1.0625rem; line-height: 1.5; }
.contact-list a { color: var(--purple-600); text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.summary-line { display: block; }
.ico-box { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); color: var(--purple-600); box-shadow: var(--shadow); }

.map {
  min-height: 440px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 2px dashed var(--line);
  display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted);
}
.map.has-map { border: 0; padding: 0; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
.map-tall, .map-tall iframe { min-height: 560px; }

/* ---------- Doctor schedule page ---------- */
.page-hero {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, #F4ECEA 0%, #EFEAF4 70%, var(--bg) 100%);   /* same soft tint as the home hero */
}
.page-hero .lead { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* ---------- "Page not found" page (404.html) ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound-actions { justify-content: center; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--navy);
  font-weight: 700; font-size: .9375rem; text-decoration: none;
  transition: border-color .15s, color .15s, transform .18s ease;
}
.chip:hover { border-color: var(--purple); color: var(--purple-600); }

.doc-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.doc-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.doc-card { display: flex; flex-direction: column; gap: 16px; }
.doc-card .photo { box-shadow: var(--shadow); }
.doc-body { display: grid; gap: 6px; justify-items: start; }
.doc-name { font-family: var(--serif); font-weight: 400; font-size: 1.3125rem; line-height: 1.3; color: var(--purple-600); }
.doc-sched { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .9375rem; color: var(--muted); }
.doc-sched strong { color: var(--ink); }
.doc-sched span { font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: #E3F4EA; color: var(--open); font-size: .8125rem; font-weight: 700; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding: 40px 44px; border-radius: var(--radius-lg);
  background: var(--lavender-100); border: 1px solid #DCDAF5;
}
.cta-band p { color: var(--muted); margin-top: 8px; max-width: 52ch; }

/* ---------- Info cards (lokasi.html) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 32px;
}
.info-card h3 { font-size: 1.3125rem; color: var(--navy); }
.info-lead { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.feature-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--radius-sm); background: #F7F6FE; }
.feature-list .i { color: var(--purple-600); margin-top: 1px; }
.feature-list strong { display: block; font-size: .9375rem; color: var(--purple-600); }
.feature-list span:not([data-icon]) { display: block; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.info-card .note { margin-top: auto; padding: 12px 14px; border-radius: var(--radius-sm); background: #F7F6FE; font-size: .8438rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 0; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: center; }
.footer-brand { display: grid; gap: 14px; justify-items: start; color: var(--muted); }
.footer-brand .brand-logo { height: 64px; }
.footer-official { color: var(--navy); font-weight: 700; margin-bottom: -8px; }
.footer-brand .brand--fallback .brand-logo { height: 44px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--purple-600); }
.footer-links .i { width: 20px; height: 20px; color: var(--purple-600); }
.footer-quote { margin: 0; padding: 0; text-align: right; }
.footer-quote p { color: var(--purple); font-size: clamp(1.125rem, 1rem + .5vw, 1.4rem); line-height: 1.6; max-width: 34ch; margin-left: auto; }
.footer-quote cite { display: block; margin-top: 12px; color: var(--purple-600); font-style: normal; font-weight: 600; }
.footer-quote cite::before { content: "— "; }
.footer-bottom { margin-top: 48px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

/* ---------- Floating WhatsApp button (only shows once a number is set) ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 92px; z-index: 40;   /* sits above the "Tanya kami" button */
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px rgba(18, 112, 58, .35);
  transition: background-color .15s, transform .18s ease;
}
.wa-fab:hover { background: var(--wa-deep); }
.wa-fab .i { width: 30px; height: 30px; }

/* ---------- Clinic assistant (js/chat.js) ---------- */
/* Text only screen readers hear */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chat-ico { display: grid; place-items: center; flex: none; }

.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
  background: var(--navy); color: #fff;
  font: inherit; font-weight: 700; font-size: .9375rem;
  box-shadow: 0 10px 28px rgba(34, 31, 102, .3); cursor: pointer;
  transition: background-color .15s, transform .18s ease;
}
.chat-fab:hover { background: #16134d; }
.chat-fab .i { width: 26px; height: 26px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .chat-fab:hover { transform: scale(1.04); }
}
/* While the chat is open, its own close button replaces the floating buttons. */
.chat-is-open .chat-fab, .chat-is-open .wa-fab { display: none; }
/* On phones, hide both floating buttons while someone types in a form field,
   so they don't cover the field (or sit on top of the keyboard). */
@media (max-width: 820px) {
  /* Room under the footer so its last line can scroll clear of the floating buttons. */
  .site-footer .footer-bottom { padding-bottom: 100px; padding-right: 80px; }
  body:has(main input:focus, main select:focus, main textarea:focus) .chat-fab,
  body:has(main input:focus, main select:focus, main textarea:focus) .wa-fab { display: none; }
}

.chat-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 380px; max-width: calc(100vw - 40px); height: min(620px, calc(100vh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(34, 31, 102, .25);
}
@media (prefers-reduced-motion: no-preference) {
  .chat-panel { animation: chat-in .18s ease-out; }
  @keyframes chat-in { from { opacity: 0; transform: translateY(10px); } }
}

.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; background: var(--lavender); color: var(--navy); }
.chat-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--purple-600); }
.chat-avatar .i { width: 22px; height: 22px; }
.chat-titles { min-width: 0; }
.chat-titles h2 { font-size: 1.0625rem; font-weight: 800; line-height: 1.3; }
.chat-titles p { font-size: .8125rem; line-height: 1.4; }
.chat-close {
  display: grid; place-items: center; flex: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--navy); cursor: pointer;
}
.chat-close:hover { background: rgba(255, 255, 255, .55); }

.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--bg); }
.chat-msg { position: relative; display: grid; gap: 8px; max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .9375rem; line-height: 1.5; }
.chat-msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg--user { align-self: flex-end; background: var(--purple-600); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg h3 { margin-top: 4px; font-size: .875rem; color: var(--purple-600); }
.chat-small { font-size: .8125rem; color: var(--muted); }
.chat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chat-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.chat-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.chat-list strong { font-weight: 600; }
.chat-list span { color: var(--muted); font-variant-numeric: tabular-nums; }
.chat-list a { font-weight: 600; }
.chat-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--lavender-100); color: var(--purple-600);
  font-weight: 700; font-size: .875rem; text-decoration: none;
}
.chat-link:hover { background: #DCDAF5; }

.chat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); scrollbar-width: thin; }
.chat-chip {
  flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--navy);
  font: inherit; font-weight: 600; font-size: .875rem; white-space: nowrap; cursor: pointer;
}
.chat-chip:hover { border-color: var(--purple); color: var(--purple-600); }

.chat-form { display: flex; gap: 8px; padding: 4px 12px 8px; background: var(--surface); }
.chat-form input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem;   /* 16px stops iPhones from zooming in on the field */
}
.chat-form input:focus { border-color: var(--purple); }
.chat-send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--purple-600); color: #fff; cursor: pointer; }
.chat-send:hover { background: var(--navy); }
.chat-send .i { width: 20px; height: 20px; }
.chat-privacy { padding: 0 16px 12px; background: var(--surface); color: var(--muted); font-size: .75rem; line-height: 1.4; text-align: center; }

@media print { .chat-fab, .chat-panel { display: none !important; } }

/* =========================================================
   Laptop / tablet
   ========================================================= */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 22px; }
}

@media (max-width: 960px) {
  .hero-grid, .booking, .visit-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .doc-grid, .doc-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-quote { text-align: left; }
  .footer-quote p { margin-left: 0; }
  .map, .map iframe, .map-tall, .map-tall iframe { min-height: 360px; }
}

/* =========================================================
   Phone
   ========================================================= */
@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; }
  .header-book { display: none; }
  .header-inner { gap: 12px; }
  .brand-logo { height: 42px; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--surface); box-shadow: 0 16px 30px rgba(34, 31, 102, .12);
    padding: 8px 20px 20px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--purple-600); }
  .main-nav .nav-book {
    display: flex; margin-top: 16px; min-height: 52px; align-items: center; justify-content: center;
    border: 0; border-radius: var(--radius-sm); background: var(--purple); color: #fff;
    font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .875rem;
  }
  .header-actions { margin-left: auto; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  body { font-size: 1rem; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand-logo { height: 38px; min-width: 0; }
  .brand-name { font-size: .975rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { gap: 4px; }
  .lang-switch button { min-width: 36px; height: 34px; }
  .section { padding: 48px 0; }
  .section-tight { padding: 40px 0; }
  .section-head { margin-bottom: 24px; }
  .lead { font-size: 1.0625rem; }

  .hero { padding: 32px 0 44px; }
  .hero-grid { gap: 36px; }
  .hero-copy { gap: 18px; }
  .hero-copy .btn-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-copy .btn { min-width: 0; padding: 0 12px; font-size: .78rem; letter-spacing: .05em; }
  .hero-photo { aspect-ratio: 1; }
  .stats { margin-top: 40px; gap: 12px; }
  .stat { padding: 20px 12px; gap: 8px; }
  .stat .ico-circle { width: 48px; height: 48px; }
  .stat .ico-circle .i { width: 24px; height: 24px; }
  .stat strong { font-size: .9375rem; }
  .stat strong::after { margin-top: 8px; }
  .stat p { font-size: .8125rem; }

  .grid-4 { grid-template-columns: 1fr; gap: 40px; }
  .facilities-grid, #facilities .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .card-round h3 { font-size: 1.0625rem; }
  .card-round p { font-size: .8438rem; }

  .hours-card-head { font-size: 1.0625rem; padding: 16px; }
  .hours-row { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 16px; }
  .hours-ico { width: 40px; height: 40px; }
  .hours-ico .i { width: 20px; height: 20px; }
  .hours-day { font-size: .875rem; }
  .hours-time { font-size: 1.125rem; }
  .hours-row.is-closed .hours-time { font-size: 1rem; }
  .today-tag { display: block; width: max-content; margin: 4px 0 0; }
  .hours-section .btn { width: 100%; min-width: 0; }

  .booking { gap: 36px; }
  .booking-panel { padding: 24px 18px; border-radius: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 20px; }

  .visit-info .btn-row { display: grid; grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 40px 1fr; gap: 14px; }
  .ico-box { width: 40px; height: 40px; border-radius: 12px; }
  .ico-box .i { width: 20px; height: 20px; }
  .map, .map iframe, .map-tall, .map-tall iframe { min-height: 320px; }

  .page-hero { padding: 36px 0 32px; }
  .doc-grid, .doc-grid.cols-4 { gap: 24px 14px; margin-top: 28px; }
  .doc-name { font-size: 1.0625rem; }
  .doc-sched { font-size: .8438rem; }
  .cta-band { padding: 28px 22px; }
  .cta-band .btn-row { width: 100%; display: grid; grid-template-columns: 1fr; }

  .info-grid { grid-template-columns: 1fr; gap: 16px; }
  .info-card { padding: 24px 20px; }
  .footer-brand .brand-logo { height: 52px; }
  .wa-fab { right: 16px; bottom: 80px; width: 56px; height: 56px; }
  .chat-fab { right: 16px; bottom: 16px; min-height: 52px; padding: 0 18px 0 14px; }
  /* On phones the chat fills the screen, with a small margin. */
  .chat-panel { inset: 8px; width: auto; max-width: none; height: auto; border-radius: 20px; }
  .chat-msg { max-width: 92%; }
}
