/* ------------------------------------------------------------------
   H. T. C. FASTENINGS LIMITED  (01253974)
   htc-trade.css — stylesheet for the htcfastenings site

   House style: a fixed 1100px centred page, ruled off from a tinted
   ground so it reads as a sheet rather than a full-bleed layout.
   Graphite grey for everything structural and a single warm signal red
   used sparingly on rules, the current page tab and the buttons.
   Boxed panels, 1px rules and bordered tables do the work; nothing
   spans the window edge to edge.
   ------------------------------------------------------------------ */

/* --- 1. reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
table { border-collapse: collapse; }

/* --- 2. tokens ---------------------------------------------------
   Graphite family first, then the white ground, then the signal red.
   ------------------------------------------------------------------ */
:root {
  --ink:       #241d22;   /* graphite, near black — rules, headings, footer */
  --steel:     #474045;   /* body copy                                     */
  --slate:     #5f565c;   /* secondary copy                                */
  --mute:      #71696e;   /* captions, small print                         */
  --white:     #fff;      /* the sheet itself                              */
  --ground:    #ded8dc;   /* the tinted ground the sheet sits on           */
  --line:      #c0b8bd;   /* the working 1px rule                          */
  --line-soft: #dfd9dd;   /* the quieter 1px rule                          */
  --panel:     #f5f2f4;   /* tinted panel fill                             */
  --panel-dk:  #eae5e8;   /* button and tab fill                           */
  --foot:      #cdc6ca;   /* copy on the graphite footer                   */

  --signal:      rgb(176, 48, 28);   /* the one warm signal red     */
  --signal-mid:  rgb(196, 66, 44);
  --signal-dk:   rgb(134, 34, 18);
  --signal-lt:   #e47d6d;            /* signal red for dark grounds */
  --signal-pale: #fbf0ee;

  --sans:  Arial, "Helvetica Neue", Helvetica, sans-serif;
  --alt:   Tahoma, Geneva, Verdana, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;

  --col: 1100px;
  --gut: 20px;
}

/* --- 3. the sheet ------------------------------------------------
   The whole site is one fixed-width sheet, ruled on both edges and
   sitting on a tinted ground. Nothing bleeds to the window edge.
   ------------------------------------------------------------------ */
html { background: var(--ground); }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--steel);
  background: var(--white);
  max-width: var(--col);
  margin: 0 auto;
  border-left: 1px solid var(--slate);
  border-right: 1px solid var(--slate);
}
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 780px; }

/* --- 4. base type ------------------------------------------------ */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: bold; }
h1 { font-size: 23px; }
h2 { font-size: 18px; }
h3 { font-size: 14px; }
h4 { font-size: 13px; }
p + p { margin-top: 9px; }
a { color: var(--signal); text-decoration: underline; }
a:hover { color: var(--ink); }
strong { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white); padding: 8px 14px;
  z-index: 200; text-decoration: none; font-weight: bold;
}
.skip:focus { left: 0; }

/* the small red label above a heading */
.eyebrow {
  display: block;
  font-family: var(--alt);
  font-size: 11px; font-weight: bold;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 5px;
}
.eyebrow--pale { color: var(--signal); }

/* --- 5. masthead: two bordered cells, heavy rule, tab row --------- */
.htc-head { background: var(--white); padding-top: 12px; }

.htc-head-in {
  display: table; width: 100%;
  border-collapse: collapse;
  border-bottom: 4px solid var(--signal);
}
.htc-ident, .htc-office {
  display: table-cell; vertical-align: middle;
  border: 1px solid var(--line);
  background: linear-gradient(var(--white), var(--panel));
  padding: 9px 13px 10px;
}
.htc-ident { width: 50%; }
.htc-office {
  text-align: right; background: var(--panel);
  font-size: 11px; line-height: 1.5; color: var(--slate);
}
.htc-office b { color: var(--ink); }
.htc-office-l {
  font-family: var(--alt); font-weight: bold; font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--signal);
  margin-bottom: 2px;
}
.htc-office p + p { margin-top: 2px; }

.htc-mark { display: block; text-decoration: none; color: var(--ink); }
.mark { display: block; text-decoration: none; color: var(--ink); }
.mark__glyph {
  width: 26px; height: 29px; color: var(--ink);
  float: left; margin: 1px 9px 0 0;
}
.mark__text { display: block; overflow: hidden; }
.mark__text b {
  display: block; font-family: var(--serif);
  font-size: 20px; font-weight: bold; letter-spacing: .01em;
  color: var(--ink); line-height: 1.15;
}
.mark__text span {
  display: block; font-family: var(--alt); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--slate); margin-top: 2px;
}

/* the tab row */
.htc-menu {
  display: none; margin: 8px 0 0;
  background: linear-gradient(var(--white), var(--panel-dk));
  border: 1px solid var(--line); border-radius: 2px;
  padding: 7px 12px; cursor: pointer;
  font-family: var(--alt); font-size: 11px; font-weight: bold;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink);
}
.htc-nav { margin: 7px 0 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.htc-nav ul { overflow: hidden; }
.htc-nav li { float: left; margin: 0 3px 0 0; }
.htc-nav a {
  display: block; padding: 6px 15px;
  font-family: var(--alt); font-size: 11px; font-weight: bold;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--white), var(--panel-dk));
  border: 1px solid var(--line); border-radius: 2px;
  box-shadow: inset 0 1px 0 var(--white);
}
.htc-nav a:hover { background: linear-gradient(var(--white), var(--line-soft)); color: var(--ink); }
.htc-nav a[aria-current="page"] {
  background: linear-gradient(var(--signal-mid), var(--signal));
  border-color: var(--signal-dk); color: var(--white);
  box-shadow: none;
}

/* --- 6. opening banner (home) ------------------------------------ */
.hero {
  position: static; overflow: hidden;
  margin: 16px var(--gut) 0;
  border: 1px solid var(--line); background: var(--white);
}
.hero__img {
  position: static; width: 100%; height: 172px;
  object-fit: cover; opacity: 1;
  border-bottom: 1px solid var(--line);
}
.hero__scrim { position: static; background: var(--panel); }
.hero .wrap { padding: 0; max-width: none; }
.hero__inner { padding: 14px 16px 16px; max-width: none; }
.hero h1 { color: var(--ink); }
.hero p.lede {
  font-family: var(--serif); font-size: 14px; color: var(--steel);
  margin-top: 7px; max-width: none;
}
.hero__acts { display: block; margin-top: 13px; }
.hero__acts .btn { margin: 0 6px 4px 0; }

/* --- 7. buttons -------------------------------------------------- */
.btn {
  display: inline-block; padding: 6px 15px;
  font-family: var(--alt); font-size: 11px; font-weight: bold;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 2px;
  background: linear-gradient(var(--white), var(--panel-dk));
  color: var(--ink);
  box-shadow: inset 0 1px 0 var(--white);
}
.btn:hover { background: linear-gradient(var(--white), var(--line-soft)); color: var(--ink); }
.btn--solid {
  background: linear-gradient(var(--signal-mid), var(--signal));
  border-color: var(--signal-dk); color: var(--white); box-shadow: none;
}
.btn--solid:hover {
  background: linear-gradient(var(--signal), var(--signal-dk));
  border-color: var(--signal-dk); color: var(--white);
}
.btn--ghost { /* the plain grey button; used on light and dark grounds */ }
.btn--dark {
  background: linear-gradient(var(--steel), var(--ink));
  border-color: var(--ink); color: var(--white); box-shadow: none;
}
.btn--dark:hover { background: var(--ink); color: var(--white); }

/* --- 9. sections ------------------------------------------------- */
.band { padding: 18px 0 20px; }
.band--tight { padding: 14px 0 16px; }
.band--flush { padding-bottom: 6px; }
.band--head {
  background: var(--panel);
  border-top: 1px solid var(--line); border-bottom: 3px solid var(--signal);
  padding: 14px 0 16px; margin-top: 16px;
}
.band--head + .band--open { padding-top: 16px; }
.band--open { padding-top: 12px; }
.band--paper { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--rule { border-top: 1px solid var(--line); }

/* heading with a red underline, used by the section headings */
.band > .wrap > h2, .band > .wrap > .split .split__head h2 { padding-bottom: 5px; }
.band > .wrap > h2 { border-bottom: 2px solid var(--ink); margin-bottom: 6px; }

/* two-column editorial split */
.split { display: table; width: 100%; }
.split__head { display: table-cell; width: 258px; vertical-align: top; padding-right: 26px; }
.split__head h2 { margin-bottom: 4px; }
.split__body { display: table-cell; vertical-align: top; border-left: 1px solid var(--line); padding-left: 26px; }
.split__body > * + * { margin-top: 9px; }

/* --- 10. specification rows -------------------------------------- */
.spec { border: 1px solid var(--line); border-bottom: 0; }
/* the register table runs the full width of the sheet — it is a table,
   not prose, so it is not held to the reading measure */
.spec.narrow { max-width: none; }
.spec__row {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  border-bottom: 1px solid var(--line);
}
.spec__row:nth-child(odd) { background: var(--panel); }
.spec__row dt {
  font-family: var(--alt); font-size: 11px; font-weight: bold;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
  padding: 7px 11px; border-right: 1px solid var(--line);
}
.spec__row dd { color: var(--steel); padding: 7px 11px; font-size: 13px; }

/* --- 11. panels in a row ----------------------------------------- */
.cards { display: grid; gap: 14px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card img { width: 100%; height: 132px; object-fit: cover; border-bottom: 1px solid var(--line); }
.card__body { padding: 10px 12px 12px; }
.card__body h3 { margin-bottom: 4px; }
.card__body p { font-size: 13px; }
.card__tag {
  display: block; font-family: var(--alt); font-size: 10px; font-weight: bold;
  letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin-bottom: 3px;
}

/* --- 12. numbered steps ------------------------------------------ */
.steps { display: table; width: 100%; border-collapse: collapse; }
.steps > li {
  display: table-cell; width: 25%; vertical-align: top;
  border: 1px solid var(--line); border-top: 3px solid var(--ink);
  background: var(--white); padding: 9px 12px 11px;
}
.steps .n {
  display: block; font-family: var(--alt); font-size: 13px; font-weight: bold;
  color: var(--signal); line-height: 1; margin-bottom: 5px; letter-spacing: .06em;
}
.steps h3 { margin-bottom: 3px; }
.steps p { font-size: 12px; }

/* --- 13. lists ---------------------------------------------------- */
.ticks li { position: relative; padding-left: 15px; margin-bottom: 4px; font-size: 13px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; background: var(--signal);
}
.plain { list-style: disc; padding-left: 18px; }
.plain li { margin-bottom: 4px; }

/* --- 14. page banner (inner pages) ------------------------------- */
.pagehead {
  position: static; overflow: hidden;
  margin: 16px var(--gut) 0;
  border: 1px solid var(--line); background: var(--white);
}
.pagehead img {
  position: static; width: 100%; height: 122px;
  object-fit: cover; opacity: 1; border-bottom: 1px solid var(--line);
}
.pagehead__in {
  position: static; background: var(--panel);
  padding: 11px 16px 13px; border-bottom: 3px solid var(--signal);
}
.pagehead .wrap { padding: 0; max-width: none; }
.pagehead h1 { color: var(--ink); max-width: none; }
.pagehead p { color: var(--steel); font-size: 13px; margin-top: 5px; max-width: none; }

.trail {
  font-family: var(--alt); font-size: 11px;
  color: var(--mute); margin-bottom: 6px;
}
.trail a { color: var(--signal); text-decoration: underline; }
.trail a:hover { color: var(--ink); }

/* --- 15. figures -------------------------------------------------- */
.shot { margin: 0; }
.shot img { width: 100%; height: 190px; object-fit: cover; border: 1px solid var(--line); }
.shot--panel { max-width: 460px; }
.shot--panel img { height: 165px; }
.shot figcaption {
  font-family: var(--alt); font-size: 11px; color: var(--mute);
  border-bottom: 1px dotted var(--line); padding: 4px 0 5px; margin-top: 0;
}

/* --- 16. closing panel ------------------------------------------- */
.cta {
  background: var(--panel-dk);
  border-top: 3px solid var(--signal); border-bottom: 1px solid var(--line);
  padding: 14px 0 16px; margin-top: 18px;
}
.cta h2 { color: var(--ink); font-size: 17px; }
.cta p { color: var(--steel); font-size: 13px; margin-top: 4px; max-width: none; }
.cta__in { display: table; width: 100%; }
.cta__in > div:first-child { display: table-cell; vertical-align: middle; }
.cta__acts { display: table-cell; vertical-align: middle; text-align: right; white-space: nowrap; padding-left: 20px; }

/* --- 17. notice box ---------------------------------------------- */
.notice {
  border: 1px solid var(--signal); border-left-width: 4px;
  background: var(--signal-pale); padding: 10px 12px; font-size: 13px;
}
.notice h3 { margin-bottom: 3px; }
.notice[hidden] { display: none; }

.tag-required {
  font-family: var(--alt); font-size: 11px;
  background: var(--panel-dk); border: 1px solid var(--line);
  padding: 1px 4px; color: var(--ink); white-space: nowrap;
}

/* --- 18. contact page and forms ---------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.contact-grid > div > h2 {
  border-bottom: 2px solid var(--ink); padding-bottom: 4px; margin-bottom: 6px;
}

.field { margin-bottom: 11px; }
.field label {
  display: block; font-size: 12px; font-weight: bold;
  color: var(--ink); margin-bottom: 3px;
}
.field .hint { display: block; font-weight: normal; color: var(--mute); font-size: 11px; margin-top: 1px; }
.field input, .field select, .field textarea {
  width: 100%; max-width: 380px; padding: 5px 7px; font-size: 13px;
  border: 1px solid var(--line); border-top-color: var(--slate);
  background: var(--white); border-radius: 0;
}
.field textarea { max-width: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--signal-dk); }
.req { color: var(--signal); font-weight: bold; }

.panel { border: 1px solid var(--line); background: var(--panel); padding: 11px 13px 13px; }
.panel + .panel { margin-top: 12px; }
.panel h2, .panel h3 { font-size: 14px; margin-bottom: 5px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.panel address { font-style: normal; font-size: 13px; line-height: 1.55; }

/* --- 19. prose and tables ---------------------------------------- */
.prose h2 { font-size: 16px; margin: 18px 0 5px; padding-bottom: 3px; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 13px 0 3px; }
.prose p, .prose li { font-size: 13px; }
.prose ul { list-style: disc; padding-left: 18px; margin: 5px 0 10px; }
.prose li { margin-bottom: 3px; }
.prose table { width: 100%; margin: 9px 0 14px; font-size: 12px; border: 1px solid var(--line); }
.prose th, .prose td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; vertical-align: top; }
.prose th {
  background: var(--panel); color: var(--ink);
  font-family: var(--alt); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
}
.prose tbody tr:nth-child(even) td { background: var(--panel); }
.table-scroll { overflow-x: auto; }
.note { font-size: 12px; color: var(--mute); }
.updated {
  font-family: var(--alt); font-size: 11px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--mute);
}

.credits { border-top: 1px solid var(--line); }
.credits li { border-bottom: 1px dotted var(--line); padding: 7px 0; font-size: 12px; }
.credits .file { font-family: var(--alt); font-size: 11px; font-weight: bold; color: var(--ink); display: block; }

/* --- 20. footer -------------------------------------------------- */
.foot {
  background: var(--ink); color: var(--foot);
  border-top: 4px solid var(--signal);
  padding: 16px 0 0; margin-top: 20px;
}
.foot__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: 20px;
  padding-bottom: 16px;
}
.foot h2 {
  font-family: var(--alt); font-size: 11px; font-weight: bold;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--signal-lt); margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: 4px;
}
.foot a { color: var(--foot); text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot li { margin-bottom: 3px; font-size: 12px; }
.foot p { font-size: 12px; }
.foot address { font-style: normal; font-size: 12px; line-height: 1.55; }
.foot .mark { color: var(--white); }
.foot .mark__text b { color: var(--white); font-size: 18px; }
.foot .mark__text span { color: var(--foot); }
.foot .mark__glyph { color: var(--signal-lt); width: 22px; height: 25px; }
.foot__base {
  border-top: 1px solid rgba(255,255,255,.16);
  padding: 9px 0; font-size: 11px; color: var(--foot);
}
.foot__base .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* --- 21. cookie notice ------------------------------------------- */
/* held inside the sheet, not stretched across the window */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  max-width: var(--col); margin: 0 auto;
  background: var(--ink); color: var(--foot);
  border-top: 3px solid var(--signal);
  border-left: 1px solid var(--ink); border-right: 1px solid var(--ink);
  padding: 9px var(--gut);
}
.cookie[hidden] { display: none; }
.cookie__in {
  max-width: var(--col); margin: 0 auto;
  display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap;
}
.cookie p { font-size: 12px; margin: 0; max-width: 70ch; }
.cookie a { color: var(--signal-lt); }
.cookie a:hover { color: var(--white); }
.cookie__acts { display: flex; gap: 6px; }

/* --- 22. odds and ends -------------------------------------------- */
.lead { font-family: var(--serif); font-size: 14px; color: var(--steel); }
.center { text-align: center; }
.mt2 { margin-top: 14px; }
.mt1 { margin-top: 8px; }
.big404 {
  font-family: var(--alt); font-size: 34px; font-weight: bold;
  color: var(--signal); line-height: 1; letter-spacing: .04em;
}

/* --- 23. narrower screens ----------------------------------------- */
/* once the sheet fills the window there is no ground left to rule against */
@media (max-width: 1140px) {
  body { border-left: 0; border-right: 0; }
  .cookie { border-left: 0; border-right: 0; }
}
@media (max-width: 940px) {
  .split__head { width: 200px; padding-right: 18px; }
  .split__body { padding-left: 18px; }
  .spec__row { grid-template-columns: 210px 1fr; }
}
@media (max-width: 880px) {
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  .hero__img { height: 138px; }
  .pagehead img { height: 100px; }
  .htc-head-in, .htc-ident, .htc-office { display: block; width: auto; }
  .htc-office { text-align: left; border-top: 0; }
  .htc-menu { display: block; }
  .htc-nav { display: none; }
  .htc-nav.is-open { display: block; }
  .htc-nav li { float: none; margin: 0 0 3px; }
  .split, .split__head, .split__body { display: block; width: auto; padding: 0; border-left: 0; }
  .split__body { margin-top: 10px; }
  .steps, .steps > li { display: block; width: auto; }
  .steps > li + li { border-top: 1px solid var(--line); }
  .cta__in, .cta__in > div:first-child, .cta__acts { display: block; text-align: left; padding-left: 0; white-space: normal; }
  .cta__acts { margin-top: 10px; }
}
@media (max-width: 620px) {
  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .spec__row { grid-template-columns: 1fr; }
  .spec__row dt { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-bottom: 4px; }
  .foot__grid { grid-template-columns: 1fr; gap: 14px; }
  .cookie__in { display: block; }
  .cookie__acts { margin-top: 8px; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 12px; }
  .hero, .pagehead { margin-left: 12px; margin-right: 12px; }
  h1 { font-size: 20px; }
}

/* --- 24. print ---------------------------------------------------- */
@media print {
  .htc-menu, .htc-nav, .cookie { display: none; }
  body { color: #000; border: 0; max-width: none; }
  .hero__img, .pagehead img { display: none; }
}
