/* BRS Industrial Works and Supply Corp.
   Brand tokens taken from the 2025 company profile deck:
   teal #2DA2BF, red #DA1F28, Questrial headings, Arial body.
   The deck's repeating motif - a short red block then a teal band - is reused
   as the section-heading rule. */

:root {
  --teal: #2da2bf;          /* brand teal - bands, fills, large type only */
  --teal-ink: #14708a;      /* darkened for body-size text (4.9:1 on white) */
  --teal-deep: #0d5a6d;
  --teal-wash: #f2fafc;
  --red: #da1f28;
  --ink: #14181c;
  --muted: #5b6672;
  --line: #e3e8ec;
  --wash: #f6f9fa;
  --dark: #101922;
  --shell: 1120px;
  --sans: "Questrial", Arial, Helvetica, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

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

a { color: var(--teal-ink); }
a:hover { color: var(--teal-deep); }

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

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: normal;
  line-height: 1.2;
  margin: 0;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  z-index: 100;
  background: #fff;
  padding: 10px 16px;
  border: 2px solid var(--teal);
}

/* ---------- header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 128px; }
.brand span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 15ch;
  line-height: 1.35;
}

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  font-family: var(--sans);
  font-size: 14.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] {
  border-bottom-color: var(--red);
  color: var(--teal-deep);
}
.nav .cta {
  background: var(--teal);
  color: #fff;
  border-bottom-color: var(--teal);
  border-radius: 2px;
}
.nav .cta:hover { background: var(--teal-deep); border-bottom-color: var(--teal-deep); }

/* ---------- hero ---------- */

.hero {
  background: var(--dark);
  color: #fff;
  padding: 68px 0 72px;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 4px;
  background: var(--red);
  flex: none;
}
.hero h1 { font-size: clamp(31px, 4.1vw, 45px); letter-spacing: -.01em; }
.hero .lede {
  font-size: 18px;
  color: #c8d4dc;
  margin: 22px 0 30px;
  max-width: 46ch;
}
.hero figure { margin: 0; }
.hero figure img { border-radius: 3px; }
.hero figcaption {
  font-size: 12.5px;
  color: #8b9aa6;
  margin-top: 10px;
}

.btnrow { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 2px;
  border: 2px solid transparent;
  display: inline-block;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--teal-deep); }
.btn-ghost { border-color: #46545f; color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- stat strip ---------- */

.stats {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}
.stats ul {
  list-style: none;
  margin: 0;
  padding: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px;
}
.stats b {
  display: block;
  font-family: var(--sans);
  font-size: 33px;
  font-weight: normal;
  color: var(--teal-deep);
  line-height: 1.1;
}
.stats span { font-size: 14px; color: var(--muted); display: block; margin-top: 5px; }

/* ---------- sections ---------- */

section { padding: 60px 0; }
section.tint { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section[id] { scroll-margin-top: 96px; }   /* clear the sticky masthead on anchor jumps */

.head { max-width: 62ch; margin-bottom: 34px; }
.head h2 {
  font-size: clamp(24px, 3vw, 31px);
  padding-left: 16px;
  border-left: 6px solid var(--red);
}
.head p { color: var(--muted); margin: 14px 0 0 22px; }
.head.wide { max-width: none; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 22px;
}
.card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 2px;
  padding: 24px 22px 26px;
  background: #fff;
}
.card.lead { border-top-color: var(--red); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card ul { margin: 12px 0 0; padding-left: 19px; color: var(--muted); font-size: 15px; }
.card li { margin-bottom: 5px; }
.card .tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-wash);
  border: 1px solid #cfe9f1;
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 13px;
}

/* ---------- prose ---------- */

.prose { max-width: 68ch; }
.prose h3 {
  font-size: 21px;
  margin: 38px 0 12px;
  color: var(--teal-deep);
}
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose blockquote {
  margin: 0 0 20px;
  padding: 2px 0 2px 22px;
  border-left: 4px solid var(--teal);
  color: #2c353d;
}
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: start;
}
/* a short sidebar next to a long column would otherwise leave dead space */
.split > .aside { position: sticky; top: 96px; }

/* ---------- key/value table ---------- */

.kv { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.kv th, .kv td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th {
  font-family: var(--sans);
  font-weight: normal;
  color: var(--muted);
  width: 34%;
  white-space: nowrap;
}
.kv tr:first-child th, .kv tr:first-child td { border-top: 1px solid var(--line); }

/* ---------- project gallery ---------- */

.project {
  border-top: 1px solid var(--line);
  padding: 30px 0 8px;
}
.project:first-of-type { border-top: 0; }
.project header { margin-bottom: 16px; }
.project h3 { font-size: 19px; }
.project .meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 7px;
}
.project p { margin: 0; color: var(--muted); font-size: 15px; max-width: 70ch; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.shots img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* ---------- plain lists ---------- */

.cols {
  columns: 2;
  column-gap: 42px;
  padding-left: 20px;
  margin: 0;
  font-size: 15.5px;
}
.cols li { margin-bottom: 7px; break-inside: avoid; }

.namegrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 10px;
}
.namegrid li {
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  background: #fff;
  padding: 12px 15px;
  font-size: 14.5px;
  border-radius: 2px;
}
.namegrid li.major { border-left-color: var(--red); font-weight: bold; }

/* ---------- callout ---------- */

.note {
  background: var(--teal-wash);
  border-left: 4px solid var(--teal);
  padding: 18px 22px;
  font-size: 15px;
  color: #2c353d;
}
.note :last-child { margin-bottom: 0; }
.note p { margin: 0 0 12px; }

/* ---------- CTA band ---------- */

.band {
  background: var(--teal-deep);
  color: #fff;
  padding: 52px 0;
}
.band .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.band h2 { font-size: 27px; }
.band p { margin: 10px 0 0; color: #cfeaf2; }
.band .btn-primary { background: #fff; color: var(--teal-deep); }
.band .btn-primary:hover { background: var(--ink); color: #fff; }

/* ---------- contact ---------- */

.contactgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 24px;
}
.contactgrid .card p { color: var(--ink); }
.contactgrid .card a { font-size: 17px; }
address { font-style: normal; color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */

.foot {
  background: var(--dark);
  color: #9fb0bc;
  padding: 46px 0 34px;
  font-size: 14.5px;
}
.foot .grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.foot h3 {
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.foot a { color: #cfdae2; }
.foot a:hover { color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot img { width: 128px; margin-bottom: 16px; }
.foot .rule {
  border-top: 1px solid #26313b;
  margin-top: 34px;
  padding-top: 20px;
  font-size: 13px;
  color: #77899a;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero .grid, .split, .foot .grid { grid-template-columns: 1fr; }
  .hero .grid { gap: 34px; }
  .split { gap: 34px; }
  .split > .aside { position: static; }
  .hero { padding: 44px 0 50px; }
  section { padding: 44px 0; }
  section[id] { scroll-margin-top: 12px; }
  .cols { columns: 1; }
  /* a wrapped 2-row nav pinned to the top eats too much of a phone screen */
  .masthead { position: static; }
  .masthead .shell { padding-bottom: 6px; gap: 10px; }
  .nav { width: 100%; margin: 0 -10px; }
  .nav a { padding: 7px 10px; font-size: 13px; letter-spacing: .02em; }
  .kv th { width: auto; white-space: normal; }
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .kv, .kv tbody, .kv tr, .kv th, .kv td { display: block; }
  .kv th { border: 0; padding-bottom: 0; }
  .kv td { padding-top: 4px; }
  .kv tr:first-child th { border-top: 0; }
}

@media print {
  .masthead, .band, .nav { display: none; }
  body { font-size: 11pt; }
}
