/* BaronCore Consulting — site styles */

:root {
  --navy-900: #0b1330;
  --navy-800: #131f42;
  --navy-700: #1c2a57;
  --navy-600: #2a3a6e;
  --gold-500: #a8903c;
  --gold-400: #c2a94f;
  --gold-100: #f5efdc;
  --ink: #1d2433;
  --muted: #5b6478;
  --line: #e3e6ee;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 31, 66, 0.08);
  --shadow-lg: 0 20px 50px rgba(19, 31, 66, 0.14);
  --max: 1160px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", var(--font-sans);
}

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

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

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

img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); }
a:hover { color: var(--gold-500); }

h1, h2, h3, h4 {
  text-wrap: balance;
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

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

:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: #fff; box-shadow: 0 8px 20px rgba(168, 144, 60, .35); }
.btn-gold:hover { background: var(--gold-400); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-600); color: var(--navy-800); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy-800); letter-spacing: .04em; }
.brand-text span { color: var(--gold-500); }

.nav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list a {
  display: block; padding: 10px 16px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem;
}
.nav-list a:hover { color: var(--navy-800); background: var(--bg-soft); }
.nav-list a[aria-current="page"] { color: var(--navy-800); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }
.nav-list .nav-cta a { background: var(--navy-800); color: #fff; margin-left: 8px; }
.nav-list .nav-cta a:hover { background: var(--navy-700); }
.nav-list .nav-cta a[aria-current="page"] { box-shadow: none; border-radius: 999px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--navy-800);
}
.nav-toggle svg { width: 28px; height: 28px; }

.header-actions { display: flex; align-items: center; gap: 16px; }

/* Language toggle */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.lang-switch a {
  display: block; min-width: 34px; padding: 5px 10px; border-radius: 999px; text-align: center;
  font-size: .85rem; font-weight: 600; line-height: 1.4; color: var(--muted); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.lang-switch a:hover { color: var(--navy-800); background: var(--bg-soft); }
.lang-switch a[aria-current="true"] { background: var(--navy-800); color: #fff; }
.lang-switch a[lang="zh-Hant"] { font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
.lang-switch a[lang="zh-Hans"] { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

@media (max-width: 820px) { .header-actions { gap: 6px; } }
@media (max-width: 420px) {
  .brand-text { display: none; }
  .lang-switch a { min-width: 30px; padding: 5px 8px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .nav-list a { border-radius: 10px; padding: 12px 14px; }
  .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold-500); border-radius: 0 10px 10px 0; }
  .nav-list .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(168,144,60,.28), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 34L0 84V66l28 16 28-16v18L28 100z' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center; padding: 110px 24px 120px;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 18px;
}
.hero-location {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(194,169,79,.45);
  color: #fff; font-size: .9rem; font-weight: 500;
}
.hero-location svg { width: 18px; height: 18px; color: var(--gold-400); flex: none; }
.footer-location { display: flex; align-items: center; gap: 8px; }
.footer-location svg { width: 16px; height: 16px; color: var(--gold-400); flex: none; }
.hero .lead { font-size: 1.2rem; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; justify-self: center; width: min(380px, 100%); }
.hero-art .hex-glow {
  position: absolute; inset: 10%; background: radial-gradient(circle, rgba(194,169,79,.45), transparent 65%); filter: blur(20px);
}
.hero-art svg { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 80px 24px 90px; text-align: left; }
  .hero-art { width: 220px; justify-self: start; order: -1; }
}

/* Page hero (inner pages) */
.page-hero { padding: 90px 24px 80px; }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head .eyebrow { color: var(--gold-500); }

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(168,144,60,.4); }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: auto; }

.icon-badge {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-400);
  margin-bottom: 22px;
}
.icon-badge svg { width: 28px; height: 28px; }

.link-arrow { font-weight: 600; color: var(--navy-800); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Services overview (home) */
.overview { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.overview-intro p { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; }
.overview-intro .eyebrow { color: var(--gold-500); }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li { border-bottom: 1px solid var(--line); }
.service-list a {
  display: flex; align-items: center; gap: 18px; padding: 20px 12px;
  text-decoration: none; color: var(--ink); border-radius: 12px;
  transition: background-color .2s ease;
}
.service-list a:hover { background: var(--bg-soft); color: var(--ink); }
.sl-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-400);
}
.sl-icon svg { width: 22px; height: 22px; }
.sl-text { flex: 1; display: grid; gap: 2px; }
.sl-text strong { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--navy-800); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sl-text > span { color: var(--muted); font-size: .95rem; }
.sl-tag {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #6d5c1f; background: var(--gold-100); padding: 3px 9px; border-radius: 999px;
}
.sl-arrow { flex: none; color: var(--gold-500); font-size: 1.2rem; transition: transform .2s ease; }
.service-list a:hover .sl-arrow { transform: translateX(4px); }
@media (max-width: 900px) { .overview { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .service-list a { padding: 16px 4px; gap: 14px; } .sl-arrow { display: none; } }

/* Value props */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { padding: 8px 4px; }
.value .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--gold-500); line-height: 1; margin-bottom: 10px; }
.value h3 { font-size: 1.1rem; margin-bottom: .4em; }
.value p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* Feature rows (about / services detail) */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 40px 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.reverse .feature-art { order: 2; }
.feature-art {
  aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.feature-art::before {
  content: ""; position: absolute; inset: 0; opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 34L0 84V66l28 16 28-16v18L28 100z' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E");
}
.feature-art svg { position: relative; width: 42%; height: auto; color: var(--gold-400); }
.feature h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature p { color: var(--muted); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-art { order: 0; }
  .feature-art { aspect-ratio: 16 / 9; }
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 20px; padding: 0; list-style: none; }
.tags li {
  background: var(--gold-100); color: #6d5c1f; font-size: .85rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #fff; border-radius: 24px; padding: 60px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(194,169,79,.35), transparent 65%);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; max-width: 560px; }
.cta-band > * { position: relative; z-index: 1; }
@media (max-width: 640px) { .cta-band { padding: 44px 28px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 { font-size: 1.8rem; }
.contact-info p { color: var(--muted); }
.info-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon-badge { width: 44px; height: 44px; border-radius: 12px; margin: 0; flex: none; }
.info-list .icon-badge svg { width: 22px; height: 22px; }
.info-list strong { display: block; color: var(--navy-800); }
.info-list a { text-decoration: none; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow-lg); }
@media (max-width: 560px) { .form-card { padding: 28px 20px; } }
.form-card h2 { font-size: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy-800); margin-bottom: 6px; }
.field .req { color: var(--gold-500); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfe;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-600); background: #fff; box-shadow: 0 0 0 4px rgba(42,58,110,.12);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.turnstile-slot { margin: 4px 0 18px; min-height: 0; }

.form-status { border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-weight: 500; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #e8f6ee; color: #1e6b3f; border: 1px solid #bfe3cd; }
.form-status.error { background: #fdecea; color: #8e2a20; border: 1px solid #f5c6c0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 70px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 44px; width: auto; background: #fff; border-radius: 10px; padding: 4px; }
.footer-brand span { font-family: var(--font-head); color: #fff; font-weight: 700; letter-spacing: .04em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08);
}
.social a:hover { background: var(--gold-500); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { padding-top: 26px; font-size: .85rem; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.notfound .code { font-family: var(--font-head); font-size: 6rem; font-weight: 800; color: var(--gold-500); line-height: 1; margin-bottom: 16px; }
.nf-lang { padding: 18px 0; }
.nf-lang + .nf-lang { border-top: 1px solid var(--line); }
.nf-lang h1, .nf-lang h2 { font-size: 1.6rem; margin-bottom: .3em; }
.nf-lang p { color: var(--muted); margin-bottom: 14px; }
.nf-lang .btn { padding: 10px 20px; font-size: .92rem; }
.nf-lang[lang="zh-Hant"] { font-family: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
.nf-lang[lang="zh-Hans"] { font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

/* ---------- Chinese pages ---------- */
html:lang(zh-Hant) { --font-sans: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
html:lang(zh-Hans) { --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
html:lang(zh-Hant) body, html:lang(zh-Hans) body { line-height: 1.8; }
html:lang(zh-Hant) .eyebrow, html:lang(zh-Hans) .eyebrow,
html:lang(zh-Hant) .sl-tag, html:lang(zh-Hans) .sl-tag { letter-spacing: .08em; }
html:lang(zh-Hant) h1, html:lang(zh-Hans) h1,
html:lang(zh-Hant) h2, html:lang(zh-Hans) h2 { letter-spacing: .02em; line-height: 1.35; }
html:lang(zh-Hant) :is(h1, h2, h3, .lead), html:lang(zh-Hans) :is(h1, h2, h3, .lead) { text-wrap: balance; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
