/* Delaware Valley Scrap Co. website */
@font-face { font-family: "Barlow"; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --steel: #1D201D;      /* page */
  --plate: #272B27;      /* raised panels */
  --plate-2: #222622;    /* alternate bands */
  --rule: #3B413B;
  --text: #ECEFE8;
  --muted: #A9B0A4;
  --green: #6DB33F;      /* logo green, lifted for dark backgrounds */
  --green-deep: #3C8407; /* logo green */
  --green-ink: #9BD46F;  /* numbers on the board */
  --amber: #F2B33D;      /* holiday / closed: safety yellow */
  --cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--steel); color: var(--text); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--green-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: #000; padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; }

h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.375rem; font-weight: 600; }
.lede { font-size: 1.1875rem; color: #D7DCD2; max-width: 38em; }

/* ---------- banners */
.banner { font-size: 1rem; }
.banner-holiday { background: var(--amber); color: #1F1A0B; }
.banner-holiday .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: baseline; padding-top: 9px; padding-bottom: 9px; }
.banner-title { font-family: var(--cond); font-size: 1.25rem; }
.banner ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 22px; }
.banner .when { font-weight: 600; }
.banner-notice { background: var(--plate); border-bottom: 1px solid var(--rule); }
.banner-notice .wrap { padding-top: 10px; padding-bottom: 10px; border-left: 4px solid var(--green); }
.banner-notice p { margin: 0; padding-left: 4px; }

/* ---------- header */
.masthead { border-bottom: 1px solid var(--rule); background: var(--steel); }
.masthead-in { display: flex; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: block; line-height: 0; margin-right: auto; }
.brand img { height: 80px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav a { display: block; padding: 8px 10px; color: var(--text); text-decoration: none; font-family: var(--cond); font-weight: 600; font-size: 1.1875rem; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: #fff; border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--green); }
.call { font-family: var(--cond); font-weight: 700; font-size: 1.375rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.call-label { color: var(--muted); font-weight: 600; }
.call:hover { color: var(--green-ink); }
.menu-btn { display: none; font: 600 1.0625rem var(--body); color: var(--text); background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 8px 14px; cursor: pointer; }

/* ---------- buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 11px 20px; border: 2px solid var(--rule); border-radius: 4px; color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.2; background: transparent; }
.btn:hover { border-color: var(--muted); color: #fff; }
.btn-primary { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-primary:hover { background: #4A9A10; border-color: #4A9A10; }
.more { font-weight: 600; }

/* ---------- hero + the board */
.hero { padding: 56px 0 64px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 10em; }
.hero-where { margin-top: 28px; font-size: 1rem; }

.board { background: #161916; border: 1px solid #3F463F; border-radius: 6px; box-shadow: inset 0 0 0 4px #202420, 0 18px 40px rgba(0,0,0,.35); padding: 22px 24px 18px; }
.board-top { border-bottom: 1px dashed #3F463F; padding-bottom: 14px; margin-bottom: 6px; }
.status { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.status strong { font-family: var(--cond); font-size: 1.75rem; font-weight: 700; }
.status span:last-child { color: var(--muted); }
.lamp { width: 12px; height: 12px; border-radius: 50%; align-self: center; background: #5A615A; }
.status.is-open .lamp { background: var(--green); box-shadow: 0 0 0 4px rgba(109,179,63,.2), 0 0 12px rgba(109,179,63,.8); }
.status.is-open strong { color: var(--green-ink); }
.status.is-closed .lamp { background: var(--amber); box-shadow: 0 0 0 4px rgba(242,179,61,.18); }
/* each row is a grid so the price sits on the item name's line (not the group label's) */
.board-prices { width: 100%; border-collapse: collapse; }
.board-prices tbody { display: block; }
.board-prices tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: last baseline; column-gap: 14px; padding: 10px 0; border-bottom: 1px solid #2A2F2A; }
.board-prices tr:last-child { border-bottom: 0; }
.board-prices th, .board-prices td { padding: 0; }
.board-prices th { text-align: left; font-weight: 400; }
.b-group { display: block; font-size: .8125rem; line-height: 1.3; color: var(--muted); }
.b-item { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.board-prices td { line-height: 1; text-align: right; font-family: var(--cond); font-weight: 700; font-size: 1.875rem; color: var(--green-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-prices small, .price-group small { font-size: .55em; color: var(--muted); font-weight: 600; margin-left: 2px; }
.board-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed #3F463F; font-size: .9375rem; color: var(--muted); }
.board-foot a { font-weight: 600; }
.board-empty { margin: 14px 0 4px; font-size: 1.125rem; }

/* ---------- page sections */
.page-title { padding: 44px 0 30px; border-bottom: 1px solid var(--rule); }
.page-title .status { margin-top: 6px; }
.band { padding: 52px 0; }
.band-alt { background: var(--plate-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band + .band:not(.band-alt) { border-top: 1px solid var(--rule); }
.band-alt + .band { border-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; }
.split h2 + h3, .split .hours + h3 { margin-top: 1.4em; }
.split .hours + h2, .split .holiday-list + h2 { margin-top: 1.6em; }
.callout { align-self: start; background: var(--plate); border-left: 4px solid var(--green); padding: 18px 22px 4px; border-radius: 0 4px 4px 0; margin: 1em 0; }
.callout h2, .callout h3 { margin-bottom: .35em; }
.big-address { font-family: var(--cond); font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin-bottom: .3em; }

/* lists */
.ticks, .crosses { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li, .crosses li { position: relative; padding: 5px 0 5px 26px; border-bottom: 1px solid #2C312C; break-inside: avoid; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 10px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 3px; top: 1.05em; width: 12px; height: 2.5px; background: var(--amber); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.cols-2 { columns: 2; column-gap: 32px; }
.cols-3 { columns: 3; column-gap: 32px; }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border-top: 3px solid var(--green); }
.services > div { padding: 18px 22px 8px 0; }
.services > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.services dt { font-family: var(--cond); font-weight: 700; font-size: 1.5rem; margin-bottom: 6px; }
.services dd { margin: 0 0 1em; color: #D7DCD2; }
.service { display: grid; grid-template-columns: 300px 1fr; gap: 12px 48px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.service:first-child { padding-top: 0; }
.service:last-child { border-bottom: 0; }
.service > div { max-width: 40em; }
table.fees { border-collapse: collapse; margin: 4px 0 1.2em; }
table.fees th { text-align: left; font-weight: 600; padding: 6px 32px 6px 0; border-bottom: 1px solid var(--rule); }
table.fees td { font-family: var(--cond); font-weight: 700; font-size: 1.5rem; color: var(--green-ink); text-align: right; border-bottom: 1px solid var(--rule); }

.sizes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sizes li { background: var(--plate); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 18px; color: var(--muted); }
.sizes b { display: block; font-family: var(--cond); font-size: 3rem; line-height: 1; color: var(--text); }

/* hours */
table.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin-bottom: .6em; }
table.hours th, table.hours td { padding: 7px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.hours th { font-weight: 600; padding-right: 20px; }
table.hours td { text-align: right; white-space: nowrap; }
.hours-note { color: var(--muted); font-size: .9375rem; }
.holiday-list { list-style: none; padding: 0; margin: .6em 0 1em; max-width: 420px; }
.holiday-list li { border-left: 4px solid var(--amber); background: rgba(242,179,61,.08); padding: 8px 12px; margin-bottom: 6px; display: grid; grid-template-columns: 1fr auto; gap: 0 12px; }
.holiday-list span { grid-column: 1; color: var(--muted); font-size: .9375rem; }
.holiday-list em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 600; color: var(--amber); }

/* prices page */
.price-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.price-find { display: flex; flex-direction: column; gap: 4px; font-weight: 600; flex: 1 1 280px; max-width: 420px; }
.price-find input { font: inherit; font-weight: 400; color: var(--text); background: var(--plate); border: 1px solid #4A514A; border-radius: 4px; padding: 10px 12px; }
.price-find input:focus { outline: 3px solid var(--amber); outline-offset: 1px; }
.price-groups { columns: 3 300px; column-gap: 36px; }
.price-group { break-inside: avoid; margin-bottom: 30px; }
.price-group h2 { font-size: 1.75rem; border-bottom: 3px solid var(--green); padding-bottom: 6px; margin-bottom: 4px; }
.price-group table { width: 100%; border-collapse: collapse; }
.price-group th, .price-group td { padding: 8px 0; border-bottom: 1px solid #2C312C; vertical-align: baseline; }
.price-group th { text-align: left; font-weight: 400; padding-right: 12px; }
.price-group td { text-align: right; font-family: var(--cond); font-weight: 700; font-size: 1.375rem; color: var(--green-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-group tr.hide, .price-group.hide { display: none; }
.no-match { color: var(--amber); }
.fine { color: var(--muted); font-size: .9375rem; }

/* contact */
.contact-list { margin: 0 0 1.2em; }
.contact-list > div { display: grid; grid-template-columns: 90px 1fr; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: 4px; background: var(--plate); filter: grayscale(.25); }

/* footer */
.sitefoot { background: #161916; border-top: 1px solid var(--rule); padding: 40px 0 18px; font-size: .9375rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px 40px; }
.foot-name, .foot-head { font-family: var(--cond); font-weight: 700; font-size: 1.25rem; margin-bottom: .4em; }
.sitefoot table.hours th, .sitefoot table.hours td { padding: 4px 0; border-color: #2A2F2A; }
.foot-base { border-top: 1px solid #2A2F2A; margin-top: 24px; padding-top: 14px; color: var(--muted); font-size: .875rem; }
.foot-base p { margin: 0; }

/* ---------- smaller screens */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .services { grid-template-columns: 1fr 1fr; }
  .services > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .services > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .service { grid-template-columns: 1fr; }
  .cols-3 { columns: 2; }
}
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .masthead-in { gap: 8px 12px; }
  .brand img { height: 60px; }
  .menu-btn { display: inline-block; }
  .js .site-nav { display: none; width: 100%; order: 3; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav { width: 100%; order: 3; }
  .site-nav a { padding: 11px 4px; border-bottom: 1px solid var(--rule); border-left: 3px solid transparent; padding-left: 10px; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); border-left-color: var(--green); }
  .call { order: 2; width: 100%; text-align: center; background: var(--green-deep); color: #fff; padding: 10px; border-radius: 4px; font-size: 1.375rem; }
  .call-label { color: #DCEBD0; }
  .call:hover { color: #fff; }
  .hero { padding: 32px 0 40px; }
  .split, .foot-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .services > div, .services > div + div { padding-left: 0; border-left: 0; }
  .services > div + div { border-top: 1px solid var(--rule); }
  .cols-2, .cols-3 { columns: 1; }
  .board { padding: 18px 16px 14px; }
  .board-prices td { font-size: 1.625rem; }
  .map iframe { min-height: 320px; }
  .band { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .masthead nav, .menu-btn, .banner-notice, .map, .skip { display: none; }
  body { background: #fff; color: #000; }
}
