/* ============================================================
   BnD Recovery — bndrecovery.co.uk
   Brand: burgundy #7c160f / yellow #fdec00 (from logo + livery)
   ============================================================ */

@font-face {
  font-family: 'Alata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/alata-latin.woff2') format('woff2');
}

:root {
  --burgundy: #7c160f;
  --burgundy-dark: #5c0f0a;
  --burgundy-deep: #460b07;
  --yellow: #fdec00;
  --yellow-dark: #e6d600;
  --ink: #17171a;
  --ink-soft: #232326;
  --text: #2c2c30;
  --muted: #66666c;
  --paper: #ffffff;
  --grey-bg: #f6f5f3;
  --line: #e6e4e0;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(23, 23, 26, 0.10);
  --shadow-lift: 0 10px 30px rgba(23, 23, 26, 0.16);
  --font-head: 'Alata', 'Segoe UI', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }

::selection { background: var(--yellow); color: var(--ink); }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  /* leave room for the fixed mobile call bar */
  padding-bottom: 0;
}

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; color: var(--ink); text-wrap: balance; }

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p + p { margin-top: 1em; }

a { color: var(--burgundy); text-underline-offset: 3px; }
a:hover { color: var(--burgundy-dark); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--yellow); color: var(--ink);
  padding: 10px 16px; z-index: 200; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- hazard chevron divider (nods to the truck livery) ---------- */
.chevrons {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 16px,
    var(--burgundy) 16px 32px
  );
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px; padding: 8px 20px;
  max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 64px; height: 42px; border-radius: 4px; }
.brand-name { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: 0.04em; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 0.68rem; color: var(--yellow); letter-spacing: 0.14em; text-transform: uppercase; }

.nav-toggle {
  margin-left: auto;
  display: none;
  background: none; border: 2px solid rgba(255,255,255,0.5); border-radius: 6px;
  color: #fff; font-size: 1.4rem; line-height: 1; padding: 6px 12px; cursor: pointer;
}

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 13px;
  color: #fff; text-decoration: none; font-size: 0.98rem; border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover, .site-nav a:focus { background: rgba(255, 255, 255, 0.12); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(253, 236, 0, 0.16); color: var(--yellow); }

.call-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--ink) !important;
  font-weight: 800; text-decoration: none;
  padding: 10px 18px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.call-cta:hover { background: var(--yellow-dark); }
.call-cta svg { width: 18px; height: 18px; flex: none; }

/* ---------- hero ----------
   Layered for the GSAP parallax: .hero-bg holds the photo (oversized
   vertically so it can drift), ::after holds the tint, content on top.
   Without JS the layers simply sit still — identical look. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  text-align: left;
}
.hero-bg {
  position: absolute; left: 0; right: 0; top: -14%; bottom: -14%;
  background: url('../img/gallery-2026-03-20-b.jpg') center 35% / cover no-repeat;
  z-index: 0;
  will-change: transform;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(23, 23, 26, 0.72), rgba(70, 11, 7, 0.82));
}
.hero-inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: clamp(64px, 10vw, 130px) 20px; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .accent { color: var(--yellow); }
.hero p { max-width: 52ch; margin-top: 18px; font-size: 1.15rem; color: #f2f0ec; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; text-decoration: none; border-radius: 999px;
  padding: 14px 26px; font-size: 1.05rem;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-lift); }
.btn-yellow:hover { background: var(--yellow-dark); color: var(--ink); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.75); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-burgundy { background: var(--burgundy); color: #fff; }
.btn-burgundy:hover { background: var(--burgundy-dark); color: #fff; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; padding: 0; list-style: none; }
.hero-badges li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.98rem; color: #f2f0ec; }
.hero-badges svg { width: 18px; height: 18px; color: var(--yellow); flex: none; }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-alt { background: var(--grey-bg); }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head .kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--burgundy); margin-bottom: 10px;
}
.section-head p { color: var(--muted); margin-top: 10px; }

/* ---------- service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--burgundy); color: var(--text); }
.card .icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--burgundy); color: var(--yellow);
  display: grid; place-items: center; margin-bottom: 4px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { color: var(--ink); }
.card p { font-size: 0.95rem; color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; color: var(--burgundy); font-size: 0.92rem; transition: color 0.15s ease; }
.card:hover .more { color: var(--burgundy-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.95rem; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.25s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid .landscape img { aspect-ratio: 16 / 10; }

/* ---------- reviews ---------- */
.review-platforms { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.review-quote {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--yellow);
  border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow);
}
.review-quote .stars { color: #e7a800; letter-spacing: 2px; font-size: 1.05rem; }
.review-quote blockquote { margin: 10px 0 12px; font-size: 1.02rem; }
.review-quote cite { font-style: normal; font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.review-quote cite span { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--burgundy); color: #fff; text-align: center; }
.cta-band .wrap { padding-top: clamp(48px, 7vw, 72px); padding-bottom: clamp(48px, 7vw, 72px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f4e3e1; max-width: 54ch; margin: 14px auto 0; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .phone-big {
  font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--yellow); text-decoration: none; display: inline-block; margin-top: 18px;
  transition: transform 0.15s ease;
}
.cta-band .phone-big:hover { transform: scale(1.03); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- content pages ---------- */
.page-title { background: var(--ink); color: #fff; }
.page-title .wrap { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }
.page-title h1 { color: #fff; }
.page-title p { color: #d8d6d2; margin-top: 12px; max-width: 60ch; }

.breadcrumbs { font-size: 0.88rem; margin-bottom: 14px; color: #b9b7b3; }
.breadcrumbs a { color: var(--yellow); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.prose { max-width: 760px; }
.prose h2 { margin: 1.6em 0 0.5em; }
.prose ul { margin: 1em 0 1em 1.3em; }
.prose li + li { margin-top: 0.4em; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.two-col figure img { border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.two-col figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ---------- info / contact panels ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.info-card h3 svg { width: 20px; height: 20px; color: var(--burgundy); flex: none; }
.info-card p, .info-card address { font-style: normal; color: var(--muted); font-size: 0.98rem; }
.info-card a { font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfcdc9; font-size: 0.95rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 34px;
  padding: 52px 0 40px;
}
.site-footer h3 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfcdc9; text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--yellow); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-brand img { width: 84px; height: 56px; border-radius: 4px; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid #2e2e33; padding: 18px 0 26px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 0.85rem; color: #979591;
}
.footer-bottom a { color: #979591; }

/* ---------- sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--burgundy);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}
.mobile-call-bar .bar-row { display: flex; gap: 10px; align-items: center; }
.mobile-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: clamp(16px, 4.5vw, 1.05rem); text-decoration: none;
  border-radius: 999px; padding: 0 10px;
  flex: 1; min-width: 0; height: 54px; white-space: nowrap;
}
.mobile-call-bar a span { overflow: hidden; text-overflow: ellipsis; }
.mobile-call-bar a.wa {
  flex: 0 0 54px; width: 54px; height: 54px; padding: 0;
  border-radius: 50%; background: #25d366;
}
.mobile-call-bar svg { width: 20px; height: 20px; flex: none; }
.mobile-call-bar a.wa svg { width: 26px; height: 26px; }

/* ---------- 404 ---------- */
.error-hero { text-align: center; padding: clamp(70px, 12vw, 140px) 20px; }
.error-hero .code { font-family: var(--font-head); font-size: clamp(4rem, 12vw, 7rem); color: var(--burgundy); line-height: 1; }
.error-hero p { color: var(--muted); margin: 16px auto 28px; max-width: 46ch; }

/* ---------- responsive ---------- */
/* Compact header on narrow laptops: seven tabs + phone button need the room */
@media (max-width: 1180px) and (min-width: 1001px) {
  .brand-name small { display: none; }
  .site-nav a { padding: 9px 8px; font-size: 0.9rem; }
  .call-cta { padding: 9px 14px; font-size: 0.95rem; }
}

/* Hamburger menu below 1000px (page layout breakpoints stay at 920px) */
@media (max-width: 1000px) {
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-soft); margin: 0;
    border-top: 1px solid #333; box-shadow: 0 14px 24px rgba(0,0,0,0.35);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px 14px; }
  .site-nav a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .header-cta { margin-left: 0; }
}

@media (max-width: 920px) {
  .header-cta { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 40px; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .gallery-grid img, .btn, .cta-band .phone-big, .card .more, .site-nav a, .site-footer a { transition: none; }
  .btn:hover, .cta-band .phone-big:hover { transform: none; }
}

/* ---------- FAQ accordion ---------- */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 15px 30px 15px 0; list-style: none; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-size: 1.5rem; color: var(--burgundy); }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { padding-bottom: 16px; color: var(--muted); }
.faq details p a { font-weight: 600; }

/* ---------- coverage chips ---------- */
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 0; list-style: none; }
.area-chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.95rem; font-weight: 600; }
.area-chips li.roads { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.area-chips a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
.area-chips a:hover { color: var(--burgundy-dark); }

/* ---------- WhatsApp button ---------- */
.btn-whatsapp { background: #25d366; color: var(--ink); box-shadow: var(--shadow-lift); }
.btn-whatsapp:hover { background: #1fc25c; color: var(--ink); }

/* ---------- visible keyboard focus ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.section a:focus-visible, .prose a:focus-visible { outline-color: var(--burgundy); }

/* ---------- lighter hero image on small screens ---------- */
@media (max-width: 560px) {
  .hero-bg { background-image: url('../img/thumbs/gallery-2026-03-20-b.jpg'); }
}

/* ---------- GSAP pinned horizontal services rail (desktop) ----------
   .js-horizontal is added by home-animations.js only when GSAP is
   loaded, the viewport is >=920px, and motion is allowed — otherwise
   the normal responsive grid below applies untouched. */
.services-pin.js-horizontal {
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.services-pin.js-horizontal .pin-inner { width: 100%; }
.services-pin.js-horizontal .services-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
  width: max-content;
  will-change: transform;
}
.services-pin.js-horizontal .services-track .card { width: 350px; flex: none; }

/* ---------- Elfsight reviews widget guards ----------
   The widget's own width is set to a fixed 1280px in the Elfsight
   dashboard; these rules keep it inside the viewport on phones and
   reserve space while it loads. */
[class*="elfsight-app-"] { max-width: 100%; min-height: 260px; overflow-x: hidden; }
[class*="elfsight-app-"] > div { max-width: 100% !important; width: 100% !important; }

/* ---------- cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 130;
  max-width: 430px; margin: 0 auto;
  background: var(--ink); color: #e8e6e2;
  border: 1px solid #3a3a40; border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  font-size: 0.92rem; line-height: 1.5;
}
.cookie-banner a { color: var(--yellow); }
.cookie-banner strong { color: #fff; }
.cookie-actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie-actions button {
  font: inherit; font-weight: 800; cursor: pointer;
  border-radius: 999px; padding: 10px 22px; border: none;
}
#cookie-accept { background: var(--yellow); color: var(--ink); }
#cookie-accept:hover { background: var(--yellow-dark); }
#cookie-decline { background: none; border: 2px solid #55555c; color: #cfcdc9; }
#cookie-decline:hover { border-color: #8a8a92; color: #fff; }

@media (max-width: 920px) {
  /* sit above the fixed mobile call bar */
  .cookie-banner { bottom: calc(88px + env(safe-area-inset-bottom)); left: 10px; right: 10px; }
}

/* ---------- coverage groups: region tier, local hubs, road corridors ---------- */
.coverage-group { margin-top: 24px; }
.coverage-group h3 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.area-chips li.region {
  background: var(--burgundy); color: #fff; border-color: var(--burgundy);
  font-size: 1.02rem; padding: 10px 20px;
}

/* ---------- external nav link (sister company) ---------- */
.site-nav a.nav-external .ext { font-size: 0.78em; opacity: 0.75; }
