/* Revive Building Recyclers - main site
   Palette is taken from Revive's own sign and logo. */

@font-face { font-family: "Bitter"; src: url("../fonts/bitter.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("../fonts/bitter-italic.woff") format("woff"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url("../fonts/sourcesans.woff") format("woff"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url("../fonts/sourcesans-italic.woff") format("woff"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --charcoal: #2c302e;     /* the shop sign */
  --green: #47704c;        /* the logo */
  --green-dark: #355a3a;
  --primer: #e8ebe5;       /* undercoat */
  --board: #fafbf8;        /* painted weatherboard */
  --ink: #1d211f;
  --muted: #5a625d;
  --line: #c9cfc7;
  --slab: "Bitter", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "Source Sans", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 72rem;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--primer); color: var(--ink); font: 400 1.125rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #e0b43a; outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--slab); color: var(--charcoal); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
p, ul, ol, dl { margin: 0 0 1em; }
.lede { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5; max-width: 38em; }
.measure { max-width: 40em; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--board); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--charcoal); color: #fff; position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 4.5rem; }
.brand { display: inline-flex; flex-direction: column; align-items: center; background: var(--green); color: #fff; text-decoration: none; padding: .4rem .7rem .35rem; border: 2px solid #f6f3eb; outline: 2px solid var(--green); line-height: 1; }
.brand b { font: 800 1.45rem/1 var(--slab); letter-spacing: .06em; text-shadow: 2px 2px 0 rgba(0,0,0,.35); }
.brand small { font: 600 .56rem/1.3 var(--slab); letter-spacing: .14em; margin-top: .2rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a { color: #e9ece7; text-decoration: none; padding: .5rem .6rem; font-weight: 600; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: #8fb894; text-decoration-thickness: 2px; }
.nav .phone { color: #fff; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid #8b928d; color: #fff; font: 600 1rem var(--sans); padding: .45rem .8rem; border-radius: 3px; }
.services-menu { position: relative; }
.services-menu > button { background: none; border: 0; color: #e9ece7; font: 600 1rem var(--sans); padding: .5rem .6rem; cursor: pointer; }
.services-menu > button::after { content: ""; display: inline-block; margin-left: .4em; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.services-menu ul { display: none; position: absolute; top: 100%; left: 0; min-width: 15rem; list-style: none; margin: 0; padding: .4rem 0; background: var(--charcoal); border-top: 3px solid var(--green); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.services-menu.open ul { display: block; }
.services-menu ul a { display: block; padding: .55rem 1rem; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--charcoal); padding: .5rem var(--gap) 1.25rem; border-top: 1px solid #4a504c; }
  .nav.open { display: flex; }
  .nav a, .services-menu > button { padding: .75rem 0; text-align: left; }
  .services-menu ul { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; background: none; }
  .services-menu > button { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; font: 700 1.05rem/1 var(--sans); padding: .95rem 1.35rem; border-radius: 3px; text-decoration: none; border: 2px solid var(--green); background: var(--green); color: #fff; cursor: pointer; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn.ghost:hover { background: var(--charcoal); color: #fff; }
.on-dark .btn.ghost { color: #fff; border-color: #c9d0ca; }
.on-dark .btn.ghost:hover { background: #fff; color: var(--charcoal); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Moulding-profile edges ----------
   A section edge cut like the end of a moulding: a fixed-width profile at the
   left, then a flat run to the right. The colour is the section that follows. */
.edge { display: flex; align-items: flex-end; height: 56px; margin-top: -56px; position: relative; pointer-events: none; }
.edge svg { flex: 0 0 auto; width: 220px; height: 56px; display: block; }
.edge::after { content: ""; flex: 1; height: 14px; background: currentColor; }
.edge.to-primer { color: var(--primer); }
.edge.to-board { color: var(--board); }
.edge.to-charcoal { color: var(--charcoal); }
.edge.to-green { color: var(--green); }

/* ---------- Sections ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.bg-board { background: var(--board); }
.bg-charcoal { background: var(--charcoal); color: #e6e9e4; }
.bg-green { background: var(--green); color: #fff; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark a:not(.btn) { color: #fff; }
.on-dark .muted { color: #b9c1bb; }
.split { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.05fr 1fr; } .split.flip > :first-child { order: 2; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(5rem, 9vw, 7rem); }
.hero h1 { color: #fff; max-width: 11em; }
.hero .lede { color: #dfe4de; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border: 6px solid var(--board); }
.hero-photo figcaption { position: absolute; left: -.75rem; bottom: 1.25rem; background: var(--green); color: #fff; font: 600 .95rem var(--sans); padding: .45rem .8rem; }
.page-hero { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4.5rem, 8vw, 6rem); }
.page-hero h1 { color: #fff; max-width: 14em; }
.page-hero .lede { color: #dfe4de; }

/* ---------- Facts strip under the hero ---------- */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.facts li { padding: 1rem 1.25rem; border-top: 1px solid var(--line); font-weight: 600; }
.facts li:first-child { border-top: 0; }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li { border-top: 0; border-left: 1px solid var(--line); }
  .facts li:first-child { border-left: 0; }
}
.facts strong { display: block; font: 800 1.5rem/1.2 var(--slab); color: var(--green-dark); }

/* ---------- Service doors ---------- */
.doors { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2.5rem; }
.door { display: grid; grid-template-rows: auto 1fr; background: var(--board); color: var(--ink); text-decoration: none; border-top: 5px solid var(--green); }
.door img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.door div { padding: 1.1rem 1.25rem 1.4rem; }
.door h3 { margin-bottom: .3em; }
.door p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.door:hover h3 { text-decoration: underline; text-decoration-color: var(--green); }

/* ---------- Steps (real sequences only) ---------- */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 3px solid var(--charcoal); }
.steps li::before { content: counter(step); font: 800 2.2rem/1 var(--slab); color: var(--green); display: block; margin-bottom: .4rem; }
.on-dark .steps li { border-color: #8b928d; }
.on-dark .steps li::before { color: #9cc4a1; }
.steps h3 { font-size: 1.15rem; margin-bottom: .25em; }
.steps p { margin: 0; }

/* ---------- Lists of things ---------- */
.ticks { list-style: none; padding: 0; columns: 2 15rem; column-gap: 2.5rem; }
.ticks li { break-inside: avoid; padding: .55rem 0 .55rem 1.75rem; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: 1.05rem; width: .7rem; height: .38rem; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.ticks.no li::before { width: .8rem; height: 3px; border: 0; background: #9a4b3a; transform: none; top: 1.15rem; }
.ticks b { font-weight: 700; }
.on-dark .ticks li { border-color: #4a504c; }

.defs { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 2rem; }
.defs > div { border-left: 3px solid var(--green); padding-left: 1rem; }
.defs h3 { font-size: 1.15rem; margin-bottom: .25em; }
.defs p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.chips li { font-size: .92rem; font-weight: 600; border: 1px solid var(--line); background: var(--board); padding: .15rem .55rem; border-radius: 2px; }

/* ---------- Photos ---------- */
.photo img { width: 100%; object-fit: cover; }
.photo figcaption, .grid figcaption { font-size: .95rem; color: var(--muted); padding-top: .4rem; }
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 2rem; }
.strip figure { margin: 0; }
.strip img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); margin-top: 2rem; }
.grid figure { margin: 0; }
.grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
figure { margin: 0; }

/* ---------- Quote ---------- */
.quote { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: end; }
@media (min-width: 760px) { .quote { grid-template-columns: 9rem 1fr; } }
.quote img { width: 9rem; }
.quote blockquote { margin: 0; font: italic 500 clamp(1.4rem, 2.8vw, 2rem)/1.35 var(--slab); color: #fff; max-width: 30em; }
.quote cite { display: block; margin-top: 1rem; font: normal 600 1rem var(--sans); color: #d5e6d7; }

/* ---------- Team ---------- */
.team { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); border-top: 1px solid var(--line); }
.team li { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.team b { display: block; font: 700 1.35rem var(--slab); color: var(--charcoal); }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font: 700 1.15rem var(--slab); color: var(--charcoal); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font: 400 1.6rem var(--sans); color: var(--green); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.1rem; }

/* ---------- Visit / locations ---------- */
.places { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-top: 2rem; }
.place { background: var(--board); color: var(--ink); }
.place iframe { width: 100%; height: 15rem; border: 0; display: block; filter: grayscale(.35); }
.place div { padding: 1.25rem 1.4rem 1.5rem; }
.place h3 { margin-bottom: .2em; }
.place p { margin: 0 0 .5rem; }
.hours { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1.25rem; margin: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.note { font-size: .98rem; border-left: 3px solid #e0b43a; padding: .5rem .9rem; background: #fff7df; color: var(--ink); }

/* ---------- Form ---------- */
.form { background: var(--board); padding: clamp(1.25rem, 3vw, 2.25rem); border-top: 5px solid var(--green); color: var(--ink); }
.form .row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; font: 400 1.05rem var(--sans); padding: .7rem .8rem; border: 1px solid #9aa29c; border-radius: 3px; background: #fff; color: var(--ink); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid #e0b43a; outline-offset: 1px; border-color: var(--charcoal); }
.drop { border: 2px dashed #9aa29c; border-radius: 3px; padding: 1.1rem; text-align: center; background: #fff; }
.drop input { width: auto; border: 0; padding: 0; }
.drop.has-files { border-color: var(--green); }
.files-list { list-style: none; padding: 0; margin: .6rem 0 0; font-size: .95rem; text-align: left; }
.hp { position: absolute; left: -5000px; }
.form .cf-turnstile { margin: .5rem 0 1rem; }
.form-status { font-weight: 600; }

/* ---------- CTA band + footer ---------- */
.cta-band h2 { color: #fff; }
.site-footer { background: var(--charcoal); color: #c9d0ca; padding: 3.5rem 0 2rem; font-size: 1rem; }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.site-footer h2 { font-size: 1.1rem; color: #fff; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: #fff; }
.site-footer .small { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #4a504c; font-size: .9rem; color: #9da59f; }
