/* Capital Steel Corporation. Palette taken from the company logo (navy, steel grey)
   plus the yellow of the tags that ride on every wire coil. */
:root {
  --paper: #f2f4f5;
  --surface: #ffffff;
  --ink: #14202a;
  --navy: #0f4a8f;
  --navy-deep: #0f2740;
  --steel: #5b6b77;
  --line: #d3dade;
  --tag: #f2b705;
  --tag-ink: #2b2200;
  --ok: #1d6b3a;
  --err: #a12a1f;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::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 { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; color: #33424e; max-width: 60ch; }
.muted { color: var(--steel); }
.small { font-size: .9rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--white { background: var(--surface); }
.section--navy { background: var(--navy-deep); color: #dfe7ee; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tag); color: var(--tag-ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.topbar { background: var(--navy-deep); color: #c9d5df; font-size: .88rem; }
.topbar .wrap { display: flex; gap: 20px; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 66px; height: auto; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--navy); white-space: nowrap; }
@media (max-width: 420px) { .brand { gap: 8px; } .brand img { width: 48px; } .brand-name { font-size: 1.18rem; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; padding: 10px 10px; border-radius: 4px; white-space: nowrap; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--tag); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 9px 12px; font: 600 .95rem var(--body); color: var(--ink); }
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15, 39, 64, .12); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--paper); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--tag); padding-left: 14px; }
  .nav .btn { margin: 14px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; font: 600 1rem var(--body); text-decoration: none; padding: 13px 22px; border-radius: 4px; border: 2px solid transparent; cursor: pointer; }
.btn--tag { background: var(--tag); color: var(--tag-ink); }
.btn--tag:hover { background: #ffc61a; color: var(--tag-ink); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; }
.nav .btn--navy, .nav .btn--navy:hover { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Home hero: yard photo with the wire drawing gauge strip along its foot */
.hero { position: relative; color: #fff; background: var(--navy-deep); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 39, 64, .92) 0%, rgba(15, 39, 64, .55) 60%, rgba(15, 39, 64, .2) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(72px, 11vw, 140px); padding-bottom: 40px; }
.hero h1 { color: #fff; max-width: 21ch; }
.hero .lead { color: #dbe4ec; }
.gauge { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .18); background: rgba(10, 26, 43, .7); }
.gauge .wrap { padding-top: 22px; padding-bottom: 22px; }
.gauge-row { display: flex; align-items: flex-end; gap: clamp(14px, 3.2vw, 44px); flex-wrap: wrap; }
.gauge-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .82rem; color: #c5d1db; text-align: center; }
.gauge-dot { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e9eef2 0%, #9aa8b3 45%, #4b5a66 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.gauge-item strong { color: #fff; font-weight: 600; font-size: .9rem; }
.gauge-caption { color: #9fb0bd; font-size: .9rem; margin: 14px 0 0; }

/* Inner page header */
.page-head { background: var(--navy-deep); color: #dbe4ec; position: relative; overflow: hidden; }
.page-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-head .wrap { position: relative; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 18ch; }
.page-head .lead { color: #dbe4ec; }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: #a9b8c4; }
.crumbs a { color: #dbe4ec; }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
.split img { border-radius: 4px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 16px; }

/* Facts strip: plain figures, separated by rules */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.facts div { padding: 20px 20px 4px 0; border-right: 1px solid var(--line); }
.facts div + div { padding-left: 20px; }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font: 700 2.2rem/1 var(--display); color: var(--navy); margin-bottom: 6px; }
.facts span { color: var(--steel); font-size: .95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(2) { border-right: 0; } .facts div:nth-child(3) { padding-left: 0; } }

/* Product range list on home and products */
.range { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.range a { background: var(--surface); display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); }
.range a:hover h3 { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.range img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.range div { padding: 18px 20px 22px; }
.range p { color: var(--steel); font-size: .96rem; margin: 0; }
.range .feature { grid-column: span 2; grid-row: span 2; grid-template-rows: 1fr auto; }
.range .feature img { aspect-ratio: auto; height: 100%; min-height: 320px; }
.range .feature div { padding: 24px 28px 28px; }
.range .feature h3 { font-size: 2rem; }
@media (max-width: 900px) { .range { grid-template-columns: 1fr 1fr; } .range .feature { grid-column: auto; grid-row: auto; } .range .feature img { aspect-ratio: 4 / 3; min-height: 0; } .range .feature h3 { font-size: 1.5rem; } }
@media (max-width: 600px) { .range { grid-template-columns: 1fr; } }

/* Coil tag: the yellow tag tied to a coil, used for key specifications */
.tag { position: relative; background: var(--tag); color: var(--tag-ink); padding: 22px 24px 20px 52px; border-radius: 4px 14px 14px 4px; max-width: 460px; }
.tag::before { content: ""; position: absolute; left: 18px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px #c99500; }
.tag h3 { color: var(--tag-ink); font-size: 1.35rem; margin-bottom: 10px; }
.tag dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .97rem; }
.tag dt { font-weight: 700; }
.tag dd { margin: 0; }

/* Spec tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #e8edf0; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* Product blocks on category pages */
.product { display: grid; grid-template-columns: 320px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; }
.product img { border-radius: 4px; aspect-ratio: 1; object-fit: cover; width: 100%; background: #fff; }
.product ul { margin: 0 0 1em; padding-left: 20px; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } .product img { max-width: 360px; } }

/* Process: a real sequence, so it is numbered */
.process { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.process li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.process li::before { content: counter(step); font: 700 2.4rem/1 var(--display); color: var(--navy); }
.section--navy .process li { border-color: rgba(255, 255, 255, .15); }
.section--navy .process li::before { color: var(--tag); }
.process h3 { margin-bottom: 6px; }
.process p { margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 7px; border-left: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(-45deg); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 3 / 2; height: 100%; }
.gallery figcaption { padding: 10px 14px; font-size: .92rem; color: var(--steel); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .wide { grid-column: span 2; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } .gallery .wide { grid-column: auto; } }

.industry { border-top: 3px solid var(--navy); padding-top: 16px; }
.industry p { color: #3b4a56; }
.industry small { color: var(--steel); }

/* CTA band */
.cta { background: var(--tag); color: var(--tag-ink); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.cta h2 { color: var(--tag-ink); margin: 0 0 6px; }
.cta p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 4vw, 36px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid #b9c4cc; border-radius: 4px; background: #fff; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.hp { position: absolute; left: -5000px; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: 4px; display: none; }
.form-status.ok { display: block; background: #e3f2e8; color: var(--ok); }
.form-status.err { display: block; background: #f8e4e1; color: var(--err); }
.info-block { border-top: 2px solid var(--ink); padding-top: 18px; margin-bottom: 30px; }
.info-block h3 { font-size: 1.25rem; margin-bottom: 6px; }
.info-block p { margin: 0 0 4px; }
.map { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.3); }

/* Footer */
.site-footer { background: var(--ink); color: #b8c4ce; font-size: .95rem; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: #dfe7ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-base { border-top: 1px solid #2c3a46; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: #8797a4; }
