/* ============================================================
   A and A Rendering Ltd — renderingservicesbedford.co.uk
   Design tokens
   ============================================================ */
:root {
  --charcoal: #1b1a19;
  --charcoal-deep: #100f0f;
  --red: #c8202e;
  --red-deep: #9c1622;
  --render: #e7e4de;   /* warm render-grey, the trade's own material */
  --render-deep: #cfcabe;
  --stone: #6b675f;
  --white: #ffffff;
  --line: #ddd8cd;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 3px;
  --shadow: 0 14px 32px rgba(20, 18, 16, 0.16);
  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.75em;
}

/* ---------- Trowel-swipe divider — signature element ----------
   A skewed diagonal seam between sections, evoking a render
   trowel pass across a wall, rather than a generic wave. */
.trowel-divider {
  height: 46px;
  overflow: hidden;
  position: relative;
  line-height: 0;
}
.trowel-divider svg { display: block; width: 100%; height: 100%; }
.trowel--charcoal-to-white path { fill: var(--white); }
.trowel--white-to-render path { fill: var(--render); }
.trowel--render-to-white path { fill: var(--white); }
.trowel--white-to-charcoal path { fill: var(--charcoal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(200, 32, 46, 0.32); }
.btn-primary:hover { background: var(--red-deep); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-deep); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -999px; top: auto; background: var(--charcoal); color: var(--white); padding: 12px 20px; z-index: 1000; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--charcoal-deep); color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar-contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contacts a:hover { color: var(--red); }
.topbar-hours { color: rgba(255,255,255,0.55); }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word .b1 { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--charcoal); letter-spacing: 0.01em; }
.brand-word .b2 { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--red); letter-spacing: 0.06em; }
.brand-word .b3 { font-family: var(--font-body); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.24em; color: var(--stone); text-transform: uppercase; margin-top: 2px; }

.main-nav ul { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.main-nav a { font-family: var(--font-display); text-transform: uppercase; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.03em; color: var(--charcoal); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--charcoal); white-space: nowrap; }
.header-phone span { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone); font-family: var(--font-body); font-weight: 500; }

.nav-toggle { display: none; background: none; border: 2px solid var(--charcoal); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: var(--charcoal); position: relative; transition: all 0.2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(150deg, var(--charcoal-deep) 0%, var(--charcoal) 60%, var(--red-deep) 145%); color: var(--white); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 76px; padding-bottom: 92px; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.3rem); margin-bottom: 0.35em; }
.hero h1 em { font-style: normal; color: #ff8b93; }
.hero-lead { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 48ch; margin-bottom: 1.8em; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 2.2em; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 1.6em; border-top: 1px solid rgba(255,255,255,0.16); }
.hero-trust-item { display: flex; flex-direction: column; }
.hero-trust-item strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); }
.hero-trust-item span { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid rgba(255,255,255,0.1); }

/* ---------- Section base ---------- */
.section { padding: 84px 0; }
.section--render { background: var(--render); }
.section--charcoal { background: var(--charcoal); color: var(--white); }
.section--charcoal h2 { color: var(--white); }
.section--white { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: 3em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-head p { color: var(--stone); font-size: 1.05rem; }
.section--charcoal .section-head p { color: rgba(255,255,255,0.72); }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .icon-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--charcoal); color: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.5em; }
.service-card p { color: var(--stone); font-size: 0.96rem; margin-bottom: 1.2em; }
.service-card .card-link { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--red); border-bottom: 1px solid var(--red); padding-bottom: 2px; }
.service-card .card-link:hover { color: var(--red-deep); border-color: var(--red-deep); }

/* ---------- Areas list ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area-chip { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em; font-size: 0.95rem; color: var(--charcoal); display: flex; align-items: center; gap: 10px; }
.area-chip::before { content: ""; width: 8px; height: 8px; background: var(--red); flex-shrink: 0; }

/* ---------- Two column feature ---------- */
.feature-split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.feature-split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-list { margin-top: 1.6em; }
.feature-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: none; }
.feature-list .num { font-family: var(--font-display); color: var(--red); font-weight: 700; font-size: 0.85rem; min-width: 26px; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: 28px 26px; }
.testimonial-card .stars { color: #ff8b93; letter-spacing: 2px; margin-bottom: 14px; font-size: 0.95rem; }
.testimonial-card p { color: rgba(255,255,255,0.88); font-size: 0.97rem; }
.testimonial-card footer { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-top: 1em; }
.review-source-note { margin-top: 2.4em; text-align: center; color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.review-source-note a { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: var(--white); padding: 54px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: 1.55rem; margin-bottom: 0.2em; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.7); }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step-item .step-num { font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; -webkit-text-stroke: 1px var(--charcoal); color: transparent; margin-bottom: 0.2em; display: block; }
.step-item h3 { font-size: 1.02rem; }
.step-item p { color: var(--stone); font-size: 0.94rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 20px 4px; font-family: var(--font-display); font-weight: 700; color: var(--charcoal); font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--red); margin-left: 20px; flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 4px 20px; color: var(--stone); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--charcoal); color: var(--white); padding: 58px 0 68px; }
.breadcrumbs { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 1em; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs .sep { margin: 0 8px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.85rem, 3.4vw, 2.6rem); margin-bottom: 0.3em; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 60ch; margin: 0; }

/* ---------- Content layout (service pages) ---------- */
.content-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--stone); }
.prose ul { margin: 1.2em 0; }
.prose ul li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--stone); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; background: var(--red); }
.sidebar-card { background: var(--render); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; margin-bottom: 24px; }
.sidebar-card h3 { font-size: 1.02rem; }
.sidebar-card ul li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul a:hover { color: var(--red); }
.sidebar-card.contact-card { background: var(--charcoal); color: var(--white); }
.sidebar-card.contact-card h3 { color: var(--white); }
.sidebar-card.contact-card a { color: rgba(255,255,255,0.82); }
.sidebar-card.contact-card a:hover { color: var(--white); }
.sidebar-card.contact-card .btn { margin-top: 14px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-grid figcaption { background: var(--white); padding: 12px 16px; font-size: 0.86rem; color: var(--stone); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-detail-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-detail-list strong { display: block; font-family: var(--font-display); color: var(--charcoal); font-size: 0.96rem; }
.contact-detail-list span, .contact-detail-list a { color: var(--stone); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-deep); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-mark { width: 38px; height: 38px; }
.footer-brand .b1, .footer-brand .b2 { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.footer-brand .b2 { color: #ff8b93; }
.footer-brand-text p { color: rgba(255,255,255,0.55); font-size: 0.9rem; max-width: 34ch; margin: 0; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.05em; margin-bottom: 1.2em; text-transform: uppercase; }
.footer-col li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 0.84rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 100px 24px; background: var(--render); }
.error-page .error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 12vw, 7rem); -webkit-text-stroke: 2px var(--charcoal); color: var(--render); margin-bottom: 0.1em; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 780px; }
.legal-content h2 { margin-top: 1.8em; font-size: 1.28rem; }
.legal-content p, .legal-content li { color: var(--stone); }
.legal-content ul { margin: 1em 0 1em 1.2em; list-style: disc; }
.legal-content ul li { margin-bottom: 8px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-photo { order: -1; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-split { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .topbar-hours { display: none; }
  .main-nav { position: fixed; inset: 0; top: 0; background: var(--charcoal-deep); padding: 100px 32px 32px; transform: translateX(100%); transition: transform 0.25s ease; z-index: 90; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .main-nav a { color: var(--white); font-size: 1.15rem; padding: 12px 0; width: 100%; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .service-grid, .areas-grid, .testimonial-grid, .steps-grid, .gallery-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 56px 0; }
}
