﻿/*
Theme Name: Dawei Precision (Blocksy child)
Template: blocksy
Description: Industrial design skin for the Dawei precision-components catalogue.
Version: 1.0.0
*/

:root {
  --dw-ink: #0e1116;
  --dw-panel: #151a21;
  --dw-line: #242b34;
  --dw-text: #e9edf2;
  --dw-muted: #98a2ae;
  --dw-accent: #ff6a1a;
  --dw-paper: #ffffff;
  --dw-soft: #f4f5f7;
  --dw-border: #e5e8ee;
  --dw-body: #12161c;
  --dw-body-muted: #5d6874;
}

body.dw {
  margin: 0;
  background: var(--dw-paper);
  color: var(--dw-body);
  font-family: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.dw h1, body.dw h2, body.dw h3, body.dw h4,
body.dw .cond {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0;
}

body.dw img { max-width: 100%; height: auto; }

.dw-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- top bar ---------- */
.dw-topbar { border-bottom: 1px solid var(--dw-line); font-size: 12.5px; color: var(--dw-muted); background: var(--dw-ink); }
.dw-topbar .dw-wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.dw-topbar b { color: #cfd6de; font-weight: 500; }

/* ---------- header ---------- */
.dw-header { position: sticky; top: 0; z-index: 50; background: rgba(14,17,22,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--dw-line); }
.dw-header .dw-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.dw-topbar a { color: #cfd6de; text-decoration: none; }
.dw-topbar a:hover { color: #fff; }
.dw-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.dw-mark { width: 34px; height: 34px; background: var(--dw-accent); display: grid; place-items: center; font: 700 18px/1 "Barlow Condensed", sans-serif; color: #0e1116; }
.dw-logo-img { display: block; height: 46px; width: auto; max-width: 260px; object-fit: contain; }
.dw-logo span { display: block; font: 600 20px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; color: #fff; }
.dw-logo small { display: block; font: 400 10px/1 Inter, sans-serif; color: var(--dw-muted); letter-spacing: .22em; margin-top: 5px; }
.dw-nav { display: flex; align-items: center; gap: 24px; }
.dw-nav a { color: #c3cad3; text-decoration: none; font-size: 13.5px; }
.dw-nav a:hover { color: #fff; }
.dw-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--dw-accent); color: #0e1116 !important; text-decoration: none; font: 600 13.5px Inter, sans-serif; padding: 13px 20px; border-radius: 2px; }
.dw-cta.ghost { background: transparent; color: var(--dw-text) !important; border: 1px solid #3a434e; }
.dw-burger { display: none; background: none; border: 1px solid #3a434e; color: #fff; padding: 8px 10px; font-size: 18px; }

/* ---------- hero ---------- */
.dw-hero { position: relative; background: var(--dw-ink); color: var(--dw-text); border-bottom: 1px solid var(--dw-line); overflow: hidden; }
.dw-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.dw-kicker { display: inline-flex; align-items: center; gap: 9px; font: 600 11.5px Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--dw-accent); margin-bottom: 20px; }
.dw-kicker:before { content: ''; width: 26px; height: 2px; background: var(--dw-accent); }
.dw-hero h1 { font-size: 58px; line-height: 1.02; letter-spacing: -.01em; color: #fff; }
.dw-hero p { color: #b9c1cb; font-size: 16px; line-height: 1.65; margin: 22px 0 30px; max-width: 52ch; }
.dw-hero-media { background: #f7f8f9; border: 1px solid var(--dw-line); padding: 18px; }
.dw-hero-media img { display: block; width: 100%; height: 420px; object-fit: contain; }

.dw-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--dw-line); }
.dw-kpi { padding: 22px 0 24px; border-right: 1px solid var(--dw-line); }
.dw-kpi:last-child { border-right: 0; }
.dw-kpi b { display: block; font: 600 30px/1 "Barlow Condensed", sans-serif; color: #fff; }
.dw-kpi span { display: block; margin-top: 7px; font-size: 12.5px; color: var(--dw-muted); line-height: 1.45; padding-right: 14px; }

/* ---------- sections ---------- */
.dw-section { padding: 76px 0; }
.dw-section.soft { background: var(--dw-soft); }
.dw-section.dark { background: var(--dw-ink); color: var(--dw-text); }
.dw-section.dark h2, .dw-section.dark h3 { color: #fff; }
.dw-section.dark p { color: #b9c1cb; }
.dw-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 38px; }
.dw-section-head h2 { font-size: 40px; }
.dw-section-head p { color: var(--dw-body-muted); font-size: 14px; max-width: 42ch; margin: 0; }
.dw-section.dark .dw-section-head p { color: var(--dw-muted); }

.dw-caps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--dw-border); border: 1px solid var(--dw-border); }
.dw-cap { background: #fff; padding: 22px 20px; }
.dw-cap b { display: block; font: 600 15px/1.3 Inter, sans-serif; margin-bottom: 6px; }
.dw-cap span { font-size: 12px; color: var(--dw-body-muted); line-height: 1.55; }

.dw-fams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dw-fam { position: relative; border: 1px solid var(--dw-border); background: #fff; padding: 26px; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; }
.dw-fam:before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--dw-accent); opacity: 0; transition: .2s; }
.dw-fam:hover:before { opacity: 1; }
.dw-fam em { font: 600 11px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--dw-accent); font-style: normal; }
.dw-fam h3 { font-size: 26px; margin: 10px 0 8px; color: var(--dw-body); }
.dw-fam p { font-size: 13px; color: var(--dw-body-muted); line-height: 1.6; margin: 0; }

/* ---------- product grid ---------- */
.dw-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.dw-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.dw-card { border: 1px solid var(--dw-border); background: #fff; display: flex; flex-direction: column; text-decoration: none; }
.dw-card img { width: 100%; height: 210px; object-fit: contain; padding: 16px; background: #fff; border-bottom: 1px solid var(--dw-border); }
.dw-card .body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dw-card em { font: 600 10.5px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a94a1; font-style: normal; }
.dw-card h3 { font-size: 19px; color: var(--dw-body); line-height: 1.25; }
.dw-card .spec { font-size: 12px; color: var(--dw-body-muted); }
.dw-card .more { margin-top: auto; padding-top: 14px; font: 600 12px Inter, sans-serif; color: #c2410c; }
.dw-empty { padding: 40px; border: 1px dashed var(--dw-border); color: var(--dw-body-muted); }

/* ---------- process ---------- */
.dw-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--dw-line); border: 1px solid var(--dw-line); }
.dw-step { background: var(--dw-panel); padding: 26px; }
.dw-step b { font: 600 42px/1 "Barlow Condensed", sans-serif; color: #2e3742; }
.dw-step h3 { font-size: 17px; margin: 14px 0 6px; color: #fff; }
.dw-step p { font-size: 12.5px; color: var(--dw-muted); line-height: 1.6; margin: 0; }

/* ---------- split / badges ---------- */
.dw-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.dw-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dw-badge { border: 1px solid #c9ced6; padding: 9px 12px; font-size: 11.5px; color: #3d4652; letter-spacing: .04em; }
.dw-section.dark .dw-badge { border-color: #333c47; color: #c9d1da; }
.dw-check { margin: 18px 0 0; padding-left: 18px; color: var(--dw-body-muted); font-size: 14px; line-height: 2; }

/* ---------- CTA ---------- */
.dw-cta-band { background: var(--dw-accent); color: #0e1116; padding: 52px 0; }
.dw-cta-band h2 { font-size: 40px; max-width: 22ch; color: #0e1116; }
.dw-cta-band p { margin: 12px 0 26px; font-size: 15px; max-width: 58ch; color: #2b1a0d; }
.dw-cta-band .dw-cta { background: #0e1116; color: #fff !important; }

/* ---------- workshop / equipment ---------- */
.dw-equip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dw-equip-item { position: relative; margin: 0; overflow: hidden; border: 1px solid #232b35; background: #000; }
.dw-equip-item img { display: block; width: 100%; height: 190px; object-fit: cover; opacity: .92; transition: transform .4s ease, opacity .3s; }
.dw-equip-item:hover img { transform: scale(1.03); opacity: 1; }
.dw-equip-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 16px; background: linear-gradient(transparent, rgba(6,9,13,.94)); }
.dw-equip-item b { display: block; font: 600 17px/1.2 "Barlow Condensed", sans-serif; color: #fff; letter-spacing: .02em; }
.dw-equip-item span { display: block; margin-top: 5px; font-size: 11.5px; line-height: 1.45; color: #aeb7c2; }
.dw-equip-item.big { grid-column: span 2; grid-row: span 2; }
.dw-equip-item.big img { height: 100%; min-height: 392px; }
.dw-equip-item.big b { font-size: 24px; }
.dw-equip-item.big span { font-size: 12.5px; max-width: 34ch; }

/* ---------- about: intro, timeline, galleries ---------- */
.dw-lead { font-size: 17.5px; line-height: 1.7; color: #2f3944; max-width: 74ch; }
.dw-h2 { font-size: 30px; margin: 40px 0 12px; }
.dw-about-hero { margin: 30px 0 8px; }
.dw-about-hero img { display: block; width: 100%; height: 380px; object-fit: cover; border: 1px solid var(--dw-border); }
.dw-kpis-light { margin: 30px 0 6px; border-top: 1px solid var(--dw-border); border-bottom: 1px solid var(--dw-border); }
.dw-kpis-light .dw-kpi { border-color: var(--dw-border); padding: 18px 0; }
.dw-kpis-light .dw-kpi b { color: var(--dw-ink); font-size: 28px; }
.dw-kpis-light .dw-kpi span { color: var(--dw-body-muted); }

.dw-timeline { display: flex; flex-direction: column; }
.dw-tl-row { display: grid; grid-template-columns: 1.05fr .95fr; border: 1px solid var(--dw-border); border-bottom: 0; background: #fff; }
.dw-tl-row:last-child { border-bottom: 1px solid var(--dw-border); }
.dw-tl-img img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.dw-tl-txt { padding: 30px 36px; display: flex; flex-direction: column; justify-content: center; }
.dw-tl-num { font: 600 40px/1 "Barlow Condensed", sans-serif; color: #d7dce3; }
.dw-tl-txt h3 { font-size: 24px; margin: 8px 0 8px; }
.dw-tl-txt p { font-size: 13.5px; line-height: 1.65; color: var(--dw-body-muted); margin: 0; max-width: 42ch; }
.dw-tl-row.rev .dw-tl-img { order: 2; }
.dw-tl-row.rev .dw-tl-txt { order: 1; }

.dw-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dw-photos img { display: block; width: 100%; height: 200px; object-fit: cover; border: 1px solid var(--dw-border); }

.dw-lab { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.dw-lab-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dw-lab-imgs img { display: block; width: 100%; height: 240px; object-fit: cover; border: 1px solid var(--dw-border); }

.dw-certs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.dw-certs figure { margin: 0; }
.dw-certs img { display: block; width: 100%; aspect-ratio: 805 / 1088; object-fit: cover; border: 1px solid var(--dw-border); transition: transform .25s, box-shadow .25s; }
.dw-certs figure:hover img { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,20,28,.14); }
.dw-certs figcaption { margin-top: 8px; font-size: 10.5px; line-height: 1.4; color: var(--dw-body-muted); }

/* ---------- footer ---------- */
.dw-footer { background: #0a0d11; border-top: 1px solid var(--dw-line); padding: 46px 0 30px; font-size: 13px; color: var(--dw-muted); }
.dw-fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.dw-footer h4 { font: 600 12px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #cfd6de; margin: 0 0 14px; }
.dw-footer a { color: #aeb7c2; text-decoration: none; display: block; margin-bottom: 9px; }
.dw-footer a:hover { color: #fff; }
.dw-legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid #1b2129; display: flex; justify-content: space-between; gap: 16px; font-size: 11.5px; color: #6f7985; }

/* ---------- page body ---------- */
.dw-main { min-height: 40vh; }
.dw-prose { max-width: 860px; margin: 0 auto; padding: 64px 0; }
.dw-prose h1 { font-size: 44px; margin-bottom: 18px; }
.dw-prose h2 { font-size: 30px; margin: 42px 0 14px; }
.dw-prose h3 { font-size: 20px; margin: 30px 0 10px; }
.dw-prose p, .dw-prose li { font-size: 15.5px; line-height: 1.75; color: #2b333d; }
.dw-prose a { color: #c2410c; }

/* ACF / spec table inside product content */
.dw-prose table, .dw-spec-table { width: 100%; border-collapse: collapse; margin: 22px 0 30px; font-size: 14px; }
.dw-prose table th, .dw-prose table td, .dw-spec-table td { border-bottom: 1px solid var(--dw-border); padding: 12px 10px; text-align: left; vertical-align: top; }
.dw-prose table td:first-child, .dw-spec-table td:first-child { width: 32%; color: var(--dw-body-muted); font-weight: 500; }
.dw-prose figure { margin: 26px 0; }
.dw-prose figcaption { font-size: 12px; color: var(--dw-body-muted); }

/* ---------- product page ---------- */
.dw-product { padding: 46px 0 70px; }
.dw-breadcrumb { font-size: 12px; color: var(--dw-body-muted); margin-bottom: 22px; }
.dw-breadcrumb a { text-decoration: none; color: var(--dw-body-muted); }
.dw-breadcrumb span { margin: 0 8px; color: #b6bec8; }
.dw-product-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: start; }
.dw-product-media { background: #f7f8f9; border: 1px solid var(--dw-border); padding: 24px; }
.dw-product-media img { display: block; width: 100%; height: auto; max-height: 480px; object-fit: contain; }
.dw-product h1 { font-size: 42px; line-height: 1.06; margin: 10px 0 14px; }
.dw-product .intro { font-size: 15.5px; line-height: 1.7; color: #3a444f; }
.dw-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.dw-chip { border: 1px solid var(--dw-border); background: #fff; padding: 6px 10px; font-size: 11.5px; color: #46505c; letter-spacing: .03em; }
.dw-key-specs { margin: 22px 0; border-top: 1px solid var(--dw-border); }
.dw-key-specs div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--dw-border); font-size: 13.5px; }
.dw-key-specs dt { color: var(--dw-body-muted); margin: 0; }
.dw-key-specs dd { margin: 0; text-align: right; font-weight: 500; }
.dw-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.dw-related { border-top: 1px solid var(--dw-border); background: var(--dw-soft); padding: 64px 0; }
.dw-related h2 { font-size: 32px; margin-bottom: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .dw-hero-grid, .dw-product-grid, .dw-split { grid-template-columns: 1fr; gap: 34px; }
  .dw-hero h1 { font-size: 44px; }
  .dw-caps { grid-template-columns: repeat(2, 1fr); }
  .dw-grid, .dw-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .dw-fams { grid-template-columns: 1fr; }
  .dw-process { grid-template-columns: repeat(2, 1fr); }
  .dw-fgrid { grid-template-columns: 1fr 1fr; }
  .dw-kpis { grid-template-columns: repeat(2, 1fr); }
  .dw-kpi:nth-child(2) { border-right: 0; }
  .dw-equip { grid-template-columns: repeat(2, 1fr); }
  .dw-equip-item.big { grid-column: span 2; grid-row: auto; }
  .dw-equip-item.big img { height: 240px; min-height: 0; }
  .dw-tl-row, .dw-lab { grid-template-columns: 1fr; }
  .dw-tl-row.rev .dw-tl-img { order: 0; }
  .dw-tl-img img { min-height: 0; height: 240px; }
  .dw-photos { grid-template-columns: repeat(2, 1fr); }
  .dw-certs { grid-template-columns: repeat(3, 1fr); }
  .dw-about-hero img { height: 240px; }
}
@media (max-width: 700px) {
  .dw-header .dw-wrap { height: 64px; }
  .dw-nav { display: none; }
  .dw-nav.open { display: flex; position: absolute; left: 0; right: 0; top: 64px; background: #0e1116; flex-direction: column; align-items: flex-start; padding: 20px 28px; gap: 14px; border-bottom: 1px solid var(--dw-line); }
  .dw-burger { display: inline-block; }
  .dw-hero-grid { padding-top: 44px; padding-bottom: 44px; }
  .dw-hero h1 { font-size: 34px; }
  .dw-hero-media img { height: 280px; }
  .dw-kpis, .dw-caps, .dw-grid, .dw-grid.cols-3, .dw-process, .dw-fgrid { grid-template-columns: 1fr; }
  .dw-kpi { border-right: 0; border-bottom: 1px solid var(--dw-line); padding: 16px 0; }
  .dw-section { padding: 48px 0; }
  .dw-section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dw-section-head h2, .dw-cta-band h2 { font-size: 30px; }
  .dw-product h1 { font-size: 30px; }
}

