/* ============================================================
   Highlead Industrial (Zhanjiang) Co., Ltd. — Corporate Site
   Shared stylesheet
   ============================================================ */

:root {
  --navy-900: #071B2F;
  --navy-800: #0A2540;
  --navy-700: #0F3557;
  --navy-600: #14436C;
  --blue-500: #1B6FB5;
  --blue-100: #E3EEF7;
  --orange-500: #F26B21;
  --orange-600: #D95A14;
  --ink-900: #16283A;
  --ink-600: #4A5B6C;
  --ink-400: #8A97A5;
  --line: #DDE5EC;
  --bg-soft: #F4F7FA;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(7, 27, 47, .06);
  --shadow-md: 0 10px 30px rgba(7, 27, 47, .10);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- language toggling ---------- */
body[data-lang="zh"] .en { display: none !important; }
body[data-lang="en"] .zh { display: none !important; }
body[data-lang="en"] { font-family: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif; }

/* ---------- top utility bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #B9C8D6;
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 38px; gap: 16px;
}
.topbar a { color: #B9C8D6; }
.topbar a:hover { color: var(--white); }
.topbar .tb-left { display: flex; gap: 22px; align-items: center; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar svg { width: 13px; height: 13px; fill: var(--orange-500); flex: none; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 76px; width: auto; }
.brand .b-name { line-height: 1.25; }
.brand .b-name strong { font-size: 17px; color: var(--navy-800); letter-spacing: .5px; display: block; }
.brand .b-name span { font-size: 11px; color: var(--ink-400); letter-spacing: 1.2px; text-transform: uppercase; display: block; }

.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a.nav-link {
  display: block; padding: 8px 16px; font-size: 15px; font-weight: 500;
  color: var(--ink-900); border-radius: 6px; position: relative;
}
.main-nav a.nav-link:hover { color: var(--blue-500); }
.main-nav a.nav-link.active { color: var(--navy-800); font-weight: 700; }
.main-nav a.nav-link.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0;
  height: 3px; border-radius: 3px; background: var(--orange-500);
}

.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-size: 13px; background: var(--white);
}
.lang-switch button {
  border: 0; background: transparent; padding: 6px 14px; cursor: pointer;
  font-size: 13px; color: var(--ink-600); font-family: inherit;
}
.lang-switch button.on { background: var(--navy-800); color: var(--white); }

.nav-toggle { display: none; border: 0; background: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: linear-gradient(115deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
}
.hero::before { /* blueprint grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center; padding: 84px 0 92px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: #9FC0DD;
  margin-bottom: 22px;
}
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--orange-500); }
.hero h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.25; font-weight: 700; letter-spacing: .5px; }
.hero h1 .zh { white-space: nowrap; }
.hero h1 .en { font-size: .72em; }
.hero h1 .sub { display: block; font-size: .6em; font-weight: 600; margin-top: 10px; letter-spacing: 1.5px; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--orange-500); }
.hero p.lead { margin: 22px 0 34px; font-size: 17px; color: #C6D5E2; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; height: 460px; object-fit: cover; object-position: center 35%;
  border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.15);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer; border: 0; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange-500); color: var(--white); box-shadow: 0 8px 22px rgba(242,107,33,.35); }
.btn-primary:hover { background: var(--orange-600); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }

/* ---------- stats band ---------- */
.stats {
  position: relative; z-index: 5; margin-top: -46px; margin-bottom: 10px;
}
.stats .container { display: grid; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md);
  overflow: hidden;
}
.stat {
  padding: 28px 26px; text-align: center; border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat .num { font-size: 30px; font-weight: 800; color: var(--navy-800); line-height: 1.2; }
.stat .num small { font-size: 16px; font-weight: 700; color: var(--orange-500); }
.stat .lbl { font-size: 14px; color: var(--ink-600); margin-top: 6px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .eyebrow {
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--orange-500); font-weight: 700;
  display: block; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 32px); color: var(--navy-800); line-height: 1.35; }
.section-head p { margin-top: 14px; color: var(--ink-600); font-size: 15.5px; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .thumb { height: 210px; overflow: hidden; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .thumb .tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(7, 27, 47, .82); color: var(--white);
  font-size: 12px; padding: 5px 12px; border-radius: 999px; letter-spacing: .5px;
}
.card .body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 18px; color: var(--navy-800); margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-600); flex: 1; }
.card .more { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--blue-500); }
.card .more::after { content: " →"; transition: margin .2s; }
.card:hover .more::after { margin-left: 4px; }

/* ---------- feature list (why us) ---------- */
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature .icon svg { width: 26px; height: 26px; fill: var(--white); }
.feature h3 { font-size: 16.5px; color: var(--navy-800); margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--ink-600); }

/* ---------- split section (about / services) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .photo-stack { position: relative; }
.split .photo-stack img.main { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 420px; object-fit: cover; }
.split .photo-stack img.accent {
  position: absolute; right: -20px; bottom: -30px; width: 46%; height: 190px; object-fit: cover;
  border: 6px solid var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.split .kicker { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--orange-500); font-weight: 700; display: block; margin-bottom: 12px; }
.split h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--navy-800); margin-bottom: 18px; line-height: 1.4; }
.split p { color: var(--ink-600); font-size: 15px; margin-bottom: 14px; }
.checklist { margin: 20px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-900); }
.checklist li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: var(--orange-500);
  clip-path: none;
  position: relative;
}
.checklist li .tick { display: none; }

/* ---------- service detail blocks ---------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block.reverse .media { order: 2; }
.service-block .media img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.service-block .no {
  font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--orange-500); margin-bottom: 10px; display: block;
}
.service-block h2 { font-size: 26px; color: var(--navy-800); margin-bottom: 14px; }
.service-block p { color: var(--ink-600); font-size: 15px; margin-bottom: 18px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip {
  font-size: 13px; color: var(--navy-700); background: var(--blue-100);
  border-radius: 999px; padding: 6px 14px; font-weight: 500;
}

/* ---------- page banner (subpages) ---------- */
.page-banner {
  position: relative; color: var(--white); padding: 74px 0 66px;
  background: linear-gradient(115deg, var(--navy-900), var(--navy-600));
  overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.page-banner .container { position: relative; }
.page-banner .crumb { font-size: 13px; color: #93AFC7; margin-bottom: 12px; }
.page-banner .crumb a:hover { color: var(--white); }
.page-banner h1 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: .5px; }
.page-banner p { margin-top: 12px; color: #C6D5E2; max-width: 640px; font-size: 15.5px; }

/* ---------- partners strip ---------- */
.partners { background: var(--navy-900); color: var(--white); padding: 56px 0; }
.partners h2 { text-align: center; font-size: 20px; letter-spacing: 1px; margin-bottom: 8px; }
.partners p { text-align: center; color: #8FA9BF; font-size: 14px; margin-bottom: 34px; }
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partner {
  border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 16px 30px;
  font-weight: 700; letter-spacing: 1px; color: #DCE8F2; font-size: 15px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 170px;
}
.partner small { font-weight: 400; font-size: 11.5px; color: #8FA9BF; letter-spacing: .5px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(100deg, var(--orange-600), var(--orange-500)); color: var(--white); padding: 62px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.4; }
.cta-band p { opacity: .92; margin-top: 6px; font-size: 15px; }
.cta-band .btn { background: var(--white); color: var(--orange-600); }
.cta-band .btn:hover { background: var(--navy-900); color: var(--white); }
.cta-band .btn-line { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.65); }
.cta-band .btn-line:hover { background: rgba(255,255,255,.14); color: var(--white); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.info-card .icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
}
.info-card .icon svg { width: 22px; height: 22px; fill: var(--navy-700); }
.info-card h3 { font-size: 15.5px; color: var(--navy-800); margin-bottom: 4px; }
.info-card p, .info-card a { font-size: 14.5px; color: var(--ink-600); word-break: break-all; }
.info-card a:hover { color: var(--blue-500); }

.form-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.form-panel h3 { font-size: 19px; color: var(--navy-800); margin-bottom: 6px; }
.form-panel .sub { font-size: 14px; color: var(--ink-600); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-900); margin-bottom: 6px; }
.field label .req { color: var(--orange-500); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px;
  font-size: 14.5px; font-family: inherit; color: var(--ink-900); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(27,111,181,.14);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--ink-400); margin-top: 12px; }

/* ---------- gallery strip (about) ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); transition: transform .25s ease, filter .25s ease; }
.gallery img:hover { transform: scale(1.02); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #9DB2C4; padding: 64px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: var(--white); font-size: 15.5px; margin-bottom: 18px; letter-spacing: .5px; }
.site-footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer .f-brand img { height: 52px; width: auto; background: var(--white); border-radius: 8px; padding: 5px 10px; }
.site-footer .f-brand strong { color: var(--white); font-size: 16px; display: block; line-height: 1.3; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--white); }
.site-footer .f-contact li { display: flex; gap: 8px; align-items: flex-start; }
.site-footer .f-contact svg { width: 15px; height: 15px; fill: var(--orange-500); flex: none; margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 12.5px; color: #6E8397; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- reveal animation (JS-gated; visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0 90px; }
  .hero-photo { max-width: 560px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .split, .service-block, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-block.reverse .media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero h1 .zh, .hero h1 .sub { white-space: normal; }
  .topbar .tb-left span.tb-item:last-child { display: none; }
  .topbar .container > .tb-item { display: none; }
  .grid-3, .grid-2, .grid-4, .grid-5, .gallery, .form-row { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .main-nav {
    position: fixed; inset: 134px 0 auto 0; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none; padding: 12px 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a.nav-link { padding: 12px 26px; }
  .main-nav a.nav-link.active::after { display: none; }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-photo img { height: 320px; }
  .section { padding: 60px 0; }
  .split .photo-stack img.accent { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
