/* ==========================================================================
   BelComply — Design System
   欧洲律所风 · 深海军蓝 + 金色 · 权威沉稳
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --navy-950: #050B18;
  --navy-900: #071527;
  --navy-850: #0A1B33;
  --navy-800: #0D2140;
  --navy-700: #122E58;
  --navy-600: #1A3D74;
  --navy-100: #DCE5F2;
  --navy-50:  #EFF3F9;

  --gold-600: #A07F2C;
  --gold-500: #C6A15B;
  --gold-400: #D6B471;
  --gold-300: #E3CB95;
  --gold-100: #F3E8D0;
  --gold-50:  #FAF6EC;

  /* Ink (text) */
  --ink-900: #121A29;
  --ink-700: #303B50;
  --ink-500: #59657A;
  --ink-400: #7C8798;
  --ink-300: #9AA3B2;

  /* Surfaces */
  --paper:      #FFFFFF;
  --paper-soft: #F6F7F9;
  --paper-warm: #FBF8F2;
  --line:       #E6EAEF;
  --line-strong:#D3DAE3;

  /* Semantic */
  --ok:      #1F7A4D;
  --ok-bg:   #EDF7F0;
  --warn:    #9A3412;
  --warn-bg: #FBEEE9;
  --info-bg: #EEF2F9;

  /* Type */
  --serif:  Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue",
            "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}
p { margin: 0 0 1em; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--navy-900); }
::selection { background: var(--gold-300); color: var(--navy-900); }

/* ---------- Utilities ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--navy { background: var(--navy-900); color: #fff; }
.section--soft { background: var(--paper-soft); }
.section--warm { background: var(--paper-warm); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-500); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-500);
  line-height: 1.75;
  max-width: 46rem;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 15px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .22s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold-500); color: var(--navy-900);
}
.btn--gold:hover { background: var(--gold-400); color: var(--navy-900); transform: translateY(-1px); }
.btn--outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.35);
}
.btn--outline:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn--outline-dark {
  background: transparent; color: var(--navy-800); border-color: var(--line-strong);
}
.btn--outline-dark:hover { border-color: var(--gold-500); color: var(--gold-600); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn .arrow { transition: transform .22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 2rem; height: 72px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.brand__mark { display: flex; align-items: stretch; height: 28px; aspect-ratio: 15 / 13; border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden; }
.brand__mark span { flex: 1; }
.brand__mark span:nth-child(1) { background: #000000; }  /* Belgian black */
.brand__mark span:nth-child(2) { background: #FDDA24; }  /* Belgian yellow */
.brand__mark span:nth-child(3) { background: #EF3340; }  /* Belgian red */
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy-900); letter-spacing: .01em; }
.brand__tag  { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600); }

.main-nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.main-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-700);
  text-decoration: none; position: relative; padding: 6px 0;
}
.main-nav a:hover { color: var(--navy-900); }
.main-nav a.active { color: var(--navy-900); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold-500);
}
.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch {
  font-size: 13px; font-weight: 600; color: var(--ink-500);
  text-decoration: none; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 4px;
}
.lang-switch:hover { color: var(--navy-900); border-color: var(--gold-500); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 4px; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy-800); margin: 5px auto; }

/* ---------- Hero ---------- */
.hero { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(198,161,91,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%);
  pointer-events: none;
}
.hero__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gutter) clamp(64px, 9vw, 112px);
  position: relative; z-index: 1;
}
.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12; margin-bottom: 1.1rem; letter-spacing: -0.015em;
}
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.78);
  line-height: 1.75; max-width: 34rem; margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__note { margin-top: 1.2rem; font-size: 13px; color: rgba(255,255,255,.55); }

.hero-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 28px 28px 22px;
  backdrop-filter: blur(4px);
}
.hero-card__title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; margin-bottom: 1.1rem; }
.hero-card__row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14.5px; }
.hero-card__row:last-child { border-bottom: none; }
.hero-card__row .k { color: rgba(255,255,255,.62); }
.hero-card__row .v { color: #fff; font-weight: 600; }
.hero-card__row .v.ok { color: #7BD2A0; }
.hero-card__row .v.warn { color: #F2B8A0; }

/* ---------- Stat band ---------- */
.stat-band { border-bottom: 1px solid var(--line); background: var(--paper); }
.stat-band__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(24px, 4vw, 40px) var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stat { text-align: left; }
.stat__num {
  font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--navy-900); line-height: 1;
}
.stat__num span { color: var(--gold-600); }
.stat__label { font-size: 13.5px; color: var(--ink-500); margin-top: .5rem; }

/* ---------- Sections: generic ---------- */
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 30px 28px; transition: all .25s var(--ease);
}
.feature:hover { border-color: var(--gold-400); box-shadow: 0 16px 40px -20px rgba(7,21,39,.18); transform: translateY(-3px); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 6px; margin-bottom: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-50); color: var(--navy-700);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.feature p { font-size: 15px; color: var(--ink-500); margin: 0; }

/* ---------- Table ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th {
  text-align: left; font-weight: 600; font-size: 12.5px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500);
  background: var(--paper-soft); padding: 14px 18px; border-bottom: 1px solid var(--line);
}
table.data td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data .yes { color: var(--ok); font-weight: 600; }
table.data .no  { color: var(--warn); font-weight: 600; }

/* ---------- Callout ---------- */
.callout {
  border-left: 3px solid var(--gold-500); background: var(--gold-50);
  padding: 20px 24px; border-radius: 0 6px 6px 0; margin: 1.5rem 0;
}
.callout--warn { border-left-color: #D97706; background: var(--warn-bg); }
.callout--info { border-left-color: var(--navy-600); background: var(--info-bg); }
.callout b { color: inherit; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Official links ---------- */
.official-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.official-link {
  display: flex; align-items: center; gap: .8rem;
  border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px;
  text-decoration: none; transition: all .2s var(--ease); background: var(--paper);
}
.official-link:hover { border-color: var(--gold-400); box-shadow: 0 8px 20px -12px rgba(7,21,39,.2); }
.official-link__name { font-weight: 600; color: var(--navy-800); font-size: 14.5px; }
.official-link__role { font-size: 12.5px; color: var(--ink-400); }
.official-link svg { width: 18px; height: 18px; color: var(--gold-600); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); font-size: 14px; }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 6vw, 72px) var(--gutter) 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
}
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.68); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer__brand p { margin: .9rem 0 0; color: rgba(255,255,255,.55); max-width: 24rem; }
.site-footer__legal {
  max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 12.5px; color: rgba(255,255,255,.45);
}

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { width: 100%; }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.post-card {
  display: flex; gap: 1.5rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px;
  text-decoration: none; transition: all .22s var(--ease);
}
.post-card:hover { border-color: var(--gold-400); box-shadow: 0 12px 30px -18px rgba(7,21,39,.22); }
.post-card__meta { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; white-space: nowrap; padding-top: 3px; }
.post-card__body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.post-card__body p { font-size: 15px; color: var(--ink-500); margin: 0; }

/* ---------- Steps (process) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { border-top: 2px solid var(--gold-500); padding-top: 1.1rem; }
.step__num {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--gold-600);
  display: block; margin-bottom: .5rem; line-height: 1;
}
.step h3 { font-family: var(--sans); font-size: 1.05rem; margin-bottom: .5rem; }
.step p { font-size: 14.5px; color: var(--ink-500); margin: 0; }

/* ---------- Checklist (✓ / ✗) ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.checklist li:last-child { border-bottom: none; }
.checklist .mark { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 2px; }
.checklist .mark.ok { background: var(--ok-bg); color: var(--ok); }
.checklist .mark.no { background: var(--warn-bg); color: var(--warn); }

/* ---------- Panel box ---------- */
.panel { border: 1px solid var(--line); border-radius: 8px; padding: 30px 30px; background: var(--paper); }
.panel--soft { background: var(--paper-soft); }
.panel h3 { font-size: 1.2rem; margin-bottom: .5rem; }

/* ---------- Article body ---------- */
.article { max-width: 720px; }
.article .meta { font-size: 13px; color: var(--ink-400); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.5rem; }
.article .lede { font-size: 1.15rem; color: var(--ink-500); line-height: 1.75; }
.article h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; }
.article h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
.article p { color: var(--ink-700); }
.article .back { display: inline-block; margin-top: 2.5rem; font-size: 14.5px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--navy-900);
  padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .chev { transition: transform .25s var(--ease); color: var(--gold-600); flex-shrink: 0; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a > div { padding: 0 4px 24px; color: var(--ink-500); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-700); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 15px; color: var(--ink-900);
  padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 5px;
  background: var(--paper); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-100);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.page-hero__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 7vw, 88px) var(--gutter);
  position: relative; z-index: 1;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: .7rem; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 42rem; margin: 0; }
.crumb { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 1.2rem; }
.crumb a { color: var(--gold-400); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; }
  .official-links { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .stat-band__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: .25rem;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(7,21,39,.25);
  }
  .main-nav.open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav.open a:last-child { border-bottom: none; }
  .features { grid-template-columns: 1fr; }
  .official-links { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .stat-band__inner { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .post-card { flex-direction: column; gap: .4rem; }
  .sticky-cta { display: block; }
  .header-actions .btn { display: none; } /* hide header CTA on mobile; sticky bar takes over */
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
