/* ==========================================================
   Industrial catalogue look: paper, ink, copper, wire colours
   ========================================================== */
:root {
  --paper: #F2EFE8;
  --paper-2: #E8E3D8;
  --ink: #16181A;
  --ink-2: #3A3D40;
  --muted: #6B6E70;
  --line: #CFC8B9;
  --copper: #B8642B;
  --copper-2: #8F4A1C;
  --w-red: #C0392B;
  --w-black: #1E1E1E;
  --w-yellow: #E2B714;
  --w-blue: #2C6FB7;
  --w-green: #2E8B57;
  --w-white: #FAFAF7;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1180px;
  --r: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

/* Placeholder marker — visible until real info is filled in */
.ph {
  background: repeating-linear-gradient(-45deg, #FFF3B0 0 8px, #FCEB8C 8px 16px);
  outline: 1px dashed #B08A00;
  color: #4A3A00;
  padding: 0 .3em;
  font-style: normal;
}
p.ph, div.ph { display: block; padding: .6em .8em; }
.ph-note { border-left: 3px solid #B08A00; background: #FFF6C8; padding: .6em .9em; font-size: .9rem; color: #4A3A00; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r);
  padding: .8em 1.3em; font: 600 .95rem var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--copper); border-color: var(--copper); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--sm { padding: .5em .9em; font-size: .85rem; }
.btn--wa { background: #1F7A4D; border-color: #1F7A4D; }
.btn--wa:hover { background: #17603C; border-color: #17603C; }
.count {
  display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .35em;
  background: var(--copper); color: #fff; border-radius: 99px; font: 500 .75rem var(--mono);
}

/* ---------- Top strip & header ---------- */
.strip { background: var(--ink); color: #CFCAC0; font-size: .8rem; }
.strip__row { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.strip__contact { display: flex; gap: 18px; }
.strip a { text-decoration: none; }
.strip .ph { color: #4A3A00; }

.hdr { position: sticky; top: 0; z-index: 50; background: rgba(242, 239, 232, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.hdr__row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { color: var(--ink); }
.brand__name { font: 700 1.3rem/1 var(--cond); display: flex; flex-direction: column; gap: 3px; }
.brand__name small { font: 400 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--copper); }
.nav__toggle { display: none; background: none; border: 2px solid var(--ink); padding: .4em .8em; font: 600 .85rem var(--sans); cursor: pointer; border-radius: var(--r); }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); position: relative; padding: 0; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.eyebrow { color: var(--copper-2); margin-bottom: 1.2em; display: flex; align-items: center; gap: .8em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.drawing { margin: 0; background: var(--w-white); border: 1px solid var(--line); padding: 14px; box-shadow: 8px 8px 0 var(--paper-2); color: var(--ink); }
.drawing .ink { stroke: var(--ink); }
.drawing .copper { stroke: var(--copper); }
.drawing .dim { stroke: var(--copper-2); fill: var(--copper-2); font: 500 13px var(--mono); }
.drawing .dim text { stroke: none; }
.drawing .tb text { font-family: var(--mono); fill: var(--ink-2); }
.drawing figcaption { margin-top: 10px; color: var(--muted); font-size: .7rem; }

.wires-band { display: grid; grid-template-columns: repeat(6, 1fr); height: 6px; }
.wires-band span:nth-child(1) { background: var(--w-red); }
.wires-band span:nth-child(2) { background: var(--w-black); }
.wires-band span:nth-child(3) { background: var(--w-yellow); }
.wires-band span:nth-child(4) { background: var(--w-blue); }
.wires-band span:nth-child(5) { background: var(--w-green); }
.wires-band span:nth-child(6) { background: var(--copper); }

/* ---------- Section heads ---------- */
section { padding: 88px 0; }
.sec-head { max-width: 46em; margin-bottom: 40px; }
.sec-head > p:not(.eyebrow) { color: var(--ink-2); }

/* ---------- Range index ---------- */
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { background: transparent; border: 1px solid var(--ink); padding: .35em .9em; font: 500 .85rem var(--sans); border-radius: 99px; cursor: pointer; }
.chip.is-on, .chip:hover { background: var(--ink); color: var(--paper); }

.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.item:hover { background: var(--w-white); }
.item__code { font-size: 1.6rem; color: var(--copper); letter-spacing: 0; }
.item h3 { margin: 0 0 .2em; font-size: 1.35rem; }
.item p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.item--open .item__code { color: var(--muted); }
.add {
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  padding: .5em 1em; font: 500 .85rem var(--mono); cursor: pointer; border-radius: var(--r);
  text-decoration: none; white-space: nowrap;
}
.add:hover { background: var(--ink); color: var(--paper); }
.add.is-added { background: var(--copper); border-color: var(--copper); color: #fff; }
.brands { margin-top: 44px; display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.brands h3 { margin: .7em 0 0; font-size: .8rem; color: var(--muted); }

/* ---------- Process ---------- */
.process { background: var(--ink); color: var(--paper); }
.process .eyebrow { color: #E08F55; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #3B3E42; }
.steps li { padding: 32px 28px 8px 0; border-right: 1px solid #3B3E42; margin-right: 28px; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid #E08F55; color: #E08F55; font-size: 1rem; margin-bottom: 18px; }
.steps p { color: #C9C4BA; }

/* ---------- About ---------- */
.about__grid, .contact__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.about__copy > p { font-size: 1.08rem; }
.facts, .contact__list { margin: 28px 0 0; border-top: 2px solid var(--ink); }
.facts > div, .contact__list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt, .contact__list dt { color: var(--muted); padding-top: .2em; }
.facts dd, .contact__list dd { margin: 0; }
.contact__list { margin-top: 0; }
.contact__list a { text-decoration: none; }
.contact__list a[href]:hover { color: var(--copper); }

/* ---------- Enquiry form ---------- */
.enquiry { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rfq { background: var(--w-white); border: 1px solid var(--line); padding: 32px; display: grid; gap: 28px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { color: var(--copper-2); margin-bottom: 14px; padding: 0; }
.rfq__who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--ink-2); }
input, textarea {
  font: 400 1rem var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: .65em .75em; width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.tbl { border: 1px solid var(--line); margin-bottom: 12px; }
.tbl__head, .tbl__row { display: grid; grid-template-columns: 1fr 180px 110px 44px; }
.tbl__head { background: var(--ink); color: var(--paper); font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.tbl__head span { padding: .6em .75em; }
.tbl__row { border-top: 1px solid var(--line); }
.tbl__row input { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.tbl__row input:focus { background: #FFFDF5; }
.rm { background: none; border: 0; font-size: 1.3rem; color: var(--muted); cursor: pointer; }
.rm:hover { color: var(--w-red); }
.rfq__send { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rfq__status { margin: 0; font-size: .9rem; flex-basis: 100%; }
.rfq__status.is-err { color: var(--w-red); }
.rfq__status.is-ok { color: #1F7A4D; }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: #A9A49A; font-size: .85rem; }
.ftr__row { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--paper); }

/* ---------- Floating enquiry button (mobile, when list has items) ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: none; align-items: center; gap: .5em;
  background: var(--copper); color: #fff; text-decoration: none;
  padding: .75em 1.1em; font: 600 .9rem var(--sans); border-radius: 99px;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.fab .count { background: #fff; color: var(--copper); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 8px; }
  .rfq__who { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; margin-right: 0; border-bottom: 1px solid #3B3E42; padding-bottom: 20px; }
  .steps li:last-child { border-bottom: 0; }
}
@media (max-width: 780px) {
  .nav__toggle { display: block; }
  .nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
  }
  .nav ul.is-open { display: flex; }
  .nav li a { display: block; padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav li .btn { margin: 12px 24px; justify-content: center; }
  .strip__row > .mono { display: none; }
  body.has-items .fab { display: inline-flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .brand__name small { display: none; }
  .item { grid-template-columns: 44px 1fr; gap: 6px 14px; }
  .item__code { font-size: 1.1rem; padding-top: .25em; align-self: start; }
  .item .add { grid-column: 2; justify-self: start; margin-top: 8px; }
  .brands { grid-template-columns: 1fr; }
  .rfq { padding: 20px; }
  .rfq__who { grid-template-columns: 1fr; }
  .tbl__head { display: none; }
  .tbl__row { grid-template-columns: 1fr 1fr 44px; }
  .tbl__row input[data-k="part"] { grid-column: 1 / -1; border-right: 0; border-bottom: 1px dashed var(--line); }
  .facts > div, .contact__list > div { grid-template-columns: 1fr; gap: 2px; }
  .strip__contact { gap: 12px; font-size: .75rem; }
}
