/* CRG Steel — site styles. Dark mill-black ground, safety-yellow actions, shop-drawing blue for dimensions. */
:root {
  --black: #0F1113;   /* Mill Black */
  --plate: #181B1F;   /* Plate */
  --scale: #2B3036;   /* Mill Scale */
  --galv: #A4ABB2;    /* Galvanized */
  --steel: #5B626A;   /* Weathered Steel */
  --primer: #F2EFE8;  /* Primer White */
  --yellow: #FFC700;  /* Safety Yellow */
  --yellow-2: #E0A800;
  --brass: #7A5E00;
  --blue: #4C8DF0;    /* Dimension Blue */
  --display: 'Archivo', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1200px;
  color-scheme: dark;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--black); color: var(--primer); font-family: var(--body); font-size: 17px; line-height: 1.6 }
img, svg { max-width: 100%; height: auto }
a { color: var(--yellow) }
a:hover { color: #FFD84D }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px) }
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.98; margin: 0; text-wrap: balance; letter-spacing: 0.005em }
h1 { font-size: clamp(40px, 7vw, 86px) }
h2 { font-size: clamp(30px, 4.4vw, 52px) }
h3 { font-size: 20px; line-height: 1.15; letter-spacing: 0.02em }
p { margin: 0; max-width: 62ch }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow) }
.lede { font-size: clamp(18px, 2vw, 21px); color: #D9D5CD }
.muted { color: var(--galv) }
.skip { position: absolute; left: -9999px } .skip:focus { left: 16px; top: 16px; background: var(--yellow); color: var(--black); padding: 8px 12px; z-index: 10 }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 3px; font-family: var(--body); font-weight: 600; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer }
.btn-yellow { background: var(--yellow); color: var(--black) }
.btn-yellow:hover { background: var(--yellow-2); color: var(--black) }
.btn-line { border-color: #4A5057; color: var(--primer) }
.btn-line:hover { border-color: var(--primer); color: var(--primer) }
.btn-black { background: var(--black); color: var(--primer) }
.btn-black:hover { background: #24282D; color: var(--primer) }
.row { display: flex; flex-wrap: wrap; gap: 12px }

/* header */
.top { border-bottom: 1px solid var(--scale); background: var(--black); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5 }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primer) }
.brand img { width: 82px; height: auto; display: block }
.brand span { font-family: var(--display); font-weight: 800; letter-spacing: 0.32em; font-size: 15px }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500 }
.nav a { color: var(--primer); text-decoration: none; padding: 6px 0 }
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow) }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; color: var(--black) }
.menu { display: none }
@media (max-width: 920px) {
  .nav { display: none }
  .menu { display: block; position: relative }
  .menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 2px solid #4A5057; border-radius: 3px; font-weight: 600; font-size: 15px }
  .menu summary::-webkit-details-marker { display: none }
  .menu[open] summary { border-color: var(--yellow) }
  .menu nav { position: absolute; right: 0; top: 54px; width: min(300px, calc(100vw - 32px)); background: var(--plate); border: 1px solid var(--scale); display: flex; flex-direction: column; padding: 8px }
  .menu nav a { color: var(--primer); text-decoration: none; padding: 13px 12px; border-bottom: 1px solid var(--scale) }
  .menu nav a:last-child { border-bottom: 0; color: var(--yellow); font-weight: 600 }
  .brand span { display: none }
}

/* sections */
section { border-bottom: 1px solid var(--scale) }
.pad { padding-block: clamp(56px, 8vw, 104px) }
.stack { display: flex; flex-direction: column; gap: 20px }
.light { background: var(--primer); color: var(--black) }
.light .eyebrow { color: var(--brass) }
.light .muted { color: var(--steel) }
.light .lede { color: #2B3036 }
.light a:not(.btn) { color: #1F5FBF }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) } }
.hero h1 em { font-style: normal; color: var(--yellow) }
.sheet { background: var(--plate); border: 1px solid var(--scale); padding: 18px; display: flex; flex-direction: column; gap: 10px }
.sheet figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--galv); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap }

/* services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--scale); border: 1px solid var(--scale) }
.svc { background: var(--black); padding: 26px 22px 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--primer); min-width: 0 }
a.svc:hover { background: var(--plate); color: var(--primer) }
a.svc:hover h3 { color: var(--yellow) }
.svc p { font-size: 15px; color: var(--galv) }
.svc .go { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--yellow) }

/* steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: s; list-style: none; padding: 0; margin: 0 }
.steps li { display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--black); padding-top: 16px; min-width: 0 }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--black) }
.steps h3 { font-size: 19px }

/* split lists */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px) }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr) } }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column }
.ticks li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--scale); position: relative }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 14px; height: 8px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) }
.light .ticks li { border-color: #D9D4CA }
.light .ticks li::before { background: var(--black) }
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px }
.who div { background: var(--plate); border: 1px solid var(--scale); padding: 22px; display: flex; flex-direction: column; gap: 6px }
.who h3 { font-size: 17px }
.who p { font-size: 15px; color: var(--galv) }

/* spec table */
.table-box { overflow-x: auto; border: 1px solid var(--scale) }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px }
th, td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--scale) }
thead th { border-top: 0; background: var(--plate); font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--galv) }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums }

/* CTA band */
.band { background: var(--yellow); color: var(--black) }
.band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between }
.band h2 { font-size: clamp(28px, 4vw, 46px) }
.band p { color: #2B2400 }

/* page header */
.pagehead { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px) }
.pagehead .wrap { display: flex; flex-direction: column; gap: 18px }

/* form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; background: var(--plate); border: 1px solid var(--scale); padding: clamp(20px, 3vw, 36px) }
@media (max-width: 680px) { .form { grid-template-columns: minmax(0, 1fr) } }
.form .full { grid-column: 1 / -1 }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0 }
.field label, .field legend { font-size: 14px; font-weight: 600 }
.field small { color: var(--galv); font-size: 13px }
input, select, textarea { font: inherit; font-size: 16px; color: var(--primer); background: var(--black); border: 1px solid #3A3F45; border-radius: 3px; padding: 12px 14px; min-height: 50px; width: 100% }
textarea { min-height: 130px; resize: vertical }
input[type="file"] { padding: 18px 14px; border-style: dashed }
input:focus, select:focus, textarea:focus { border-color: var(--yellow); outline: none; box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.25) }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px }
fieldset legend { width: 100%; margin-bottom: 4px }
.check { display: flex; align-items: center; gap: 9px; font-size: 15px }
.check input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--yellow) }
.hide { display: none }

/* footer */
footer { background: var(--black) }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 56px 40px }
@media (max-width: 760px) { footer .wrap { grid-template-columns: minmax(0, 1fr) } }
footer h3 { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.12em; color: var(--galv); margin-bottom: 12px }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px }
footer a { color: var(--primer); text-decoration: none }
footer a:hover { color: var(--yellow) }
.legal { border-top: 1px solid var(--scale); font-family: var(--mono); font-size: 12px; color: var(--steel); padding-block: 18px }
@media (prefers-reduced-motion: no-preference) { .btn, .svc, .nav a { transition: background-color .15s, color .15s, border-color .15s } }
