/* ==========================================================================
   Mingsheng Smart Lock — global stylesheet
   Tokens follow the project visual rules (sop/2. 视觉规则.md).
   One heading ink, two body greys, one border colour.
   ========================================================================== */

:root {
  /* Visual scheme A - graphite + deep teal (smart-home hardware palette) */
  --bg: #ffffff;
  --ink: #0B0F14;
  --body: #475467;
  --muted: #667085;
  --brand: #0F766E;
  --brand-dark: #115E59;
  --brand-ink: #0F766E;
  --soft: #ECFDF5;
  --soft-strong: #CCFBF1;
  --border: #E4E7EC;
  --surface: #F7F8FA;
  --dark: #0B0F14;
  --wa: #25D366;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(11, 15, 20, .05), 0 12px 32px rgba(11, 15, 20, .08);
  --font-body: Arial, Helvetica, sans-serif;
  --font-head: Arial, Helvetica, sans-serif;
  --font-btn: var(--font-body);
  --muted-soft: #98A2B3;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
h1 {
  font-size: 36px;
  line-height: 42px;
  font-weight: 700;
}
h2 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.75px;
  margin: 0 0 16px;
}
h3 { font-size: 18px; line-height: 1.25; font-weight: 700; letter-spacing: -0.45px; }
h5 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 8px;
  letter-spacing: 0;
}

h4 { font-size: 16px; line-height: 1.4; font-weight: 700; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 6px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------------------------------------------------------------- top bar */
.topbar { background: var(--dark); color: #fff; font-size: 14px; line-height: 22px; }
.topbar-inner {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px;
}
.topbar p { margin: 0; }
.topbar a { color: #fff; }
.topbar-note { opacity: .82; }
.topbar-contact { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.topbar .sep { opacity: .4; }

/* ---------------------------------------------------------------- header */
.site-header {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--brand); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: -0.4px; }
.brand-text strong { white-space: nowrap; }
.brand { flex: 0 0 auto; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .02em; }

.primary-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-list > li { margin: 0; position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 10px 6px; border-radius: var(--radius);
}
.nav-link.is-active { color: var(--brand-ink); background: var(--soft); }

/* sop/2 section 12: three fixed H1 sets - hero, inner page, category page */
h1.h1-category { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.75px; }
.nav-link:hover { background: var(--soft); color: var(--brand-ink); text-decoration: none; }
.caret { opacity: .5; }
.has-dropdown:hover .caret, .has-dropdown:focus-within .caret { opacity: 1; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 320px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); display: none; z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li { margin: 0; }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
}
.dropdown a:hover { background: var(--soft); text-decoration: none; }
.dd-title { display: block; font-size: 15px; font-weight: 600; }
.dd-desc { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); font-weight: 500; }

.header-cta { display: flex; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer;
  position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius);
  font-family: var(--font-btn); font-size: 15px; font-weight: 600; line-height: 24px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1DA851; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ------------------------------------------------------------ breadcrumb */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0; padding: 10px 0; font-size: 13px; color: var(--muted); font-weight: 500;
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "\203A"; color: #D0D5DD; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* --------------------------------------------------------------- layout */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-soft { background: var(--surface); }
.section-soft-pink { background: var(--soft); }
.section-dark { background: var(--dark); color: rgba(255, 255, 255, .82); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #fff; }
.section-intro { max-width: 760px; font-size: 18px; line-height: 29px; font-weight: 500; margin-bottom: 28px; }
.section-dark .section-intro { color: rgba(255, 255, 255, .78); }
.section > .wrap > h2 { max-width: 820px; }

/* ------------------------------------------------------------------ hero */
.hero { background: var(--dark); color: rgba(255, 255, 255, .82); padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: 36px; line-height: 45px; font-weight: 700; letter-spacing: -0.9px; margin-bottom: 24px; }
.hero-lead { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .82); margin-bottom: 24px; }
.hero-media img { border-radius: var(--radius-lg); background: #fff; }
.trust-strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0;
  font-size: 14px; color: rgba(255, 255, 255, .78);
}
.trust-strip li { margin: 0; display: flex; align-items: center; gap: 7px; }
.trust-strip li::before { content: "\2713"; color: var(--brand); font-weight: 700; }

/* --------------------------------------------------------------- cards */
.card-grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-of-type { margin-bottom: 12px; }
.card-link { font-size: 14px; font-weight: 600; }
.section-dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .16); }
.section-dark .card-link { color: #fff; }

.line-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.line-card {
  display: grid; grid-template-columns: 168px 1fr; gap: 22px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: #fff;
}
.line-card img { width: 100%; }
.line-card h3 { font-size: 22px; }
.line-card .line-meta { font-size: 14px; color: var(--muted); margin-bottom: 12px; }

/* ------------------------------------------------------- product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.product-media { display: block; background: var(--surface); padding: 14px; }
.product-media img { width: 100%; }
.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-ink); margin: 0 0 6px;
}
.product-body h3 { font-size: 17px; margin-bottom: 12px; }
.product-body h3 a { color: var(--ink); }
.product-mini { margin: 0 0 14px; font-size: 13px; }
.product-mini > div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.product-mini dt { color: var(--muted); font-weight: 600; }
.product-mini dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.product-body .card-link { margin-top: auto; }

/* -------------------------------------------------------- product gallery */
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); padding: 14px;
}
.gallery-main img { width: 100%; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery-thumb {
  padding: 6px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; cursor: pointer; line-height: 0;
}
.gallery-thumb img { width: 100%; }
.gallery-thumb:hover { border-color: var(--brand); }
.gallery-thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--soft-strong); }

/* -------------------------------------------------------- price block */
.price-block {
  border: 1px solid var(--border); border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--soft);
  padding: 18px 20px; margin: 0 0 20px;
}
.price-block h3 { margin-bottom: 6px; }
.price-block p:last-child { margin-bottom: 0; }
.availability { font-size: 14px; font-weight: 600; color: var(--brand-ink); margin: 0 0 6px; }

/* ---------------------------------------------------------- catalog modal */
.catalog-modal {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; background: #fff; max-width: 640px; width: 100%;
}
.catalog-modal::backdrop { background: rgba(23, 23, 23, .55); }
.catalog-modal h2 { margin-top: 0; }
#catalog-download {
  border: 1px solid var(--soft-strong); background: var(--soft);
  border-radius: var(--radius-lg); padding: 18px 20px; margin-top: 18px;
}
#catalog-download p:last-child { margin-bottom: 0; }
.modal-close {
  float: right; border: 0; background: transparent; font-size: 22px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 0 4px;
}
.category-browse { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.category-browse article {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; background: #fff;
}
.category-browse h3 { font-size: 16px; margin-bottom: 6px; }
.category-browse p { font-size: 14px; margin-bottom: 8px; }
.category-browse ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.category-browse li { margin: 0 0 4px; }

/* ------------------------------------------------------------ data cards */
.data-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.data-card {
  background: var(--soft); border: 1px solid var(--soft-strong);
  border-radius: var(--radius-lg); padding: 20px;
}
.data-value { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.data-label { font-size: 14px; color: var(--body); margin: 0; }
.section-dark .data-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); }
.section-dark .data-value { color: #fff; }
.section-dark .data-label { color: rgba(255, 255, 255, .72); }

/* --------------------------------------------------------------- tables */
.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.table-hint { display: none; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
@media (max-width: 900px) {
  .table-hint { display: block; }
  .spec-table th { position: sticky; left: 0; z-index: 1; }
}

/* sop/3 section 106: on phones the key specifications must be readable without
   any horizontal scrolling, so each row becomes a stacked label + value block.
   The <table> markup is kept for search engines and AI parsers. */
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.spec-table caption { text-align: left; padding: 14px 18px 0; font-weight: 700; color: var(--ink); }
.spec-table th, .spec-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { text-align: left; width: 34%; font-weight: 600; color: var(--ink); background: var(--surface); }
.spec-table td { color: var(--body); }

/* ------------------------------------------------------------ steps list */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li {
  position: relative; margin: 0; padding: 18px 20px 18px 66px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff;
}
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 20px; top: 18px;
  font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--brand-ink);
  background: var(--soft); border-radius: 999px; padding: 2px 9px;
}
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 15px; }
.steps .step-control {
  margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--brand-ink);
  background: var(--soft); border-radius: var(--radius); padding: 7px 12px;
}
.section-dark .steps .step-control { background: rgba(255, 255, 255, .1); color: #fff; }
.section-dark .steps li { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .16); }

/* ------------------------------------------------------------------ FAQ */
.faq-group {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 24px 0 10px;
}
.faq { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; padding: 20px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-head); font-size: 20px; line-height: 1;
  color: var(--brand); flex: none; margin-top: 2px;
}
.faq[open] summary::after { content: "\2013"; }
.faq summary h3 { font-size: 16px; line-height: 24px; margin: 0; }
.faq-body { padding: 0 20px 20px; background: rgba(248, 250, 252, .5); }
.faq-body > :last-child { margin-bottom: 0; }
.faq-body p { font-size: 16px; line-height: 26px; }
.faq-body ul { font-size: 15px; }

/* ----------------------------------------------------------------- form */
.quote-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; }
.form-note { font-size: 14px; color: var(--muted); margin: 18px 0; }
.field-hint { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.field input[type="file"] { padding: 9px 12px; background: var(--surface); font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.section-dark .quote-form { background: #fff; }
/* Secondary buttons keep dark text on their white background inside dark sections,
   otherwise `.section-dark a { color: #fff }` renders them invisible. */
.section-dark .btn-secondary { background: #fff; color: var(--ink); border-color: transparent; }
.section-dark .btn-secondary:hover { background: #fff; color: var(--brand-dark); border-color: transparent; }

/* --------------------------------------------------------------- verify */
.verify, .mock {
  display: inline-block; background: #fef3c7; color: #92400e;
  border: 1px dashed #f59e0b; border-radius: 4px;
  font-size: 12px; font-weight: 700; line-height: 1.5; padding: 2px 6px;
  max-width: 100%; white-space: normal; overflow-wrap: anywhere;
}
.verify-banner { background: #fffbeb; border-bottom: 1px solid #fde68a; }
.verify-banner p { margin: 0; padding: 10px 0; font-size: 13px; color: #92400e; }

/* -------------------------------------------------------------- notices */
.note {
  border-left: 3px solid var(--brand); background: var(--soft);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 18px; margin: 0 0 20px;
}
.note p:last-child { margin-bottom: 0; }
.note-dark { background: rgba(255, 255, 255, .06); border-left-color: var(--brand); }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.tag-list li {
  margin: 0; font-size: 13px; font-weight: 600; color: var(--brand-ink);
  background: var(--soft); border-radius: 999px; padding: 5px 12px;
}
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; align-items: start; }
.split-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.prose h2 { margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 26px; }
.prose ul, .prose ol { font-size: 16px; line-height: 1.65; }
.meta-line { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.field-hint, .spec-table caption { font-size: 14px; color: var(--muted-soft); }
input::placeholder, textarea::placeholder { color: var(--muted-soft); }
.article-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.article-list li {
  margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; background: #fff;
}
.article-list h3 { margin-bottom: 6px; font-size: 17px; }
.article-list h3 a { color: var(--ink); }
.article-list p { margin: 0; font-size: 15px; }
.article-meta { font-size: 13px; color: var(--muted); margin-top: 8px; }
.inline-cta {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); padding: 22px; margin: 28px 0;
}
.inline-cta h3 { margin-bottom: 6px; }
.inline-cta p { margin-bottom: 14px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; background: #fff; }
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p { margin: 0 0 10px; font-size: 15px; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.anchor-nav a {
  font-size: 14px; font-weight: 600; border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; color: var(--ink); background: #fff;
}
.anchor-nav a:hover { border-color: var(--brand); color: var(--brand-ink); text-decoration: none; }

/* Keep grid children from being widened by wide tables or images. */
.split > *, .split-3 > *, .card-grid > *, .line-cards > *, .product-grid > *,
.data-cards > *, .contact-cards > *, .footer-grid > *, .form-grid > * { min-width: 0; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .72); padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-h {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: #fff; margin: 0 0 14px; letter-spacing: 0;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; font-size: 14px; line-height: 22.75px; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-addr { font-size: 14px; line-height: 1.5; margin: 14px 0; color: rgba(255, 255, 255, .6); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 36px; padding-top: 18px;
}
.footer-bottom p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .6); }
.footer-legal a { color: rgba(255, 255, 255, .6); }

/* ------------------------------------------------------- video teaser */
.video-teaser {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
}
.video-teaser img { width: 100%; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  border-radius: 999px; background: var(--brand); box-shadow: 0 6px 20px rgba(23, 23, 23, .28);
}
.video-play::after {
  content: ""; position: absolute; left: 25px; top: 20px;
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.video-teaser:hover .video-play { background: var(--brand-dark); }
.section-dark .video-teaser { border-color: rgba(255, 255, 255, .18); }

/* ------------------------------------------------------------ site search */
/* Collapsed to an icon so eight nav items, two CTAs and the search can share
   one row at 1440px. The input floats out over the nav without pushing it. */
.site-search {
  position: relative; display: flex; align-items: center; margin-left: auto; flex: 0 0 auto;
}
.site-search button {
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  cursor: pointer; padding: 8px; display: flex; border-radius: var(--radius);
}
.site-search button:hover { color: var(--brand); border-color: var(--brand); }
.site-search input[type="search"] {
  position: absolute; right: 46px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  width: 0; opacity: 0; pointer-events: none;
  padding: 9px 10px; border: 1px solid var(--brand); border-radius: var(--radius);
  background: #fff; z-index: 70;
  transition: width .18s ease, opacity .18s ease;
}
.site-search.is-open input[type="search"] {
  width: 268px; opacity: 1; pointer-events: auto;
}
.site-search input[type="search"]:focus { outline: none; }
.search-results {
  position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-height: 60vh;
  overflow-y: auto; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); z-index: 60; padding: 6px;
}
.search-results a {
  display: block; padding: 9px 12px; border-radius: var(--radius); color: var(--ink);
  text-decoration: none;
}
.search-results a:hover, .search-results a.is-active { background: var(--soft); text-decoration: none; }
.search-results .sr-type {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-ink);
}
.search-results .sr-title { display: block; font-size: 15px; font-weight: 600; }
.search-results .sr-desc { display: block; font-size: 13px; color: var(--muted); }
.search-results .sr-empty { padding: 14px 12px; font-size: 14px; color: var(--muted); }
.search-results .sr-all { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }

/* ------------------------------------------------------- conversion band */
.cta-band { background: var(--dark); color: rgba(255, 255, 255, .82); padding: 40px 0; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 640px; color: rgba(255, 255, 255, .78); }
.cta-band-inner {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta-band-inner .cta-row { margin: 0; }

/* ------------------------------------------------------- cards with icons */
.card-with-icon .card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radius-lg);
  background: var(--soft); color: var(--brand); margin-bottom: 14px;
}
.section-dark .card-with-icon .card-icon { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------------------------------------------------------- search page */
.search-index-group { margin-bottom: 36px; }
.search-index-group h2 { margin-bottom: 12px; }
.search-index-list { list-style: none; padding: 0; margin: 0; }
.search-index-list li {
  margin: 0 0 10px; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: #fff;
}
.search-index-list strong { color: var(--ink); }
.search-index-list span { display: block; font-size: 13px; color: var(--muted); }
.search-page-form { display: flex; gap: 10px; max-width: 520px; margin: 0 0 26px; }
.search-page-form input[type="search"] {
  flex: 1; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
}
.search-page-form input[type="search"]:focus { border-color: var(--brand); outline: none; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1241px) {
  .brand-text strong { white-space: nowrap; }
  .brand { flex: 0 0 auto; }
  .brand-text small { display: none; }
  /* sop/2 section 10: desktop enhancement step */
  .hero h1 { font-size: 48px; line-height: 56px; }
  h1.h1-category { font-size: 34px; line-height: 42px; }
  h2 { font-size: 34px; line-height: 42px; }
}

@media (max-width: 1240px) {
  .header-cta-catalog { display: none; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .split-3, .line-cards { grid-template-columns: 1fr; }
  .cols-3, .cols-4, .data-cards, .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 32px; }
  .header-cta .btn-sm { padding: 9px 12px; }
  .site-search input[type="search"] { right: 0; }
  .site-search.is-open input[type="search"] { width: min(240px, calc(100vw - 150px)); }
  .brand-text small { display: none; }

  .nav-toggle { display: block; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); max-height: 76vh; overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 10px 16px 20px; gap: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 8px; border-radius: 0; }
  .dropdown {
    position: static; display: block; box-shadow: none; border: 0;
    padding: 0 0 8px 10px; min-width: 0;
  }
  .header-inner { position: relative; }
}

@media (max-width: 640px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .section { padding: 40px 0; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 28px; }
  .product-grid, .cols-2, .cols-3, .cols-4, .data-cards, .contact-cards,
  .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .line-card { grid-template-columns: 1fr; }
  .topbar-note { display: none; }
  .footer-bottom { flex-direction: column; }
}

/* Mobile stacked tables must come last so they win on source order. */
@media (max-width: 640px) {
  .table-hint { display: none; }
  .table-scroll { overflow-x: visible; border: 0; }
  .spec-table { border: 0; }
  .spec-table caption { padding: 0 0 10px; text-align: left; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td {
    display: block; width: 100%;
  }
  .spec-table tr {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: #fff; padding: 12px 14px; margin-bottom: 8px;
  }
  .spec-table th, .spec-table td {
    border: 0; padding: 0; position: static; background: none; white-space: normal;
  }
  .spec-table th { font-size: 14px; color: var(--muted-soft); padding-bottom: 4px; }
  .spec-table td { font-size: 15px; }
  .spec-table tr:nth-child(even) { background: #fff; }
}


@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}


/* ---------------------------------------------------------------- quick form
   Three-field high-intent form used on the homepage. It sits on the dark
   band, so the fields need their own contrast rather than the light defaults. */
.form-grid-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.section-dark .quote-form-quick {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
}
.section-dark .quote-form-quick .field label { color: #fff; }
.section-dark .quote-form-quick .field input,
.section-dark .quote-form-quick .field select {
  background: #fff; border-color: transparent; min-height: 48px;
}
.section-dark .quote-form-quick .form-submit { margin-top: 14px; }
.section-dark .quote-form-quick .form-note {
  display: block; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .72);
}
@media (prefers-reduced-motion: reduce) {
  .quote-form-quick .btn:hover { transform: none; }
}


/* Mega-menu columns for the OKKI product classification */
.dropdown { min-width: 260px; }
.dropdown:has(.dd-col) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 22px;
  min-width: 520px;
  padding: 18px 22px;
}
.dd-col { display: block; }
.dd-col-head {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-ink);
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.dd-col-list { list-style: none; margin: 0; padding: 0; }
.dd-col-list a {
  display: block;
  padding: 6px 10px;
  border-radius: calc(var(--radius) - 4px);
  color: var(--body);
  font-size: 14px;
  line-height: 1.35;
}
.dd-col-list a:hover { background: var(--soft); color: var(--brand-ink); }

/* OKKI synced product fields on a model page */
.okki-field-table td:first-child { width: 34%; }
.tag-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
}


/* Product gallery: thumbnails down the left, large image beside them, arrows on
   the large image to step through the set. */
.gallery-v {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 26px;
}
.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 2px;
}
.gallery-thumb {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gallery-thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.gallery-thumb:hover { border-color: var(--brand); }
.gallery-thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--soft-strong);
}
.gallery-main { position: relative; }
.gallery-main img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background-color .15s ease, color .15s ease;
}
.gallery-nav:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
@media (max-width: 640px) {
  .gallery-v { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; max-height: none; overflow-x: auto; }
  .gallery-thumb { flex: 0 0 80px; }
}


/* ------------------------------------------------------- homepage group grid
   One tile per product group, text beside the illustration, three across.
   Layout follows the reference the client supplied. */
.group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 6px;
}
@media (min-width: 700px)  { .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.group-tile {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.group-tile:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.group-tile-text {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.group-tile-text h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.group-tile-text h3 a { color: var(--ink); text-decoration: none; }
.group-tile-text h3 a:hover { color: var(--brand); }
.group-tile-count {
  margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--brand);
}
.group-tile-text p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.group-tile-text .btn { margin-top: auto; align-self: flex-start; }
.group-tile-img {
  display: block; background: var(--surface);
  border-left: 1px solid var(--border);
}
.group-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 460px) {
  .group-tile { grid-template-columns: 1fr; }
  .group-tile-img { border-left: 0; border-top: 1px solid var(--border); order: -1; }
}
