/* Bulldog Metals — self-hosted fonts, no external requests */
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap;
  src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap;
  src: url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  --steel: #24313A;      /* galvanised steel, dark */
  --steel-2: #34444F;
  --zinc: #E7EBE9;       /* page */
  --paper: #F7F8F6;
  --ink: #1C262D;
  --muted: #55636C;
  --hivis: #F2C300;      /* yard hi-vis, used only for actions and the open board */
  --hivis-ink: #1C262D;
  --open: #1E8A4C;
  --closed: #C0392B;
  --rule: #C9D0CD;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--zinc); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: .95; letter-spacing: .005em; margin: 0; }
h2 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h3 { font-size: 1.6rem; font-weight: 800; }
p { margin: 0; }
.small { font-size: .9rem; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; border-radius: 2px; }
.board :focus-visible, .btn--hivis:focus-visible { outline-color: var(--steel); }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--hivis); color: var(--hivis-ink); padding: .6rem 1rem; z-index: 50; font-weight: 700; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--steel); color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.08); }
.masthead__inner { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; padding-block: .5rem; }
.brand { display: block; flex: none; line-height: 0; border-radius: 12px; }
.brand__logo { display: block; height: 3rem; width: auto; } /* the logo is its own light plate, which reads as a yard sign on the steel bar */
@media (min-width: 52rem) { .brand__logo { height: 3.5rem; } }
.masthead__nav { display: none; gap: 1.5rem; margin-left: auto; }
.masthead__nav a { text-decoration: none; opacity: .85; }
.masthead__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .3em; }
.masthead__phone { margin-left: auto; font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (min-width: 52rem) {
  .masthead__nav { display: flex; }
  .masthead__phone { margin-left: 0; background: var(--hivis); color: var(--hivis-ink); padding: .5rem .9rem; border-radius: 3px; }
}

/* ---------- Notices ---------- */
.notices:empty, .notices:not(:has(.notice:not([hidden]))) { display: none; }
.notice { margin-top: 1rem; padding: .9rem 1.1rem; background: var(--paper); border-left: 6px solid var(--hivis); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { background: var(--steel); color: var(--paper); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); overflow: hidden; }

/* The stripped cable along the foot of the hero: the page's one big moment.
   On load the insulation slides back to bare the copper, then a glint runs along it. */
.cable {
  grid-area: cable; position: relative;
  height: clamp(2.25rem, 4.5vw, 3.25rem);
  margin-inline: calc(var(--gutter) * -1); /* full bleed on small screens */
}
@media (min-width: 60rem) { .cable { margin-inline: calc((100vw - 100%) / -2); } }
.cable__core {
  position: absolute; inset: 20% 0;
  background:
    repeating-linear-gradient(-62deg, rgba(60,20,4,.35) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #6a2f12 0%, #b25a2b 22%, #f3b384 46%, #d07a42 60%, #8a3f1b 82%, #5a270e 100%);
  overflow: hidden;
}
.cable__core::after {
  content: ""; position: absolute; inset: 0; width: 18rem;
  background: linear-gradient(100deg, transparent, rgba(255,240,215,.75) 50%, transparent);
  transform: translateX(-20rem);
  animation: glint 9s 2s ease-in-out infinite;
}
.cable__sheath {
  position: absolute; inset: 0 -2rem 0 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), transparent 28%, transparent 62%, rgba(0,0,0,.28)),
    #A3ABAF; /* grey PVC, as on twin-and-earth */
  border-radius: 999px 0 0 999px;
  box-shadow: inset 7px 0 0 -2px #C9CFD2; /* the cut face of the insulation */
  transform: translateX(var(--strip, 52%));
  animation: strip 1.7s .35s cubic-bezier(.7, 0, .2, 1) backwards;
}
@media (max-width: 40rem) { .cable__sheath { --strip: 40%; } }
@keyframes strip { from { transform: translateX(0); } }
@keyframes glint {
  0% { transform: translateX(-20rem); }
  16%, 100% { transform: translateX(100vw); }
}

/* Each metal swatch catches the light once as it scrolls into view */
.metal__swatch { position: relative; overflow: hidden; }
.metal__swatch::after {
  content: ""; position: absolute; inset: 0; width: 60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55) 50%, transparent);
  transform: translateX(-120%);
}
.metal.is-lit .metal__swatch::after { animation: swatch-glint 1.1s calc(var(--i, 0) * 90ms) ease-out both; }
@keyframes swatch-glint { to { transform: translateX(260%); } }
.hero__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; grid-template-areas: "title" "cable" "board" "body"; }
.hero__title {
  grid-area: title;
  font-size: clamp(3.4rem, 11vw, 8rem);
  text-transform: uppercase; line-height: .86; letter-spacing: -.005em;
  max-width: 11ch;
}
.hero__body { grid-area: body; max-width: 36rem; }
.hero__lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: #D5DCD9; }
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: 1fr 20rem; grid-template-areas: "title board" "cable cable" "body ."; column-gap: 4rem; row-gap: 2.5rem; align-items: start; }
}

/* The one loud thing: the yard board */
.board {
  grid-area: board; align-self: start;
  background: var(--hivis); color: var(--hivis-ink);
  padding: 1.4rem 1.5rem 1.5rem; border-radius: 4px;
  box-shadow: inset 0 0 0 3px var(--hivis-ink), inset 0 0 0 7px var(--hivis);
}
.board__state { display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; text-transform: uppercase; }
.board__dot { flex: none; width: .9rem; height: .9rem; border-radius: 50%; background: var(--hivis-ink); }
.board.is-open .board__dot { background: var(--open); box-shadow: 0 0 0 0 rgba(30,138,76,.6); animation: pulse 2.4s ease-out infinite; }
.board.is-closed .board__dot { background: var(--closed); }
.board__detail { margin-top: .7rem; font-size: 1.05rem; font-weight: 700; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30,138,76,.55); } 70% { box-shadow: 0 0 0 .7rem rgba(30,138,76,0); } 100% { box-shadow: 0 0 0 0 rgba(30,138,76,0); } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; min-height: 3rem; padding: .7rem 1.25rem; border-radius: 3px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn--hivis { background: var(--hivis); color: var(--hivis-ink); font-size: 1.15rem; }
.btn--hivis:hover { background: #FFD21A; }
.btn--ghost { border-color: rgba(247,248,246,.5); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); }
.btn--steel { background: var(--steel); color: var(--paper); }
.btn--steel:hover { background: var(--steel-2); }
.btn--outline { border-color: var(--steel); color: var(--steel); }
.btn--outline:hover { background: var(--paper); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section__head { display: grid; gap: .9rem; margin-bottom: 2.25rem; max-width: 40rem; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.section--steel { background: var(--steel-2); color: var(--paper); }
.section--steel .section__head p { color: #CBD3D0; }

/* ---------- Metals ---------- */
.metals { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  grid-template-columns: repeat(2, 1fr); }
@media (min-width: 56rem) { .metals { grid-template-columns: repeat(4, 1fr); } }
.metal { --pad: clamp(.85rem, 2.5vw, 1.25rem); background: var(--paper); padding: 0 var(--pad) 1.3rem; display: flex; flex-direction: column; gap: .4rem; }
.metal__swatch { display: block; height: clamp(3rem, 8vw, 4.5rem); margin: 0 calc(var(--pad) * -1) .5rem; }
.metal h3 { font-size: clamp(1.35rem, 4vw, 1.6rem); }
.metal p { font-size: clamp(.95rem, 2.6vw, 1.0625rem); }
.metal--ask { background: var(--hivis); padding-top: 1.3rem; justify-content: center; }
.metal.metal--ask p { color: var(--hivis-ink); }
.metal--ask .btn { white-space: nowrap; margin-top: .5rem; align-self: start; font-size: .95rem; min-height: 2.75rem; padding: .55rem .9rem; }
.metal p { color: var(--muted); }
.metal--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; column-gap: 2rem; }
.metal--feature .metal__swatch { height: 6rem; }
.metal--feature h3 { font-size: 2.2rem; }
.metal--feature p { color: var(--ink); font-size: 1.15rem; max-width: 34rem; }
@media (min-width: 46rem) {
  .metal--feature { grid-template-columns: 14rem 1fr; padding: 0; align-items: center; }
  .metal--feature .metal__swatch { grid-row: 1 / 3; height: 100%; min-height: 9rem; margin: 0; }
  .metal--feature h3 { align-self: end; padding-top: 1.4rem; }
  .metal--feature p { align-self: start; padding-bottom: 1.4rem; padding-right: 1.25rem; }
}

/* Material swatches, drawn in CSS so they need no images */
.metal--cable .metal__swatch {
  background:
    repeating-linear-gradient(115deg, rgba(0,0,0,.18) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #1d2226 0 22%, #3a4148 22% 26%, #8a3f1b 26%, #c8703c 40%, #f2b07c 50%, #c06733 60%, #7a3716 74%, #3a4148 74% 78%, #1d2226 78%);
}
.metal--copper .metal__swatch { background: linear-gradient(120deg, #6e3316, #b25a2b 30%, #f0a874 48%, #c46a3a 60%, #7a3a1a); }
.metal--brass .metal__swatch { background: linear-gradient(120deg, #5e4610, #b38a26 30%, #f3dc8a 48%, #c9a43a 62%, #6b5214); }
.metal--aluminium .metal__swatch { background: linear-gradient(120deg, #7d868c, #b9c1c6 30%, #f7f9fa 48%, #d9dee1 62%, #8d969c); }
.metal--lead .metal__swatch { background: linear-gradient(120deg, #353b41, #5a6168 35%, #8a9299 50%, #6b737b 65%, #3f464d); }
.metal--stainless .metal__swatch {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 1px, transparent 1px 3px),
    linear-gradient(120deg, #8b9499, #c3cacd 30%, #f4f6f7 48%, #e6eaec 60%, #9aa3a8);
}
.metal--gunmetal .metal__swatch { background: linear-gradient(120deg, #3e4038, #6e6a55 32%, #a8a084 50%, #857f66 64%, #4a4d45); }
.metal--bronze .metal__swatch { background: linear-gradient(120deg, #4e3218, #94632f 32%, #d8a96a 50%, #a8743d 64%, #5b3a1c); }


/* ---------- Steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 2rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 1rem; row-gap: .4rem; }
.steps li::before {
  content: counter(step); grid-row: 1 / 3;
  font-family: var(--display); font-weight: 900; font-size: 3.5rem; line-height: .85; color: var(--hivis);
}
.steps p { color: #D5DCD9; max-width: 30rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.id-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); max-width: 44rem; color: #D5DCD9; }
.id-note strong { color: var(--paper); }

/* ---------- Visit ---------- */
.visit { display: grid; gap: 3rem; }
@media (min-width: 56rem) { .visit { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }
.hours { width: 100%; border-collapse: collapse; margin: 1.5rem 0 1rem; font-size: 1.05rem; }
.hours th, .hours td { text-align: left; padding: .65rem clamp(.4rem, 1.5vw, .75rem); border-bottom: 1px solid var(--rule); }
.hours td { white-space: nowrap; }
@media (max-width: 30rem) { .hours tr.is-today th::after { content: none; } }
.hours thead th { font-size: .9rem; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--steel); }
.hours tbody th { font-weight: 700; }
.hours tr.is-today { background: var(--paper); box-shadow: inset 5px 0 0 var(--hivis); }
.hours tr.is-today th::after { content: " (today)"; font-weight: 400; color: var(--muted); }
.findus address { font-style: normal; font-size: 1.3rem; line-height: 1.45; margin-top: 1.5rem; }
.findus .actions { margin-top: 1.5rem; }
.findus__phone { margin-top: 1.5rem; font-size: 1.1rem; }
.findus__phone a { font-weight: 700; }

/* ---------- Footer ---------- */
.footer {
  position: relative; color: #C6CFCB;
  /* Skyline drawn by Paul Woodhead for DrupalCamp NW 2013, recoloured */
  padding-block: 3rem calc(clamp(10rem, 19vw, 24rem) + 4rem); /* extra room for the mobile dock */
  background: var(--steel) url("../img/skyline.svg") center bottom / max(100%, 1000px) auto no-repeat;
}
.footer__inner { position: relative; }
.footer__inner { display: grid; gap: .5rem; }
.footer strong { color: var(--paper); }
.footer .small { color: #9AA7A2; margin-top: .75rem; }

/* ---------- Mobile dock ---------- */
.dock { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; background: var(--steel); border-top: 1px solid rgba(255,255,255,.12); padding-bottom: env(safe-area-inset-bottom); }
.dock a { display: flex; justify-content: center; align-items: center; min-height: 3.75rem; font-weight: 700; text-decoration: none; color: var(--paper); }
.dock a:first-child { background: var(--hivis); color: var(--hivis-ink); }
@media (min-width: 52rem) { .dock { display: none; } .footer { padding-bottom: clamp(10rem, 19vw, 24rem); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cable__sheath, .cable__core::after, .metal.is-lit .metal__swatch::after { animation: none; }
  .board.is-open .board__dot { animation: none; }
}
