/* ============================================================
   YIAN HEALTH — 翳安健康
   Multi-page website design system
   EN default + ZH toggle (html[data-lang])
   ============================================================ */

:root {
  --ink: #173746;          /* deep teal-navy — primary text */
  --ink-soft: #24475a;
  --muted: #607884;        /* original-site secondary text */
  --paper: #f8fbfd;        /* original-site paper background */
  --surface: #ffffff;
  --line: #e6e8eb;
  --line-strong: #d8e2e7;

  --teal: #1281b6;         /* brand blue / cool */
  --teal-dark: #0b6f9f;
  --teal-soft: #daebf7;

  --warm: #d9b46e;         /* original-site coral / gold accent */
  --warm-dark: #b98e42;
  --warm-soft: #f6ecd8;

  --shadow-sm: 0 2px 8px rgba(23, 55, 70, 0.06);
  --shadow: 0 20px 50px rgba(18, 129, 182, 0.14);
  --shadow-lg: 0 24px 60px rgba(23, 55, 70, 0.16);

  --radius: 8px;
  --radius-lg: 16px;
  --radius-sm: 7px;

  --container: 1180px;
  --header-h: 72px;

  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans Thai", "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
button { font-family: inherit; }

/* ---------- language switching ---------- */
html[data-lang="en"] .zh { display: none !important; }
html[data-lang="zh"] .en { display: none !important; }

/* ---------- layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section--tint { background: var(--surface); }
.section--paper { background: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--warm { color: var(--warm); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); color: var(--ink); }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(18,129,182,.24); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--warm { background: var(--warm); color: #fff; box-shadow: 0 8px 20px rgba(200,145,58,.26); }
.btn--warm:hover { background: var(--warm-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { color: var(--teal); }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn .arrow { font-size: 18px; line-height: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(230,232,235,.9);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: var(--header-h); display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; overflow: hidden; border-radius: 4px; background: var(--teal); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: .02em; }
.brand-text small { font-size: 11.5px; color: var(--muted); letter-spacing: .08em; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  position: relative; padding: 24px 12px;
  color: #174b55; font-weight: 500; font-size: 15px;
}
.site-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 16px; height: 2px; background: var(--warm); transform: scaleX(0); transform-origin: center; transition: transform .16s ease; }
.site-nav a:hover { color: #174b55; background: transparent; }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--teal); font-weight: 600; }
.site-nav .nav-cta {
  margin-left: 8px; background: var(--teal); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--teal-dark); color: #fff; }
.site-nav .nav-cta::after { display: none; }

.lang-toggle {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--teal); color: var(--teal); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line-strong);
  background: #fff; border-radius: 10px; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: .2s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: flex; align-items: center; overflow: hidden;
  color: #fff; background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(14,40,54,.92) 0%, rgba(14,40,54,.72) 45%, rgba(11,90,120,.55) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 90px 0 110px; }
.hero-brand-lockup { width: 128px; height: 112px; margin: 0 0 18px; overflow: hidden; }
.hero-brand-lockup img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(7, 70, 105, .24)); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-bottom: 22px;
}
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--warm); border-radius: 2px; }
.hero-title {
  font-size: clamp(34px, 5.6vw, 60px); line-height: 1.08; margin: 0 0 20px;
  max-width: 17ch; font-weight: 800;
}
.hero-sub { font-size: clamp(16px, 2.2vw, 20px); color: rgba(255,255,255,.9); max-width: 60ch; margin: 0; }

/* dual entry cards */
.dual-entry { position: relative; z-index: 3; margin-top: -72px; padding: 0 0 16px; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.entry-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
  padding: 40px 38px; display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.entry-card__tag {
  display: inline-flex; align-self: flex-start;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.entry-card__title { font-size: clamp(22px, 2.6vw, 29px); line-height: 1.22; margin: 0 0 12px; }
.entry-card__desc { color: var(--muted); margin: 0 0 26px; font-size: 15.5px; }
.entry-card__btn { margin-top: auto; align-self: flex-start; }
.entry-card__hint {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed var(--line-strong);
  font-size: 13px; color: var(--muted);
}
.entry-card__hint b { color: var(--ink-soft); font-weight: 600; }

.entry-card--warm { border-top: 5px solid var(--warm); }
.entry-card--warm .entry-card__tag { background: var(--warm-soft); color: var(--warm-dark); }
.entry-card--cool { border-top: 5px solid var(--teal); }
.entry-card--cool .entry-card__tag { background: var(--teal-soft); color: var(--teal-dark); }

.hero-trustline {
  text-align: center; margin-top: 26px; font-size: 14px; color: var(--muted);
}
.hero-trustline .dot { color: var(--line-strong); margin: 0 6px; }

/* ---------- services detail (home) ---------- */
.services-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.services-head h2 { font-size: clamp(26px, 4vw, 38px); }
.service-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-col {
  border-radius: var(--radius-lg); padding: 36px 32px;
  border: 1px solid var(--line); background: var(--surface);
}
.service-col__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.service-col__head .dot-mark { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.service-col__head h3 { margin: 0; font-size: 21px; }
.service-col__sub { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; }
.service-col--warm { border-top: 5px solid var(--warm); }
.service-col--warm .dot-mark { background: var(--warm); }
.service-col--warm .service-point__num { background: var(--warm-soft); color: var(--warm-dark); }
.service-col--cool { border-top: 5px solid var(--teal); }
.service-col--cool .dot-mark { background: var(--teal); }
.service-col--cool .service-point__num { background: var(--teal-soft); color: var(--teal-dark); }

.service-point { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.service-point:first-of-type { border-top: 0; }
.service-point__num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.service-point__icon { flex: 0 0 auto; width: 40px; height: 40px; color: var(--teal); }
.service-point__icon svg { width: 100%; height: 100%; }
.service-point__body { min-width: 0; }
.service-point__body h4 { margin: 0 0 6px; font-size: 17px; }
.service-point__body > p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.service-point__deep {
  background: var(--paper); border-left: 3px solid var(--line-strong);
  padding: 10px 14px; border-radius: 0 8px 8px 0;
  font-size: 13.5px; color: var(--muted); margin: 0;
}
.service-point__deep b { color: var(--ink-soft); }
.service-col--warm .service-point__deep { border-left-color: var(--warm); background: var(--warm-soft); }
.service-col--cool .service-point__deep { border-left-color: var(--teal); background: var(--teal-soft); }

/* ---------- trust band (home) ---------- */
.trust-band { background: var(--ink); color: #fff; }
.trust-band .eyebrow { color: var(--warm); }
.trust-band h2 { color: #fff; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.stat {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
}
.stat__num { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1; margin-bottom: 10px; color: #fff; }
.stat__num em { font-style: normal; color: var(--warm); }
.stat__label { font-size: 14.5px; color: rgba(255,255,255,.82); margin: 0; }
.stat__link { display: inline-block; margin-top: 10px; font-size: 13.5px; color: var(--warm); font-weight: 600; }
.stat__link:hover { color: #fff; }

.cases-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.case-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 24px;
}
.case-card__tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.case-card--warm .case-card__tag { color: var(--warm); }
.case-card--cool .case-card__tag { color: #6fc3e8; }
.case-card blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.92); }
.cases-cta { text-align: center; margin-top: 30px; }

/* ---------- footer ---------- */
.site-footer { background: #0f2b39; color: rgba(255,255,255,.85); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-mark { overflow: visible; border-radius: 0; background: transparent; }
.site-footer .brand-mark img { object-fit: contain; }
.site-footer p { color: rgba(255,255,255,.72); font-size: 14.5px; }
.footer-col a { display: block; color: rgba(255,255,255,.72); padding: 4px 0; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.55);
}
.footer-legal a { color: rgba(255,255,255,.7); }
.footer-legal a:hover { color: #fff; }

/* ---------- interior page hero ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--ink); padding: 96px 0 88px;
}
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(14,40,54,.93), rgba(14,40,54,.68) 60%, rgba(11,90,120,.5));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 48px); max-width: 20ch; margin: 0 0 16px; }
.page-hero .lead { font-size: 17.5px; color: rgba(255,255,255,.88); max-width: 60ch; margin: 0; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }

/* ---------- generic content ---------- */
.prose { font-size: 16.5px; color: var(--ink-soft); }
.prose h2 { font-size: 26px; margin-top: 1.4em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose li { margin-bottom: 8px; }

.flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 12px 0 0; }
.flow-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.flow-step__num {
  font-size: 13px; font-weight: 800; color: var(--teal); letter-spacing: .1em;
  margin-bottom: 12px;
}
.flow-step h3 { font-size: 17px; margin-bottom: 8px; }
.flow-step p { color: var(--muted); font-size: 14.5px; margin: 0; }
.flow-step--warm .flow-step__num { color: var(--warm); }

a.flow-step { color: inherit; display: block; transition: border .15s, box-shadow .15s, transform .15s; }
a.flow-step:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
a.flow-step--warm:hover { border-color: var(--warm); }
a.flow-step .more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 13.5px; color: var(--teal); }
a.flow-step--warm .more { color: var(--warm); }

/* detail grid (tertiary pages) */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.detail-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: auto; }
.detail-media--order { order: -1; }

.list-checks { list-style: none; padding: 0; margin: 0; }
.list-checks li {
  position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line);
}
.list-checks li:last-child { border-bottom: 0; }
.list-checks li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 16px; height: 16px;
  background: var(--teal-soft); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.7' fill='none' stroke='%231281b6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}
.list-checks--warm li::before { background-color: var(--warm-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.7' fill='none' stroke='%23c8913a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--teal), var(--teal-dark)); color: #fff; border-radius: var(--radius-lg); padding: 48px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 24px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-band--warm { background: linear-gradient(120deg, var(--warm), var(--warm-dark)); }

/* ---------- forms ---------- */
.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.contact-form label { display: block; margin-bottom: 18px; }
.contact-form label > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; transition: border .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft);
}
.contact-form small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.form-status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.form-status.is-error { display: block; background: #fdecea; color: #b3261e; }
.form-status.is-success { display: block; background: #e7f6ec; color: #1e7a3c; }

/* inline mini form (hero cards) */
.mini-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 0; }
.mini-form input {
  min-width: 0; width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong);
  border-radius: 9px; font: inherit; font-size: 13.5px; background: #fff;
}
.mini-form .mini-submit { grid-column: 1 / -1; justify-content: center; margin-top: 2px; }
@media (max-width: 768px) {
  .mini-form { grid-template-columns: 1fr; }
}
.mini-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }

/* ---------- misc ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--teal-soft); color: var(--teal-dark); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; margin: 0 8px 8px 0;
}
.meta-pill--warm { background: var(--warm-soft); color: var(--warm-dark); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 900px) {
  .entry-grid, .service-columns, .detail-grid, .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-media--order { order: 0; }
}

/* mobile requirement: dual cards must stack (left on top) < 768px */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 60px 0; }
  .container { padding: 0 18px; }

  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px; margin: 0;
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 12px; font-size: 16px; border-radius: 10px; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }

  .lang-toggle { margin-left: auto; }
  .header-inner { gap: 14px; }
  .header-inner .lang-toggle { order: 3; }

  .hero { min-height: 78vh; }
  .hero-content { padding: 64px 0 130px; }
  .dual-entry { margin-top: -88px; }
  .entry-grid { gap: 18px; }
  .entry-card { padding: 30px 26px; }

  .stats-row { grid-template-columns: 1fr; }
  .cases-row { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-legal { flex-direction: column; gap: 10px; align-items: flex-start; }

  .page-hero { padding: 72px 0 64px; }
}

/* ============================================================
   New components (v0.2): floating consult, FAQ, cards, filters
   ============================================================ */

/* ---- Floating consult widget (site-wide) ---- */
.float-consult {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
}
.float-consult__btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.float-consult__btn:hover { transform: translateY(-2px); box-shadow: 0 28px 64px rgba(23,55,70,.24); }
.float-consult__btn .dot {
  position: absolute; top: 8px; right: 10px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--warm); border: 2px solid #fff;
}
.float-consult__panel {
  position: absolute;
  right: 0; bottom: 72px;
  width: 280px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.float-consult.is-open .float-consult__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.float-consult__panel h4 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.float-consult__panel p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.float-consult__panel .qr {
  background: var(--surface); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); padding: 12px; text-align: center;
  font-size: 13px; color: var(--muted); margin-bottom: 12px;
}
.float-consult__panel .btn { width: 100%; justify-content: center; box-sizing: border-box; }

/* ---- Card grid + info cards ---- */
.card-grid { display: grid; gap: 22px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.info-card__kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--teal); text-transform: uppercase; margin-bottom: 10px; }
.info-card__kicker--warm { color: var(--warm); }
.info-card h3 { font-size: 19px; margin: 0 0 10px; color: var(--ink); }
.info-card p { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.info-card__link { font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: none; }
.info-card__link:hover { color: var(--teal-dark); }
.info-card--link:hover { border-color: var(--teal); }

/* ---- Sub-nav pills (research hub) ---- */
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.subnav a {
  font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 9px 16px; border-radius: 999px;
  color: var(--teal); background: var(--teal-soft);
  transition: background .15s ease, color .15s ease;
}
.subnav a:hover { background: var(--teal); color: #fff; }

/* ---- Stat band (light variant) ---- */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 8px 0 0;
}
.stat-band .stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow-sm);
}
.stat-band .stat__num { color: var(--ink); font-size: clamp(24px, 3vw, 34px); }
.stat-band .stat__num em { color: var(--warm); }
.stat-band .stat__label { color: var(--muted); font-size: 13.5px; }

/* ---- FAQ accordion ---- */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; font-size: 16.5px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__q .faq__icon { transition: transform .2s ease; color: var(--teal); font-size: 20px; line-height: 1; flex: none; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a-inner { padding: 0 22px 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---- Filter bar + result grid ---- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: var(--shadow-sm); margin-bottom: 32px;
}
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group__label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.filter-group__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--teal); color: var(--teal); }
.filter-chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.result-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
}
.result-card__top { display: flex; align-items: center; gap: 14px; }
.result-card__avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--teal-soft), var(--warm-soft));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--teal-dark); font-size: 18px;
}
.result-card h3 { margin: 0; font-size: 17px; color: var(--ink); }
.result-card__meta { font-size: 13px; color: var(--muted); }
.result-card__tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--teal);
  background: var(--teal-soft); border-radius: 999px; padding: 4px 11px; align-self: flex-start;
}
.result-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---- Article list (knowledge / frontiers) ---- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-card__thumb { height: 150px; background: linear-gradient(135deg, var(--teal-soft), var(--warm-soft)); display: flex; align-items: center; justify-content: center; color: var(--teal-dark); font-size: 13px; font-weight: 700; }
.article-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card h3 { margin: 0; font-size: 17px; color: var(--ink); }
.article-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.article-card__link { font-size: 13.5px; font-weight: 600; color: var(--teal); text-decoration: none; }

/* ---- two-column list (service content checklist) ---- */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 0; }
.checklist li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.checklist li svg { flex: none; margin-top: 2px; color: var(--teal); }

/* ---- responsive for new components ---- */
@media (max-width: 980px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .result-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; }
  .result-grid, .article-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .float-consult { right: 14px; bottom: 14px; }
  .float-consult__panel { width: min(78vw, 280px); }
}
