/* ============================================
   Commercial Scaffolding Berkshire — Design Tokens
   Steel / Board / Hazard palette, drawn from the
   materials of a scaffold itself.
   ============================================ */

:root {
  /* Colour */
  --steel-charcoal: #1B1F23;
  --steel-charcoal-soft: #262C32;
  --tube-grey: #4A5560;
  --tube-grey-light: #7C8894;
  --hazard-amber: #F2B134;
  --hazard-amber-dark: #C98F1B;
  --board-oak: #B08968;
  --board-oak-light: #D9C3AA;
  --paper: #F6F5F2;
  --paper-dim: #EDEBE5;
  --white: #FFFFFF;
  --line: #DAD7CE;
  --success-green: #3E7D52;

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Scale */
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.1rem);
  --step-4: clamp(2.6rem, 2rem + 3vw, 4.2rem);

  --radius-sm: 3px;
  --radius-md: 6px;
  --container: 1180px;
  --shadow-tag: 0 4px 14px rgba(27, 31, 35, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--steel-charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--hazard-amber);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--steel-charcoal);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 500; }
h4 { font-size: var(--step-1); font-weight: 500; text-transform: none; letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: 65ch; }
.lede { font-size: var(--step-1); color: var(--tube-grey); font-weight: 400; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: clamp(48px, 7vw, 96px) 0; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--hazard-amber-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--hazard-amber-dark);
  display: inline-block;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--hazard-amber);
  color: var(--steel-charcoal);
}
.btn-primary:hover { background: var(--hazard-amber-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark {
  background: var(--steel-charcoal);
  color: var(--white);
}
.btn-dark:hover { background: var(--steel-charcoal-soft); transform: translateY(-1px); }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--steel-charcoal);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.05;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo-text-main { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; display: block; }
.logo-text-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--hazard-amber);
  display: block;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--hazard-amber); color: var(--hazard-amber); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: var(--white);
  line-height: 1.2;
}
.header-phone .call-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--tube-grey-light);
  text-transform: uppercase;
}
.header-phone .call-number {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hazard-amber);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--steel-charcoal);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: inline-flex; }
  .header-phone .call-label { display: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--steel-charcoal);
  color: var(--white);
  overflow: hidden;
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 90px);
}
.hero-lattice {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: var(--step-4); color: var(--white); margin-bottom: 0.35em; }
.hero h1 .accent { color: var(--hazard-amber); }
.hero .lede { color: var(--paper); max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-trust-stars { display: flex; gap: 3px; }
.hero-trust-stars svg { width: 18px; height: 18px; fill: var(--hazard-amber); }
.hero-trust-text { font-size: 0.88rem; color: var(--paper); }
.hero-trust-text strong { color: var(--white); font-family: var(--font-mono); }

.hero-photo {
  position: relative;
  border: 6px solid var(--steel-charcoal-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-photo-tag {
  position: absolute;
  bottom: -14px;
  left: -14px;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 420px; }
}

/* ============ Inspection Tags (signature element) ============ */
.tag {
  --tag-color: var(--success-green);
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  color: var(--steel-charcoal);
  border: 2px solid var(--tag-color);
  border-radius: 4px;
  padding: 10px 14px 10px 22px;
  min-width: 128px;
  box-shadow: var(--shadow-tag);
  font-family: var(--font-mono);
}
.tag::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--tube-grey-light);
}
.tag-status {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tag-color);
  font-weight: 700;
}
.tag-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-charcoal);
  letter-spacing: 0;
}

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  align-items: center;
}

/* ============ Sections generic ============ */
.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-dark { background: var(--steel-charcoal); color: var(--paper); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dim { background: var(--paper-dim); }
.bg-white { background: var(--white); }

/* ============ Service cards / grid ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  height: 100%;
}
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--steel-charcoal);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--hazard-amber); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel-charcoal);
  text-decoration: none;
  margin-top: 14px;
  border-bottom: 1px solid var(--hazard-amber-dark);
  padding-bottom: 2px;
}
.card a.card-link svg { width: 14px; height: 14px; }

/* ============ Process (real sequence — numbered legitimately) ============ */
.process-list {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.process-list li {
  counter-increment: step;
  position: relative;
  padding: 0 20px 0 0;
  border-left: 2px dashed var(--line);
  padding-left: 24px;
}
.process-list li:first-child { border-left: none; padding-left: 0; }
.process-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--hazard-amber-dark);
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}
.process-list h4 { margin-bottom: 6px; }
.process-list p { font-size: 0.92rem; color: var(--tube-grey); }
@media (max-width: 860px) {
  .process-list { grid-template-columns: 1fr; gap: 28px; }
  .process-list li { border-left: none; padding-left: 0; border-top: 2px dashed var(--line); padding-top: 20px; }
  .process-list li:first-child { border-top: none; padding-top: 0; }
}

/* ============ Stats bar ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--steel-charcoal);
  display: block;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--tube-grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (max-width: 700px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }

/* ============ Gallery ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item { border-radius: var(--radius-md); overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(27,31,35,0.85), transparent);
  color: var(--white);
  padding: 30px 16px 12px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 2px solid var(--steel-charcoal);
  border-radius: 50%;
  position: relative;
}
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: var(--steel-charcoal);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item summary .plus::before { width: 12px; height: 2px; }
.faq-item summary .plus::after { width: 2px; height: 12px; transition: transform 0.15s ease; }
.faq-item[open] summary .plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item .faq-answer { padding: 0 4px 22px; color: var(--tube-grey); max-width: 65ch; }

/* ============ CTA band ============ */
.cta-band {
  background: var(--steel-charcoal);
  background-image:
    linear-gradient(rgba(27,31,35,0.92), rgba(27,31,35,0.92));
  color: var(--white);
  padding: clamp(48px, 7vw, 80px) 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--paper); margin-bottom: 0; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ Accreditation strip ============ */
.accred-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--steel-charcoal);
  color: var(--tube-grey-light);
  padding: 64px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--tube-grey-light); text-decoration: none; }
.footer-grid a:hover { color: var(--hazard-amber); }
.footer-logo { color: var(--white); margin-bottom: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--tube-grey-light); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--hazard-amber); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============ Page hero (inner pages) ============ */
.page-hero {
  background: var(--steel-charcoal);
  color: var(--white);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--tube-grey-light);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--tube-grey-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--hazard-amber); }
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero .lede { color: var(--paper); max-width: 62ch; }

/* ============ Two column content ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
}
.split-media img { border-radius: var(--radius-md); }
.check-list { list-style: none; margin: 20px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: var(--success-green); }

/* ============ Coverage page ============ */
.town-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.town-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.town-chip svg { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--hazard-amber-dark); }
@media (max-width: 860px) { .town-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .town-grid { grid-template-columns: 1fr; } }

/* ============ Contact page ============ */
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}
.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-method:last-child { border-bottom: none; }
.contact-method-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: var(--steel-charcoal);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.contact-method-icon svg { width: 22px; height: 22px; stroke: var(--hazard-amber); }
.contact-method a { text-decoration: none; color: var(--steel-charcoal); font-weight: 600; }
.contact-method a:hover { color: var(--hazard-amber-dark); }
.contact-method .label { font-size: 0.8rem; color: var(--tube-grey); text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); }

/* ============ Legal pages ============ */
.legal-content h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal-content h3 { font-size: 1.15rem; font-weight: 600; text-transform: none; letter-spacing: 0; margin-top: 1.4em; }
.legal-content ul, .legal-content ol { max-width: 70ch; }
.legal-content p, .legal-content li { color: var(--tube-grey); }

/* ============ 404 ============ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--steel-charcoal);
  color: var(--white);
  padding: 80px 24px;
}
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--hazard-amber);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

/* ============ Skip link ============ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hazard-amber);
  color: var(--steel-charcoal);
  padding: 12px 20px;
  z-index: 1000;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }
