/* Newbold Demolition & Asbestos — design tokens per site spec (clean safety-industrial) */
:root {
  --ink: #1E293B;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --orange: #EA580C;
  --orange-dark: #C2410C;
  --orange-darker: #9A3412;
  --yellow: #FACC15;
  --slate-border: #E2E8F0;
  --slate-text: #5B6B84;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --green: #059669;
  --red: #DC2626;
  --yellow-bg: #FFFBEB;
  --success-bg: #ECFDF5;
  --success-border: #A7F3D0;
  --success-text: #065F46;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(30, 41, 59, 0.08), 0 4px 12px rgba(30, 41, 59, 0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: 'Source Sans 3', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Lexend', 'Source Sans 3', sans-serif; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 6vw, 52px); }
h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 0.5em; }
h3 { font-size: 19px; }
p { margin-bottom: 1em; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
a.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 2px solid var(--ink);
  white-space: nowrap;
}
a.skip-link:focus,
a.skip-link:focus-visible {
  top: 14px;
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
.section-tag { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 600; color: var(--orange-dark); margin-bottom: 8px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--slate-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; max-width: 1120px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--ink) 0 8px, var(--yellow) 8px 16px);
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--white); font-size: 15px; flex: none;
}
.brand-name { font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 17px; line-height: 1.1; }
.brand-sub { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-text); }
.brand-logo { height: 36px; width: auto; object-fit: contain; display: block; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--orange-dark); text-decoration: none; }
/* compact one-tap call link — hidden by default; shown only in the tight nav band
   below (this base rule must stay BEFORE the media query so the band rule wins) */
.header-call { display: none; }
/* 10 nav links don't fit at full size until ~1025px — in the narrow desktop band,
   tighten gap + link size, swap the header phone for a compact "Call" link (the
   sticky call bar only shows ≤820px, so the band keeps a one-tap call affordance;
   the footer number is always reachable). Placed AFTER the base .nav a rules so
   the font-size wins the cascade. */
@media (min-width: 821px) and (max-width: 1024px) {
  .nav { gap: 8px; }
  .nav a { font-size: 13px; }
  .header-phone { display: none; }
  .header-call { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--orange-dark); white-space: nowrap; }
}
.header-phone { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.header-phone:hover { text-decoration: none; color: var(--orange-dark); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange-dark); color: var(--white); font-weight: 700; font-size: 17px;
  padding: 13px 22px; border-radius: var(--radius); border: none; cursor: pointer;
  min-height: 48px; text-decoration: none !important; font-family: 'Source Sans 3', sans-serif;
}
.btn:hover { background: var(--orange-darker); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white) !important; border: 2px solid var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink) !important; }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: var(--slate-900); }

/* mobile menu */
.mobile-menu-toggle { display:none; flex-direction:column; justify-content:center; gap:4px; width:auto; min-width:44px; height:auto; min-height:48px; background:transparent; border:1.5px solid var(--slate-border); border-radius: var(--radius); cursor:pointer; padding:8px 10px 6px; }
.mobile-menu-toggle span:not(.menu-label) { display:block; height:2px; background: var(--ink); border-radius:1px; }
.menu-label { display:block; font-size: 11px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; line-height: 1; white-space: nowrap; }
.mobile-nav { display:none; position:absolute; top:100%; left:0; right:0; background:var(--white); border-bottom:1px solid var(--slate-border); padding:12px 20px; z-index:50; }
.mobile-nav a { display:block; padding:12px 0; font-weight:600; color:var(--ink); border-bottom:1px solid var(--slate-border); }
.mobile-nav a:last-child { border-bottom:none; }

/* hero */
.hero { background: linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.72)), var(--ink); color: var(--white); padding: 72px 0 72px; }
.hero h1 { color: var(--white); max-width: 20ch; }
.hero p.lead { font-size: 19px; max-width: 62ch; color: var(--slate-200); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: var(--white); font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; }
.chip b { color: var(--yellow); }

/* trust bar */
.trust-bar { background: var(--ink); color: var(--slate-200); padding: 18px 0; }
.trust-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; }
.trust-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 600; }
.trust-item .tick { color: var(--green); font-weight: 800; flex: none; }

/* hazard stripe divider */
.hazard { height: 10px; background: repeating-linear-gradient(135deg, var(--ink) 0 14px, var(--yellow) 14px 28px); opacity: 0.9; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
/* the show-more button and expanded towns grid get their own full-width rows,
   so their tall content can never stretch the town cards' shared grid row */
#show-more-towns, #more-towns { grid-column: 1 / -1; }
/* towns grid is 2 columns at desktop: 4 cards fill 2 clean rows before the
   button, and the expanded 6 fill 3 more — no orphan-card gaps in any state */
@media (min-width: 961px) {
  #towns-grid { grid-template-columns: repeat(2, 1fr); }
  #more-towns { grid-template-columns: repeat(2, 1fr); }
}
/* photo grid only: 2 columns on desktop so before/after photos render larger; other grids keep auto-fill */
@media (min-width: 821px) { #projects-grid { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--white); border: 1px solid var(--slate-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--slate-text); font-size: 15px; }
.card .card-link { margin-top: auto; font-weight: 700; }
.licence-line { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.card-placeholder {
  height: 140px; border-radius: var(--radius); background: linear-gradient(135deg, var(--ink), var(--slate-700));
  display: flex; align-items: center; justify-content: center; color: var(--yellow);
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px;
}
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; display: block; }
.card-img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.card-img-pair .card-img { margin-bottom: 0; }
/* single (non-pair) project photos render at the same size as one before/after
   pair image, so every project photo matches — pair cells are calc(50% - 4px).
   (single imgs sit inside a <picture> that is the card's direct child) */
#projects-grid .card-img:not(.card-img-pair .card-img) { width: calc(50% - 4px); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--slate-border); border-radius: var(--radius); padding: 22px; position: relative; }
.step-num { font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 34px; color: var(--orange); line-height: 1; }
.step h3 { margin: 10px 0 6px; font-size: 17px; }
.step p { font-size: 14.5px; color: var(--slate-text); margin: 0; }

/* dark CTA section */
.cta-band { background: var(--ink); color: var(--white); text-align: center; padding: 64px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--slate-300); max-width: 56ch; margin: 0 auto 26px; }
.big-phone { font-size: 28px; font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; display: block; margin-bottom: 8px; }

/* two-col split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split p { color: var(--slate-text); }

/* lists inside content */
.ricos-content ul, .ricos-content ol, .content-list { margin: 0 0 1em 1.3em; }
.ricos-content li { margin-bottom: 0.35em; }
.ricos-content h2, .ricos-content h3 { margin-top: 1.4em; }
.ricos-content blockquote { border-left: 4px solid var(--yellow); background: var(--yellow-bg); padding: 12px 18px; border-radius: 0 6px 6px 0; margin: 0 0 1em; }
.ricos-content strong { color: var(--ink); }

/* FAQ */
details.faq { background: var(--white); border: 1px solid var(--slate-border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; }
details.faq p { margin: 10px 0 0; color: var(--slate-text); }

/* loading states for JS grids */
#services-grid, #towns-grid, #projects-grid, #blog-grid { min-height: 200px; }
@media (prefers-reduced-motion: no-preference) {
  .grid-loading { animation: grid-pulse 1.6s ease-in-out infinite; }
  @keyframes grid-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

  /* hero entrance: brief, staggered fade-up on first load */
  .hero h1, .hero p.lead, .hero-ctas {
    opacity: 0;
    transform: translateY(10px);
    animation: hero-reveal 0.3s ease forwards;
  }
  .hero p.lead { animation-delay: 80ms; }
  .hero-ctas { animation-delay: 160ms; }
  @keyframes hero-reveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* scroll-into-view reveals for trust chips and project cards */
  .revealable { opacity: 1; transform: translateY(0); }
  .revealable.is-revealed { animation: fade-up 0.4s ease forwards; }
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* form success soft fade-in */
  .form-success { animation: success-fade 0.25s ease; }
  @keyframes success-fade { from { opacity: 0; } to { opacity: 1; } }

  /* primary CTA physical press response */
  .btn { transition: transform 0.1s ease; }
  .btn:active { transform: translateY(1px) scale(0.99); }
}

/* text clamp utility */
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* forms */
.form-wrap { background: var(--white); border: 1px solid var(--slate-border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); max-width: 560px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; border: 1.5px solid var(--slate-border);
  border-radius: var(--radius); background: var(--white); color: var(--ink); font-family: inherit; min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.field-error { color: var(--red); font-size: 13.5px; margin-top: 4px; font-weight: 600; }
.form-note { font-size: 13.5px; color: var(--slate-text); margin-top: 12px; }
.form-success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success-text); padding: 18px 20px; border-radius: var(--radius); font-weight: 600; }

/* footer */
.site-footer { background: var(--ink); color: var(--slate-300); padding: 48px 0 90px; font-size: 14.5px; }
.site-footer h3 { color: var(--white); margin-bottom: 10px; }
.site-footer a { color: var(--slate-100); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.footer-note { margin-top: 30px; border-top: 1px solid var(--slate-700); padding-top: 18px; font-size: 13px; color: var(--slate-400); }

/* mobile sticky bar */
.sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none; background: var(--white); border-top: 1px solid var(--slate-border); padding: 10px 12px; gap: 10px; }
.sticky-bar .btn { flex: 1; padding: 12px; font-size: 16px; }
.sticky-bar .btn-outline { background: var(--ink); border: none; color: var(--white) !important; }
@media (max-width: 820px) {
  .nav { display: none; }
  .header-phone { font-size: 15px; }
  .sticky-bar { display: flex; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 40px 0; }
  .site-footer { padding-bottom: 130px; }
  .mobile-menu-toggle { display:flex; flex:none; }
  .mobile-call-btn, .header-phone { white-space: nowrap; }
  .mobile-call-btn { padding: 12px 14px; font-size: 15px; }
  .brand-logo { height: 30px; max-width: 140px; }
  .mobile-nav.open { display:block; }
}
@media (min-width: 821px) { .mobile-call-btn, .mobile-menu-toggle, .mobile-nav { display: none; } }
