:root {
  --navy: #001b3a;
  --navy-deep: #001028;
  --cyan: #00d1ff;
  --cyan-deep: #007f99;
  --ink: #0c1a2b;
  --muted: #5a6b7d;
  --line: rgba(0, 27, 58, 0.12);
  --surface: #f4f8fc;
  --white: #fff;
  --warn: #9a3412;
  --max: 1120px;
  --header: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", "PingFang TC", "Microsoft JhengHei", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK TC", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
}
html[lang="ja"] body {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "DM Sans", sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cyan);
  color: var(--navy-deep);
  padding: 0.5rem 0.8rem;
  z-index: 50;
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus { top: 0.6rem; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
h1, h2, h3 { font-family: Outfit, "PingFang TC", "Microsoft JhengHei", "Hiragino Sans", "Yu Gothic", sans-serif; letter-spacing: -0.02em; line-height: 1.15; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 0;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 2rem;
  width: auto;
}
#site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  margin-left: auto;
}
#site-nav a, .services-details summary {
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
}
.services-details { position: relative; }
.services-details summary {
  cursor: pointer;
  list-style: none;
  padding: 0.4rem 0;
}
.services-details summary::-webkit-details-marker { display: none; }
.services-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  width: min(22rem, 80vw);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 27, 58, 0.1);
  padding: 0.5rem;
  display: grid;
}
.services-panel a { padding: 0.45rem 0.6rem; border-radius: 8px; text-decoration: none; }
.services-panel a:hover { background: rgba(0, 209, 255, 0.12); }
.services-panel .sub { padding-left: 1.15rem; color: var(--muted); font-weight: 500; }
.services-details:not([open]) .services-panel { display: none; }
.langs { display: flex; gap: 0.25rem; align-items: center; }
.langs a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.3rem 0.45rem;
  border-radius: 999px;
}
#site-nav .langs a[aria-current="page"] { background: var(--navy); color: var(--white); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  background: var(--cyan);
  color: var(--navy-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  border: 0;
  cursor: pointer;
}
.btn.secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn.navy { background: var(--navy); color: var(--white); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.hero, .page-hero {
  background:
    radial-gradient(900px 380px at 100% -10%, rgba(0, 209, 255, 0.22), transparent 50%),
    linear-gradient(165deg, #001028 0%, #001b3a 55%, #07345f 100%);
  color: var(--white);
}
.hero { padding: 2.6rem 0; overflow: hidden; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(14rem, 0.72fr);
  align-items: stretch;
  gap: clamp(1.25rem, 2.6vw, 2.4rem);
}
.hero-copy { position: relative; z-index: 1; min-width: 0; container-type: inline-size; }
.hero-visual {
  position: relative;
  margin: 0;
  align-self: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, #001733 0%, rgba(0, 23, 51, 0.45) 6%, transparent 14%),
    linear-gradient(180deg, rgba(0, 16, 40, 0.04), rgba(0, 16, 40, 0.14));
  pointer-events: none;
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 8, 24, 0.42);
}
.page-hero { padding: 2.2rem 0 2.4rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 0.8rem; }
.page-hero--freight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(24rem, 48vw, 34rem);
  padding: 3rem 0 3.2rem;
  background: #001028;
}
.page-hero--freight .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 72% center;
}
.page-hero--freight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 12, 32, 0.9) 0%, rgba(0, 16, 40, 0.72) 32%, rgba(0, 22, 48, 0.28) 58%, rgba(0, 16, 40, 0.05) 100%),
    linear-gradient(180deg, rgba(0, 12, 32, 0.18), transparent 36%, rgba(0, 12, 32, 0.28));
  pointer-events: none;
}
.page-hero--freight .wrap { position: relative; z-index: 2; }
.page-hero--freight h1,
.page-hero--freight .lead { max-width: 34rem; }
.page-hero--freight .lead { color: rgba(255, 255, 255, 0.9); }
.hero-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-modes a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 16, 40, 0.32);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.hero-modes a:hover { border-color: var(--cyan); color: var(--cyan); }
.page-hero--freight .hero-actions { margin-top: 1.3rem; }
.page-hero--freight .hero-actions .btn {
  background: var(--cyan);
  color: var(--navy-deep);
  border: 0;
}
.page-hero--freight .hero-actions .btn:hover { background: #7eecff; }
.hero h1 {
  margin: 0 0 0.8rem;
  white-space: nowrap;
  letter-spacing: -0.03em;
  font-size: clamp(1.2rem, 2.5vw, 3.15rem);
  line-height: 1.12;
}
@supports (font-size: 1cqi) {
  .hero h1 { font-size: clamp(1.2rem, 6.1cqi, 3.25rem); }
  html[lang="zh-Hant"] .hero h1,
  html[lang="ja"] .hero h1 { font-size: clamp(1.65rem, 8.4cqi, 3.55rem); }
}
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--cyan); }
.lead { font-size: 1.08rem; max-width: 40rem; color: rgba(255, 255, 255, 0.88); margin: 0; }
.hero .lead { max-width: 38rem; font-size: 1.02rem; color: rgba(255, 255, 255, 0.84); }
.hero-actions, .band-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.hero-actions .btn {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}
.hero-actions .btn:hover { background: rgba(255, 255, 255, 0.08); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.45rem 0 0;
}
.hero-stats div {
  background: rgba(8, 28, 56, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0.8rem 0.85rem 0.7rem;
}
.hero-stats dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}
.hero-stats dd {
  margin: 0.28rem 0 0;
  font-family: Outfit, "PingFang TC", "Microsoft JhengHei", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}
.eyebrow { margin: 0 0 0.4rem; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; font-weight: 700; color: var(--cyan); }
.page-hero .eyebrow { color: var(--cyan); }

.section { padding: 2.6rem 0; }
.about-principles { padding-bottom: 1.15rem; }
.about-values { background: #e5edf4; }
.value-card h2, .value-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 700;
}
.value-card p { margin: 0; color: var(--muted); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.45rem; color: var(--navy); }
.section .intro { margin: 0 0 1.2rem; color: var(--muted); max-width: 42rem; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 0.9rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card, .case, .office-card, .form-card, .prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 27, 58, 0.05);
}
.card { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.card h3 { margin: 0; font-size: 1.15rem; }
.card p, .office-card p { margin: 0; color: var(--muted); }
.card a.more, .case a.more { margin-top: auto; font-weight: 700; color: var(--cyan-deep); text-decoration: none; }
.sublinks { display: flex; flex-wrap: wrap; gap: 0.35rem 0.7rem; padding: 0; margin: 0; list-style: none; }
.sublinks a { color: var(--navy); font-weight: 600; text-underline-offset: 0.15em; }
.office-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.office-pills a {
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
}
.trust { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 0.9rem; }
.trust article, .stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}
.trust h3, .stat strong { display: block; margin: 0 0 0.3rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: 0.92rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0 0 0.8rem; font-size: 0.88rem; color: rgba(255,255,255,.75); }
.crumbs a { color: var(--white); }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; padding: 0; margin: 0; list-style: none; }
.points li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; }
.points h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.points p { margin: 0; color: var(--muted); }
.case { padding: 1.1rem 1.15rem 1.2rem; }
.case dl { display: grid; grid-template-columns: 8rem 1fr; gap: 0.35rem 0.8rem; margin: 0.6rem 0 0; }
.case dt { font-weight: 700; color: var(--navy); }
.case dd { margin: 0; }
.note { color: var(--muted); font-size: 0.9rem; }
.case-link { margin: 0.8rem 0 0; }
.band {
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
}
.band h2 { color: var(--white); margin: 0 0 0.4rem; }
.band p { margin: 0; color: rgba(255,255,255,.82); }

.prose { padding: 1.2rem 1.3rem; }
.prose h2 { font-size: 1.35rem; margin: 1.2rem 0 0.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.certs { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0.6rem 0 0; list-style: none; }
.certs li { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.7rem; font-weight: 700; color: var(--navy); background: #f3fbfe; }

.regions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1rem 0; }
.regions button {
  border: 1px solid #38515e;
  background: #102934;
  color: #d7e4e8;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-weight: 700;
}
.regions button:hover { border-color: #9bd7cc; }
.regions button:focus-visible { outline: 3px solid rgba(155, 215, 204, 0.42); outline-offset: 2px; }
.regions button[aria-pressed="true"] {
  background: #a9ddd3;
  color: #0a2630;
  border-color: #d0eee8;
  box-shadow: inset 0 0 0 1px rgba(7, 33, 43, 0.2);
}
.map-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 0.85fr); gap: 1rem; align-items: start; }
.map-panel { min-width: 0; }
#map {
  overflow: hidden;
  border: 1px solid #29434e;
  background-color: #091f29;
  background-image:
    linear-gradient(rgba(117, 157, 171, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 157, 171, 0.08) 1px, transparent 1px);
  background-size: 8.333% 16.667%;
}
#office-map { display: block; width: 100%; height: auto; }
.office-marker { cursor: pointer; }
.office-marker[hidden] { display: none; }
.marker-line { stroke: #9ed9cf; stroke-width: 1.4; opacity: 0.78; vector-effect: non-scaling-stroke; }
.marker-dot {
  fill: #a8e0d5;
  stroke: #d6f4ee;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 5px #92d9cb) drop-shadow(0 0 11px rgba(146, 217, 203, 0.8));
  vector-effect: non-scaling-stroke;
}
.marker-label rect { fill: #102b35; fill-opacity: 0.94; stroke: #68a89f; stroke-width: 1; vector-effect: non-scaling-stroke; }
.marker-label text { fill: #edf7f5; font: 600 15px/1 "DM Sans", sans-serif; pointer-events: none; }
.office-marker:hover .marker-label rect, .office-marker:focus .marker-label rect, .office-marker.is-active .marker-label rect { stroke: #b8ebe2; }
.office-marker:focus { outline: none; }
.office-marker.is-active .marker-dot { fill: #e7fff9; stroke-width: 2.5; }
.map-note { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.83rem; }
.office-list { display: grid; gap: 0.7rem; }
.office-card { padding: 0.9rem 1rem; }
.office-card.is-active { border-color: var(--cyan-deep); box-shadow: 0 0 0 2px rgba(0, 209, 255, 0.35); }
.office-card h3 { margin: 0 0 0.25rem; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cyan-deep); }
.office-card .actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.55rem; }
.office-card .actions a { font-weight: 700; color: var(--cyan-deep); }

.form-card { padding: 1.1rem; }
.form-grid { display: grid; gap: 0.85rem; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.span-2 { grid-column: 1 / -1; }
label { display: grid; gap: 0.3rem; font-weight: 600; color: var(--navy); }
label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
label:has(input[type="checkbox"]) input { width: auto; margin-top: 0.2rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  background: #fff;
}
textarea { min-height: 7rem; resize: vertical; }
.field-error { color: var(--warn); font-size: 0.84rem; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.confirm { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; background: #f3fbfe; }
.confirm h2 { margin: 0 0 0.4rem; }
.step-kicker { margin: 0 0 0.8rem; color: var(--muted); font-weight: 700; }

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 2rem 0 2.4rem; margin-top: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.2rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer h2 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.5rem; color: var(--cyan); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.fine { margin: 1.2rem 0 0; font-size: 0.85rem; color: rgba(255,255,255,.62); }
#enquiry-form, .office-card, #why-northgo { scroll-margin-top: calc(var(--header) + 0.6rem); }

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: minmax(0, 1.2fr) minmax(12.5rem, 0.68fr); gap: 1.2rem; }
  .hero-visual { min-height: 0; }
  .grid-4, .trust { grid-template-columns: 1fr 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  #site-nav {
    display: none;
    position: fixed;
    z-index: 40;
    inset: var(--header) 0 0 0;
    margin: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 2rem;
    overflow: auto;
    gap: 0.2rem;
  }
  #site-nav.is-open { display: flex; }
  #site-nav > a, .services-details summary { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .services-panel { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0.4rem; }
  .bar .enquire { margin-left: auto; }
  .hero { padding: 0 0 1.6rem; }
  .hero-layout {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .hero-copy { width: min(100% - 2rem, var(--max)); margin-inline: auto; padding: 2.2rem 0 0; }
  .hero-visual {
    order: 2;
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .hero-visual img { border-radius: 16px; position: absolute; object-position: right center; }
  .hero-visual::before {
    background:
      linear-gradient(90deg, rgba(0, 23, 51, 0.7) 0%, rgba(0, 23, 51, 0.28) 6%, transparent 14%),
      linear-gradient(180deg, rgba(0, 16, 40, 0.04), rgba(0, 16, 40, 0.14));
  }
  .page-hero--freight {
    align-items: flex-end;
    min-height: 32rem;
    padding: 2.4rem 0 2.2rem;
  }
  .page-hero--freight .page-hero-bg { object-position: 68% 42%; }
  .page-hero--freight::before {
    background: linear-gradient(180deg, rgba(0, 12, 32, 0.28) 0%, rgba(0, 12, 32, 0.55) 38%, rgba(0, 10, 28, 0.9) 100%);
  }
  .hero h1 { font-size: clamp(1.15rem, 6.4vw, 2.35rem); }
  html[lang="zh-Hant"] .hero h1,
  html[lang="ja"] .hero h1 { font-size: clamp(1.55rem, 8vw, 2.7rem); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .grid-4, .grid-3, .grid-2, .points, .trust, .map-layout, .foot-grid, .form-grid.two { grid-template-columns: 1fr; }
  .regions { flex-wrap: nowrap; overflow-x: auto; padding: 0.15rem 0 0.45rem; scrollbar-width: thin; }
  .regions button { flex: 0 0 auto; }
  #map { overflow-x: auto; scrollbar-color: #60828e #102934; }
  #office-map[data-region="all"] { width: 760px; max-width: none; }
  .case dl { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
