/* XIN HAI International Logistics site styles
   White topbar, full-bleed hero image, overlapping title card,
   and two-column content sections for a clean corporate presentation.
*/

:root {
  --brand: #75b9dc;
  --brand-dark: #4f9bc4;
  --ink: #272626;
  --ink-soft: #555;
  --line: #e6e6e6;
  --bg-soft: #f6f8fa;
  --bg-alt: #f0f0f0;
  --max: 1180px;
  --gap: 28px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", "Arial", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brand-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.25; color: var(--ink); font-weight: 700; }
h1 { font-size: 56px; letter-spacing: -0.5px; }
h2 { font-size: 36px; letter-spacing: -0.3px; }
h3 { font-size: 22px; }
p  { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.row { display: flex; flex-wrap: wrap; gap: var(--gap); }
.row > * { flex: 1 1 0; min-width: 0; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

/* --- Top bar (white, sticky) --- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; display: block; }

/* --- Nav --- */
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > li > a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .3px;
  transition: color .15s ease;
}
.nav > li > a:hover,
.nav > li.is-active > a {
  color: var(--brand-dark);
}
.nav .has-children { position: relative; }
.nav .has-children > a .caret {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  opacity: .55;
  transition: transform .15s ease;
}
.nav .has-children:hover > a .caret,
.nav .has-children:focus-within > a .caret { transform: rotate(180deg); }
.nav .has-children > .sub {
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .15s ease;
}
.nav .has-children:hover > .sub,
.nav .has-children:focus-within > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}
.nav .sub li a:hover { background: var(--bg-soft); color: var(--brand-dark); }

/* --- Language switcher (with HK flag) --- */
.lang-switch { display: flex; align-items: center; gap: 6px; margin-left: 12px; padding-left: 14px; border-left: 1px solid var(--line); }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.lang-switch a img.flag {
  width: 22px;
  height: 16px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.06);
}
.lang-switch a.is-active,
.lang-switch a:hover { color: var(--brand-dark); }
.lang-switch a.is-active img.flag { box-shadow: 0 0 0 2px var(--brand); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* --- Page header with hero image --- */
.page-header {
  position: relative;
  color: #fff;
  text-align: left;
  overflow: visible;
}
.page-header.has-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 450px;
  display: flex;
  align-items: flex-end;
  padding-top: 80px;
  padding-bottom: 0;
  background-color: #f1f0ec;
  box-shadow: 0 0 10px 0 rgba(0,0,0,.5);
}
/* Home hero: warm cream-tinted multiply overlay */
.page-header.has-hero.home-hero {
  min-height: 600px;
  background-color: #000;
  box-shadow: 0 0 10px 0 rgba(0,0,0,.5);
}
.page-header.has-hero.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #f1f0ec;
  opacity: .8;
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: background .3s, border-radius .3s, opacity .3s;
}
/* Big white hero title */
.hero-bigtitle {
  color: #fff;
  font-size: 50px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 2px 5px 13px rgba(0,0,0,.82);
  margin: 0 0 12px;
  line-height: 1.1;
}
.page-header.has-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}
.title-card {
  background: #fff;
  color: var(--ink);
  padding: 80px;
  max-width: 60%;
  box-shadow: 0 0 80px 0 rgba(0,0,0,.15);
  margin-bottom: -80px;
  position: relative;
  z-index: 2;
}
.title-card .breadcrumbs {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
  opacity: 1;
}
.title-card .breadcrumbs a { color: var(--brand-dark); font-weight: 600; }
.title-card .breadcrumbs a:hover { color: var(--ink); }
.title-card .breadcrumbs .sep { color: var(--line); margin: 0 8px; }
.title-card h1 {
  font-size: 50px;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1.12;
}
.title-card .lead {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}

/* Page-header fallback (gradient banner, no image) */
.page-header.gradient {
  background: linear-gradient(135deg, #75b9dc 0%, #4f9bc4 100%);
  padding: 96px 0 78px;
  text-align: center;
  color: #fff;
}
.page-header.gradient h1 { color: #fff; font-size: 52px; margin: 0; }
.page-header.gradient .lead { margin: 18px auto 0; max-width: 720px; font-size: 17px; opacity: .95; }
.page-header.gradient .breadcrumbs { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; opacity: .9; }
.page-header.gradient .breadcrumbs a { color: #fff; }
.page-header.gradient .breadcrumbs .sep { margin: 0 8px; opacity: .7; }

/* When a has-hero is followed by a .section, give it extra top padding so
   the protruding title card has breathing room. */
.page-header.has-hero + .section,
.page-header.has-hero + .container { padding-top: 160px; }

/* --- Sections --- */
.section { padding: 90px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* --- Two-column layout (used for company profile pages) --- */
.two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.two-col .col-side {
  position: sticky;
  top: 110px;
}
.two-col .col-side .eyebrow { color: var(--ink); }
.two-col .col-side h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.two-col .col-main p { font-size: 16px; line-height: 1.8; color: var(--ink); }

/* --- Service cards --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all .2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,.07);
  border-color: var(--brand);
}
.card .icon {
  width: 56px; height: 56px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--brand-dark);
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.card a.more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-dark);
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat .num { font-size: 56px; font-weight: 800; color: var(--brand-dark); line-height: 1; }
.stat .label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }

/* --- Two-up (text + image) --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .placeholder,
.split .media {
  background: var(--bg-soft);
  border-radius: var(--radius);
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-dark);
  overflow: hidden;
}
.split .placeholder svg { width: 120px; height: 120px; opacity: .55; }
.split .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split .media { padding: 0; }

/* --- Lists (service detail) --- */
.bullets { padding-left: 0; }
.bullets li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 4px; top: 18px;
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
}
.bullets.compact li { padding: 6px 0 6px 24px; font-size: 14.5px; }

/* --- Two columns lists --- */
.twocols { columns: 2; column-gap: 40px; }
.twocols li { break-inside: avoid; }

/* --- Home: two-up coloured blocks under the hero --- */
.home-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: -180px;
  position: relative;
  z-index: 5;
}
.home-block {
  padding: 80px 80px;
  box-shadow: 0 0 80px 0 rgba(0,0,0,.15);
  text-align: center;
}
.home-block-white { background: #fff; color: var(--ink); }
.home-block-blue  { background: var(--brand); color: #fff; }
.home-block .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 24px;
}
.home-block-white .icon-wrap { background: var(--brand); color: #fff; }
.home-block-blue  .icon-wrap { background: #fff; color: var(--brand); }
.home-block .icon-wrap svg { width: 28px; height: 28px; }
.home-block h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
}
.home-block-blue h2 { color: #fff; }
.home-block p {
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 24px;
}
.home-block-white p { color: var(--ink-soft); }
.home-block-blue p  { color: #fff; opacity: .95; }

/* --- Home: world-map CTA band --- */
.home-map {
  background-color: #f1f0ec;
  background-image: url("/assets/img/sccs-bgmap.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: auto;
  padding: 120px 80px;
  text-align: center;
}
.home-map h2 { font-size: 36px; font-weight: 800; margin: 0 0 16px; }
.home-map p { font-size: 17px; color: var(--ink-soft); max-width: 620px; margin: 0 auto 28px; }

/* --- CTA banner --- */
.cta-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 70px 0;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { opacity: .8; max-width: 620px; margin: 0 auto 28px; }

/* --- Buttons: squared, 3px border, generous padding --- */
.btn {
  display: inline-block;
  padding: 15px 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 0;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: #fff; color: var(--brand-dark); border-color: var(--brand); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--brand-dark); }
.btn-solid { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-solid:hover { background: #fff; color: var(--brand-dark); }
.btn-on-blue { background: var(--brand); color: #fff; border-color: #fff; }
.btn-on-blue:hover { background: #fff; color: var(--brand-dark); }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 { color: var(--brand-dark); margin-bottom: 6px; }
.contact-card .addr { color: var(--ink); line-height: 1.7; margin-bottom: 18px; }
.contact-card .row-info { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); margin-bottom: 8px; font-size: 14.5px; }
.contact-card .row-info svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.contact-card .row-info a { color: var(--ink-soft); }
.contact-card .row-info a:hover { color: var(--brand-dark); }
.map-embed {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}

/* --- Footer --- */
.footer {
  background: #1d1d1d;
  color: #aaa;
  padding: 64px 0 28px;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; }
.footer a { color: #aaa; }
.footer a:hover { color: #fff; }
.footer .brand-block img {
  display: block;
  width: 142px;
  max-width: 100%;
  height: auto;
  filter: none;
  opacity: 1;
}
.footer .brand-block p { margin-top: 16px; line-height: 1.7; }
.footer ul li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid #2c2c2c;
  margin-top: 48px;
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12.5px;
  color: #888;
}
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; max-width: 460px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: 22px 24px;
  border-radius: var(--radius);
  z-index: 100;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.cookie-banner h5 { color: var(--ink); font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 8px; }
.cookie-banner .actions { margin-top: 14px; display: flex; gap: 10px; }
.cookie-banner .btn { padding: 9px 18px; font-size: 12px; }
.cookie-banner.hidden { display: none; }

/* --- Utilities --- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.tag {
  display: inline-block; padding: 4px 12px; font-size: 12px; font-weight: 700;
  background: var(--bg-alt); color: var(--ink-soft); border-radius: 99px; margin-right: 6px;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .cards, .cards.cols-2 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .twocols { columns: 1; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .two-col .col-side { position: static; }
  .title-card { padding: 32px 32px 28px; }
  .title-card h1 { font-size: 36px; }
  .page-header.has-hero { min-height: 400px; padding-bottom: 0; }
  .page-header.has-hero.home-hero { min-height: 400px; }
  .page-header.has-hero + .section,
  .page-header.has-hero + .container { padding-top: 140px; }
  .hero-bigtitle { font-size: 36px; }
  .home-blocks { margin-top: -140px; grid-template-columns: 1fr; }
  .home-block { padding: 40px 40px; }
  .home-map { padding: 60px 40px; }
  .page-header.gradient { padding: 70px 0 60px; }
  .page-header.gradient h1 { font-size: 36px; }
}
@media (max-width: 720px) {
  .topbar-inner { height: 64px; gap: 12px; }
  .brand img { height: 40px; }
  .nav, .lang-switch { display: none; }
  .menu-toggle { display: block; }
  .nav-mobile-open .nav,
  .nav-mobile-open .lang-switch {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 0; box-shadow: 0 8px 30px rgba(0,0,0,.08);
  }
  .nav-mobile-open .nav > li > a { padding: 12px 24px; }
  .nav-mobile-open .nav .sub { position: static; box-shadow: none; border: 0; padding: 0 0 8px 0; opacity: 1; visibility: visible; transform: none; }
  .nav-mobile-open .nav .sub li a { padding: 10px 36px; }
  .nav-mobile-open .lang-switch { flex-direction: row; padding: 0 24px 12px; border-left: 0; margin-left: 0; }
  .section { padding: 60px 0; }
  .cards, .cards.cols-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat .num { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .title-card { padding: 40px 24px; }
  .title-card h1 { font-size: 30px; }
  .page-header.has-hero { min-height: 320px; padding-bottom: 0; }
  .page-header.has-hero.home-hero { min-height: 200px; }
  .page-header.has-hero + .section,
  .page-header.has-hero + .container { padding-top: 120px; }
  .hero-bigtitle { font-size: 28px; }
  .home-blocks { margin-top: -40px; }
  .home-block { padding: 32px 24px; }
  .home-block h2 { font-size: 24px; }
  .home-map { padding: 40px 24px; }
}
