/* ==========================================================================
   Groundworks Bournemouth — Design System
   Palette: off-white, deep slate ink, construction/excavator yellow —
   distinct from the red/black and blue/amber builds that came before
   Type: Archivo Black (display) + Archivo (body) — bold, industrial grotesk
   ========================================================================== */

:root {
  --color-bg: #FAFAF8;
  --color-surface: #F0EFEA;
  --color-ink: #1A1D1F;
  --color-slate: #2E3A46;
  --color-slate-dark: #202932;
  --color-yellow: #FFC72C;
  --color-yellow-dark: #D9A400;
  --color-yellow-tint: #FFF6E0;
  --color-line: #E3E1D9;
  --color-muted: #5C5F5E;

  --font-display: 'Archivo Black', 'Archivo', sans-serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --container: 1120px;
  --space-section: clamp(3rem, 6vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-slate); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); text-transform: none; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--space-section) 0; }
.section--tight { padding: 2.5rem 0; }
.section--surface { background: var(--color-surface); }
.section--slate { background: var(--color-slate); color: #E4E8EC; }
.section--slate h2, .section--slate h3 { color: #fff; }
.section--slate p { color: #AEB8C2; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-yellow-dark);
  display: inline-block;
  margin-bottom: 0.75rem;
}
.section--slate .eyebrow { color: var(--color-yellow); }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-ink); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--color-yellow);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: var(--container); margin: 0 auto;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 1.15rem; color: var(--color-ink); white-space: nowrap;
}
.brand span { color: var(--color-slate); }
.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.main-nav a { color: var(--color-ink); font-weight: 600; font-size: 0.94rem; }
.main-nav a:hover { text-decoration: none; color: var(--color-slate); }
.main-nav a.is-active { color: var(--color-slate); text-decoration: underline; text-underline-offset: 4px; }
.header-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--color-yellow); color: var(--color-ink);
  padding: 0.65rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; white-space: nowrap;
}
.header-cta:hover { background: var(--color-yellow-dark); text-decoration: none; color: var(--color-ink); }
.nav-toggle {
  display: inline-flex; background: none; border: 1px solid var(--color-line);
  border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--color-ink); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--color-line); background: var(--color-bg); }
.mobile-nav.is-open { display: flex; }
.mobile-nav > a { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--color-line); color: var(--color-ink); font-weight: 600; }
.mobile-nav > a.is-active { color: var(--color-slate); }

@media (min-width: 860px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Sticky mobile call button */
.sticky-call {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--color-yellow); color: var(--color-ink);
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1rem; font-weight: 700; font-size: 1rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.sticky-call:hover { color: var(--color-ink); text-decoration: none; background: var(--color-yellow-dark); }
@media (min-width: 860px) { .sticky-call { display: none; } }
body { padding-bottom: 64px; }
@media (min-width: 860px) { body { padding-bottom: 0; } }

/* Hero — signature "ground strata" motif: layered earth bands */
.hero { position: relative; overflow: hidden; background: var(--color-slate); color: #fff; padding: 4rem 0 3.5rem; }
.hero__strata { position: absolute; bottom: 0; left: 0; width: 100%; height: 55%; z-index: 0; pointer-events: none; }
.hero__content { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.12rem; color: #C3CBD3; max-width: 48ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem; border: 1px solid transparent;
}
.btn--primary { background: var(--color-yellow); color: var(--color-ink); }
.btn--primary:hover { background: var(--color-yellow-dark); color: var(--color-ink); text-decoration: none; }
.btn--ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.btn--ink { background: var(--color-ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; text-decoration: none; }

.trust-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); }
.trust-strip__item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: #D5DBE1; }
.trust-strip__item svg { flex-shrink: 0; color: var(--color-yellow); }
@media (min-width: 700px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }

/* Illustration wrapper for custom SVG scenes */
.illustration { border-radius: var(--radius-md); overflow: hidden; background: var(--color-yellow-tint); border: 1px solid var(--color-line); }
.illustration svg { display: block; width: 100%; height: auto; }

/* Bento grid */
.bento { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.bento-card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 1.5rem; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.bento-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(26,29,31,0.08); border-color: var(--color-yellow); }
.bento-card__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--color-yellow-tint); color: var(--color-yellow-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.bento-card h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.bento-card p { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.bento-card a.card-link { font-weight: 700; font-size: 0.9rem; color: var(--color-slate); }

/* Timeline */
.timeline { position: relative; margin-top: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.2); }
@media (min-width: 860px) { .timeline::before { left: 50%; transform: translateX(-1px); } }
.timeline-step { position: relative; padding-left: 3.2rem; margin-bottom: 2rem; }
.timeline-step__num { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--color-yellow); color: var(--color-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; z-index: 1; font-family: var(--font-body); }
.timeline-step h3 { margin-bottom: 0.3rem; color: #fff; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
@media (min-width: 780px) { .faq-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 1.25rem 1.4rem; }
.faq-item h3 { font-size: 1.02rem; margin-bottom: 0.4rem; color: var(--color-ink); }
.faq-item p { color: var(--color-muted); margin: 0; font-size: 0.95rem; }

/* Split CTA */
.split-cta { display: grid; grid-template-columns: 1fr; gap: 1.5rem; background: var(--color-ink); color: #fff; border-radius: var(--radius-md); padding: 2.25rem; align-items: center; }
@media (min-width: 780px) { .split-cta { grid-template-columns: 2fr 1fr; } }
.split-cta h2 { color: #fff; margin-bottom: 0.5rem; }
.split-cta p { color: #C3CBD3; margin: 0; }
.split-cta__actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* Pill nav */
.pill-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 0; }
.pill { display: inline-block; padding: 0.5rem 1rem; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-line); font-size: 0.9rem; font-weight: 600; color: var(--color-ink); }
.pill:hover { border-color: var(--color-yellow-dark); color: var(--color-slate); text-decoration: none; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--color-muted); padding: 1rem 0 0; }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-slate); }
.breadcrumbs .sep { margin: 0 0.4rem; }

/* Info cards */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 1.5rem; }
.info-card h3 { margin-bottom: 0.5rem; }

/* Content */
.prose { max-width: 68ch; }
.prose p { color: var(--color-muted); }
.two-col { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.2fr 0.8fr; } }
.two-col--reverse { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 860px) { .two-col--reverse { grid-template-columns: 0.8fr 1.2fr; } }

/* Contact */
.contact-details { list-style: none; margin: 0; padding: 0; }
.contact-details li { display: flex; gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--color-line); }
.contact-details li svg { color: var(--color-slate); flex-shrink: 0; }
.contact-details strong { display: block; color: var(--color-ink); }

/* Footer */
.site-footer { background: var(--color-ink); color: #B8BCC0; padding: 3rem 0 5.5rem; }
@media (min-width: 860px) { .site-footer { padding-bottom: 3rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #B8BCC0; font-size: 0.92rem; }
.site-footer a:hover { color: var(--color-yellow); }
.footer-bottom {
  max-width: var(--container); margin: 2.5rem auto 0; padding: 1.5rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem; color: #7A7E82;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.footer-bottom a { color: #93979B; }

/* Utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
