/* ART Consulting Limited — site styles */

:root {
  --ink: #0f1a2a;
  --ink-2: #33415a;
  --muted: #5d6a80;
  --line: #e2e0d9;
  --paper: #faf8f3;
  --surface: #ffffff;
  --accent: #c2412b;       /* vermilion, after the traditional seal (印章) */
  --accent-ink: #9e3120;
  --accent-soft: #f6e4df;
  --deep: #0f1a2a;
  --deep-2: #18263b;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(15 26 42 / 5%), 0 8px 24px rgb(15 26 42 / 6%);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti TC", "Noto Serif TC", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(250 248 243 / 88%);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; letter-spacing: .08em; font-size: 1.02rem; }
.brand-sub { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: rgb(15 26 42 / 5%); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav .lang {
  margin-left: 8px; border: 1px solid var(--line); background: var(--surface);
  font-size: .85rem; padding: 6px 12px;
}

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 42px; height: 42px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { margin: auto; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .lang { margin: 12px 0 0; text-align: center; border-radius: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgb(15 26 42 / 18%); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 32px; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 440px; justify-self: end; width: 100%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; max-width: 320px; }
}

.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { max-width: 20ch; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 18px; }
.card p { color: var(--ink-2); margin-bottom: 0; }
.card ul { color: var(--ink-2); margin: 12px 0 0; font-size: .95rem; }
.card ul li { margin: 4px 0; }

.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 20px; border-top: 2px solid var(--ink); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-serif); font-size: 1.9rem; color: var(--accent); margin-bottom: 8px;
}
.step p { color: var(--ink-2); font-size: .97rem; }

/* Products */
.product { display: flex; flex-direction: column; }
.product-top { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.badge {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: #eef1f6; color: var(--ink-2);
}
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); text-transform: none; letter-spacing: .02em; }
main > .container:last-child { padding-bottom: clamp(56px, 8vw, 104px); }
.product h3 { margin: 0 0 6px; }
.product .features { margin-top: 16px; }
.product .note { margin-top: 16px; font-size: .85rem; color: var(--muted); }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fact { padding: 24px 26px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact dt { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact dd { margin: 6px 0 0; font-weight: 650; font-size: 1.05rem; }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Service detail */
.service { display: grid; grid-template-columns: 320px 1fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service h2 { font-size: 1.6rem; margin-top: 18px; }
.service ul { columns: 2; column-gap: 32px; margin: 16px 0 0; color: var(--ink-2); }
.service ul li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 12px; } .service ul { columns: 1; } }

/* Info table */
.info-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 16px 22px; border-top: 1px solid var(--line); vertical-align: top; }
.info-table tr:first-child th, .info-table tr:first-child td { border-top: 0; }
.info-table th { width: 38%; font-weight: 600; color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) {
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table td { border-top: 0; padding-top: 0; }
}

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list .icon { flex: none; }
.contact-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.mail-options { display: grid; gap: 12px; }
.mail-option {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  text-decoration: none; color: var(--ink);
}
.mail-option:hover { border-color: var(--accent); color: var(--ink); }
.mail-option span { color: var(--muted); font-size: .92rem; display: block; }
.mail-option b { display: block; }

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: .4em; }
.updated { color: var(--muted); font-size: .92rem; }

.notice {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 16px 20px; border-radius: 0 10px 10px 0; color: var(--ink-2); font-size: .95rem;
}

/* CTA band */
.cta-band { background: var(--deep); color: #fff; border-radius: 22px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.5fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #c6cfdc; margin: 0; max-width: 56ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Values list */
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.values li { padding: 22px 0; border-top: 1px solid var(--line); }
.values li:first-child { border-top: 0; padding-top: 0; }
.values h3 { margin-bottom: 4px; }
.values p { color: var(--ink-2); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #b8c2d1; padding: 64px 0 28px; font-size: .93rem; }
.site-footer a { color: #e4e9f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 14px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #93a0b4; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 12%); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #8f9bb0; font-size: .85rem; }
address { font-style: normal; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Chinese typography tweaks */
html[lang="zh-Hant"] body { line-height: 1.8; letter-spacing: .02em; }
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2 { letter-spacing: 0; }
html[lang="zh-Hant"] .hero h1 { max-width: 13em; }

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

@media print {
  .site-header, .site-footer, .nav-toggle, .cta-band { display: none; }
  body { background: #fff; }
}

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field span { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid #d4d1c7; border-radius: 10px; padding: 11px 14px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #1f7a4a; }
.form-status.err { color: var(--accent-ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
