/* VCL — premium HK professional services */
:root {
  --navy: #0a2744;
  --navy-deep: #06182c;
  --navy-mid: #123a5c;
  --teal: #0b9faf;
  --teal-dark: #087f8c;
  --teal-soft: #e8f6f8;
  --teal-glow: rgba(11, 159, 175, 0.18);
  --ink: #152033;
  --muted: #5a6b7d;
  --line: #dce5ee;
  --bg: #f5f8fb;
  --bg-warm: #f8fafc;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(10, 39, 68, 0.05), 0 12px 28px -8px rgba(10, 39, 68, 0.12);
  --shadow-sm: 0 1px 2px rgba(10, 39, 68, 0.05), 0 4px 12px rgba(10, 39, 68, 0.06);
  --shadow-lg: 0 20px 50px -16px rgba(10, 39, 68, 0.22);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1140px;
  --header-h: 76px;
  --font: "Segoe UI", "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  --tracking-tight: -0.02em;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy); }
.container { width: min(100% - 2.25rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff;
  padding: .55rem 1rem; z-index: 1000; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid rgba(220,229,238,.9);
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem; position: relative;
}
.logo {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: inherit; min-width: 0;
}
.logo img.logo-mark,
.logo .logo-mark {
  display: block; height: 40px; width: auto;
  border: 0 !important; outline: 0 !important; box-shadow: none !important;
  background: transparent; padding: 0; border-radius: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo-name-primary {
  font-weight: 750; font-size: .95rem; color: var(--navy); letter-spacing: var(--tracking-tight);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw;
}
.logo-name-secondary {
  font-size: .7rem; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw;
}
@media (max-width: 380px) { .logo-name-secondary { display: none; } }

.nav { display: flex; align-items: center; gap: .15rem 1.05rem; flex-wrap: wrap; }
.nav a {
  color: var(--navy); font-weight: 600; font-size: .9rem; padding: .4rem 0;
  position: relative;
}
.nav a:hover { color: var(--teal-dark); }
.nav a[aria-current="page"] { color: var(--teal-dark); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--teal); border-radius: 2px;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff !important;
  padding: .55rem 1.05rem !important; border-radius: 999px; font-weight: 700 !important;
  box-shadow: 0 6px 16px var(--teal-glow);
}
.nav-cta:hover { filter: brightness(1.05); color: #fff !important; }
.nav-cta::after { display: none !important; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: var(--bg);
}
.lang-switch a { padding: .35rem .7rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lang-switch a.active { background: var(--navy); color: #fff; }
.lang-switch a::after { display: none !important; }
.menu-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: .5rem .75rem; font-weight: 700; color: var(--navy);
}

/* Hero */
.hero {
  position: relative; color: #fff;
  background: var(--navy-deep) center/cover no-repeat;
  min-height: min(520px, 78vh); display: grid; align-items: end;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(6,24,44,.92) 0%, rgba(10,39,68,.72) 48%, rgba(11,159,175,.38) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(11,159,175,.25), transparent 50%);
}
.hero-inner { position: relative; padding: 5.5rem 0 4rem; }
.hero .eyebrow {
  color: #7fd4de; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  padding: .28rem .7rem; border-radius: 999px; margin-bottom: .9rem;
  letter-spacing: .06em;
}
.hero h1 {
  margin: 0 0 .9rem; font-size: clamp(2rem, 4.4vw, 3.05rem);
  line-height: 1.15; letter-spacing: var(--tracking-tight);
  max-width: 14ch; font-weight: 800;
}
.hero p {
  margin: 0 0 1.75rem; max-width: 38rem; color: rgba(255,255,255,.9);
  font-size: clamp(1.02rem, 1.5vw, 1.12rem); line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border-radius: 999px; padding: .8rem 1.35rem; font-weight: 700; border: 0; cursor: pointer;
  text-decoration: none; font-size: .94rem; letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; box-shadow: 0 8px 20px var(--teal-glow);
}
.btn-primary:hover { filter: brightness(1.06); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.38); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-outline {
  background: #fff; color: var(--navy); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-wa {
  background: #25d366 !important; border: 1px solid #1ebe57 !important;
  color: #fff !important; box-shadow: 0 8px 18px rgba(37,211,102,.28);
}
.btn-wa:hover { filter: brightness(1.05); color: #fff !important; background: #22c55e !important; }
.hero .btn-wa, .consult-band .btn-wa, .cta-band .btn-wa {
  background: #25d366 !important; border-color: #1ebe57 !important; color: #fff !important;
}

/* Sections */
.section { padding: 4.25rem 0; }
.section-alt {
  background:
    linear-gradient(180deg, var(--bg) 0%, #eef3f7 100%);
}
.section-head { margin-bottom: 2.25rem; max-width: 46rem; }
.section-head h2 {
  margin: 0 0 .65rem; font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--navy); letter-spacing: var(--tracking-tight); font-weight: 800;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.eyebrow {
  display: inline-block; color: var(--teal-dark); font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; margin-bottom: .45rem;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.35rem; }

.card {
  background: #fff; border: 1px solid rgba(220,229,238,.95);
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3 { margin: 0 0 .55rem; color: var(--navy); font-size: 1.08rem; letter-spacing: var(--tracking-tight); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.card a.more, .card .more { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--teal-dark); }
.service-card { color: inherit; text-decoration: none; height: 100%; }
.service-card:hover {
  transform: translateY(-4px); border-color: #b6e4ea;
  box-shadow: var(--shadow);
}
.icon-dot {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--teal-soft), #d5f0f4);
  color: var(--teal-dark); font-weight: 800; margin-bottom: 1rem;
  font-size: .78rem; letter-spacing: .02em;
}

/* Page hero */
.page-hero {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(11,159,175,.28), transparent 45%),
    linear-gradient(125deg, var(--navy-deep) 0%, var(--navy-mid) 55%, var(--teal-dark) 120%);
  color: #fff; padding: 3.4rem 0 2.6rem;
}
.page-hero h1 {
  margin: 0 0 .55rem; font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: var(--tracking-tight); font-weight: 800;
}
.page-hero p { margin: 0; max-width: 46rem; color: rgba(255,255,255,.88); font-size: 1.02rem; }
.breadcrumb { margin-bottom: .9rem; font-size: .86rem; color: rgba(255,255,255,.72); }
.breadcrumb a { color: #fff; }

.prose { max-width: 52rem; }
.prose h2 { color: var(--navy); margin-top: 2.2rem; letter-spacing: var(--tracking-tight); font-size: 1.35rem; }
.prose h3 { color: var(--navy); margin-top: 1.5rem; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: .4rem 0; }
.prose p { color: var(--ink); }

.callout {
  background: var(--teal-soft); border-left: 4px solid var(--teal);
  padding: 1.05rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}
.callout strong { color: var(--navy); }
.note { font-size: .9rem; color: var(--muted); }
.sources { font-size: .88rem; color: var(--muted); margin-top: 1.5rem; }
.sources a { word-break: break-word; }

.table-wrap {
  overflow-x: auto; margin: 1.1rem 0 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { border-bottom: 1px solid var(--line); padding: .7rem .85rem; text-align: left; vertical-align: top; }
th {
  background: linear-gradient(180deg, #f0f5f9, #e8eef4);
  color: var(--navy); font-weight: 750; white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
td { color: var(--ink); }
caption {
  text-align: left; font-weight: 700; color: var(--navy);
  padding: .85rem .85rem .35rem; font-size: .95rem;
}

.layout-service {
  display: grid; grid-template-columns: 270px 1fr; gap: 1.75rem; align-items: start;
}
.side-nav {
  position: sticky; top: calc(var(--header-h) + 1rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem; box-shadow: var(--shadow-sm);
}
.side-nav h2 {
  font-size: .78rem; margin: .2rem .5rem .7rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.side-nav a {
  display: block; padding: .55rem .7rem; border-radius: 10px;
  color: var(--navy); font-weight: 600; font-size: .9rem;
}
.side-nav a:hover, .side-nav a.active { background: var(--teal-soft); color: var(--teal-dark); }

.faq details, .faq-teaser details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; margin-bottom: .75rem; box-shadow: var(--shadow-sm);
}
.faq summary, .faq-teaser summary {
  cursor: pointer; font-weight: 700; color: var(--navy); list-style: none;
}
.faq summary::-webkit-details-marker, .faq-teaser summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq-teaser summary::before {
  content: "+"; display: inline-block; width: 1.2rem; color: var(--teal-dark); font-weight: 800;
}
.faq details[open] summary::before, .faq-teaser details[open] summary::before { content: "–"; }
.faq details[open] summary, .faq-teaser details[open] summary { margin-bottom: .55rem; }
.faq p, .faq-teaser p { margin: 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.5rem; }
.office { margin-bottom: 1.2rem; }
.office h3 { margin: 0 0 .4rem; color: var(--navy); }
.office p { margin: .2rem 0; color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li { margin: .5rem 0; }
.form { display: grid; gap: .85rem; }
.form label { font-weight: 700; font-size: .9rem; color: var(--navy); }
.form input, .form textarea, .form select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .75rem .9rem; font: inherit; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow);
}
.form textarea { min-height: 130px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.cta-band {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid) 60%, #0d5a66);
  color: #fff; border-radius: calc(var(--radius) + 2px);
  padding: 2.1rem 2rem; display: flex; flex-wrap: wrap; gap: 1.1rem;
  align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin: 0 0 .4rem; font-size: 1.4rem; letter-spacing: var(--tracking-tight); }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); max-width: 36rem; }

.consult-band {
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(11,159,175,.22), transparent 45%),
    linear-gradient(135deg, var(--navy-deep), #0d3d45 70%, #0a5c4f);
  color: #fff; border-radius: var(--radius);
  padding: 1.75rem 1.9rem; margin-top: .25rem;
  box-shadow: var(--shadow-lg);
}
.consult-band h2 { margin: 0 0 .4rem; font-size: 1.35rem; color: #fff; letter-spacing: var(--tracking-tight); }
.consult-band p { margin: 0; color: rgba(255,255,255,.88); max-width: 36rem; }
.consult-band .hero-actions { gap: .65rem; }
.consult-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.consult-band .btn-outline {
  color: #fff; border-color: rgba(255,255,255,.5); background: transparent; box-shadow: none;
}
.consult-band .btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

.site-footer {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(11,159,175,.12), transparent 40%),
    var(--navy-deep);
  color: rgba(255,255,255,.86); padding: 3.4rem 0 1.6rem; margin-top: 2.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 1.75rem; margin-bottom: 2.2rem;
}
.site-footer h3 { color: #fff; margin: 0 0 .9rem; font-size: .95rem; letter-spacing: .02em; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .45rem 0; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.1rem;
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; font-size: .86rem;
  color: rgba(255,255,255,.65);
}

.floating-wa {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  background: #25D366; color: #fff !important; font-weight: 800;
  padding: .9rem 1.15rem; border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0,0,0,.22), 0 0 0 4px rgba(37,211,102,.18);
  font-size: .88rem;
}
.floating-wa:hover { filter: brightness(1.05); color: #fff !important; }

/* Journey */
.journey-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
  list-style: none; margin: 0; padding: 0;
}
.journey-grid > li, .journey-step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.05rem 1.2rem;
  display: flex; flex-direction: column; gap: .5rem;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
a.journey-step:hover {
  border-color: #9fd8e0; box-shadow: var(--shadow); transform: translateY(-3px);
}
.journey-step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff; font-size: .85rem; font-weight: 800;
}
.journey-step h3 { margin: 0; font-size: 1.02rem; color: var(--navy); letter-spacing: var(--tracking-tight); }
.journey-step p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; flex: 1; }
.journey-step .more { font-size: .84rem; font-weight: 700; color: var(--teal-dark); }

.insight-card { display: block; color: inherit; text-decoration: none; height: 100%; }
.insight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #b6e4ea; }
.insight-meta { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: .45rem; }

@media (max-width: 1100px) {
  .journey-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid-3, .layout-service, .contact-grid, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
  .side-nav { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: .2rem; }
  .side-nav h2 { grid-column: 1 / -1; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line);
    padding: 1rem 1.1rem 1.2rem; flex-direction: column; align-items: stretch; z-index: 99;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a[aria-current="page"]::after { display: none; }
  .lang-switch { align-self: flex-start; }
  .hero { min-height: 420px; }
  .hero-inner { padding: 3.5rem 0 2.75rem; }
  .hero h1 { max-width: none; }
  .section { padding: 3.25rem 0; }
  .floating-wa { right: .75rem; bottom: .75rem; padding: .75rem 1rem; font-size: .82rem; }
}
@media (max-width: 720px) {
  .journey-grid { grid-template-columns: 1fr 1fr; }
  .container { width: min(100% - 1.5rem, var(--max)); }
}
@media (max-width: 480px) {
  .journey-grid { grid-template-columns: 1fr; }
  .consult-band, .cta-band { padding: 1.35rem 1.2rem; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
}

/* Self-serve letter tools */
.tool-layout { max-width: 920px; }
.tool-form h2 { margin: 0 0 1rem; color: var(--navy); font-size: 1.15rem; letter-spacing: var(--tracking-tight); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .9rem; }
.check-row {
  display: flex; align-items: flex-start; gap: .55rem;
  font-weight: 600; color: var(--ink); font-size: .92rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .65rem .75rem;
}
.check-row input { margin-top: .2rem; accent-color: var(--teal-dark); }
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-weight: 700; font-size: .88rem; color: var(--navy); margin-bottom: .35rem; }
.form-grid input, .form-grid textarea, .form-grid select,
.tool-form input, .tool-form textarea, .tool-form select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem .85rem; font: inherit; background: #fff;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow);
}
.tool-output { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.tool-output[hidden] { display: none !important; }
.output-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.output-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .65rem; }
.output-head h3 { margin: 0; color: var(--navy); font-size: 1.05rem; }
.letter-box {
  width: 100%; min-height: 280px; border: 1px solid var(--line); border-radius: 12px;
  padding: .9rem 1rem; font: inherit; line-height: 1.55; background: #fbfcfd;
  white-space: pre-wrap;
}
.muted { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) {
  .check-grid, .form-grid { grid-template-columns: 1fr; }
  .output-head { flex-direction: column; align-items: flex-start; }
}

.tool-error {
  background: #fde8e8; border: 1px solid #f5b5b5; color: #8a1f1f;
  border-radius: 12px; padding: .75rem 1rem; font-weight: 700; margin: 0 0 1rem;
}
.tool-error[hidden] { display: none !important; }
