/* ==========================================================================
   BORTHEM Import and Export Limited
   Design language: "trade house ledger" — warm paper ground, petrol green,
   bronze accents, serif display, soft rounded cards, asymmetric editorial
   layout. Deliberately unlike the sharp black/orange industrial grid used by
   other companies at the same registered address.
   No web fonts: must load fast inside mainland China. System stacks only.
   ========================================================================== */

:root {
  --ink:        #10221F;
  --ink-2:      #24403B;
  --slate:      #5E7370;
  --slate-2:    #8FA3A0;

  --deep:       #0C3A36;
  --deep-2:     #124A45;
  --deep-line:  #235B55;

  --bg:         #FFFDF9;
  --bg-alt:     #F4EFE6;
  --line:       #E1D9CA;
  --line-soft:  #EDE6DA;

  --accent:     #B4762F;
  --accent-hi:  #CE8B3C;
  --accent-soft:#FBF2E4;

  --wrap: 1160px;
  --gut: 24px;
  --r: 6px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          Helvetica, Arial, sans-serif;
  /* Latin display falls to Georgia; CJK picks up a serif of its own. */
  --serif: Georgia, "Iowan Old Style", "Times New Roman",
           "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", STSong,
           SimSun, serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 1px 2px rgba(16,34,31,.04), 0 8px 24px -12px rgba(16,34,31,.14);
}

/* Set by the inline head script for zh/tr visitors, cleared once i18n.js has
   swapped the text. Stops English flashing before the chosen language. */
.i18n-wait body { visibility: hidden; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.22; color: var(--ink); font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--deep); color: #CDDBD8; }
.section--deep h2, .section--deep h3 { color: #fff; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 650; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.section--deep .eyebrow { color: var(--accent-hi); }

.h-display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.14;
  letter-spacing: -0.012em;
}
.h-section {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 3.1vw, 2.3rem); line-height: 1.2;
}
.h-card { font-size: 1.1rem; font-weight: 620; }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.14rem); color: var(--slate); max-width: 60ch; }
.section--deep .lede, .hero .lede, .pagehead .lede { color: #A9BCB8; }
.muted { color: var(--slate); }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-56 { margin-top: 56px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--r);
  font-size: .94rem; font-weight: 600;
  border: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
  cursor: pointer;
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hi); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--bg-alt); }
.hero .btn--ghost, .section--deep .btn--ghost, .cta .btn--ghost {
  border-color: var(--deep-line); color: #fff; background: transparent;
}
.hero .btn--ghost:hover, .section--deep .btn--ghost:hover, .cta .btn--ghost:hover {
  border-color: #4E827B; background: rgba(255,255,255,.04);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,253,249,.9);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__in { display: flex; align-items: center; gap: 20px; height: 72px; position: relative; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__logo { width: 30px; height: 30px; flex: none; border-radius: 5px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-size: 1.16rem; color: var(--ink); letter-spacing: .01em; }
.brand__sub { font-size: 9.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-2); }

.nav { display: flex; gap: 2px; }
/* `.nav{display:flex}` outranks the UA sheet's [hidden] rule - restore it. */
.nav[hidden] { display: none; }
.nav a {
  position: relative; padding: 9px 14px; border-radius: var(--r);
  font-size: .93rem; font-weight: 520; color: var(--slate);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 620; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--accent);
}

.lang { display: flex; gap: 2px; flex: none; background: var(--bg-alt); padding: 3px; border-radius: var(--r); }
.lang button {
  font-size: 11px; font-weight: 640; letter-spacing: .06em;
  padding: 6px 9px; border: 0; border-radius: 4px; cursor: pointer;
  background: none; color: var(--slate);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--deep); color: #fff; }

.burger {
  display: none; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r);
  background: none; cursor: pointer; padding: 0; position: relative;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 2px;
  background: var(--ink); transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--deep); color: #CDDBD8;
  padding: 104px 0 96px;
}
.hero__wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 90% at 12% 0%, rgba(180,118,47,.20), transparent 62%),
    radial-gradient(60% 80% at 95% 100%, rgba(18,74,69,.9), transparent 60%);
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: end; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--accent-hi); }
.hero .lede { margin-top: 24px; }
.hero .btn-row { margin-top: 36px; }

/* corridor panel: the two ends of the trade route */
.corridor { display: grid; gap: 14px; }
.corridor__row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r);
  background: rgba(255,255,255,.05); border: 1px solid var(--deep-line);
}
.corridor__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-hi); flex: none; }
.corridor__k { font-size: 10.5px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; color: var(--slate-2); }
.corridor__v { font-size: .98rem; color: #fff; margin-top: 2px; }
.corridor__link {
  display: flex; align-items: center; gap: 10px; padding-left: 22px;
  color: #8FA3A0; font-size: .84rem;
}
.corridor__link::before { content: ""; width: 1px; height: 22px; background: var(--deep-line); }

/* ---------- page head ---------- */
.pagehead { background: var(--deep); color: #CDDBD8; padding: 76px 0 72px; position: relative; overflow: hidden; }
.pagehead__in { position: relative; max-width: 760px; }
.pagehead h1 { color: #fff; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); }
.pagehead .lede { margin-top: 18px; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 28px; box-shadow: var(--shadow);
}
.section--alt .card { background: var(--bg); }
.card h3 { margin-bottom: 10px; font-size: 1.1rem; font-weight: 620; }
.card p { font-size: .94rem; color: var(--slate); }
.card__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: .78rem; font-weight: 700; margin-bottom: 18px;
}
.icon { width: 34px; height: 34px; stroke: var(--accent); stroke-width: 1.5;
        fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }

/* ---------- list ---------- */
.ticks li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--slate); }
.ticks li + li { margin-top: 12px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 7px; height: 7px; border-radius: 50%;
  border: 2px solid var(--accent);
}

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: start; }
.split--wide { grid-template-columns: .85fr 1.15fr; }

/* ---------- record table ---------- */
.record { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.record__row { display: grid; grid-template-columns: 42% 1fr; gap: 18px; padding: 15px 22px; border-bottom: 1px solid var(--line-soft); }
.record__row:last-child { border-bottom: 0; }
.record__row:nth-child(odd) { background: #FCFAF5; }
.record__k { font-size: .88rem; color: var(--slate); }
.record__v { font-size: .93rem; color: var(--ink); }

/* ---------- office ---------- */
.office { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: var(--bg); box-shadow: var(--shadow); }
.office__tag { font-size: 10.5px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.office h3 { font-size: 1.05rem; margin-bottom: 10px; }
.office address { font-style: normal; font-size: .93rem; color: var(--slate); line-height: 1.75; }

/* ---------- form ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 620; color: var(--ink); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 138px; }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: .83rem; color: var(--slate); }
.form__status { font-size: .9rem; padding: 13px 15px; border-radius: var(--r); }
.form__status[hidden] { display: none; }
.form__status.is-ok  { background: var(--accent-soft); color: #8A5920; border-left: 3px solid var(--accent); }
.form__status.is-err { background: #FDF0EE; color: #A33A2A; border-left: 3px solid #A33A2A; }
/* Honeypot - off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CTA ---------- */
.cta { background: var(--deep); color: #CDDBD8; padding: 80px 0; position: relative; overflow: hidden; }
.cta__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta p { margin-top: 12px; color: #A9BCB8; max-width: 50ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #93A8A4; padding: 62px 0 28px; }
.site-footer__top { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid #2A4541; }
.site-footer h4 { font-size: 10.5px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer a { color: #93A8A4; font-size: .9rem; transition: color .18s var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer li + li { margin-top: 10px; }
.site-footer address { font-style: normal; font-size: .88rem; line-height: 1.8; }
.site-footer__brand .brand__name { color: #fff; }
.site-footer__brand p { font-size: .88rem; margin-top: 14px; max-width: 40ch; line-height: 1.75; }
.site-footer__bot { padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: #7B918D; }

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

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero__in { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .split, .split--wide { grid-template-columns: 1fr; gap: 44px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .brand__sub { display: none; }
}
@media (max-width: 780px) {
  .section { padding: 70px 0; }
  .hero { padding: 78px 0 70px; }
  .burger { display: block; }
  /* Absolute children resolve against the padding box, so 0/0 already spans
     the full header width - the gutter comes from this element's padding. */
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gut) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 26px -18px rgba(16,34,31,.4);
  }
  .nav a { padding: 13px 0; border-radius: 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav a:hover { background: none; }
  .nav a[aria-current="page"]::after { left: 0; right: auto; width: 18px; bottom: 8px; }
  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .field--2 { grid-template-columns: 1fr; }
  .record__row { grid-template-columns: 1fr; gap: 4px; }
  .site-footer__top { grid-template-columns: 1fr; }
}
