/* ============================================================
   Export site template — stylesheet
   Swap the four brand values in :root to re-skin for a new factory.
   ============================================================ */

:root {
  --ink: #241c14;          /* walnut: headings and body text */
  --ink-soft: #5c5247;     /* secondary text */
  --paper: #ffffff;        /* page background */
  --linen: #efede6;        /* panel background */
  --rule: #d9d3c8;         /* borders and table lines */
  --forest: #1f5a3c;       /* accent: buttons, links, trust marks */
  --forest-deep: #164530;  /* hover */
  --wood: #a86b3c;         /* used only on product swatches */
  --focus: #e0a526;        /* keyboard focus ring */

  --font: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --radius: 3px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: clamp(30px, 4.5vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; max-width: var(--measure); }
p.lede { font-size: 20px; color: var(--ink-soft); }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Layout ---------- */
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(40px, 7vw, 88px); }
.section + .section { border-top: 1px solid var(--rule); }
.section.tint { background: var(--linen); border-top: 0; }

.cols { display: grid; gap: 32px; }
@media (min-width: 820px) {
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-hero { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 18px; }
.brand-mark {
  width: 30px; height: 30px; background: var(--forest); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; border-radius: var(--radius);
}
.brand small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-soft); line-height: 1.1; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; font-size: 15px; border-radius: var(--radius); }
.nav a:hover { background: var(--linen); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--forest); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 8px 12px; font: inherit; cursor: pointer; color: var(--ink);
}
@media (max-width: 819px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; background: var(--paper);
    border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--forest); color: #fff; border: 0;
  padding: 12px 20px; font: inherit; font-weight: 600; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--forest-deep); color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.secondary:hover { background: var(--linen); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 72px); }
.hero h1 { max-width: 18ch; }
.hero .lede { max-width: 48ch; }

/* The spec sheet: the one place the page spends its boldness */
.spec {
  border: 1px solid var(--ink);
  background: var(--paper);
}
.spec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 16px; border-bottom: 1px solid var(--ink);
  font-size: 14px; color: var(--ink-soft);
}
.spec-head strong { color: var(--ink); font-size: 15px; }
.spec dl { margin: 0; display: grid; grid-template-columns: 1fr; }
.spec .row {
  display: grid; grid-template-columns: 140px 1fr; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--rule);
}
.spec .row:last-child { border-bottom: 0; }
.spec dt { color: var(--ink-soft); font-size: 14px; padding-top: 2px; }
.spec dd { margin: 0; font-weight: 500; }
.spec dd small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.spec-foot { padding: 12px 16px; border-top: 1px solid var(--ink); background: var(--linen); font-size: 14px; }
.spec-foot a { font-weight: 600; }

/* ---------- Figures ---------- */
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.photo { background: var(--linen); border: 1px solid var(--rule); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo.wide { aspect-ratio: 16 / 9; }

/* ---------- Product list ---------- */
.products { display: grid; gap: 24px; }
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product { border-top: 2px solid var(--ink); padding-top: 14px; }
.product img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid var(--rule); margin-bottom: 12px; }
.product h3 { margin-bottom: 4px; font-size: 18px; }
.product .facts { margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-soft); }
.product .facts li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--rule); }
.product .facts li span:last-child { color: var(--ink); text-align: right; }
.product .rfq { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15px; }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.swatch i { width: 14px; height: 14px; border-radius: 2px; display: inline-block; border: 1px solid rgba(0,0,0,.15); }

/* ---------- Tables (certifications, capacity) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; border-bottom: 2px solid var(--ink); white-space: nowrap; }
td.ok { color: var(--forest); font-weight: 600; }
tr:hover td { background: var(--linen); }

/* ---------- Steps (a true sequence, so numbered) ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-left: 2px solid var(--forest); padding-left: 14px; }
.steps li::before { content: counter(step); display: block; font-weight: 600; color: var(--forest); margin-bottom: 4px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- Contact / RFQ form ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-card { background: var(--linen); padding: 24px; align-self: start; }
.contact-card h3 { margin-top: 0; }
.contact-card p { margin-bottom: 12px; }
.contact-card .channels { list-style: none; padding: 0; margin: 0; }
.contact-card .channels li { padding: 8px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; }
.contact-card .channels li:last-child { border-bottom: 0; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.two { grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field.two { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 15px; }
label small { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  font: inherit; padding: 11px 12px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--forest); outline: 3px solid rgba(31, 90, 60, .25); }
textarea { min-height: 120px; resize: vertical; }
.hint { font-size: 14px; color: var(--ink-soft); margin: 0; }
.form-note { font-size: 14px; color: var(--ink-soft); }
.field.error input, .field.error select, .field.error textarea { border-color: #a63d2f; }
.field .msg { display: none; color: #a63d2f; font-size: 14px; }
.field.error .msg { display: block; }
.hp { position: absolute; left: -9999px; }   /* honeypot for bots */

.form-success { background: var(--linen); border-left: 3px solid var(--forest); padding: 20px; display: none; }
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink); padding-block: 32px; font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 820px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer strong { color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }

/* ---------- Floating contact (mobile buyers) ---------- */
.float-contact {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; flex-direction: column; gap: 8px;
}
.float-contact a {
  background: var(--ink); color: #fff; text-decoration: none; padding: 10px 14px;
  border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.float-contact a.wa { background: #1f7a4d; }
@media (min-width: 820px) { .float-contact { display: none; } }
@media (max-width: 819px) {
  body { padding-bottom: 96px; }
  .spec .row { grid-template-columns: 104px 1fr; }
}

/* ---------- Utilities ---------- */
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 12px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 6px 0 6px 26px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 8px; border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(-45deg); }
