/* Bridge Hardware LLC: deep, rich steel navy and oxide red with galvanized grey on warm off-white paper;
   centred hero with a very large headline; classic serif headings with a sans body; logo left, nav right,
   thin rule; category index column beside item rows; pill buttons and tags; bridge-truss motif */
@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f1e7;
  --paper-2: #ede5d6;
  --line: #d8ccb7;
  --navy: #162234;
  --steel: #23395a;
  --oxide: #9a3a22;
  --oxide-dk: #7d2c18;
  --galv: #9aa4ab;
  --text: #24272b;
  --muted: #565a5f;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxide-dk); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--oxide); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.8rem, 8vw, 6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #ffffff; padding: 8px 14px; z-index: 10; }
.skip-link:focus { left: 8px; }
.wrap { width: min(100% - 40px, 1140px); margin-inline: auto; }
.narrow { width: min(100% - 40px, 780px); }
.center { text-align: center; }

/* logo left, nav right, thin rule */
.site-header { border-bottom: 1px solid var(--navy); background: var(--paper); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 26px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); text-decoration: none; }
.brand img { width: 64px; border-radius: 12px; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a { display: inline-block; padding: 7px 16px; border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { background: var(--paper-2); }
.main-nav a[aria-current="page"] { background: var(--navy); color: #ffffff; }

/* centred hero */
.hero { padding: 60px 0 46px; }
.hero.small { padding: 54px 0 18px; }
.tag { display: inline-block; margin: 0 0 18px; padding: 5px 16px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); color: var(--oxide-dk); font-weight: 600; font-size: .9rem; }
.tag.light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #f3d9cf; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.center .lede { margin-inline: auto; }
.center .btn-row { justify-content: center; }
.hero-fig { margin: 40px auto 0; max-width: 960px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); }
.hero-art { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn { display: inline-block; padding: 11px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--oxide); }
.btn.small { padding: 8px 18px; font-size: .92rem; }
.btn.solid { background: var(--oxide); color: #ffffff; }
.btn.solid:hover { background: var(--oxide-dk); border-color: var(--oxide-dk); color: #ffffff; }
.btn.line { color: var(--oxide-dk); }
.btn.line:hover { background: var(--paper-2); }
.btn.light { background: #ffffff; border-color: #ffffff; color: var(--navy); }
.btn.light:hover { background: var(--paper-2); border-color: var(--paper-2); }

.sec { padding: 56px 0; }
.sec.tight { padding-top: 20px; }
.truss { background: var(--paper-2) url("assets/motif-truss.svg") repeat-x center bottom; background-size: 120px 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 80px; }
.cats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cats a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 22px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; color: var(--navy); text-decoration: none; }
.cats a:hover { border-color: var(--oxide); }
.cats img { width: 58px; }
.cats .t { font-family: var(--serif); font-size: 1.2rem; line-height: 1.15; }
.cats .n { font-size: .85rem; color: var(--muted); padding: 2px 10px; border-radius: 999px; background: var(--paper-2); white-space: nowrap; }
.duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 30px 52px; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.ticks li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); color: var(--muted); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 14px; height: 8px; border-radius: 999px; background: var(--oxide); }
.ticks strong { color: var(--navy); font-weight: 600; }
.spot { background: var(--steel); color: #e9edf2; border-radius: 26px; padding: 30px; }
.spot h2 { color: #ffffff; }
.spot strong { color: #f6c3ae; }

/* category index column + item rows */
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px 48px; align-items: start; padding: 26px 0 64px; }
.index-col { position: sticky; top: 18px; border-top: 1px solid var(--navy); padding-top: 14px; }
.label { font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oxide-dk); margin: 0 0 .6em; }
.index { list-style: none; margin: 0 0 18px; padding: 0; }
.index a { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 600; }
.index a:hover { color: var(--oxide-dk); }
.index .i { font-family: var(--serif); color: var(--galv); min-width: 1.8em; }
.cat { margin-bottom: 44px; scroll-margin-top: 16px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.cat-head img { width: 54px; }
.cat-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.rows li { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows h3 { margin: 0 0 2px; }
.rows p { margin: 0; color: var(--muted); font-size: .96rem; }
.rows strong { color: var(--oxide-dk); }
.pr { flex: none; padding: 4px 14px; border-radius: 999px; background: var(--navy); color: #ffffff; font-weight: 600; white-space: nowrap; }
.pr.q { background: transparent; border: 1px solid var(--oxide); color: var(--oxide-dk); white-space: normal; max-width: 12em; text-align: center; font-size: .86rem; line-height: 1.3; }
.feat .rows { border-top-color: var(--oxide); }

/* about / contact */
.first { font-family: var(--serif); font-size: 1.45rem; line-height: 1.45; color: var(--navy); }
.story p:not(.first) { color: var(--muted); }
.facts { margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; padding: 10px 24px; }
.facts.plain { background: transparent; border: 0; padding: 0; border-radius: 0; }
.facts div { padding: 11px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--oxide-dk); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
address { font-style: normal; }
.card { background: #ffffff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.hours { width: 100%; border-collapse: collapse; background: #ffffff; border: 1px solid var(--line); }
.hours caption { text-align: left; font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--navy); margin-bottom: 12px; }
.hours th, .hours td { text-align: left; padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.hours thead th { border-top: 0; background: var(--navy); color: #ffffff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.hours tbody th { white-space: nowrap; }
.note { display: block; color: var(--muted); font-size: .92rem; }
.map-frame { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: 22px; display: block; background: var(--paper-2); }
.map-link { margin: 16px 0 0; font-weight: 600; }

/* footer */
.site-footer { background: var(--navy); color: #c9d2dc; padding: 40px 0 22px; border-top: 6px solid var(--oxide); }
.site-footer a { color: #ffffff; }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px 40px; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; color: #ffffff; margin-bottom: .2em; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-bottom { margin-top: 20px; font-size: .88rem; }

@media (max-width: 960px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo, .catalog { grid-template-columns: 1fr; }
  .index-col { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap, .narrow { width: min(100% - 28px, 1140px); }
  .hero { padding: 40px 0 32px; }
  .brand img { width: 54px; }
  .brand-name { font-size: 1.3rem; }
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 6px 11px; font-size: .9rem; }
  .cats { grid-template-columns: 1fr; }
  .cats a { flex-direction: row; text-align: left; padding: 14px 16px; }
  .cats .n { margin-left: auto; }
  .foot { grid-template-columns: 1fr; }
  .hours th, .hours td { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
