/*
Theme Name: South Norfolk Recycling
Theme URI: https://xpose.online
Author: Xpose
Description: Custom theme for South Norfolk Recycling. Static-export friendly — no build step, no framework, no webfonts.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.1
License: Proprietary
Text Domain: snr
*/

/* ============================================================
   TOKENS
   Palette is drawn from the trade: galvanised steel, verdigris,
   raw copper. Hi-vis is reserved for ONE job — the licence badge.
   ============================================================ */

:root {
  --ink:        #101614;
  --steel:      #171F1C;
  --steel-2:    #232D29;
  --paper:      #F6F7F5;
  --surface:    #FFFFFF;
  --muted:      #5C665F;
  --faint:      #8A928B;
  --rule:       #DDE1DC;
  --rule-dark:  #303A35;

  --green:      #14503C;
  --green-lift: #1E6B50;
  --copper:     #B4521F;
  --copper-lift:#CA6127;
  --hivis:      #F2C230;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;

  --wrap: 74rem;
  --measure: 60ch;
  --bar: 4.25rem; /* sticky mobile action bar height */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Mobile: leave room for the sticky action bar */
@media (max-width: 47.99rem) {
  body { padding-bottom: var(--bar); }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

@media (min-width: 60rem) { .wrap { padding: 0 2rem; } }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ============================================================
   TYPE
   ============================================================ */

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }

h1 { font-size: clamp(2.4rem, 7.5vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; }

p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0;
}
.eyebrow.on-dark { color: var(--hivis); }

.lede { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); }
.lede.on-dark { color: #C4CCC7; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.05rem 1.6rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .12s ease, background-color .12s ease;
  min-height: 3.25rem;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-lift); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--steel-2); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  background: var(--steel);
  color: #fff;
  border-bottom: 1px solid var(--rule-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand-mark {
  width: 2.1rem; height: 2.1rem; flex: none; border-radius: 3px;
  background: var(--green); display: grid; place-items: center;
  font-weight: 800; font-size: .82rem; letter-spacing: -.04em; color: #fff;
}
.brand-name { font-weight: 800; letter-spacing: -.03em; font-size: 1.02rem; line-height: 1.1; }
.brand-name span { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; color: var(--hivis); font-weight: 400; text-transform: uppercase; }

.header-call { display: none; }
@media (min-width: 48rem) {
  .header-call { display: inline-flex; }
}

.nav { display: none; }
@media (min-width: 62rem) {
  .nav { display: flex; gap: 1.6rem; }
  .nav a {
    color: #D5DBD7; text-decoration: none; font-size: .93rem; font-weight: 600;
    padding: .3rem 0; border-bottom: 2px solid transparent;
  }
  .nav a:hover { color: #fff; border-bottom-color: var(--hivis); }
}

/* ============================================================
   HERO — typographic, no photograph.
   Every competitor leads with a stock van. This leads with the
   one thing they can't copy.
   ============================================================ */

.hero {
  background: var(--steel);
  color: #fff;
  padding: 3.25rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

/* faint diagonal hazard rake — trade signal, very low contrast */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(242,194,48,.05) 0 14px,
    transparent 14px 28px
  );
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; display: grid; gap: 1.5rem; }

.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--hivis); }

.hero-actions { display: grid; gap: .75rem; }
@media (min-width: 30rem) { .hero-actions { grid-template-columns: repeat(2, auto); justify-content: start; } }

.hero-note {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: #9AA49E;
}

/* ============================================================
   LICENCE STRIP — the thesis, immediately under the hero.
   ============================================================ */

.licence {
  background: var(--hivis);
  color: var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.licence-inner {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 0;
}
@media (min-width: 56rem) {
  .licence-inner { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }
}
.licence-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  display: flex; align-items: center; gap: .55rem;
}
.licence-nums { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.licence-num { font-family: var(--mono); font-size: .78rem; }
.licence-num b { display: block; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; font-weight: 400; }

/* ============================================================
   SECTIONS
   ============================================================ */

.section { padding: 3.5rem 0; }
@media (min-width: 60rem) { .section { padding: 5rem 0; } }

.section-dark { background: var(--steel); color: #fff; }
.section-dark h2 { color: #fff; }

.section-head { display: grid; gap: .85rem; margin-bottom: 2.25rem; max-width: var(--measure); }

/* ============================================================
   SERVICES
   ============================================================ */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  padding: 1.5rem 1.35rem;
  display: grid;
  gap: .6rem;
  align-content: start;
  text-decoration: none;
  color: var(--ink);
  transition: border-top-color .12s ease, transform .12s ease;
}
.card:hover { border-top-color: var(--copper); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: .95rem; }
.card .more { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--copper); }

@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

/* ============================================================
   HOW IT WORKS — 3 steps. Numbered because it IS a sequence.
   ============================================================ */

.steps { display: grid; gap: 1.75rem; counter-reset: step; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.step { counter-increment: step; display: grid; gap: .55rem; align-content: start; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--hivis);
  letter-spacing: .08em;
}
.step h3 { color: #fff; }
.step p { color: #B9C2BC; font-size: .96rem; }

/* ============================================================
   DUTY OF CARE — the wedge
   ============================================================ */

.wedge { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 60rem) { .wedge { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }

.wedge-body { display: grid; gap: 1rem; max-width: var(--measure); }
.wedge-body p { color: var(--muted); }

.warn {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--copper);
  padding: 1.4rem 1.35rem;
  display: grid;
  gap: .7rem;
}
.warn h3 { letter-spacing: -.02em; }
.warn p { font-size: .95rem; color: var(--muted); }
.warn .stat { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; color: var(--copper); line-height: 1; }

/* ============================================================
   AREAS
   ============================================================ */

.roads { display: grid; gap: 1.75rem; }
@media (min-width: 44rem) { .roads { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.road-name {
  font-weight: 800; font-size: .92rem; letter-spacing: 0;
  color: var(--green); padding-bottom: .5rem; border-bottom: 2px solid var(--green);
  margin-bottom: .85rem;
}
.section-dark .road-name { color: var(--hivis); border-bottom-color: var(--hivis); }

.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.stops li { font-size: .92rem; color: var(--muted); }
.section-dark .stops li { color: #B9C2BC; }

.areas-note { margin-top: 2rem; font-size: .95rem; color: var(--muted); max-width: var(--measure); }

/* ============================================================
   GALLERY — placeholders until Rob's photos land
   ============================================================ */

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 56rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.shot {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(-45deg, #E8EBE7 0 10px, #E2E6E1 10px 20px);
  border: 1px dashed var(--faint);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}
.shot span {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============================================================
   CTA BAND
   ============================================================ */

.band { background: var(--green); color: #fff; }
.band-inner { display: grid; gap: 1.5rem; padding: 3rem 0; align-items: center; }
@media (min-width: 56rem) { .band-inner { grid-template-columns: 1fr auto; gap: 3rem; } }
.band h2 { color: #fff; }
.band p { color: #BFD6CC; margin-top: .6rem; max-width: 46ch; }
.band-actions { display: grid; gap: .75rem; }
@media (min-width: 30rem) { .band-actions { grid-auto-flow: column; } }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer { background: var(--ink); color: #9AA49E; padding: 3rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; } }
.site-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--mono); font-weight: 400; margin-bottom: .9rem; }
.site-footer a { color: #C4CCC7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.footer-licence {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
}
.footer-licence div { font-family: var(--mono); font-size: .72rem; }
.footer-licence b { display: block; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 400; }

.colophon { margin-top: 1.5rem; font-size: .78rem; color: var(--faint); }

/* ============================================================
   STICKY ACTION BAR — mobile only.
   The customer is standing in a garage holding the thing they
   want gone. Never make them hunt for the button.
   ============================================================ */

.actionbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--ink);
  box-shadow: 0 -6px 20px rgba(0,0,0,.16);
}
@media (min-width: 48rem) { .actionbar { display: none; } }

.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem .5rem;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  min-height: var(--bar);
}
.ab-call { background: var(--ink); color: #fff; }
.ab-wa { background: var(--copper); color: #fff; }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* ============================================================
   TRUST BAR
   ============================================================ */

.trustbar { background: var(--green); color: #fff; }
.trust-inner {
  display: grid; gap: 1.25rem 2rem; padding: 1.5rem 0;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 52rem) { .trust-inner { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: grid; gap: .15rem; }
.trust-fig { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.trust-lab { font-size: .82rem; color: #BFD6CC; }

/* ============================================================
   FAQ
   ============================================================ */

.faq { display: grid; gap: 0; max-width: 52rem; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-weight: 400; font-size: 1.6rem; color: var(--copper); line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-a { padding: 0 2.5rem 1.25rem 0; }
.faq-a p { color: var(--muted); }

/* ============================================================
   LOCAL FACTS (town pages)
   ============================================================ */

.local-facts {
  display: grid; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule); grid-template-columns: 1fr;
}
@media (min-width: 44rem) { .local-facts { grid-template-columns: repeat(3, 1fr); } }
.local-facts div { font-size: .95rem; }
.local-facts b { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-bottom: .25rem; }

/* ============================================================
   INLINE CTA
   ============================================================ */

.cta-inline {
  background: var(--steel); color: #fff; border-radius: 4px;
  padding: 2.5rem 1.75rem; display: grid; gap: 1.5rem; text-align: center;
  justify-items: center;
}
.cta-inline h2 { color: #fff; }
.cta-inline .hero-actions { justify-content: center; }

.price-tag {
  display: inline-flex; align-items: center; padding: 0 1rem; min-height: 3.25rem;
  font-family: var(--mono); font-size: .9rem; color: var(--hivis);
  border: 1px dashed rgba(242,194,48,.5); border-radius: 3px;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 3.5rem; } }

.cform { display: grid; gap: 1.1rem; max-width: 34rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .8rem .9rem;
  border: 1px solid var(--rule); border-radius: 3px; background: var(--surface); color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: var(--copper); }
.cform .btn { justify-self: start; }
.cform-note { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-side { display: grid; gap: 1rem; align-content: start; }
.contact-side h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--mono); font-weight: 400; color: var(--faint); }
.contact-big {
  display: block; background: var(--copper); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.1rem; padding: 1.1rem 1.25rem; border-radius: 3px;
}
.contact-big.alt { background: var(--ink); }
.contact-big:hover { background: var(--copper-lift); }
.contact-big.alt:hover { background: var(--steel-2); }
.contact-facts { margin: 1rem 0 0; display: grid; gap: .15rem; }
.contact-facts dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: .9rem; }
.contact-facts dd { margin: 0; color: var(--muted); }
.contact-facts dd.mono { font-family: var(--mono); font-size: .85rem; color: var(--ink); }

/* ============================================================
   INNER PAGES
   ============================================================ */

.crumbs { background: var(--steel-2); color: #B9C2BC; font-size: .8rem; }
.crumbs ol { list-style: none; margin: 0; padding: .7rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li { display: flex; gap: .4rem; align-items: center; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--faint); margin-left: .4rem; }
.crumbs a { color: #B9C2BC; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li[aria-current] { color: #fff; }

.page-hero { background: var(--steel); color: #fff; padding: 2.75rem 0; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-top: 1rem; }

.prose { max-width: var(--measure); display: grid; gap: 1.1rem; }
.prose h2 { margin-top: 1.5rem; }
.prose h3 { margin-top: 1rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; color: var(--muted); }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); }
