/*
Theme Name: ชุดพนักงาน — Uniform
Theme URI: https://www.ชุดพนักงาน.com/
Author: Nar Garments
Description: ธีม WordPress สำหรับเว็บไซต์ผู้ผลิตชุดยูนิฟอร์มองค์กร แปลงจากโปรโตไทป์ DOMAIN_4 — มีแคตตาล็อกสินค้าแบบค้นหา/จัดเรียงได้ (Custom Post Type), หน้าเกี่ยวกับเรา และหน้าติดต่อขอใบเสนอราคา
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chudpanakngan
Tags: business, corporate, thai, custom-menu, custom-post-type
*/

/* ==========================================================================
   ชุดพนักงาน — Corporate B2B / dense enterprise theme
   Colors declared ONCE in :root, used via var() everywhere (incl. gradients)
   ========================================================================== */
:root {
  --navy: #0f3d6e;
  --navy-dark: #0a2c50;
  --navy-800: #123a63;
  --steel: #79694f;
  --steel-light: #b39c76;
  --line: #e4d5bb;
  --line-strong: #d1bc95;
  --bg: #fffdf8;
  --bg-alt: #f4ebd9;
  --bg-panel: #ecdcc0;
  --ink: #1c2733;
  --ink-soft: #445263;
  --white: #ffffff;
  --accent: #a06a26;
  --ok: #1d7a4d;
  --err: #b42318;
  --radius: 5px;
  --radius-sm: 3px;
  --shadow: 0 1px 2px rgba(15,61,110,.08), 0 1px 3px rgba(15,61,110,.06);
  --shadow-md: 0 2px 8px rgba(15,61,110,.10);
  --wrap: 1180px;
  --font: "IBM Plex Sans Thai", "Segoe UI", "Tahoma", "Leelawadee UI", system-ui, -apple-system, "Noto Sans Thai", sans-serif;
  --grad-navy: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-800) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Focus states -------------------------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Eyebrow kicker ------------------------------------------------------------ */
.eyebrow {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 2px solid var(--accent);
}

/* ==========================================================================
   Two-row header: utility bar + main nav
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line-strong); }

.topbar { background: var(--grad-navy); color: var(--white); font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.topbar-tag { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--steel-light); }
.topbar-links { display: flex; align-items: center; gap: 20px; }
.topbar-links a { color: var(--white); opacity: .9; }
.topbar-links a:hover { opacity: 1; text-decoration: underline; }
.topbar-links .lang { color: var(--steel-light); border-left: 1px solid rgba(255,255,255,.25); padding-left: 20px; }
.topbar-links .lang b { color: var(--white); }

.mainbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  background: var(--grad-navy); color: var(--white); font-size: 18px;
  border-radius: var(--radius-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 18px; color: var(--navy); letter-spacing: -.02em; }
.brand-text small { font-size: 11px; color: var(--steel); letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 9px 14px; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  border-radius: var(--radius-sm); border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-alt); }
.main-nav a.active { color: var(--navy); border-bottom-color: var(--navy); }
.main-nav .btn-quote {
  margin-left: 12px; background: var(--navy); color: var(--white);
  padding: 10px 18px; border-radius: var(--radius-sm); border-bottom: none;
}
.main-nav .btn-quote:hover { background: var(--navy-dark); color: var(--white); }

/* Navbar dropdown (menu items nested under a parent) */
.menu-parent { position: relative; }
.menu-parent > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { font-size: 10px; line-height: 1; transition: transform .18s ease; }
.menu-parent:hover .nav-caret,
.menu-parent:focus-within .nav-caret { transform: rotate(180deg); }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 210px; margin: 0; padding: 6px; list-style: none;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(15,61,110,.14);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.menu-parent:hover > .sub-menu,
.menu-parent:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu li { margin: 0; }
.main-nav .sub-menu a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm);
  border-bottom: none; white-space: nowrap;
}
.main-nav .sub-menu a:hover { background: var(--bg-alt); color: var(--navy); }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 40px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--navy); font-size: 20px; cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: var(--radius-sm); border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ==========================================================================
   Hero — split corporate
   ========================================================================== */
.hero { background: var(--grad-navy); color: var(--white); border-bottom: 3px solid var(--accent); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 62px 0; }
.hero .eyebrow { color: var(--steel-light); border-bottom-color: var(--accent); }
.hero h1 { color: var(--white); font-size: 40px; margin-bottom: 18px; }
.hero-lead { color: rgba(255,255,255,.85); font-size: 16px; max-width: 44ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.hero-facts {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 24px;
}
.hero-facts h2 { color: var(--white); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.18); }
.hero-facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin: 0; }
.hero-facts dt { font-size: 26px; font-weight: 700; color: var(--white); }
.hero-facts dd { margin: 2px 0 0; font-size: 12.5px; color: var(--steel-light); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 32px; max-width: 62ch; }
.section-head h2 { font-size: 26px; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* Page head (interior pages) ------------------------------------------------ */
.page-head { background: var(--bg-panel); border-bottom: 1px solid var(--line-strong); padding: 34px 0; }
.page-head .crumbs { font-size: 12.5px; color: var(--steel); margin-bottom: 8px; }
.page-head .crumbs a { color: var(--steel); }
.page-head h1 { font-size: 30px; margin-bottom: 4px; }
.page-head p { color: var(--ink-soft); margin: 0; }

/* Spec strip (company metrics as a corporate data row) ----------------------- */
.spec-strip { background: var(--navy); border-top: 3px solid var(--accent); border-bottom: 1px solid var(--navy-800); }
.spec-strip-inner { display: flex; align-items: stretch; gap: 0; }
.spec-strip-label {
  flex: none; align-self: center; width: 130px; padding-right: 24px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--steel-light); border-right: 1px solid rgba(255,255,255,.16);
}
.spec-metrics { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); }
.spec-metric {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 26px 28px; border-right: 1px solid rgba(255,255,255,.12);
}
.spec-metric:last-child { border-right: none; }
.spec-metric-val {
  font-size: 32px; font-weight: 700; line-height: 1; color: var(--white);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.spec-metric-val em { font-style: normal; color: var(--accent); }
.spec-metric-unit {
  margin-top: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent);
}
.spec-metric-desc { margin-top: 4px; font-size: 12.5px; color: var(--steel-light); }

/* Capabilities (dense two-column checkmark list) ---------------------------- */
.capabilities {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden;
}
.cap-item {
  position: relative; padding: 20px 24px 20px 52px;
  border-bottom: 1px solid var(--line); background: var(--white);
}
.cap-item:nth-child(odd) { border-right: 1px solid var(--line); }
.cap-item:nth-last-child(-n+2) { border-bottom: none; }
.cap-item::before {
  content: "✓"; position: absolute; left: 22px; top: 20px;
  width: 20px; height: 20px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--white);
  background: var(--navy); border-radius: var(--radius-sm);
}
.cap-item h3 { font-size: 15.5px; margin: 0 0 4px; }
.cap-item p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* Featured products (index) — bordered tabular listing --------------------- */
.spec-list { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.spec-head {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 20px;
  padding: 11px 22px; background: var(--navy); color: var(--white);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.spec-head span:last-child { text-align: right; }
.spec-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--white); }
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-of-type(even) { background: var(--bg-alt); }
.spec-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 5px 8px; text-align: center; background: var(--white); }
.spec-main h3 { font-size: 15.5px; margin: 0 0 2px; }
.spec-main p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.spec-price { font-weight: 700; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.spec-price small { font-weight: 500; color: var(--steel); font-size: 12px; }

/* Certifications strip (bordered credential badges) ------------------------- */
.cert-section { padding-top: 0; }
.cert-strip {
  display: flex; align-items: stretch; gap: 24px; flex-wrap: wrap;
  border: 1px solid var(--line-strong); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 22px 26px; background: var(--bg-alt);
}
.cert-strip-label {
  flex: none; align-self: center;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--steel); line-height: 1.5;
}
.cert-badges { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert-badge {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; background: var(--white);
}
.cert-badge-code {
  flex: none; min-width: 46px; height: 40px; padding: 0 8px; display: grid; place-items: center;
  background: var(--navy); color: var(--white); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.cert-badge-body { display: flex; flex-direction: column; line-height: 1.3; }
.cert-badge-body b { font-size: 13.5px; color: var(--navy); }
.cert-badge-body small { font-size: 11.5px; color: var(--ink-soft); }

/* ==========================================================================
   LIST page — sortable data table
   ========================================================================== */
.table-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.table-search { position: relative; flex: 1 1 300px; max-width: 380px; }
.table-search input {
  width: 100%; padding: 11px 14px 11px 38px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white);
}
.table-search::before { content: "\2315"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--steel); font-size: 18px; }
.table-meta { font-size: 13px; color: var(--steel); }
.table-meta b { color: var(--navy); }

.table-wrap { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow-x: auto; background: var(--white); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.data-table thead th {
  background: var(--navy); color: var(--white); text-align: left; font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; padding: 0; white-space: nowrap;
}
.data-table thead th button.th-sort {
  width: 100%; text-align: inherit; background: transparent; border: none; color: inherit; cursor: pointer;
  font: inherit; padding: 13px 16px; display: flex; align-items: center; gap: 6px; justify-content: space-between;
}
.data-table thead th.num button.th-sort { justify-content: flex-end; flex-direction: row-reverse; }
.data-table thead th button.th-sort:hover { background: var(--navy-dark); }
.th-sort .arrow { font-size: 10px; opacity: .6; }
.data-table thead th[aria-sort="ascending"] .arrow::after { content: "\25B2"; opacity: 1; }
.data-table thead th[aria-sort="descending"] .arrow::after { content: "\25BC"; opacity: 1; }
.data-table thead th[aria-sort="none"] .arrow::after { content: "\21C5"; }
.data-table th.static { padding: 13px 16px; }

.data-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.data-table tbody tr:hover { background: var(--bg-panel); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .col-name { font-weight: 600; color: var(--navy); }
.data-table .col-name small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.data-table .cat-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--steel); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 3px 8px; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .price { font-weight: 700; color: var(--navy); }
.data-table td.action { text-align: right; white-space: nowrap; }
.data-table td.action .btn { margin-left: 6px; }
/* Whole row links to the product detail page (JS-driven, see initProductRows) */
.data-table tbody tr.product-row { cursor: pointer; }
.data-table tbody tr.product-row:hover { background: var(--bg-panel); }
.data-table tbody tr.product-row:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.data-table .col-name-link { color: var(--navy); font-weight: 600; }
.data-table .col-name-link:hover { text-decoration: underline; }

/* Generic clickable box (catalog rows, homepage featured rows, carousel cards) */
.cpn-linkbox { cursor: pointer; }
.cpn-linkbox:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
/* Homepage featured rows */
.spec-row.cpn-linkbox:hover { background: var(--bg-panel); }
.spec-main-link { color: var(--navy); }
.spec-main-link:hover { text-decoration: underline; }
.no-result td { padding: 26px 16px; text-align: center; color: var(--steel); font-size: 14px; }

/* ==========================================================================
   ABOUT page
   ========================================================================== */
.about-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 42px; align-items: start; }
.about-intro p { color: var(--ink-soft); }
.about-figure {
  border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; min-height: 240px;
  background: var(--grad-navy); position: relative;
}
.weave-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 2px, transparent 2px 12px),
                    repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 2px, transparent 2px 12px);
}
.figure-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; color: var(--white); font-size: 12.5px; background: linear-gradient(0deg, rgba(10,44,80,.85), transparent); }

.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert-card { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px; background: var(--white); }
.cert-card .cert-mark { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--bg-panel); color: var(--navy); font-weight: 700; margin-bottom: 12px; border: 1px solid var(--line); }
.cert-card h3 { font-size: 15px; margin: 0 0 4px; }
.cert-card p { font-size: 13px; color: var(--ink-soft); margin: 0; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.process-step { padding: 24px 22px; border-right: 1px solid var(--line); background: var(--white); position: relative; }
.process-step:last-child { border-right: none; }
.process-step::before { counter-increment: step; content: "0" counter(step); font-size: 26px; font-weight: 700; color: var(--line-strong); display: block; margin-bottom: 8px; }
.process-step h3 { font-size: 15px; margin: 0 0 4px; }
.process-step p { font-size: 13px; color: var(--ink-soft); margin: 0; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { border-left: 3px solid var(--navy); padding: 6px 0 6px 20px; }
.value-card h3 { font-size: 16px; margin: 0 0 4px; }
.value-card p { color: var(--ink-soft); margin: 0; font-size: 14px; }

.stat-inline { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 8px; }

/* ==========================================================================
   CONTACT page — 2-column business form + info panel
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: 32px; align-items: start; }
.form-panel { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-panel-head { padding: 20px 26px; border-bottom: 1px solid var(--line); background: var(--bg-alt); border-radius: var(--radius) var(--radius) 0 0; }
.form-panel-head h2 { margin: 0; font-size: 18px; }
.form-panel-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.contact-form { padding: 26px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14px; padding: 10px 12px; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white);
}
.field textarea { resize: vertical; }
.field.error input, .field.error select, .field.error textarea { border-color: var(--err); }
.field .err-msg { font-size: 12px; color: var(--err); display: none; }
.field.error .err-msg { display: block; }
.form-foot { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.form-note { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ok); }
.form-note[hidden] { display: none; }

.info-panel { display: flex; flex-direction: column; gap: 20px; }
.info-card { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.info-card h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0; padding: 16px 20px; background: var(--navy); color: var(--white); }
.info-list { list-style: none; margin: 0; padding: 8px 20px; }
.info-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--steel); font-weight: 700; margin-bottom: 3px; }
.info-list span { color: var(--ink); font-size: 14px; }
.map-placeholder { height: 180px; background: var(--grad-navy); position: relative; display: grid; place-items: center; color: var(--steel-light); font-size: 13px; }
.map-placeholder::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 28px); }
.map-placeholder span { position: relative; z-index: 1; border: 1px solid rgba(255,255,255,.3); padding: 6px 12px; border-radius: var(--radius-sm); background: rgba(10,44,80,.4); }

/* ==========================================================================
   Footer — enterprise mega-footer (sitemap + legal bar)
   ========================================================================== */
.site-footer { background: var(--navy-dark); color: var(--steel-light); border-top: 3px solid var(--accent); margin-top: 20px; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 2.5fr; gap: 48px;
  padding: 48px 24px 40px;
}
.site-footer h4 { color: var(--white); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.14); }

.footer-brand { max-width: 340px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); margin-bottom: 14px; }
.footer-logo .brand-mark { width: 32px; height: 32px; font-size: 16px; }
.footer-logo b { font-size: 17px; color: var(--white); letter-spacing: -.02em; }
.footer-desc { font-size: 13.5px; margin: 0 0 18px; line-height: 1.7; color: var(--steel-light); }
.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; }
.footer-contact b { color: var(--white); font-weight: 600; margin-right: 4px; }
.footer-contact a { color: var(--steel-light); }
.footer-contact a:hover { color: var(--white); text-decoration: underline; }

.footer-sitemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--steel-light); font-size: 13.5px; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
/* Footer sub-menu (items nested under a parent) — indented child list */
.footer-col .sub-menu { list-style: none; margin: 6px 0 2px; padding: 0 0 0 14px; border-left: 1px solid var(--steel-dark, rgba(255,255,255,.14)); display: flex; flex-direction: column; gap: 7px; }
.footer-col .sub-menu a { font-size: 12.5px; color: var(--steel); }

/* ===== Product carousel (related / recommended on single product) ===== */
.cpn-carousel-section { border-top: 1px solid var(--line); }
.section-head-inline { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cpn-carousel-nav { display: flex; gap: 8px; flex: none; }
.cpn-cbtn {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: var(--white); border: 1px solid var(--line-strong);
  color: var(--navy); font-size: 20px; line-height: 1; display: flex;
  align-items: center; justify-content: center; transition: background .15s ease, color .15s ease;
}
.cpn-cbtn:hover { background: var(--navy); color: var(--white); }

.cpn-carousel { position: relative; }
.cpn-carousel-track {
  list-style: none; margin: 0; padding: 4px; display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cpn-carousel-track::-webkit-scrollbar { display: none; }

.cpn-card {
  flex: 0 0 clamp(220px, 24%, 280px); scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md, 10px); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease;
}
.cpn-card:hover { box-shadow: 0 12px 30px rgba(15,61,110,.12); transform: translateY(-3px); }
.cpn-card-media {
  display: block; aspect-ratio: 4 / 3; background: var(--bg-alt);
  position: relative; overflow: hidden;
}
.cpn-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpn-card-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: .04em; color: var(--navy);
  background: linear-gradient(135deg, var(--bg-alt), #dde6f1);
}
.cpn-card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cpn-card-title { font-size: 15px; line-height: 1.35; margin: 0; }
.cpn-card-title a { color: var(--navy); }
.cpn-card-title a:hover { text-decoration: underline; }
.cpn-card-desc { font-size: 12.5px; color: var(--steel); margin: 0; flex: 1; }
.cpn-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.cpn-card-price { font-weight: 700; color: var(--navy); font-size: 16px; }
.cpn-card-price small { font-weight: 500; color: var(--steel); font-size: 11px; }
@media (max-width: 900px) { .cpn-card { flex-basis: clamp(200px, 42%, 260px); } }
@media (max-width: 560px) { .cpn-card { flex-basis: 78%; } .section-head-inline { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .cpn-carousel-track { scroll-behavior: auto; } }

.footer-legal { border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.18); }
.footer-legal-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 15px 24px; font-size: 12.5px;
}
.footer-copy { color: var(--steel-light); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal-links a { color: var(--steel-light); }
.footer-legal-links a:hover { color: var(--white); text-decoration: underline; }
.footer-lang { color: var(--steel-light); letter-spacing: .04em; }
.footer-lang b { color: var(--white); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .hero h1 { font-size: 32px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: none; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .cert-badges { grid-template-columns: 1fr 1fr; }
  .spec-strip-inner { flex-direction: column; }
  .spec-strip-label { width: auto; align-self: stretch; padding: 16px 28px 0; border-right: none; }
  .spec-metrics { grid-template-columns: 1fr 1fr; }
  .spec-metric:nth-child(2) { border-right: none; }
  .spec-metric:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .about-intro, .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { max-width: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--line-strong); box-shadow: var(--shadow-md); padding: 8px;
  }
  .main-nav.open { display: flex; }
  .site-header .mainbar-inner { position: relative; }
  .main-nav a { padding: 12px 14px; border-radius: var(--radius-sm); border-bottom: 1px solid var(--line); }
  .main-nav a:last-of-type { border-bottom: none; }
  .main-nav a.active { border-bottom-color: var(--line); background: var(--bg-alt); }
  .main-nav .btn-quote { margin: 8px 0 4px; text-align: center; }
  /* On mobile the dropdown becomes a static indented list (no hover). */
  .menu-parent { display: flex; flex-direction: column; }
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; margin: 0; padding: 0 0 0 14px; border: none; box-shadow: none;
    border-bottom: 1px solid var(--line);
  }
  .main-nav .sub-menu a { padding: 10px 14px; color: var(--steel); }
  .nav-caret { display: none; }
  .topbar-tag { display: none; }
  .topbar-inner { justify-content: center; }
  .process-grid, .cert-grid, .values-grid, .stat-inline { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: none; }
  .capabilities { grid-template-columns: 1fr; }
  .cap-item { border-right: none; }
  .cap-item:nth-child(odd) { border-right: none; }
  .cap-item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .cert-strip { flex-direction: column; gap: 16px; }
  .cert-badges { grid-template-columns: 1fr; }
  .footer-sitemap { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .spec-head { display: none; }
  .spec-row { grid-template-columns: 64px 1fr; }
  .spec-price { grid-column: 2; text-align: left; }
}

@media (max-width: 480px) {
  .spec-metrics { grid-template-columns: 1fr; }
  .spec-metric { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .spec-metric:last-child { border-bottom: none; }
  .footer-sitemap { grid-template-columns: 1fr; }
  .footer-legal-inner { justify-content: flex-start; }
  .hero-facts dl { grid-template-columns: 1fr; }
}
