/*
Theme Name: Haihan CNC
Theme URI: https://haihancnc.com
Author: Haihan CNC (Dongguan Tangxia Xingyu Hardware Products Factory)
Description: Custom one-page theme for Haihan CNC — precision machining factory. Page text and images are editable in Appearance > Customize; repeating blocks (products, equipment, capability cards, industries, process steps, key facts) are managed as admin post types with unlimited add / remove / reorder.
Version: 1.3.6
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haihan-cnc
Tags: business, industrial, one-page, custom-menu, custom-logo
*/

/* ============================================================
   HaihanMetal — Precision CNC Machining Factory
   One-page B2B prototype · Industrial style
   ============================================================ */

:root {
  --navy-900: #0b1c31;
  --navy-800: #10263f;
  --navy-700: #16324f;
  --navy-600: #1d3f61;
  --steel-500: #5a6f86;
  --steel-400: #8296ab;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-soft-2: #eef1f5;
  --orange: #f97316;
  --orange-dk: #ea580c;
  --gold: #d9a441;
  --text: #1c2733;
  --text-2: #4a5a6b;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(11, 28, 49, 0.07);
  --shadow-md: 0 10px 30px rgba(11, 28, 49, 0.12);
  --font: "Barlow", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto 是必须的 —— 主题的 <img> 都带 width/height 属性（用于预留空间、消除 CLS）。
   若某条规则只写了 width，height 属性就会变成固定高度，把图片拉变形。这一条兜住全局。 */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-900);
  color: #c8d4e2;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 16px;
}
.topbar a { color: #c8d4e2; }
.topbar a:hover { color: #fff; }
.topbar-group { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tag {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { line-height: 1.15; }
.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--navy-800);
}
.brand-name span { color: var(--orange); }
.brand-sub {
  font-size: 11px;
  color: var(--steel-500);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 13px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--navy-800); background: var(--bg-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.32);
}
.btn-primary:hover { background: var(--orange-dk); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline {
  background: #fff;
  color: var(--navy-800);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--navy-600); }
.header .btn-primary { padding: 10px 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--navy-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: #0b1c31;
  padding: 110px 0 0;
  overflow: hidden;
}
/* LCP element: a real <img> so it can be preloaded and carries intrinsic dimensions */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(9, 22, 38, 0.94) 0%, rgba(12, 30, 52, 0.82) 46%, rgba(15, 36, 60, 0.45) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.5px;
  max-width: 800px;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero p.lead {
  margin-top: 22px;
  font-size: 18px;
  color: #d7e0ea;
  max-width: 640px;
}
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: #9fb1c4;
}

.hero-stats {
  margin-top: 74px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-stat {
  padding: 26px 10px 30px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-stat:first-child { border-left: none; }
.hero-stat b {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.hero-stat b small { font-size: 0.62em; font-weight: 600; color: var(--gold); }
.hero-stat span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #a9bacb;
}

/* ---------- Section base ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-800);
  letter-spacing: -0.4px;
}
.section-head p { margin-top: 14px; font-size: 16.5px; color: var(--text-2); }

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cap-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.cap-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef3f9, #e2eaf3);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.cap-icon svg { width: 27px; height: 27px; stroke: var(--navy-700); }
.cap-card h3 { font-size: 18.5px; font-weight: 700; color: var(--navy-800); }
.cap-card p { margin-top: 10px; font-size: 14.5px; color: var(--text-2); }
.cap-card .cap-meta {
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--orange-dk);
  text-transform: uppercase;
}

.finish-strip {
  margin-top: 26px;
  background: var(--navy-800);
  border-radius: var(--radius);
  padding: 24px 30px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.finish-strip h4 {
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.finish-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.finish-chips li {
  font-size: 13.5px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------- Equipment ---------- */
.equip-wrap {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 34px;
  align-items: start;
}
.equip-panel {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  position: sticky;
  top: 96px;
}
.equip-panel h3 { font-size: 20px; margin-bottom: 6px; }
.equip-panel .sub { font-size: 13.5px; color: #93a7bb; margin-bottom: 20px; }
.equip-rows { display: grid; gap: 4px; }
.equip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 14.5px;
}
.equip-row:last-of-type { border-bottom: none; }
.equip-row span { color: #c3d0dd; }
.equip-row b { font-size: 17px; color: var(--gold); }
.equip-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.equip-total span { font-size: 13.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #93a7bb; }
.equip-total b { font-size: 30px; color: var(--orange); }

.equip-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.equip-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
}
.equip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.equip-card figure { aspect-ratio: 3 / 2; overflow: hidden; }
.equip-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.equip-card:hover img { transform: scale(1.045); }
.equip-card figcaption { padding: 16px 18px 18px; }
.equip-card figcaption b { display: block; font-size: 15.5px; color: var(--navy-800); }
.equip-card figcaption span { font-size: 13px; color: var(--text-2); }

/* ---------- Materials & Specs ---------- */
.mat-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: stretch; }
.mat-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.mat-block h3 { font-size: 18px; color: var(--navy-800); margin-bottom: 16px; }
.mat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mat-chips li {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 999px;
}
.mat-note { margin-top: auto; padding-top: 20px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.mat-note b { color: var(--navy-800); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
}
.spec-table th { color: var(--text-2); font-weight: 500; width: 46%; }
.spec-table td { font-weight: 600; color: var(--navy-800); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ---------- Products ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.22s, box-shadow 0.22s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prod-card figure { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.prod-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.prod-card:hover img { transform: scale(1.05); }
.prod-card figcaption { padding: 15px 18px 17px; border-top: 1px solid var(--line); }
.prod-card figcaption b { display: block; font-size: 15.5px; color: var(--navy-800); }
.prod-card figcaption span { font-size: 13px; color: var(--text-2); }

/* ---------- Product category gallery (image-led, compact) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-main { aspect-ratio: 1 / 1; overflow: hidden; background: #eef1f5; }
.cat-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cat-card:hover .cat-main img { transform: scale(1.05); }
.cat-info { padding: 16px 18px 14px; }
.cat-info h3 { font-size: 16.5px; font-weight: 700; color: var(--navy-800); line-height: 1.3; }
.cat-info .p-typical { font-size: 12.5px; }
.cat-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.cat-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #eef1f5; display: block; }

@media (max-width: 1020px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ---------- Product tags ---------- */
.p-typical { display: block; font-size: 13px; color: var(--text-2); margin-top: 5px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.p-tags span {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.tag-mat { background: #eef2f7; color: var(--navy-700); border: 1px solid var(--line); }
.tag-ind { background: #fff3e9; color: var(--orange-dk); border: 1px solid #f9d9bd; }

/* ---------- Industries ---------- */
.industries {
  margin-top: 58px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}
.ind-head { margin-bottom: 26px; }
.ind-head h3 { font-size: clamp(22px, 2.6vw, 29px); color: var(--navy-800); letter-spacing: -0.3px; }
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.ind-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.ind-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef3f9, #e2eaf3);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.ind-ico svg { width: 23px; height: 23px; stroke: var(--navy-700); }
.ind-card b { display: block; font-size: 15.5px; color: var(--navy-800); margin-bottom: 6px; }
.ind-card > span:last-child { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.ind-card.ind-ext { background: var(--bg-soft-2); border-style: dashed; }
.ind-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-2);
  background: #fff;
  border-left: 3px solid var(--orange);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  line-height: 1.6;
}
.ind-note b { color: var(--navy-800); }

/* ---------- Fit check ---------- */
.fit-check {
  margin-top: 58px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 40px;
  align-items: start;
}
.fit-head h3 {
  font-size: clamp(22px, 2.6vw, 29px);
  color: var(--navy-800);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.fit-head p { font-size: 15px; color: var(--text-2); }
.fit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.fit-table th, .fit-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.fit-table th { color: var(--text-2); font-weight: 600; width: 38%; background: var(--bg-soft); }
.fit-table td { color: var(--navy-800); font-weight: 500; }
.fit-table tr:last-child th, .fit-table tr:last-child td { border-bottom: none; }
.fit-note {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: var(--text-2);
  font-style: italic;
  margin-top: -14px;
}

@media (max-width: 1020px) {
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .fit-check { grid-template-columns: 1fr; gap: 22px; }
  .fit-note { margin-top: 0; }
}
@media (max-width: 680px) {
  .ind-grid { grid-template-columns: 1fr; }
}

/* ---------- Quality ---------- */
.quality-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: stretch; }
.quality-points { display: grid; gap: 16px; margin-top: 26px; }
.q-point {
  display: flex;
  gap: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px 18px;
}
.q-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}
.q-point b { display: block; font-size: 15.5px; color: var(--navy-800); }
.q-point span { font-size: 13.5px; color: var(--text-2); }
.quality-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  min-height: 400px;
}
.quality-figure img { width: 100%; height: 100%; object-fit: cover; }
.quality-figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 22px 16px;
  background: linear-gradient(transparent, rgba(9, 22, 38, 0.85));
  color: #fff;
  font-size: 13.5px;
}

/* ---------- Certificate strip ---------- */
.cert-strip {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
}
.cert-thumb {
  max-width: 250px;
  aspect-ratio: 210 / 297;  /* A4 竖版：证书永远是这个形状，比例写死就不会被上传图撑变形 */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #f6f8fb;
}
/* 用 contain 而不是 cover：证书不能被裁切。无论上传竖版还是横版，
   都在这个框里等比缩放居中，绝不会撑动页面布局。 */
.cert-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cert-info h3 {
  font-size: 21px;
  color: var(--navy-800);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.cert-list { display: grid; gap: 6px; margin-bottom: 18px; }
.cert-list li { font-size: 14.5px; color: var(--text-2); }
.cert-list b { color: var(--navy-800); }
.cert-info .section-kicker { margin-bottom: 8px; }

@media (max-width: 1020px) {
  .cert-strip { grid-template-columns: 190px 1fr; gap: 22px; }
}
@media (max-width: 680px) {
  .cert-strip { grid-template-columns: 1fr; padding: 22px 20px; }
  .cert-thumb { max-width: 240px; }
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  /* auto-fit so the step count can change in the admin without breaking the row:
     6 steps render as 6 equal columns exactly as before, 7+ adapt automatically. */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  counter-reset: step;
}
.p-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 14px 18px;
  text-align: center;
  position: relative;
  counter-increment: step;
  transition: transform 0.2s, box-shadow 0.2s;
}
.p-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.p-step::before {
  content: "0" counter(step);
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.p-step b { display: block; font-size: 14.5px; color: var(--navy-800); line-height: 1.3; }
.p-step span { display: block; margin-top: 6px; font-size: 12px; color: var(--text-2); line-height: 1.45; }

/* ---------- About ---------- */
.about-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.fact {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.fact b { display: block; font-size: 24px; color: var(--navy-800); letter-spacing: -0.5px; }
.fact span { font-size: 13px; color: var(--text-2); }

/* ---------- RFQ / Contact ---------- */
.rfq-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; align-items: start; }
.rfq-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy-800); }
.field label .req { color: var(--orange); }
.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy-600); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.file-drop {
  border: 1.5px dashed var(--steel-400);
  border-radius: 9px;
  background: var(--bg-soft);
  padding: 22px;
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-drop:hover { border-color: var(--navy-600); background: #fff; }
.file-drop b { color: var(--navy-700); }
.form-note { font-size: 12.5px; color: var(--text-2); margin-top: 12px; }
.rfq-form .btn-primary { width: 100%; margin-top: 20px; }

.contact-card {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 30px;
  position: sticky;
  top: 96px;
}
.contact-card h3 { font-size: 20px; margin-bottom: 6px; }
.contact-card .sub { color: #93a7bb; font-size: 13.5px; margin-bottom: 22px; }
.c-row {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14.5px;
  align-items: flex-start;
}
.c-row:last-child { border-bottom: none; }
.c-row svg { width: 20px; height: 20px; stroke: var(--gold); flex-shrink: 0; margin-top: 2px; }
.c-row b { display: block; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: #93a7bb; margin-bottom: 2px; }
.c-row a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #9db0c3; padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: #7e93a9; }
.footer p { font-size: 14px; margin-top: 14px; max-width: 340px; }
.footer h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul li { margin-bottom: 9px; font-size: 14px; }
.footer ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 28px;
    gap: 6px;
    box-shadow: var(--shadow-md);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 17px; padding: 12px 10px; width: 100%; }
  .nav-toggle { display: block; position: relative; z-index: 101; }
  .header .btn-primary { display: none; }

  .cap-grid { grid-template-columns: 1fr 1fr; }
  .equip-wrap, .mat-wrap, .quality-wrap, .about-wrap, .rfq-wrap { grid-template-columns: 1fr; }
  .equip-panel, .contact-card { position: static; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 80px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(3) { border-left: none; }
  .hero-stat { border-top: 1px solid rgba(255,255,255,0.16); }
  .hero-stat:nth-child(-n+2) { border-top: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .equip-cards { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .rfq-form { padding: 24px 20px; }
  .topbar .container { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}


/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: start;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 6px 18px rgba(11, 28, 49, 0.07);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 30px 17px 0;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--navy-800);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.22s ease;
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-answer { padding: 0 0 18px; }
.faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-2);
}

@media (max-width: 820px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ---------- WordPress specific ---------- */
.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}
img.wp-post-image { max-width: 100%; height: auto; }

/* Custom logo support */
.brand-custom-logo img { max-height: 46px; width: auto; display: block; }

/* Fallback when a Customizer image is not set */
.cat-main.no-img, .cat-thumbs img.no-img { background: #e9edf2; }


/* ---------- WordPress nav compatibility ---------- */
.nav li { list-style: none; margin: 0; padding: 0; }

/* ---------- Generic pages ---------- */
.page-section { padding-top: 56px; }
.page-title { font-size: clamp(28px, 3.6vw, 42px); color: var(--navy-800); letter-spacing: -0.4px; line-height: 1.2; }
.page-content { max-width: 860px; font-size: 16.5px; color: var(--text-2); line-height: 1.75; }
.page-content h2 { font-size: 26px; color: var(--navy-800); margin: 32px 0 12px; }
.page-content h3 { font-size: 20px; color: var(--navy-800); margin: 26px 0 10px; }
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { margin: 0 0 16px 22px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--orange-dk); }
.page-content img { border-radius: 10px; height: auto; max-width: 100%; }

/* ---------- Footer menu ---------- */
.footer-menu { list-style: none; padding: 0; }
.footer-menu li { margin-bottom: 9px; font-size: 14px; }
.footer-menu a { color: inherit; text-decoration: none; }
.footer-menu a:hover { color: var(--gold); }

/* ---------- RFQ feedback ---------- */
.form-success { background: #e8f6ec; border: 1px solid #bfe3c9; color: #1e6b36; padding: 16px 18px; border-radius: 10px; margin-bottom: 18px; }
.form-error { background: #fdecec; border: 1px solid #f5c2c2; color: #a52222; padding: 16px 18px; border-radius: 10px; margin-bottom: 18px; }

@media (max-width: 1020px) {
  .nav li { width: 100%; }
}
