:root {
  --ink: #2b2320;
  --muted: #6f625c;
  --cream: #faf5ef;
  --card: #ffffff;
  --line: #ece2d8;
  --rose: #a56a76;
  --rose-dark: #8a5a6d;
  --gold: #c6a15a;
  --wa: #25d366;
  --maxw: 720px;
  --pad: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang TC", "Noto Sans TC", "Hiragino Sans", -apple-system, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--pad);
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: rgba(250, 245, 239, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 20px;
  color: var(--cream);
  background: linear-gradient(160deg, var(--gold), var(--rose-dark));
}
.brand-text { font-weight: 700; font-size: 17px; letter-spacing: .3px; line-height: 1.1; }
.brand-text small { display: block; font-weight: 500; font-size: 10.5px; color: var(--muted); letter-spacing: .4px; }
.install-btn {
  border: 1px solid var(--rose); color: var(--rose); background: transparent;
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.install-btn:active { background: var(--rose); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,35,32,.28) 0%, rgba(43,35,32,.62) 70%, rgba(43,35,32,.78) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: 88px var(--pad) 64px;
  color: #fff;
}
.eyebrow { font-size: 12px; letter-spacing: 3px; font-weight: 600; color: var(--gold); margin: 0 0 14px; }
.hero-inner .eyebrow { color: #f2d9a8; }
.hero h1 { font-size: clamp(30px, 8vw, 44px); line-height: 1.2; margin: 0 0 16px; font-weight: 800; letter-spacing: .5px; }
.lede { font-size: 16px; max-width: 30em; margin: 0 0 26px; color: rgba(255,255,255,.92); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 14px 22px; border-radius: 999px; cursor: pointer; border: 0;
}
.btn-primary { background: var(--wa); color: #06331b; }
.btn-primary:active { filter: brightness(.94); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 52px var(--pad); }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(23px, 6vw, 30px); line-height: 1.28; margin: 0; font-weight: 800; }
.body { font-size: 15.5px; color: var(--muted); margin: 0; max-width: 34em; }
.note { font-size: 12.5px; color: var(--muted); margin: 18px 0 0; }

.therapist {
  margin-top: 26px; display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
}
.therapist-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-family: Georgia, serif; font-size: 22px;
  background: linear-gradient(160deg, var(--gold), var(--rose-dark));
}
.therapist strong { display: block; font-size: 16px; }
.therapist span { font-size: 13px; color: var(--muted); }

/* ---------- Services ---------- */
.services { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); max-width: none; }
.services > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.cards { display: grid; gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: 0 6px 20px rgba(138, 90, 109, .05);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 14px; font-size: 14.5px; color: var(--muted); }
.card-link { color: var(--rose); font-weight: 700; font-size: 14.5px; cursor: pointer; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--line); aspect-ratio: 3/4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.edu-img, .storefront { border-radius: 16px; margin: 6px 0 18px; width: 100%; }
.edu .body { margin-top: 2px; }

/* ---------- Visit ---------- */
.info-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.info-list .ico { flex: none; width: 22px; text-align: center; }
.info-list a { color: var(--rose-dark); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 40px var(--pad) calc(120px + var(--safe-b)); background: #241d1b; color: #e9ddd4; }
.foot-brand { font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.foot-sub { font-size: 13px; color: #b7a89f; margin: 0 0 18px; }
.foot-credit { font-size: 11.5px; letter-spacing: .5px; color: #8a7c73; margin: 0; }

/* ---------- Dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 10px;
  padding: 12px var(--pad) calc(12px + var(--safe-b));
  background: rgba(250, 245, 239, .94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.dock-btn { flex: 1; text-align: center; font-weight: 700; font-size: 15px; padding: 14px; border-radius: 14px; }
.dock-wa { background: var(--wa); color: #06331b; flex: 2; }
.dock-call { background: #fff; color: var(--rose-dark); border: 1px solid var(--line); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20, 15, 14, .92);
  display: grid; place-items: center; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top,0)); right: 18px;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}

@media (min-width: 560px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
