/* ============================================================
   Honglian Optoelectronic — Shared Stylesheet
   Deep-blue tech theme · Static site, no external dependencies
   ============================================================ */

:root {
  --navy-950: #050d1a;
  --navy-900: #0a1628;
  --navy-800: #0f1f38;
  --navy-700: #16304f;
  --navy-600: #1e4266;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --cyan-400: #38bdf8;
  --cyan-300: #7dd3fc;
  --ink-900: #0b1526;
  --ink-600: #3d4a63;
  --ink-400: #64748b;
  --paper: #f6f9fd;
  --white: #ffffff;
  --border: #dbe4f0;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 22, 40, 0.12);
  --font: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink-600);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex: none;
  display: block;
  object-fit: contain;
}

.brand-name {
  color: var(--white);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-name span { color: var(--cyan-400); }

.brand-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-400);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: #c9d7ea;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--cyan-300); }

.nav-links a.active { color: var(--cyan-400); }

.nav-cta {
  padding: 9px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  color: var(--white) !important;
  font-weight: 600;
}

/* ---- 语言切换：下拉式（原生 <details>，无 JS 也能展开）---- */
.lang-switch {
  position: relative;
  flex: none;
  margin-inline-start: 22px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.lang-switch > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #c9d7ea;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover {
  color: var(--white);
  border-color: rgba(56, 189, 248, 0.45);
}
.lang-switch[open] > summary {
  color: var(--cyan-300);
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.1);
}
.ls-globe { width: 15px; height: 15px; flex: none; }
.ls-chev { width: 13px; height: 13px; flex: none; transition: transform 0.18s ease; }
.lang-switch[open] .ls-chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  z-index: 120;
  min-width: 174px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--navy-800);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(3, 10, 22, 0.55);
}
.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #c9d7ea;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-menu a:hover { color: var(--cyan-300); background: rgba(56, 189, 248, 0.12); }
.lang-menu a[aria-current="true"] { color: var(--cyan-400); background: rgba(56, 189, 248, 0.1); }

@media (max-width: 1024px) {
  /* 窄屏：汉堡按钮靠右；语言按钮脱离 flex 流，固定贴在它左侧
     （.container 宽度是 92% 视口、无 padding，所以用 calc(4% + …) 对齐容器右边界） */
  .nav-toggle { margin-inline-start: auto; }
  .lang-switch {
    position: absolute;
    top: 50%;
    inset-inline-end: calc(4% + 52px);
    transform: translateY(-50%);
    margin: 0;
  }
  .lang-switch > summary { padding: 7px 10px; gap: 5px; }
  /* 窄屏只留地球图标 + 箭头，避免与品牌、汉堡按钮挤在一起溢出 */
  .ls-code { display: none; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg { width: 26px; height: 26px; stroke: var(--cyan-300); }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 13px 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(5, 13, 26, 0.78) 0%, rgba(5, 13, 26, 0.55) 35%, rgba(5, 13, 26, 0.25) 100%),
    linear-gradient(to right, rgba(5, 13, 26, 0.55) 0%, rgba(5, 13, 26, 0.20) 35%, rgba(5, 13, 26, 0.10) 60%, rgba(5, 13, 26, 0.30) 100%),
    url('../assets/img/hero-home.jpg') center/cover no-repeat;
  background-color: var(--navy-950);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 110px 0 100px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 18px;
}

.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--cyan-400);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--cyan-300), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin-top: 22px;
  font-size: 18px;
  color: #b8c8de;
  max-width: 520px;
}

.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--cyan-300);
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.btn-ghost:hover { background: rgba(56, 189, 248, 0.08); text-decoration: none; }

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 54px;
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
}

.stat span { font-size: 13px; color: var(--ink-400); letter-spacing: 0.04em; }

.hero-visual { position: relative; }

.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.25)); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 70px 0 60px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--white); }

.section-head { max-width: 640px; margin-bottom: 48px; }

.section-head .kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.25;
}

.section-head p { margin-top: 14px; font-size: 16.5px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.gallery-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.gallery-4 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
}

/* ---------- Production flowchart ---------- */
.flowchart-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-top: 10px;
}
.flowchart-wrap svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  max-height: 420px;
}

@media (max-width: 980px) {
  .gallery-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .gallery-4 { grid-template-columns: 1fr; }
  .gallery-4 img { height: 220px; }
}

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.14));
  margin-bottom: 20px;
}

.card .icon svg { width: 28px; height: 28px; }

.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.card p { font-size: 14.5px; flex: 1; }

.card .card-link {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-500);
}

.card .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-400);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  align-self: flex-start;
}

/* dark cards (used on navy band) */
.band {
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(37, 99, 235, 0.25), transparent 60%),
    var(--navy-900);
  color: var(--white);
}

.band .section-head h2 { color: var(--white); }
.band .section-head p { color: #b8c8de; }

.band .card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: none;
}

.band .card h3 { color: var(--white); }
.band .card p { color: #a9bdd6; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

table.spec {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14.5px;
}

table.spec th {
  background: var(--navy-900);
  color: var(--white);
  text-align: left;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
}

table.spec th.hl { color: var(--cyan-300); }

table.spec td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.spec tr:last-child td { border-bottom: none; }

table.spec tr:nth-child(even) td { background: #f9fbfe; }

table.spec td:first-child {
  font-weight: 600;
  color: var(--ink-900);
  width: 30%;
}

/* ---------- Product blocks ---------- */
.product-block {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 44px;
  align-items: start;
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}

.product-block:first-of-type { padding-top: 10px; }
.product-block:last-of-type { border-bottom: none; }

@media (max-width: 900px) {
  .product-block { grid-template-columns: 1fr; gap: 26px; }
}

.product-visual {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.product-visual svg { width: 100%; height: auto; }

.product-info h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.product-info .std {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-500);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 999px;
  padding: 4px 13px;
  letter-spacing: 0.05em;
}

.product-info > p { margin: 14px 0 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }

.chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-600);
  background: #eef4fc;
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 999px;
}

.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.mini-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}

.mini-table tr:last-child td { border-bottom: none; }

.mini-table td:first-child {
  color: var(--ink-400);
  width: 46%;
  font-size: 13.5px;
}

.mini-table td:last-child { font-weight: 600; color: var(--ink-900); }

.mini-table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(ellipse 70% 90% at 75% -20%, rgba(37, 99, 235, 0.35), transparent 65%),
    var(--navy-950);
  color: var(--white);
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}

.page-hero .container { position: relative; }

.page-hero .kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 14px;
  display: inline-block;
}

.page-hero h1 {
  font-size: clamp(30px, 4.2vw, 42px);
  font-weight: 800;
  line-height: 1.2;
}

.page-hero p {
  margin-top: 16px;
  color: #b8c8de;
  max-width: 620px;
  font-size: 16.5px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: 20px;
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
}

.cta-band p { color: #b8c8de; margin-top: 8px; }

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 7px;
}

.field label .req { color: #dc2626; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field textarea { resize: vertical; min-height: 110px; }

.field .hint { font-size: 12.5px; color: var(--ink-400); margin-top: 6px; }

.checkline {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #eef6ff;
  border: 1px solid #bcd8f7;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ink-600);
}

.checkline input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--blue-500); flex: none; }

.form-note { font-size: 13px; color: var(--ink-400); margin-top: 16px; }

/* ---------- Contact cards ---------- */
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.contact-card .icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.14));
}

.contact-card .icon svg { width: 22px; height: 22px; }

.contact-card h4 { font-size: 15.5px; font-weight: 700; color: var(--ink-900); margin-bottom: 4px; }

.contact-card p, .contact-card a { font-size: 14px; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #8fa4c0;
  padding: 64px 0 30px;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(143, 164, 192, 0.15);
}

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 10px; }

.site-footer a { color: #8fa4c0; font-size: 14px; }
.site-footer a:hover { color: var(--cyan-300); }

.footer-brand p { font-size: 13.5px; margin-top: 14px; max-width: 300px; }

.footer-slogan {
  color: var(--cyan-300);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 10px;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.footer-civil {
  color: #b8c8de;
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12.5px;
  margin-top: 24px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Module components (added for B2B supplier store layout)
   ============================================================ */

/* ---------- Home category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-tile {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(56,189,248,.5); text-decoration: none; }
/* product cover image — every tile uses the same 4:3 box so heights match */
.cat-tile .cat-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.cat-tile .cat-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.cat-tile:hover .cat-img img { transform: scale(1.05); }
/* tool tile without a photo — gradient placeholder keeps the grid even */
.cat-tile .cat-img-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(56,189,248,.16));
}
.cat-tile .cat-img-tool svg { width: 54px; height: 54px; }
/* tile image that should fit fully inside the 4:3 box (diagrams, logos) */
.cat-tile .cat-img-contain {
  background: var(--white);
}
.cat-tile .cat-img-contain img {
  object-fit: contain;
  padding: 10%;
}
.cat-tile .cat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
}
.cat-tile .cat-ico {
  width: 50px; height: 50px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(56,189,248,.14));
  margin-bottom: 18px;
}
.cat-tile .cat-ico svg { width: 26px; height: 26px; }
.cat-tile h3 { font-size: 18px; font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }
.cat-tile p { font-size: 13.5px; color: var(--ink-400); }
.cat-tile .cat-more { display: inline-block; margin-top: auto; padding-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--blue-500); }
@media (max-width: 980px){ .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Product cards (Products page) ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.prod-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prod-card .pc-top {
  background: #ffffff;
  padding: 16px; display: flex; align-items: center; justify-content: center; min-height: 150px;
}
.prod-card .pc-top svg { width: 92px; height: 92px; }
.prod-card .pc-top img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  display: block;
}
.prod-card .pc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.prod-card h3 { font-size: 17px; font-weight: 700; color: var(--ink-900); margin-bottom: 6px; }
.prod-card .pc-std {
  font-size: 11.5px; font-weight: 700; color: var(--blue-500);
  background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.25);
  border-radius: 999px; padding: 3px 11px; display: inline-block; margin-bottom: 12px; align-self: flex-start;
}
.prod-card p { font-size: 13.5px; color: var(--ink-600); flex: 1; }
.prod-card .pc-link { margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--blue-500); }
@media (max-width: 760px){ .prod-grid { grid-template-columns: 1fr; } }

/* ---------- Company stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-box b { display: block; font-size: 30px; font-weight: 800; color: var(--blue-500); line-height: 1.1; }
.stat-box span { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-400); }
@media (max-width: 860px){ .stat-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- About split ---------- */
.about-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: stretch; }
.about-split.reverse { direction: rtl; }
.about-split.reverse > * { direction: ltr; }
.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
}
.about-visual svg { width: 100%; height: auto; }
.about-visual img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; min-height: 220px;
}
@media (max-width: 900px){ .about-split, .about-split.reverse { grid-template-columns: 1fr; direction: ltr; } }

/* ---------- Photo cards (factory gallery) ---------- */
.photo-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.photo-card img {
  width: 100%; height: 220px; object-fit: cover; display: block;
}
.photo-card p {
  padding: 14px 16px; font-size: 13px; color: var(--ink-500); margin: 0;
}
@media (max-width: 760px){ .photo-card img { height: 180px; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--cyan-400), var(--blue-500));
}
.tl-item { position: relative; padding: 0 0 26px 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -23px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--cyan-400); border: 2px solid var(--navy-900);
}
.tl-item .tl-year { font-weight: 800; color: var(--blue-500); font-size: 15px; }
.tl-item p { font-size: 14px; margin-top: 4px; }

/* ---------- Capability badges ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cap-badge {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.cap-badge .cap-ico {
  width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(56,189,248,.14));
}
.cap-badge .cap-ico svg { width: 26px; height: 26px; }
.cap-badge h4 { font-size: 15px; font-weight: 700; color: var(--ink-900); margin-bottom: 6px; }
.cap-badge p { font-size: 13px; color: var(--ink-400); }
@media (max-width: 860px){ .cap-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Testing instruments list (dark) ---------- */
.test-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.test-item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(56,189,248,.2);
  border-radius: 12px; padding: 18px 20px;
}
.test-item b { color: var(--white); font-size: 14.5px; }
.test-item p { color: #a9bdd6; font-size: 13px; margin-top: 4px; }
@media (max-width: 860px){ .test-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .test-list { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 14px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 24px;
  font-size: 16px; font-weight: 600; color: var(--ink-900); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font);
}
.faq-q .faq-ico { flex: none; width: 22px; height: 22px; position: relative; transition: transform .3s; }
.faq-q .faq-ico::before, .faq-q .faq-ico::after {
  content: ""; position: absolute; background: var(--blue-500); border-radius: 2px;
}
.faq-q .faq-ico::before { left: 4px; right: 4px; top: 10px; height: 2px; }
.faq-q .faq-ico::after { top: 4px; bottom: 4px; left: 10px; width: 2px; transition: opacity .3s; }
.faq-item.open .faq-ico::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 24px 22px; font-size: 14.5px; color: var(--ink-600); }
.faq-item.open .faq-a { max-height: 600px; }

/* ---------- Packaging & shipping grid ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px){ .pkg-grid { grid-template-columns: 1fr; } }

/* ---------- Placeholder / missing-content markers ---------- */
.missing {
  border: 1px dashed #f0a93a; background: #fff8ec; border-radius: 10px;
  padding: 12px 16px; font-size: 13px; color: #8a5a00; margin: 14px 0;
}
.missing b { color: #b45309; }
.todo-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: #b45309;
  background: #fde9c8; border: 1px solid #f0a93a; border-radius: 999px;
  padding: 2px 10px; margin-left: 8px; vertical-align: middle;
}

/* ---------- Real spec summary block (replaces TODO on Products page) ---------- */
.cat-spec {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; margin: 20px 0 4px; box-shadow: var(--shadow-sm);
}
.cat-spec h4 { font-size: 14px; font-weight: 700; color: var(--ink-900); margin-bottom: 12px; letter-spacing: .02em; }
.cat-spec ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; }
.cat-spec li { font-size: 13.5px; color: var(--ink-600); padding-left: 16px; position: relative; }
.cat-spec li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-400); }
.cat-spec li b { color: var(--ink-900); }
.cat-spec .hint { font-size: 12.5px; color: var(--ink-400); margin-top: 14px; }
@media (max-width: 760px){ .cat-spec ul { grid-template-columns: 1fr; } }

/* ---------- Cert list (Compliance page) ---------- */
.cert-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.cert-item {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.cert-item b { display: block; color: var(--ink-900); font-size: 14.5px; margin-bottom: 4px; }
.cert-item span { font-size: 12.5px; color: var(--ink-400); }
.cert-item .cn { color: var(--blue-500); font-weight: 600; }
@media (max-width: 860px){ .cert-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px){ .cert-list { grid-template-columns: 1fr; } }

/* ---------- FAQ answer lists & shipping facts (added) ---------- */
.faq-list { margin: 12px 0 2px; padding-left: 20px; color: var(--ink-600); }
.faq-list li { margin: 5px 0; line-height: 1.55; }
.ship-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; }
.ship-fact { background: rgba(255,255,255,.04); border: 1px solid rgba(56,189,248,.20); border-radius: 12px; padding: 14px 16px; }
.ship-fact b { display: block; color: var(--cyan-300); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }
.ship-fact span { color: rgba(226,240,255,.85); font-size: 13.5px; }

/* ---------- Where we ship — global SVG map ---------- */
.ship-map {
  position: relative;
  margin-top: 44px;
  padding: 26px 26px 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(37, 99, 235, 0.32), transparent 55%),
    radial-gradient(100% 120% at 50% 120%, rgba(56, 189, 248, 0.18), transparent 60%),
    linear-gradient(160deg, #0a1c34, #060f1f);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(5, 13, 26, 0.35);
}
.ship-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 82% 30%, rgba(56, 189, 248, 0.12), transparent 70%);
  pointer-events: none;
}
.ship-map svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
}
.ship-map svg image {
  preserveAspectRatio: xMidYMid meet;
}
.ship-map figcaption {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #9fb6d4;
}
.ship-grid path {
  display: none;
}
.ship-arc {
  fill: none;
  stroke: url(#shipArcGrad);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5));
  animation: shipFlow 3s linear infinite;
}
.ship-arcs .ship-arc:nth-child(2) { animation-delay: 0.3s; }
.ship-arcs .ship-arc:nth-child(3) { animation-delay: 0.6s; }
.ship-arcs .ship-arc:nth-child(4) { animation-delay: 0.9s; }
.ship-arcs .ship-arc:nth-child(5) { animation-delay: 1.2s; }
@keyframes shipFlow { to { stroke-dashoffset: -160; } }
.ship-marker {
  fill: #38bdf8;
  stroke: #06121f;
  stroke-width: 2;
}
.ship-marker.origin {
  fill: #7dd3fc;
  r: 7;
  filter: url(#shipGlow);
}
.ship-pulse {
  fill: none;
  stroke: #7dd3fc;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: shipPulse 2.6s ease-out infinite;
}
@keyframes shipPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3.4); opacity: 0; }
}
.ship-label {
  font-size: 12px;
  font-weight: 600;
  fill: #cfe2f7;
}
.ship-labels text.origin {
  fill: #ffffff;
  font-weight: 700;
}
@media (max-width: 700px) {
  .ship-map { padding: 14px 12px 10px; }
  .ship-label { font-size: 10px; }
}

/* ---------- Global shipment gallery ---------- */
.ship-gallery {
  margin-top: 58px;
}
.ship-gallery h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
  text-align: center;
}
.ship-gallery > p {
  color: var(--ink-500);
  margin: 0 auto 22px;
  max-width: 640px;
  text-align: center;
}
.ship-grid-4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.ship-grid-4 img {
  width: calc(25% - 10.5px);
  height: 150px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: transform .22s ease, box-shadow .22s ease;
}
.ship-grid-4 img:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(5, 13, 26, .18);
}
@media (max-width: 900px) {
  .ship-grid-4 img { width: calc(50% - 7px); height: 130px; }
}
@media (max-width: 500px) {
  .ship-grid-4 img { width: 100%; height: 170px; }
}

/* ---------- Company video showcase (Home) ---------- */
.video-showcase { background: var(--white); }
.video-frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 8px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  display: block;
}
/* Click-to-play overlay over the whole frame */
.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(11, 22, 47, 0.22);
  cursor: pointer;
  transition: opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.video-frame.playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}
.video-play-icon {
  width: 76px;
  height: 76px;
  padding: 20px;
  box-sizing: border-box;
  fill: #0b162f;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}
.video-overlay:hover .video-play-icon { transform: scale(1.06); }
