/* =====================================================================
   CSPV — Center Steel & Pipe Valve  ·  theme stylesheet
   Palette  : steel blue / deep blue / valve red / zinc / plate
   Type     : Chakra Petch (display)  ·  IBM Plex Sans Thai (body)
              IBM Plex Mono (spec values)
   ===================================================================== */

:root {
  --blue: #1F4E9C;
  --blue-deep: #10305F;
  --blue-ink: #0B2247;
  --blue-tint: #E4EBF7;
  --red: #D7292B;
  --red-deep: #B31E20;
  --ink: #131C2E;
  --zinc: #6B7688;
  --plate: #EEF1F6;
  --surface: #FFFFFF;
  --line: #D3D9E4;
  --line-strong: #B8C1D0;
  --on-blue: #FFFFFF;
  --on-blue-muted: #B7C6E2;
  --grid-line: rgba(255, 255, 255, 0.06);
  --shadow: 0 10px 30px rgba(16, 48, 95, 0.10);

  --font-display: "Chakra Petch", "Kanit", "Prompt", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", "Menlo", monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;
}

/* Dark palette is opt-in only: add data-theme="dark" on <html> to enable. */
:root[data-theme="dark"] {
  --blue: #5B8BE0;
  --blue-deep: #0E1E3A;
  --blue-ink: #0A1730;
  --blue-tint: #1A2A47;
  --red: #F04B4D;
  --red-deep: #D7292B;
  --ink: #E8EDF6;
  --zinc: #9AA6BC;
  --plate: #0F1726;
  --surface: #172238;
  --line: #2A3752;
  --line-strong: #3A4A6A;
  --on-blue: #FFFFFF;
  --on-blue-muted: #A9B9D6;
  --grid-line: rgba(255, 255, 255, 0.05);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--plate);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; line-height: 1.2; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--blue-ink); color: var(--on-blue-muted);
  font-size: .85rem; font-family: var(--font-mono);
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; min-height: 36px; }
.topbar a { color: #fff; }
.topbar .spacer { flex: 1; }
.topbar .item { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 640px) { .topbar .hide-sm { display: none; } }

/* ---------- header ---------- */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 56px; height: 56px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .7rem; letter-spacing: .1em; color: var(--zinc); margin-top: 3px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav li { position: relative; }
.site-nav a {
  display: block; padding: 10px 14px; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a {
  text-decoration: none; border-bottom-color: var(--red);
}
.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 220px; padding: 6px 0; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.site-nav .sub-menu a { padding: 8px 16px; font-family: var(--font-body); font-weight: 500; font-size: .92rem; border: 0; }
.site-nav .sub-menu a:hover { background: var(--blue-tint); }
.header-cta { flex: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px 10px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav a { border-bottom: 1px solid var(--line); padding: 12px 4px; }
  .site-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding-left: 16px; }
}

/* ---------- hero ---------- */
.hero {
  background: var(--blue-deep); color: var(--on-blue);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--red) 0 33%, #fff 33% 34%, var(--blue) 34%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #FFD3D3; }
.hero .lead { font-size: 1.1rem; color: var(--on-blue-muted); max-width: 34em; margin-bottom: 28px; }
.hero .eyebrow { color: #FFD3D3; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.spec-strip { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); overflow: hidden; }
.spec-strip div { padding: 12px 18px; border-right: 1px solid rgba(255,255,255,.18); flex: 1 1 auto; }
.spec-strip div:last-child { border-right: 0; }
.spec-strip dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-blue-muted); font-family: var(--font-mono); }
.spec-strip dd { margin: 2px 0 0; font-family: var(--font-mono); font-weight: 500; color: #fff; font-size: .98rem; white-space: nowrap; }

.hero-board { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 8px; }
.hero-board figure { margin: 0; background: #fff; border: 2px solid #3E6BB5; border-radius: 3px; aspect-ratio: 1; display: grid; place-items: center; padding: 10px; position: relative; }
.hero-board figure.tall { grid-row: span 2; aspect-ratio: auto; }
.hero-board figure.wide { grid-column: span 2; aspect-ratio: auto; }
.hero-board img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.hero-board figcaption { position: absolute; left: 8px; bottom: 6px; font-family: var(--font-mono); font-size: .68rem; color: #1F4E9C; letter-spacing: .06em; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-board { grid-template-columns: repeat(3, 1fr); }
  .spec-strip dd { white-space: normal; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { color: var(--zinc); max-width: 40em; margin: 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; color: var(--ink); overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-card:hover { text-decoration: none; border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card .thumb { background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cat-card .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.cat-card .thumb.placeholder { background: var(--blue-tint); color: var(--blue); }
.cat-card .thumb.placeholder svg { width: 48px; height: 48px; }
.cat-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cat-card h3 { font-size: 1.05rem; margin: 0; }
.cat-card .sub { color: var(--zinc); font-size: .88rem; margin: 0; }
.cat-card .spec { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: .74rem; color: var(--blue); letter-spacing: .04em; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .cat-card .body { padding: 10px 12px 12px; } }

/* why-us: spec sheet rows */
.sheet { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.sheet-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.sheet-row:last-child { border-bottom: 0; }
.sheet-row .k { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; display: flex; gap: 12px; align-items: flex-start; }
.sheet-row .k svg { width: 26px; height: 26px; flex: none; color: var(--red); }
.sheet-row .v { color: var(--zinc); margin: 0; }
.sheet-row .v strong { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .sheet-row { grid-template-columns: 1fr; gap: 6px; padding: 16px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.brand-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.brand-list span { font-family: var(--font-display); font-weight: 600; font-size: .9rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 14px; color: var(--ink); }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 22px; }
.svc:nth-child(2n) { border-top-color: var(--red); }
.svc svg { width: 34px; height: 34px; color: var(--blue); margin-bottom: 12px; }
.svc h3 { font-size: 1.1rem; margin-bottom: 6px; }
.svc p { color: var(--zinc); font-size: .93rem; margin: 0; }
.svc .mono { display: block; margin-top: 10px; font-size: .74rem; color: var(--blue); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .svc-grid { grid-template-columns: 1fr; } }

/* catalogue band */
.catalogue { background: var(--blue-deep); color: var(--on-blue); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; }
.catalogue .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: clamp(48px, 6vw, 72px); }
.catalogue h2 { color: #fff; }
.catalogue p { color: var(--on-blue-muted); }
.catalogue .eyebrow { color: #FFD3D3; }
.catalogue .pages { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; align-items: end; }
.catalogue .pages img { border: 3px solid #fff; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.catalogue .meta { font-family: var(--font-mono); font-size: .8rem; color: var(--on-blue-muted); margin-top: 14px; }
@media (max-width: 900px) { .catalogue .wrap { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card dl { display: grid; grid-template-columns: 110px 1fr; gap: 12px 18px; margin: 0 0 20px; }
.contact-card dt { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--zinc); padding-top: 4px; }
.contact-card dd { margin: 0; }
.contact-card dd a { font-weight: 600; }
.contact-card .big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 340px; background: var(--blue-tint); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-card dl { grid-template-columns: 1fr; gap: 4px 0; } }

/* quote form */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.form input, .form textarea, .form select {
  font: inherit; color: var(--ink); background: var(--plate); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 12px; width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form textarea { min-height: 120px; font-family: var(--font-mono); font-size: .9rem; }
.form .hint { font-family: var(--font-mono); font-size: .74rem; color: var(--zinc); }
.notice { border-left: 4px solid var(--blue); background: var(--blue-tint); padding: 12px 16px; border-radius: var(--radius); }
.notice.ok { border-color: #2E8B57; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-ink); color: var(--on-blue-muted); margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-name small { color: var(--on-blue-muted); }
.site-footer p { font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 16px; font-family: var(--font-mono); font-size: .76rem; }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* floating LINE / call */
.float-cta { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 60; }
.float-cta a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.float-cta a:hover { text-decoration: none; }
.float-cta .line { background: #06C755; }
.float-cta .call { background: var(--red); }
.float-cta svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 600px) { .float-cta a span { display: none; } .float-cta a { padding: 12px; } }

/* ---------- inner pages ---------- */
.page-hero { background: var(--blue-deep); color: #fff; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; border-bottom: 6px solid var(--red); }
.page-hero .wrap { padding-block: clamp(36px, 5vw, 56px); }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-hero .eyebrow { color: #FFD3D3; }
.page-hero p { color: var(--on-blue-muted); margin: 8px 0 0; max-width: 40em; }
.breadcrumb { font-family: var(--font-mono); font-size: .76rem; color: var(--on-blue-muted); margin-bottom: 10px; }
.breadcrumb a { color: #fff; }

.content { background: var(--surface); }
.content .wrap { padding-block: clamp(36px, 5vw, 64px); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--plate); font-family: var(--font-display); }
.prose blockquote { border-left: 4px solid var(--red); margin: 1.4em 0; padding: 4px 18px; color: var(--zinc); }
.table-wrap { overflow-x: auto; }

/* product archive */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-bar a { font-family: var(--font-display); font-weight: 600; font-size: .9rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 16px; color: var(--ink); }
.filter-bar a:hover, .filter-bar a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; text-decoration: none; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* single product */
.product-single { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-single .gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 24px; min-height: 320px; }
.product-single .gallery img { max-height: 460px; width: auto; object-fit: contain; }
.spec-table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: .95rem; }
.spec-table th { text-align: left; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--zinc); font-weight: 500; width: 36%; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--font-mono); }
@media (max-width: 800px) { .product-single { grid-template-columns: 1fr; } }

/* blog / generic list */
.post-list { display: grid; gap: 24px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.post-card h2 { font-size: 1.3rem; margin: 0 0 6px; }
.post-card .meta { font-family: var(--font-mono); font-size: .74rem; color: var(--zinc); }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 32px; }
.pagination .page-numbers { border: 1px solid var(--line-strong); padding: 6px 12px; border-radius: var(--radius); font-family: var(--font-mono); font-size: .85rem; color: var(--ink); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* WordPress core alignment helpers */
.alignwide { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.alignfull { width: 100%; }
.wp-block-image img { height: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--zinc); }
.sticky { }
.bypostauthor { }

/* ---------- CTA band (home → contact page) ---------- */
.cta-band { background: var(--surface); border-block: 1px solid var(--line); }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; padding-block: clamp(32px, 5vw, 56px); }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: var(--zinc); margin: 0; max-width: 46em; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .phone { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.cta-band .phone svg { width: 20px; height: 20px; fill: var(--red); }
@media (max-width: 800px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- about page ---------- */
.facts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.facts dl { margin: 0; display: grid; grid-template-columns: 180px 1fr; }
.facts dt, .facts dd { padding: 12px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--zinc); background: var(--plate); }
.facts dt:nth-last-of-type(1), .facts dd:last-child { border-bottom: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 18px 20px; }
.stat b { display: block; font-family: var(--font-mono); font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--zinc); }
@media (max-width: 640px) { .facts dl { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 2px; } .stat-row { grid-template-columns: 1fr; } }

/* section link under a teaser grid */
.section-more { margin-top: 28px; display: flex; justify-content: flex-end; }

/* ---------- products page: grouped sections + guide ---------- */
.cat-section { margin-top: 48px; scroll-margin-top: 100px; }
.cat-section:first-of-type { margin-top: 0; }
.cat-section .section-head { margin-bottom: 20px; align-items: center; }
.cat-section .section-head h2 { font-size: 1.5rem; margin: 0; }
.cat-section .count { font-family: var(--font-mono); font-size: .78rem; color: var(--zinc); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.guide-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.ref-table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.ref-table th, .ref-table td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.ref-table thead th { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--zinc); font-weight: 500; background: var(--plate); }
.ref-table td:first-child { font-weight: 600; }
.ref-table.nums td:not(:first-child) { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.guide-note { font-size: .82rem; color: var(--zinc); margin: 12px 0 0; }
.guide-terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.guide-terms div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.guide-terms b { font-family: var(--font-mono); font-weight: 500; color: var(--blue); }
.guide-terms span { color: var(--zinc); }
@media (max-width: 1000px) { .guide-grid { grid-template-columns: 1fr; } .guide-terms { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .guide-terms div { grid-template-columns: 1fr; gap: 2px; } }

/* keep product cards even: clamp long descriptions to 3 lines */
.product-grid .cat-card .sub { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-grid .cat-card h3 { font-size: .98rem; }
