/* E:\projects\APP\src\ClinicBooking.Static\css\site.css */
/* 診所首頁：手機優先、長者友善（基本字級 20px、按鈕 ≥ 56px、對比 ≥ 4.5:1）；與預約頁同一配色 */
:root {
  --fg: #1f2933;
  --muted: #3e4c59;
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #c4cbd3;
  --primary: #0b5cad;
  --primary-dark: #084a8c;
  --ok: #146c2e;
  --ok-bg: #e7f5ec;
  --warn-bg: #fff4ce;
  --warn-fg: #5c4400;
  --off: #616e7c;
  --focus: #f59e0b;
}

* { box-sizing: border-box; }
html { font-size: 125%; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", system-ui, sans-serif; color: var(--fg); background: var(--bg); line-height: 1.6; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 40rem; margin: 0 auto; padding: 0 0.8rem; }

.top { background: var(--primary); color: #fff; }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.brand { margin: 0; font-size: 1.2rem; font-weight: 700; }
.call { color: #fff; font-weight: 700; text-decoration: underline; }

main { padding-top: 1rem; padding-bottom: 1rem; }
h1 { font-size: 1.5rem; line-height: 1.35; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 0 0 0.6rem; }
p { margin: 0 0 0.8rem; }
.lead { font-size: 1.05rem; }
.hint { font-size: 0.9rem; color: var(--muted); margin-top: 0.8rem; }
a { color: var(--primary); }
a[data-tel] { font-weight: 700; white-space: nowrap; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 0.5rem; padding: 1rem; margin: 0 0 1rem; }
.booking { border-width: 3px; }
.booking[data-state="open"] { border-color: var(--ok); background: var(--ok-bg); }
.booking[data-state="open"] h2 { color: var(--ok); }
.booking[data-state="closed"], .booking[data-state="offline"], .booking[data-state="none"] { border-color: #d9a400; background: var(--warn-bg); }
.booking[data-state="closed"] h2, .booking[data-state="offline"] h2, .booking[data-state="none"] h2 { color: var(--warn-fg); }

.btn { display: flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: 0.5rem 1rem; font-size: 1.05rem; font-weight: 700; color: var(--primary); background: #fff; border: 2px solid var(--primary); border-radius: 0.5rem; text-decoration: none; }
.btn.primary { color: #fff; background: var(--primary); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.big { font-size: 1.25rem; min-height: 3.2rem; margin-top: 0.4rem; }
.btn:focus-visible, a:focus-visible { outline: 4px solid var(--focus); outline-offset: 2px; }

.scroll-x { overflow-x: auto; }
table.hours { width: 100%; border-collapse: collapse; text-align: center; font-size: 1rem; }
table.hours th, table.hours td { border: 1px solid var(--line); padding: 0.45rem 0.2rem; }
table.hours thead th { background: #eef2f7; }
table.hours tbody th { text-align: left; padding-left: 0.4rem; white-space: nowrap; }
table.hours .t { font-weight: 400; font-size: 0.8rem; color: var(--muted); }
table.hours td { color: var(--primary); font-weight: 700; }
table.hours td.off { color: var(--off); font-weight: 400; }
ul.notes { margin: 0.8rem 0 0; padding-left: 1.2rem; font-size: 0.95rem; }

ul.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.5rem; }
ul.services li { background: #eef4fb; border-radius: 0.4rem; padding: 0.5rem 0.7rem; font-weight: 700; }

dl.contact { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 0; }
dl.contact dt { color: var(--muted); }
dl.contact dd { margin: 0; font-weight: 700; }
dl.contact dd a[data-map] { font-weight: 400; font-size: 0.9rem; }
.intro h1 { color: var(--primary); }

.foot { padding: 1rem 0 2rem; color: var(--muted); font-size: 0.9rem; }
.foot p { margin: 0 0 0.3rem; }
