/* =========================================================
   蜂鸟 HUMMINGBIRD Container House — Design System
   Modern, responsive B2B export site stylesheet
   ========================================================= */

:root {
  --brand: #0d9b6c;          /* hummingbird emerald */
  --brand-dark: #0a7d56;
  --brand-light: #e6f6ef;
  --brand-ink: #063b2a;
  --accent: #f59e0b;         /* CTA amber */
  --accent-dark: #d98309;
  --ink: #0f1f17;            /* near-black green */
  --slate: #475a52;
  --muted: #6b7d74;
  --line: #e2e8e0;
  --bg: #ffffff;
  --bg-soft: #f6f9f7;
  --bg-dark: #0c241b;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(6,59,42,.08), 0 1px 2px rgba(6,59,42,.06);
  --shadow: 0 10px 30px rgba(6,59,42,.10);
  --shadow-lg: 0 20px 50px rgba(6,59,42,.16);
  --maxw: 1200px;
  --nav-h: 72px;
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }
ul { list-style: none; }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: 1340px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600;
  font-size: 15px; border: 2px solid transparent; cursor: pointer;
  transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color:#fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #1c1303; }
.btn-accent:hover { background: var(--accent-dark); color:#1c1303; transform: translateY(-1px); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color:#fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; color: var(--ink); }
/* Transparent-background brand mark (no colour block behind it) */
.brand .logo {
  width: 54px; height: 40px; object-fit: contain;
  display: block; flex: 0 0 auto;
  background: none; border: 0; border-radius: 0; box-shadow: none;
}
.brand small { display:block; font-size: 11px; font-weight:600; letter-spacing:2px; color: var(--brand); }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; color: var(--ink); font-weight: 600; font-size: 15px; border-radius: 8px;
}
.nav-link:hover { background: var(--brand-light); color: var(--brand-dark); }
.nav-item.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .2s; z-index: 50;
}
.dropdown a { display: block; padding: 9px 13px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 14px; }
.dropdown a:hover { background: var(--brand-light); color: var(--brand-dark); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 92px 0 80px; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(13,155,108,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(245,158,11,.10), transparent 55%),
    linear-gradient(180deg, #f3faf6 0%, #ffffff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 46px; letter-spacing: -.5px; margin-bottom: 18px; }
.hero h1 .hl { color: var(--brand); }
.hero p.lead { font-size: 18px; color: var(--slate); margin-bottom: 28px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-badges .b { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate); font-weight: 600; }
.hero-badges .b i { color: var(--brand); font-style: normal; }
.hero-visual {
  position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  aspect-ratio: 4/3; display: grid; place-items: center; color: #fff;
}
.hero-visual .tag { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.18); padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; backdrop-filter: blur(4px); }
.hero-visual .big { font-size: 64px; font-weight: 800; text-align: center; line-height: 1.05; }
.hero-visual .sub { font-size: 16px; opacity: .9; text-align:center; }

/* ---------- Section ---------- */
.section { padding: 78px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: 34px; margin: 10px 0 14px; letter-spacing: -.3px; }
.section-head p { color: var(--slate); font-size: 17px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat .num { font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1; }
.stat .num .u { font-size: 18px; }
.stat .label { margin-top: 8px; color: var(--slate); font-size: 14px; font-weight: 600; }

/* ---------- Cards grid ---------- */
.cards { display: grid; gap: 24px; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .thumb {
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--brand-light), #cdeede);
  display: grid; place-items: center; color: var(--brand-dark); font-size: 40px; position: relative;
}
.card .thumb .pill { position:absolute; bottom:12px; left:12px; background:#fff; color:var(--brand-dark); padding:5px 12px; border-radius:999px; font-size:12px; font-weight:700; }
.card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 14.5px; flex: 1; }
.card .meta { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.card .meta .more { font-weight: 700; font-size: 14px; color: var(--brand); }
.chip { display:inline-block; background: var(--brand-light); color: var(--brand-dark); font-size: 12px; font-weight:700; padding: 4px 11px; border-radius:999px; }

/* ---------- Feature list ---------- */
.feature-list { display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li .ic { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-light); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.feature-list li span { color: var(--slate); }

/* ---------- Steps (solutions methodology) ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.step .n {
  counter-increment: step; width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 22px;
}
.step .n::before { content: counter(step); }
.step h4 { font-size: 18px; margin-bottom: 5px; }
.step p { color: var(--slate); font-size: 14.5px; }

/* ---------- Two column feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .visual { border-radius: 20px; overflow:hidden; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); aspect-ratio: 5/4; display:grid; place-items:center; color:#fff; }
.split h2 { font-size: 30px; margin-bottom: 14px; }
.split p { color: var(--slate); margin-bottom: 18px; }

/* ---------- Certifications ---------- */
.certs { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cert { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 22px; font-weight:700; color: var(--brand-dark); box-shadow: var(--shadow-sm); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 18px 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--brand-ink), #0d9b6c); color: #fff; padding: 54px 0; }
.page-hero h1 { color: #fff; font-size: 38px; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 720px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card .hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display:block; font-weight:600; font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-success { display:none; background: var(--brand-light); border:1px solid var(--brand); color: var(--brand-dark); padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight:600; }
.form-success.show { display:block; }
.contact-info { background: var(--bg-dark); color:#fff; border-radius: var(--radius); padding: 32px; }
.contact-info h3 { color:#fff; font-size: 22px; margin-bottom: 18px; }
.contact-info .row { display:flex; gap: 14px; margin-bottom: 18px; align-items:flex-start; }
.contact-info .row .ic { width: 42px; height:42px; border-radius:10px; background: rgba(255,255,255,.12); display:grid; place-items:center; font-size:18px; flex:none; }
.contact-info .row .t { font-size: 14px; }
.contact-info .row .t b { display:block; font-size: 15px; margin-bottom:2px; }
.contact-info .row .t span { color: rgba(255,255,255,.8); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.78); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { color:#fff; font-size: 16px; margin-bottom: 16px; }
.footer-grid .brand { color:#fff; margin-bottom: 14px; }
.footer-grid .brand small { color: var(--brand); }
.footer-grid p { font-size: 14px; line-height: 1.7; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul li a { color: rgba(255,255,255,.78); font-size: 14px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---------- Floating CTA ---------- */
.float-cta { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.float-cta a { display: flex; align-items: center; gap: 9px; padding: 13px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); color:#fff; }
.float-cta .wa { background: #25d366; }
.float-cta .quote { background: var(--accent); color: #1c1303; }
.float-cta .ic { font-size: 18px; }

/* ---------- Article / Blog ---------- */
.article-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.article-card .thumb { background: linear-gradient(135deg, var(--brand-light), #cdeede); display:grid; place-items:center; color: var(--brand-dark); font-size: 30px; }
.article-card .body { padding: 18px 20px 18px 0; }
.article-card .body .date { font-size: 13px; color: var(--muted); }
.article-card .body h3 { font-size: 19px; margin: 6px 0 8px; }
.article-card .body p { color: var(--slate); font-size: 14.5px; }
.tagrow { display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px; }
.timeline { border-left: 3px solid var(--brand-light); padding-left: 26px; display:grid; gap: 22px; }
.timeline .ev { position: relative; }
.timeline .ev::before { content:""; position:absolute; left:-35px; top: 4px; width: 14px; height:14px; border-radius:50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand-light); }
.timeline .ev .yr { font-weight: 800; color: var(--brand-dark); }
.timeline .ev h4 { font-size: 17px; margin: 2px 0 4px; }
.timeline .ev p { color: var(--slate); font-size: 14.5px; }

.note-box { background: var(--brand-light); border-left: 4px solid var(--brand); padding: 16px 18px; border-radius: 8px; color: var(--brand-ink); font-size: 14.5px; margin: 20px 0; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.spec-table th { background: var(--bg-soft); font-weight: 700; }
.spec-table tr:nth-child(even) td { background: #fcfdfc; }

/* ---------- Images ---------- */
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,59,42,.28), rgba(6,59,42,.58)); z-index: 1; }
.hero-visual .tag, .hero-visual > div { position: relative; z-index: 2; }
.split .visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-hero-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.case-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- RTL (Arabic) ---------- */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .float-cta { right: auto; left: 22px; align-items: flex-start; }
html[dir="rtl"] .step { direction: rtl; }
html[dir="rtl"] .feature-list li { direction: rtl; }
html[dir="rtl"] .nav-link, html[dir="rtl"] .dropdown a { text-align: right; }

/* ---------- Language dropdown (desktop + collapsed mobile menu) ---------- */
.lang-dd { position: relative; display: inline-block; font-size: 13px; }
.lang-dd-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 12px; color: var(--ink); font: 600 12px/1 var(--font);
  white-space: nowrap; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.lang-dd-btn:hover, .lang-dd.open .lang-dd-btn { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.lang-globe { font-size: 13px; line-height: 1; }
.lang-cur { max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
.lang-caret { font-size: 10px; color: var(--slate); line-height: 1; transition: transform .2s; }
.lang-dd.open .lang-caret { transform: rotate(180deg); }
.lang-dd-menu {
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 60;
  min-width: 208px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.lang-dd.open .lang-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dd-menu li { margin: 0; }
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; color: var(--ink);
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.lang-opt:hover { background: var(--bg-soft); color: var(--brand-dark); }
.lang-opt.is-active { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; }
.lang-code {
  flex: 0 0 auto; min-width: 26px; padding: 3px 5px; border-radius: 5px;
  background: var(--bg-soft); color: var(--slate);
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-align: center;
}
.lang-opt.is-active .lang-code { background: var(--brand); color: #fff; }
.lang-name { flex: 1 1 auto; }
.lang-check { color: var(--brand); font-size: 12px; }
html[dir="rtl"] .lang-dd-menu { right: auto; left: 0; }
html[dir="rtl"] .lang-opt { text-align: right; }
.lang-mobile { display: none; }

/* Keep the floating CTA from covering the note text on the contact page */
@media (min-width: 1025px) {
  .contact-info .note-box { padding-right: 118px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .cards.c4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 14px; overflow-y: auto; transform: translateX(100%); transition: transform .3s;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; padding: 14px; justify-content: space-between; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 8px 14px; min-width: 0; }
  html, body { overflow-x: hidden; max-width: 100%; }
  .nav-cta .btn-ghost { display: none; }
  .nav-lang-d { display: none; }             /* desktop dropdown moves into the collapsed menu */
  .lang-mobile { display: block; padding: 12px 4px 14px; border-bottom: 1px solid var(--line); }
  .lang-mobile .lang-dd { display: block; }
  .lang-mobile .lang-dd-btn { width: 100%; justify-content: flex-start; }
  .lang-mobile .lang-caret { margin-left: auto; }
  .lang-mobile .lang-dd-menu {
    position: static; display: none; min-width: 0; margin-top: 8px; padding: 4px;
    opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 10px;
  }
  .lang-mobile .lang-dd.open .lang-dd-menu { display: block; }
  .nav-toggle { display: block; flex: 0 0 auto; }
  .nav-cta { gap: 0; }
  .brand { min-width: 0; }
  .brand .logo { width: 44px; height: 33px; }
  .brand small { font-size: 9px; }
  .hero-visual { max-width: 100%; width: 100%; }
  .hero-visual .big { font-size: 44px; }
  .hero-visual .sub { font-size: 13px; }
  .hero h1 { font-size: 30px; overflow-wrap: break-word; }
  .hero p.lead { font-size: 16px; }
  .hero-badges { gap: 10px 14px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .float-cta { right: 12px; bottom: 12px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 27px; }
  .cards.c3, .cards.c2, .cards.c4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .article-card .thumb { aspect-ratio: 16/8; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-cta .quote span { display:none; }
}

/* Honeypot field for the lead form (hidden from humans, visible to bots) */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
