/* Harviso digital card v4 - shared stylesheet (all employees). */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); }

:root {
  --ink: #000000;          /* official Black (brand manual p.9) */
  --text: #000000;
  --muted: #6B6B6B;          /* brand caption grey: 5.3:1 on white, 5.0:1 on --paper */
  --line: #E6E7EB;
  --tile: #F8F9FC;
  --paper: #F8F9FC;
  --page: #E9EAEE;
  --blue: #527BFF;
  --purple: #8958FE;
  --cyan: #41C8F0;
  --col: 480px;
  --pad: 22px;
  --font: "Poppins", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.6;
  color: var(--text); background: #fff; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Language display ---------- */
html[data-lang="zh"] .l-en,
html[data-lang="en"] .l-zh,
html[data-lang="en"] .name-zh-first,
html[data-lang="en"] .only-zh { display: none; }
html:not([data-lang="en"]) .name-en-first,
html:not([data-lang="en"]) .only-en { display: none; }
/* No-JS / undecided: both languages, English as a quieter second line. */
html[data-lang="both"] .l-en { display: block; font-size: .84em; opacity: .75; margin-top: .2em; }
html[data-lang="both"] .eyebrow .l-en { display: inline; font-size: 1em; opacity: 1; margin: 0; }
html[data-lang="both"] .eyebrow .l-en::before { content: " / "; }
html:not([data-lang="en"]) .name-zh-first .hero__name-main { letter-spacing: .06em; }

.js-only { display: none !important; }
html.js .lang-switch.js-only { display: inline-flex !important; }
html.js .btn.js-only { display: flex !important; }
html.js .link-btn.js-only, html.js .qr__close.js-only { display: inline-flex !important; }
body.no-scroll { overflow: hidden; }

/* ---------- Focus and skip link ---------- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow--sub { margin: 36px 0 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #fff;
  padding: max(18px, env(safe-area-inset-top)) var(--pad) 40px;
}
/* Brand pattern: large tonal emblem (brand manual p.15/20), not a gradient. */
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -150px; top: 96px; width: 340px; height: 271px;
  background: url("/assets/harviso-emblem-white.png") no-repeat center / contain; opacity: .055;
}
.hero__inner { max-width: var(--col); margin: 0 auto; }
.hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 0; }
.hero__logo { display: block; flex: 0 0 auto; padding: 4px 0; }
.hero__logo img { width: 150px; height: auto; }

.lang-switch { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-switch__btn {
  font: inherit; font-size: 14px; line-height: 1; min-width: 48px; min-height: 44px; padding: 0 14px;
  color: rgba(255,255,255,.78); background: transparent; border: 0; border-radius: 999px; cursor: pointer;
}
.lang-switch__btn[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 700; }

.hero__id { padding-top: 52px; }
.hero__name { font-weight: 700; line-height: 1.1; }
.hero__name > span { display: block; }
.hero__name-main { display: block; font-size: 36px; letter-spacing: -.01em; text-wrap: balance; }
.hero__title { margin-top: 18px; font-size: 16px; font-weight: 400; color: rgba(255,255,255,.88); }
html[data-lang="both"] .hero__title .l-en { display: inline; font-size: 1em; opacity: 1; }
html[data-lang="both"] .hero__title .l-en::before { content: " · "; }
.hero__at { color: rgba(255,255,255,.62); font-weight: 300; }
.hero__offices { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.62); }
html[data-lang="both"] .hero__offices .l-en { font-size: 1em; }

.hero__line { margin-top: 36px; max-width: 22em; font-size: 20px; font-weight: 300; line-height: 1.45; letter-spacing: -.005em; color: #fff; }
.nb { display: inline-block; }
/* Three colours = three lines of business (same colours as the service markers below). */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.pillar { padding-top: 10px; border-top: 3px solid; font-size: 12px; line-height: 1.45; letter-spacing: .03em; color: rgba(255,255,255,.84); overflow-wrap: normal; }
.p1 { border-color: var(--blue); }
.p2 { border-color: var(--purple); }
.p3 { border-color: var(--cyan); }
html[data-lang="both"] .pillar .l-en { font-size: .92em; }
.c1 { background: var(--blue); }
.c2 { background: var(--purple); }
.c3 { background: var(--cyan); }

/* ---------- Actions and contact ---------- */
.content { max-width: var(--col); margin: 0 auto; padding: 26px var(--pad) 44px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 16px;
  font: inherit; font-size: 15px; font-weight: 400; line-height: 1.25; text-align: center; text-decoration: none;
  color: var(--text); background: var(--tile); border: 0; border-radius: 14px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color .15s;
}
.btn:hover { background: #E9EBEF; }
.btn:active { transform: translateY(1px); }
.btn .icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--blue); }
.btn--primary { width: 100%; min-height: 58px; font-size: 17px; font-weight: 700; letter-spacing: .01em; color: #fff; background: var(--ink); }
.btn--primary:hover { background: #222222; }
.btn--primary .icon { color: #fff; }
.btn--quiet { display: inline-flex; min-height: 44px; font-size: 14px; background: transparent; border: 1px solid var(--line); }
.btn--quiet:hover { background: var(--tile); }

.actions__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.act { min-height: 50px; font-size: 14px; background: transparent; border: 1px solid var(--line); }
.act:hover { background: var(--tile); }
.act .icon { width: 20px; height: 20px; }
html[data-lang="both"] .act .l-en { display: inline; font-size: 1em; margin: 0 0 0 6px; }
.actions__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.actions__grid .btn { flex-direction: column; justify-content: flex-start; gap: 7px; min-height: 86px; padding: 17px 6px 12px; font-size: 13px; }
html[data-lang="both"] .actions__grid .btn { min-height: 100px; }

.notice, .fallback { margin-top: 14px; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.65; background: #F2F5FF; }
.fallback label { display: block; margin-bottom: 8px; }
.fallback textarea { width: 100%; font: inherit; font-size: 14px; color: var(--text); padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; resize: vertical; }

.section { margin-top: 36px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.section__head .eyebrow { margin: 0; }
.link-btn {
  align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; font: inherit; font-size: 13px; color: var(--text);
  background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.link-btn .icon { width: 17px; height: 17px; color: var(--blue); }
html[data-lang="both"] .link-btn .l-en { display: inline; font-size: 1em; margin: 0 0 0 4px; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list__row { display: grid; grid-template-columns: minmax(96px, 33%) 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--muted); }
.contact-list dt .icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.contact-list dd { font-size: 16px; }
/* Whole row is the tap target (calls, emails, opens the site); chevron shows it is an action. */
.contact-list__row { padding-right: 26px; }
.contact-list__row.is-link { position: relative; }
.contact-list__row.is-link::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -5px;
  border-top: 1.8px solid #9A9EA9; border-right: 1.8px solid #9A9EA9; transform: rotate(45deg); pointer-events: none;
}
.contact-list dd a { text-decoration: none; color: var(--ink); font-weight: 400; }
.contact-list dd a::before { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.contact-list__row.is-link:hover { background: #FAFBFC; }
.contact-list dd a:focus-visible { outline: none; }
.contact-list dd a:focus-visible::before { outline: 3px solid var(--blue); outline-offset: -3px; }

/* ---------- About ---------- */
.about { background: var(--paper); padding: 40px var(--pad) 40px; }
.about__inner { max-width: var(--col); margin: 0 auto; }
.about__lead { font-size: 17px; line-height: 1.65; color: var(--ink); }
html[data-lang="zh"] .about__lead { line-height: 1.8; }
html[data-lang="both"] .about__lead .l-en { margin-top: 12px; font-size: 16px; }
.services { margin-top: 24px; }
.about__exec { margin-top: 22px; padding-left: 14px; border-left: 2px solid var(--blue); font-size: 15px; line-height: 1.65; color: var(--text); }

.services li { display: grid; grid-template-columns: 34px 1fr; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.services li:last-child { border-bottom: 0; }
.services__num { padding-top: 3px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.services__name { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.services__name .dot { display: inline-block; width: 8px; height: 8px; margin: 0 10px 2px 0; border-radius: 2px; vertical-align: middle; }
.services__desc { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--muted); }
html[data-lang="both"] .services__name .l-en { display: block; font-size: 14px; margin-left: 18px; }

/* ---------- Personal WeChat QR (shown only when supplied) ---------- */
.wechat__card { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 16px; background: var(--tile); }
.wechat__qr { flex: 0 0 auto; width: 132px; height: 132px; border-radius: 10px; background: #fff; }
.wechat__name { font-size: 16px; font-weight: 700; color: var(--ink); }
.wechat__hint { font-size: 14px; line-height: 1.6; color: var(--muted); }
html[data-lang="both"] .wechat__name .l-en { font-weight: 400; }

/* ---------- QR: page section without JS, full-screen sheet with JS ---------- */
.qr-sheet { max-width: var(--col); margin: 0 auto; padding: 0 var(--pad) 40px; }
html.js .qr-sheet { display: none; }
html.js .qr-sheet.is-open {
  display: flex; position: fixed; inset: 0; z-index: 30; max-width: none; margin: 0;
  align-items: center; justify-content: center; padding: 20px; background: rgba(7, 8, 11, .88);
}
.qr { position: relative; width: 100%; max-width: 360px; margin: 0 auto; text-align: center; padding: 30px 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.qr .eyebrow { margin-bottom: 8px; }
.qr__name { margin-bottom: 18px; font-size: 15px; font-weight: 700; color: var(--ink); }
html[data-lang="both"] .qr__name .l-en { font-weight: 400; }
.qr__img { width: 240px; height: 240px; margin: 0 auto; image-rendering: pixelated; }
.qr__url { margin: 12px 0 14px; font-size: 13px; color: var(--muted); }
.qr__close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer;
}
.qr__close .icon { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.footer {
  padding: 44px var(--pad) max(40px, env(safe-area-inset-bottom));
  background: var(--ink); color: rgba(255,255,255,.72); text-align: center; font-size: 13px;
}
/* Logo bottom-right: one of the four positions in the brand manual (p.19). */
.footer { text-align: right; }
.footer a { display: inline-block; }
.footer img { width: 150px; margin: 0; }
.footer__meta { margin-top: 4px; }
html[data-lang="both"] .footer__meta .l-en { font-size: 1em; }
.footer a { color: #fff; text-decoration-color: var(--blue); text-underline-offset: 4px; }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 20;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.22);
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Desktop: present as one card on a neutral page ---------- */
@media (min-width: 600px) {
  body { background: var(--page); padding: 48px 16px; }
  .hero, .content, .about, .qr-sheet, .footer { max-width: var(--col); margin-left: auto; margin-right: auto; }
  .hero { border-radius: 22px 22px 0 0; padding-top: 26px; }
  .content, .qr-sheet { background: #fff; }
  html.js .qr-sheet.is-open { max-width: none; background: rgba(7, 8, 11, .88); }
  .footer { border-radius: 0 0 22px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .toast, .btn { transition: none; }
  .btn:active { transform: none; }
}
@media print {
  .actions, .lang-switch, .toast, .skip-link { display: none !important; }
}

@media (max-width: 359px) {
  .hero__name-main { font-size: 32px; }
  .pillar { font-size: 11px; }
  .wechat__card { gap: 14px; padding: 14px; }
  .wechat__qr { width: 112px; height: 112px; }
}

/* Chinese text is never set in Light (brand design system 6.2). */
.l-zh, [lang="zh-Hans"] { font-weight: 400; }
.hero__name .hero__name-main[lang="zh-Hans"], .eyebrow .l-zh, .services__name .l-zh,
.btn--primary .l-zh, .lang-switch__btn[aria-pressed="true"], .qr__name .l-zh { font-weight: 700; }

/* Logo clear space (X = about 16 px at 150 px wide) next to the language switch on narrow phones. */
@media (max-width: 359px) {
  .lang-switch__btn { padding: 0 10px; min-width: 44px; }
}
