/* ============================================================
   CN Consult 永達會計事務所 — cnconsult.be
   Quiet-authority system: ink on paper, engraved gold accents.
   See DESIGN-NOTES.md for the rationale behind every choice.
   ============================================================ */

/* Chinese brand face — Adobe Kaiti Std, subset to the glyphs the site uses
   (~180 KB). Prefers a locally-installed copy, then the self-hosted subset. */
@font-face {
  font-family: "Adobe Kaiti Std";
  src: local("Adobe Kaiti Std"), local("AdobeKaitiStd-Regular"), local("Kaiti SC"),
       url("../assets/fonts/AdobeKaitiStd-CNConsult.woff2") format("woff2"),
       url("../assets/fonts/AdobeKaitiStd-CNConsult.woff")  format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:        #141310;
  --ink-soft:   #45413a;
  --muted:      #6e675c;
  --paper:      #faf8f2;
  --paper-deep: #f3efe4;
  --hairline:   #e6dfce;
  --gold:       #dfb430;   /* CN Consult brand gold — RGB 223,180,48 */
  --gold-text:  #dfb430;   /* unified to the exact brand gold per client (RGB 223,180,48) */
  --gold-bright:#dfb430;   /* brand gold on dark backgrounds (7.6:1 on night) */
  --gold-faint: rgba(223, 180, 48, 0.14);
  --night:      #131108;   /* warm near-black, from the dark logo card */
  --night-soft: #1d1a10;

  /* English display: Copperplate Gothic Bold where installed (e.g. the studio's
     machine), Cinzel as the engraved-caps web fallback so every phone/visitor
     still gets the same look. */
  --font-display: "Copperplate Gothic Bold", "CopperplateGothic-Bold",
                  "Copperplate Gothic Std", "Copperplate Gothic", "Copperplate",
                  "Cinzel", "Times New Roman", serif;
  --font-body: "Calibri", "Segoe UI", -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-kai: "Adobe Kaiti Std", "AdobeKaitiStd", "MS Mincho",
              "STKaiti", "Kaiti SC", "KaiTi", "DFKai-SB", serif;
  --font-script: "Bickley Script", "Segoe Script", "Snell Roundhand", cursive;

  --w-page: 1140px;
  --pad-x: clamp(20px, 5vw, 48px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;            /* contain decorative off-canvas bleed (hero watermark) */
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.on-dark :focus-visible, .utility :focus-visible, .site-foot :focus-visible, .hero :focus-visible { outline-color: var(--gold-bright); }
[id] { scroll-margin-top: 100px; }

.skip-link {
  position: absolute;
  left: -9999px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--night);
  color: var(--gold-bright);
  padding: 12px 20px;
}

.wrap { max-width: var(--w-page); margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- type helpers ---------- */
.kai { font-family: var(--font-kai); font-weight: 400; }

.kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 13px;
  color: var(--gold-text);
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 26px;
}
.kicker .zh { font-family: var(--font-kai); letter-spacing: 0.2em; color: var(--muted); font-size: 15px; text-transform: none; }
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--hairline); align-self: center; }
.on-dark .kicker { color: var(--gold-bright); }
.on-dark .kicker .zh { color: rgba(250, 248, 242, 0.55); }
.on-dark .kicker::after { background: rgba(223, 180, 48, 0.25); }

h1, h2, h3 { font-weight: 400; margin: 0; }
h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.25;
  max-width: 21em;
}
.lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-soft); max-width: 62ch; }
h2 + .lede { margin-top: 26px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  line-height: 1;
  padding: 17px 30px 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-gold { background: var(--gold-bright); color: var(--night); border-color: var(--gold-bright); }
.btn-gold:hover { background: var(--gold); border-color: var(--gold); }
.btn-ghost { border-color: var(--hairline); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-text); }
.on-dark .btn-ghost { border-color: rgba(250, 248, 242, 0.3); color: var(--paper); }
.on-dark .btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.cta-short { display: none; }

/* ---------- utility bar ---------- */
.utility {
  background: var(--night);
  color: rgba(250, 248, 242, 0.75);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 16px;
}
.utility .zh-name { font-family: var(--font-kai); font-size: 14px; letter-spacing: 0.28em; color: var(--gold-bright); }
.lang { display: flex; gap: 2px; }
.lang a {
  text-decoration: none;
  padding: 3px 9px;
  color: rgba(250, 248, 242, 0.6);
}
.lang a:hover { color: var(--paper); }
.lang a[aria-current="true"] { color: var(--night); background: var(--gold-bright); }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand .emblem { width: 50px; height: auto; flex: none; }
.brand > span { display: flex; flex-direction: column; }   /* Chinese name always stacks under CN CONSULT */
.brand-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.24em; font-size: 17px; line-height: 1.1; }
.brand-sub { font-family: var(--font-kai); font-size: 12px; letter-spacing: 0.34em; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 20px); }
.site-nav a:not(.btn) {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--night);
  color: var(--paper);
  overflow: hidden;
}
.hero .wrap { position: relative; padding-top: clamp(84px, 12vh, 150px); padding-bottom: clamp(84px, 12vh, 150px); }
.hero-mark {
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: min(620px, 60vw);
  color: var(--gold-bright);
  opacity: 0.13;
  pointer-events: none;
}
.hero-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 12.5px;
  color: var(--gold-bright);
  margin: 0 0 30px;
}
.hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.14;
  max-width: 15em;
}
.hero .lede { color: rgba(250, 248, 242, 0.78); margin: 30px 0 44px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta {
  margin-top: 58px;
  padding-top: 26px;
  border-top: 1px solid rgba(223, 180, 48, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 248, 242, 0.6);
}
.hero-meta .zh { font-family: var(--font-kai); text-transform: none; }

/* ---------- generic section ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section.on-dark { border-top: none; }
.section-deep { background: var(--paper-deep); }

/* ---------- approach ---------- */
.approach-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 90px); margin-top: 40px; }
.approach-grid p { margin: 0 0 1.2em; color: var(--ink-soft); }
.callout {
  border-left: 3px solid var(--gold);
  background: var(--gold-faint);
  padding: 28px 30px;
  font-size: 17px;
  color: var(--ink);
  align-self: start;
}
.callout p { margin: 0; }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 52px;
}
.service {
  background: #fffdf8;
  border: 1px solid var(--hairline);
  padding: 38px 36px 34px;
  display: flex;
  flex-direction: column;
}
.service-No {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold-text);
  margin-bottom: 22px;
}
.service h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 19px;
  line-height: 1.35;
}
.service .zh {
  font-family: var(--font-kai);
  color: var(--muted);
  font-size: 15.5px;
  letter-spacing: 0.24em;
  margin: 8px 0 18px;
}
/* Chinese pages: Latin text keeps the English display/body fonts; only CJK glyphs
   fall back to kai — so English on the zh pages matches the English version exactly. */
[lang="zh-Hans"] {
  --font-display: "Copperplate Gothic Bold", "CopperplateGothic-Bold", "Copperplate Gothic Std", "Copperplate Gothic", "Copperplate", "Cinzel", "Adobe Kaiti Std", "MS Mincho", serif;
  --font-body: "Calibri", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "Adobe Kaiti Std", "MS Mincho", sans-serif;
}
/* English accent line under a Chinese heading (mirror of the .zh accent on the EN pages) */
.accent-en { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 13.5px; color: var(--muted); margin: 8px 0 18px; }
.office .accent-en { margin: 8px 0 24px; }
.service p { margin: 0 0 22px; color: var(--ink-soft); font-size: 15.5px; }
.service ul { list-style: none; margin: auto 0 0; padding: 20px 0 0; border-top: 1px solid var(--hairline); }
.service li { padding: 5px 0 5px 22px; position: relative; font-size: 15px; color: var(--ink); }
.service li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- firm / stats / name ---------- */
.firm { background: var(--night); color: var(--paper); }
.firm .lede { color: rgba(250, 248, 242, 0.72); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(223, 180, 48, 0.25);
  border: 1px solid rgba(223, 180, 48, 0.25);
  margin-top: 56px;
}
.stat { background: var(--night); padding: 34px 28px; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin-bottom: 10px;
}
.stat span { font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250, 248, 242, 0.65); }
.name-story {
  margin-top: 76px;
  padding-top: 60px;
  border-top: 1px solid rgba(223, 180, 48, 0.25);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.name-story .zh-big {
  font-family: var(--font-kai);
  font-size: clamp(64px, 9vw, 108px);
  line-height: 1.1;
  color: var(--gold-bright);
  letter-spacing: 0.12em;
}
.name-story .zh-full { font-family: var(--font-kai); font-size: 19px; letter-spacing: 0.3em; color: rgba(250, 248, 242, 0.6); margin-top: 14px; }
.name-story p { color: rgba(250, 248, 242, 0.78); margin: 0 0 1em; }
.name-story p:last-child { margin-bottom: 0; }
.name-story em { font-style: normal; color: var(--gold-bright); }

/* ---------- ethos / promise ---------- */
.ethos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(223, 180, 48, 0.25);
  border: 1px solid rgba(223, 180, 48, 0.25);
  margin-top: 52px;
}
.ethos-item { background: var(--night); margin: 0; padding: clamp(36px, 4vw, 54px) clamp(30px, 3.5vw, 48px); }
.ethos-zh {
  font-family: var(--font-kai);
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.16;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin: 0;
}
.ethos-en {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--paper);
  margin: 26px 0 14px;
}
.ethos-note { color: rgba(250, 248, 242, 0.72); font-size: 15.5px; line-height: 1.7; margin: 0; max-width: 44ch; }
.ethos-zh + .ethos-note { margin-top: 24px; }

/* ---------- offices ---------- */
.office-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 52px; }
.office { border: 1px solid var(--hairline); background: #fffdf8; padding: 38px 36px; }
.office h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 19px; }
.office .zh { font-family: var(--font-kai); color: var(--muted); font-size: 15.5px; letter-spacing: 0.22em; margin: 8px 0 24px; }
.office address { font-style: normal; color: var(--ink-soft); line-height: 1.8; }
.office address a { text-decoration: none; border-bottom: 1px solid var(--hairline); }
.office address a:hover { border-bottom-color: var(--gold); color: var(--gold-text); }
.office .hours {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.office .hours b { display: block; font-weight: 600; color: var(--ink); text-transform: uppercase; font-size: 12px; letter-spacing: 0.18em; margin-bottom: 6px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 90px); align-items: center; margin-top: 40px; }
.contact-panel { border: 1px solid var(--hairline); background: #fffdf8; padding: 42px 40px; text-align: center; }
.contact-panel .zh { font-family: var(--font-kai); letter-spacing: 0.3em; color: var(--muted); margin: 0 0 22px; }
.contact-panel .btn { width: 100%; white-space: normal; }
.contact-panel .alt { margin: 22px 0 0; font-size: 14.5px; color: var(--muted); }
.contact-panel .alt a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.contact-panel .alt a:hover { color: var(--gold-text); border-bottom-color: var(--gold); }

/* ---------- footer ---------- */
.site-foot { background: var(--night); color: rgba(250, 248, 242, 0.65); font-size: 14.5px; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr));
  gap: 40px;
  padding: clamp(56px, 8vw, 88px) 0 48px;
}
.foot-brand .emblem { width: 60px; height: auto; margin-bottom: 18px; }
.foot-brand .zh { font-family: var(--font-kai); letter-spacing: 0.3em; color: var(--gold-bright); font-size: 15px; margin-bottom: 14px; }
.foot-grid h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  color: var(--paper);
  margin: 0 0 18px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { text-decoration: none; color: rgba(250, 248, 242, 0.65); }
.foot-grid a:hover { color: var(--gold-bright); }
.foot-legal {
  border-top: 1px solid rgba(223, 180, 48, 0.2);
  padding: 26px 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(250, 248, 242, 0.55);
}
.foot-legal a { color: rgba(250, 248, 242, 0.55); }
.foot-legal a:hover { color: var(--gold-bright); }

/* ---------- questionnaire ---------- */
.form-page { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--pad-x); }
.form-page h1 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.form-page .zh-sub { font-family: var(--font-kai); letter-spacing: 0.3em; color: var(--muted); margin: 14px 0 0; }
.form-page .lede { margin: 26px 0 0; }
.q-form { margin-top: 48px; }
.q-form fieldset { border: none; margin: 0 0 14px; padding: 0; }
.field { margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label, .q-legend {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 9px;
}
label .opt, .q-legend .opt { color: var(--muted); letter-spacing: 0.08em; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 13px 15px;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-text); box-shadow: 0 0 0 1px var(--gold-text); }
.choices label:focus-within { border-color: var(--gold-text); box-shadow: 0 0 0 1px var(--gold-text); }
textarea { min-height: 130px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  border: 1px solid var(--hairline);
  background: #fffdf8;
  padding: 10px 16px;
  cursor: pointer;
}
.choices label:hover { border-color: var(--gold); }
.choices input { accent-color: var(--gold); margin: 0; }
.q-form .btn { margin-top: 10px; white-space: normal; }
.q-note { font-size: 14px; color: var(--muted); margin-top: 22px; }
.hp { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden; }

/* ---------- responsive ---------- */
/* brand subtitle 永達會計事務所 stays visible under CN CONSULT at all widths (client preference) */
/* on tablets / narrow preview panes, shorten the CTA label so the full section nav still fits */
@media (max-width: 1080px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
/* only collapse the section links when even the compact header can't hold them (phones) */
@media (max-width: 820px) {
  .site-nav a[href^="#"]:not(.btn) { display: none; }
}
@media (max-width: 960px) {
  .approach-grid, .contact-grid, .name-story { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .services-grid, .office-grid, .ethos-grid { grid-template-columns: minmax(0, 1fr); }
  .btn { padding: 15px 20px 13px; letter-spacing: 0.16em; font-size: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-mark { right: -30vw; opacity: 0.09; }
}
@media (max-width: 600px) {
  /* keep the sticky header on one line: compact brand + short CTA label */
  .site-head .wrap { gap: 12px; min-height: 64px; }
  .brand .emblem { width: 42px; }
  .brand-name { font-size: 15px; letter-spacing: 0.16em; }
  .brand-sub { font-size: 11px; letter-spacing: 0.2em; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .utility .wrap { flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
}
