/* =========================================================
   URFreightHub — Global Stylesheet
   B2B freight forwarding lead-gen site (static, no backend)
   Palette: navy #0f2a43 / teal #0ea5a4 / slate text
   ========================================================= */
:root {
  --navy: #0f2a43;
  --navy-2: #163a5c;
  --teal: #0ea5a4;
  --teal-d: #0b8483;
  --ink: #1f2933;
  --muted: #5b6b7b;
  --line: #e3e9ef;
  --bg: #f6f8fa;
  --card: #ffffff;
  --warn: #c2410c;
  --ok: #15803d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 42, 67, .08);
  --shadow-sm: 0 4px 14px rgba(15, 42, 67, .06);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 18px; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 15px;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--navy); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--teal-d); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
}
.lang-toggle {
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: .15s; text-decoration: none;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-d); text-decoration: none; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); text-decoration: none; }
.hero-cta .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; text-decoration: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(14,165,164,.18), transparent),
    linear-gradient(160deg, #0f2a43, #163a5c);
  color: #fff; padding: 84px 0 72px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; margin: 0 0 18px; font-weight: 850; }
.hero p.lead { font-size: 19px; color: #cdd9e6; max-width: 640px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .pill {
  display: inline-block; margin-top: 26px; font-size: 13px; color: #9fb3c8;
  border: 1px solid rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px;
}
.trust-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; }
.trust-row .t { font-size: 14px; color: #b9c8d8; }
.trust-row .t b { color: #fff; display: block; font-size: 22px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(14,165,164,.12); color: var(--teal-d); font-size: 22px; margin-bottom: 14px;
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; color: var(--teal-d); margin: 0 0 10px; }
.h2 { font-size: clamp(26px, 3.2vw, 36px); color: var(--navy); margin: 0 0 12px; font-weight: 820; }
.sub { color: var(--muted); max-width: 680px; margin: 0 0 30px; font-size: 17px; }

/* ---------- Tools ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,165,164,.15); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .row-2 { grid-template-columns: 1fr; } }

.result {
  margin-top: 18px; padding: 18px; border-radius: 12px; background: #eafaf8; border: 1px solid #b7e8e3;
  display: none;
}
.result.show { display: block; }
.result .big { font-size: 26px; font-weight: 850; color: var(--teal-d); }
.result .note { font-size: 13px; color: var(--muted); margin-top: 6px; }

table.tbl { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
table.tbl th, table.tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.tbl th { color: var(--navy); background: #f3f6f9; }
table.tbl tr:hover td { background: #fafcfe; }
.hs-cat { margin: 18px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-d); }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(14,165,164,.12); color: var(--teal-d); font-weight: 700; }

/* ---------- Capture / forms ---------- */
.capture {
  background: linear-gradient(160deg, #0f2a43, #163a5c); color: #fff; border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.capture h3 { color: #fff; margin: 0 0 8px; }
.capture p { color: #cdd9e6; margin: 0 0 16px; }
.capture input { background: #fff; }
.capture .consent { font-size: 12px; color: #9fb3c8; margin-top: 10px; }
.capture .ok-msg { color: #7ff0d6; font-weight: 700; margin-top: 10px; display: none; }
.capture .ok-msg.show { display: block; }
.capture .err-msg { color: #ffb4a0; font-weight: 700; margin-top: 10px; display: none; }
.capture .err-msg.show { display: block; }

/* ---------- Blog ---------- */
.post { border-bottom: 1px solid var(--line); padding: 22px 0; }
.post:last-child { border-bottom: none; }
.post h3 { margin: 0 0 6px; }
.post .meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.post p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: #c4d2e0; padding: 48px 0 30px; margin-top: 40px; }
footer.site h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
footer.site a { color: #a9c0d6; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: 13px; color: #8aa0b6; }

/* ---------- Misc ---------- */
.banner-info {
  background: #eaf2fb; border: 1px solid #cfe0f5; color: #163a5c;
  border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-bottom: 22px;
}
ul.clean { margin: 0; padding-left: 20px; color: var(--muted); }
ul.clean li { margin-bottom: 8px; }
.badge-new { background: var(--teal); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 800; margin-left: 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Lucide icon sizing (emoji → SVG migration) ---------- */
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(14,165,164,.12); color: var(--teal); margin-bottom: 14px; }
.ico svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.75; }
.btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.75; vertical-align: -3px; }
.meta svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.75; vertical-align: -3px; }

/* ---------- Bilingual blog pages (lane-updates / policy-risk) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; margin-top: 8px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: .15s; }
.post-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.pc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pc-num { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--teal); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.pc-meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.post-card h3.t-en { margin: 2px 0 4px; color: var(--navy); font-size: 18px; line-height: 1.4; font-weight: 700; }
.post-card p.t-en { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.post-card h4.t-zh { margin: 0 0 4px; color: var(--ink); font-size: 15px; font-weight: 700; }
.post-card p.t-zh { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.pc-link { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--teal-d); align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; }
.pc-link:hover { text-decoration: underline; }
.hero .zh-title { font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; color: #cdd9e6; margin: 6px 0 0; line-height: 1.4; }
.hero .zh-lead { color: #b9c8d8; font-size: 15px; margin: 10px 0 0; max-width: 640px; }
.hero .updated { color: #9fb3c8; font-size: 13px; margin-top: 16px; letter-spacing: .02em; }
