:root {
  --background: #f6f1e9;
  --surface: #fbf8f3;
  --muted: #e4d8c6;
  --line: #d9cbb6;
  --brand: #6b4f3a;
  --text: #2e2620;
  --text-soft: #5c5047;
  --accent: #00a44e;
  --accent-deep: #0b6b39;
  --accent-soft: #a1c13c;
  --dark: #2e2620;
  --heading-font: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  --heading-font-cjk: "Noto Serif SC", "Songti SC", "STSong", serif;
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
/* "classic" template stylesheet, shared by every site.
   Colours and fonts are NOT set here: the builder prepends a :root block made from the site's theme
   (theme.colors / theme.fonts in its content). Use only the variables below. */
:root {
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .08);
  --serif: var(--heading-font);
  --sans: var(--body-font);
  color-scheme: light;
}
[data-script="cjk"] { --serif: var(--heading-font-cjk); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--background); color: var(--text); font: 17px/1.65 var(--sans); }
[data-script="cjk"] body { line-height: 1.8; letter-spacing: .02em; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
[data-script="cjk"] h1, [data-script="cjk"] h2, [data-script="cjk"] h3, [data-script="cjk"] h4 { font-weight: 700; letter-spacing: .06em; }
[data-script="cjk"] h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
p { margin: 0 0 1em; }
.muted { color: var(--text-soft); font-size: .92em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.icon { width: 22px; height: 22px; flex: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.env-ribbon { position: fixed; z-index: 60; bottom: 12px; left: 12px; background: #b3261e; color: #fff; font: 600 12px/1 var(--sans); letter-spacing: .08em; padding: 7px 10px; border-radius: 6px; pointer-events: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--accent-deep); color: #fff; text-decoration: none; font-weight: 600; border: 1.5px solid var(--accent-deep); transition: background .2s, color .2s; }
.btn:hover { background: color-mix(in srgb, var(--accent-deep) 85%, black); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--brand); }
.btn-ghost:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.btn-small { padding: 9px 16px; font-size: .95rem; }
.btn .icon { width: 18px; height: 18px; }

/* Notice + header */
.notice { background: var(--brand); color: white; font-size: .92rem; text-align: center; padding: 9px 0; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; min-width: 0; }
.brand-mark { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-primary { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; }
.brand-primary.cjk { font-family: var(--heading-font-cjk); letter-spacing: .14em; }
.brand-secondary { font-size: .8rem; color: var(--text-soft); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: var(--text); text-decoration: none; font-size: .97rem; }
.main-nav a:hover { color: var(--accent-deep); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.lang-switch:hover { border-color: var(--brand); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--muted); }
.hero-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; object-position: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--background) 96%, transparent) 0%, color-mix(in srgb, var(--background) 88%, transparent) 38%, color-mix(in srgb, var(--background) 15%, transparent) 70%, transparent 100%); }
.hero-inner { position: relative; z-index: 1; min-height: clamp(520px, 74vh, 720px); display: flex; align-items: center; padding-block: 64px; }
.hero-copy { max-width: 560px; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); background: color-mix(in srgb, var(--accent-soft) 22%, transparent); padding: 6px 12px; border-radius: 999px; }
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions-label { margin: 28px 0 0; font-weight: 600; color: var(--text); }
.hero-actions-label + .hero-actions { margin-top: 12px; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-reverse .split-media { order: 2; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }
.about { background: var(--surface); }
.team { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }

/* Practitioners: each person with an optional photo (or a neutral placeholder) and a short bio */
.practitioners { background: color-mix(in srgb, var(--muted) 40%, var(--background)); }
.practitioner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.practitioner-list-compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.practitioner { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent-deep); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.practitioner-nophoto { grid-template-columns: 1fr; }
.practitioner-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.practitioner-placeholder { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--muted); display: grid; place-items: end center; overflow: hidden; color: var(--text-soft); }
.practitioner-placeholder svg { width: 62%; height: auto; fill: currentColor; opacity: .55; }
.practitioner-title { color: var(--text-soft); font-weight: 600; margin-bottom: .6em; }
.practitioner-copy p { max-width: 62ch; }
.practitioner-copy > :last-child { margin-bottom: 0; }

.services-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.services-intro { position: sticky; top: 108px; }
.services-img { margin-top: 28px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.service { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.service h3, .service h4 { margin-bottom: .3em; }
.service h4 { font-size: 1.3rem; }
.service-groups { display: grid; gap: 40px; }
.service-group-heading { font-size: 1.5rem; margin-bottom: .2em; }
.service-group-intro { color: var(--text-soft); margin: 0 0 16px; }
.service-group-heading + .service-list { margin-top: 16px; }
.service p { margin: 0; color: var(--text-soft); }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-deep); }
.service-icon .icon { width: 24px; height: 24px; }

.gallery-section { background: var(--dark); color: color-mix(in srgb, white 88%, var(--dark)); }
.gallery-section h2 { color: white; }
.gallery-section .section-head p { color: color-mix(in srgb, white 78%, var(--dark)); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery figure { margin: 0; }
.gallery .wide { grid-column: 1 / -1; }
.gallery img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .wide img { aspect-ratio: 16 / 6; }
.gallery figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 10px; font-size: .95rem; }
.badge { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid color-mix(in srgb, white 40%, transparent); border-radius: 999px; padding: 3px 9px; color: color-mix(in srgb, white 78%, var(--dark)); white-space: nowrap; }

.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { color: var(--accent-deep); margin-top: 3px; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list .label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.contact-list .big { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.contact-list .big:hover { color: var(--accent-deep); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin: 0; }
.hours dd { margin: 0; }
.wechat-qr { margin: 28px 0 0; width: 160px; text-align: center; font-size: .9rem; }

.orbit-embed { background: var(--surface); }
.price { margin-top: .4em; font-weight: 600; color: var(--text); }
.hero-plain { background: var(--muted); }
.hero-plain::after { display: none; }
.hero-plain .hero-inner { min-height: 0; padding-block: clamp(64px, 10vw, 120px); }
.lang-switch + .lang-switch { margin-left: -4px; }

.site-footer { background: var(--muted); padding-block: 40px; font-size: .9rem; }
.footer-inner { display: flex; gap: 32px; justify-content: space-between; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-notes { max-width: 620px; }
.footer-notes p { margin: 0 0 .4em; }

.not-found { text-align: center; }
.not-found .btn { margin: 6px; }

/* Tablet and phone */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { min-height: 64px; gap: 10px; }
  .brand-mark { width: 38px; }
  .brand-primary { font-size: 1.1rem; }
  .brand-secondary { font-size: .7rem; }
  .btn-small span { display: none; }
  .btn-small { padding: 9px; }
  .hero { display: flex; flex-direction: column; }
  .hero-img { position: static; aspect-ratio: 16 / 10; height: auto; }
  .hero::after { display: none; }
  .hero-inner { min-height: 0; padding-block: 32px 48px; background: var(--background); width: 100%; padding-inline: 16px; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide img { aspect-ratio: 16 / 9; }
  .service { padding: 18px; gap: 14px; }
  .practitioner { grid-template-columns: 1fr; }
  .practitioner-photo { max-width: 280px; }
}
