/* CornerLine Supply LLC: bright safety yellow, tool red and steel blue on a bright white base; an hours and phone
   strip above the header, a narrow document column, humanist sans, each catalogue category in its own full-width
   coloured band, soft shadows and no borders, tape-measure divider */
@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;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-800.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #ffc800;
  --red: #c41f18;
  --steel: #2f5d8a;
  --ink: #15181d;
  --white: #ffffff;
  --muted: #535a63;
  --rule: #e6e8eb;
  --shadow: 0 12px 28px rgba(21, 24, 29, 0.12), 0 2px 6px rgba(21, 24, 29, 0.08);
  --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(--white); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-weight: 800; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1.08rem; line-height: 1.3; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.doc { width: min(800px, 100% - 40px); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px;
  background: var(--yellow); color: var(--ink); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* hours/phone strip above the header */
.strip { background: var(--ink); color: var(--white); font-size: 0.9rem; }
.strip-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.strip p { margin: 0; }
.strip a { color: var(--yellow); font-weight: 600; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { width: 64px; height: 64px; }
.brand-name { font-weight: 800; font-size: 1.35rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a { display: block; padding: 6px 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { background: var(--yellow); box-shadow: var(--shadow); }
.tape { height: 14px; background: url("assets/motif-tape.svg") 0 0 / 40px 14px repeat-x; }

/* narrow column */
.intro { padding: 44px 0 52px; }
.tag { display: inline-block; margin: 0 0 14px; padding: 3px 12px; background: var(--ink); color: var(--yellow); font-weight: 600; font-size: 0.88rem; }
.lede { font-size: 1.16rem; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.btn { display: inline-block; padding: 11px 22px; font-weight: 800; text-decoration: none; box-shadow: var(--shadow); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--ink); color: var(--white); }
.btn-plain { background: var(--white); color: var(--ink); }
.btn-plain:hover { background: var(--yellow); color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--white); color: var(--ink); }
.lift { background: var(--white); box-shadow: var(--shadow); }
.art { margin-top: 32px; }
.hero-art { width: 100%; }
.ruled { list-style: none; margin: 0 0 30px; padding: 0; }
.ruled li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.ruled strong { color: var(--ink); }
.spot { padding: 26px; }
.spot p { color: var(--muted); }
.kicker { margin: 0 0 6px; color: var(--red) !important; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.amount { font-weight: 800; font-size: 1.5rem; color: var(--ink) !important; }

/* full-width coloured category bands */
.band { padding: 46px 0; scroll-margin-top: 0; }
.tone-yellow { background: var(--yellow); color: var(--ink); }
.tone-red { background: var(--red); color: var(--white); }
.tone-steel { background: var(--steel); color: var(--white); }
.tone-black { background: var(--ink); color: var(--white); }
.tone-red h2, .tone-steel h2, .tone-black h2 { color: var(--white); }
.tone-red .map-link a, .tone-steel .map-link a, .tone-black a:not(.btn) { color: var(--white); }
.tone-steel .map-link a { color: var(--white); }
.band-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.band-head img { width: 56px; height: 56px; background: var(--white); padding: 6px; box-shadow: var(--shadow); }
.band-head h2 { margin: 0; letter-spacing: 0.02em; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 16px 18px; color: var(--ink); }
.item h3 { margin: 0 0 3px; }
.item .desc { margin: 0; color: var(--muted); font-size: 0.96rem; }
.item p { margin: 0; }
.price { margin: 0; font-weight: 800; font-size: 1.3rem; color: var(--red); text-align: right; white-space: nowrap; }
.price.quote { font-size: 1rem; line-height: 1.35; white-space: normal; max-width: 11em; color: var(--ink); }
.price.quote a { display: block; margin-top: 4px; color: var(--steel); white-space: nowrap; font-weight: 600; }
.aisle-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.aisle-chips a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; background: var(--white); color: var(--ink); font-weight: 800; text-decoration: none; box-shadow: var(--shadow); }
.aisle-chips a:hover { color: var(--red); }
.aisle-chips img { width: 40px; height: 40px; }
.jump { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: block; padding: 5px 12px; background: var(--white); color: var(--ink); font-weight: 600; font-size: 0.92rem; text-decoration: none; box-shadow: var(--shadow); }
.jump a:hover { background: var(--yellow); }
#featured .btn-row { margin-top: 20px; }
.why .item { grid-template-columns: 1fr; }
.why .item p { color: var(--muted); }
.why strong { color: var(--ink); }

/* about */
.story p { color: var(--muted); }
.story p.first { color: var(--ink); font-size: 1.28rem; line-height: 1.5; }
.facts-card, .pad { padding: 24px; margin-top: 26px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--steel); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* contact */
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-weight: 800; font-size: 1.6rem; margin-bottom: 8px; }
.hours thead th { text-align: left; padding: 6px 0; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); border-bottom: 3px solid var(--yellow); }
.hours tbody th, .hours tbody td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.hours tbody th { padding-right: 14px; font-weight: 600; }
.hours td { white-space: nowrap; }
.hours td.closed { color: var(--muted); }
.hours .note { display: block; white-space: normal; color: var(--muted); font-size: 0.9rem; }
.map-frame { display: block; width: 100%; height: 380px; border: 0; }
.map-link { margin: 14px 0 0; }

/* footer */
.site-footer { background: var(--ink); color: #c9ced6; padding: 40px 0 24px; }
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 24px; }
.footer-name { font-weight: 800; font-size: 1.25rem; color: var(--white); margin-bottom: 6px; }
.footer-title { color: var(--white); font-weight: 600; margin-bottom: 8px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid #2e333b; font-size: 0.86rem; }

@media (max-width: 760px) {
  .head-row { flex-direction: column; align-items: flex-start; }
  .strip-row { flex-direction: column; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; gap: 6px; }
  .price { text-align: left; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .main-nav, .main-nav ul { width: 100%; }
  .main-nav ul { display: grid; grid-template-columns: 1fr 1fr; }
  .main-nav a { text-align: center; }
  .map-frame { height: 300px; }
}
