/* ============================================================
   SVL Hong Kong Holdings — corporate one-pager
   Visual flavour: SVL red (#C41E3A) / charcoal / generous white
   ============================================================ */

:root {
  --svl-red: #C41E3A;
  --svl-red-dark: #9e1830;
  --charcoal: #1a1a1a;
  --ink: #222222;
  --muted: #5f6368;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-alt: #f6f6f7;
  --footer-bg: #161616;
  --maxw: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
          "Noto Sans CJK SC", "Noto Sans CJK TC", "Microsoft YaHei",
          "PingFang HK", "PingFang SC", 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;
  text-rendering: optimizeLegibility;
}

a { color: var(--svl-red); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
/* Holding-company mark: neutral outline wordmark, coloured via currentColor */
.brand-mark { height: 30px; width: auto; aspect-ratio: 69 / 32; color: var(--charcoal); display: block; }
.site-footer .brand-mark { color: #ffffff; }
/* Red badge holding the official white SVL logo (matches smartvisionlogistics.com) */
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--svl-red);
  border-radius: 6px;
  padding: 4px 6px;
  flex: none;
}
.brand-badge img { height: 30px; width: auto; display: block; }
.brand .brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal);
  letter-spacing: 0.2px;
}
.header-right { display: flex; align-items: center; gap: 22px; }

.main-nav { display: flex; gap: 22px; }
.main-nav a {
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--svl-red); text-decoration: none; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover { color: var(--charcoal); }
.lang-switch button[aria-current="true"] {
  background: var(--svl-red);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--svl-red);
  margin: 0 0 22px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin: 0 0 28px;
  max-width: 18ch;
}
.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--ink);
  max-width: 62ch;
  margin: 0;
}
.hero .accent-bar {
  width: 64px;
  height: 5px;
  background: var(--svl-red);
  border-radius: 4px;
  margin: 0 0 36px;
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 84px; }
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }
.section h2 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--svl-red);
  margin: 0 0 28px;
}
.section .prose p {
  font-size: 1.08rem;
  max-width: 64ch;
  color: var(--ink);
  margin: 0 0 18px;
}
.section .prose p:last-child { margin-bottom: 0; }

/* ---------- Company card ---------- */
.company-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  background: #fff;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  max-width: 720px;
}
.company-card:hover {
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: var(--svl-red);
}
.company-card .cc-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.company-card .cc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--svl-red);
  border-radius: 6px;
  padding: 6px 8px;
  flex: none;
}
.company-card .cc-badge img { height: 40px; width: auto; display: block; }
.company-card .cc-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--charcoal);
}
.company-card .cc-desc { color: var(--muted); margin: 0 0 18px; font-size: 1rem; }
.company-card .cc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--svl-red);
  font-weight: 600;
  font-size: 0.95rem;
}
.company-card .cc-link::after { content: "\2192"; transition: transform .15s ease; }
.company-card:hover .cc-link::after { transform: translateX(4px); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 760px;
}
.contact-grid .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.contact-grid .value { color: var(--ink); font-size: 1.02rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #cfcfcf;
  padding: 52px 0 36px;
}
.site-footer .f-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 36px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .f-tag { color: #9a9a9a; max-width: 42ch; margin: 14px 0 0; font-size: 0.95rem; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: #cfcfcf; font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }
.site-footer .f-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #8a8a8a;
}

/* ---------- Language visibility (JS-driven) ---------- */
/* All translatable nodes carry .lang; the active language is toggled
   by adding/removing [hidden] in lang.js. Pre-hide non-English to
   avoid a flash before JS runs. */
.lang { display: none; }
.lang.is-active { display: revert; }
[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .main-nav { display: none; }
  .hero { padding: 64px 0 48px; }
  .site-header .wrap { min-height: 60px; }
  .header-right { gap: 12px; }
}
