/* ==========================================================================
   CLANCY CONSULTING — DESIGN SYSTEM & MASTER STYLESHEET
   Playbook: Professional (Variant A: Editorial Authority)
   Locality: Birmingham & National UK (GB IE)
   Engineered with CSS Custom Properties, Fluid Typography & Modern Layouts
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Custom Properties
   Strict adherence to design_brief.json palette & typography
   -------------------------------------------------------------------------- */
:root {
  /* Exact Design Brief Palette */
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --primary: #0f3a5d;
  --primary-text: #ffffff;
  --accent: #9c4f10;
  --accent-hover: #823f0a;
  --accent-light: rgba(156, 79, 16, 0.08);
  --accent-warm: #f39c42;
  --dark: #0a1d30;
  --dark-text: #ffffff;
  --hero-bg: #0c2742;
  --hero-text: #ffffff;

  /* Editorial & Structural Palette Accents */
  --border-light: rgba(15, 58, 93, 0.12);
  --border-subtle: #e5e7eb;
  --border-dark: rgba(255, 255, 255, 0.15);
  --card-bg-dark: rgba(15, 58, 93, 0.45);
  --input-border: #cbd5e1;

  /* Typography Scale */
  --font-display: 'Newsreader', Georgia, Cambria, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout & Spacing */
  --max-width: 1280px;
  --max-width-narrow: 960px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 29, 48, 0.08);
  --shadow-md: 0 4px 14px rgba(10, 29, 48, 0.1);
  --shadow-lg: 0 12px 30px rgba(10, 29, 48, 0.14);
  --shadow-hover: 0 16px 36px rgba(10, 29, 48, 0.18);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip; /* Do NOT use overflow:hidden or auto on body to preserve sticky header */
}

main {
  flex: 1 0 auto;
}

/* Headings with Editorial Newsreader Display */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: inherit;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw + 1rem, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.25rem, 1.8vw + 0.3rem, 1.75rem);
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
  color: inherit;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus-visible {
  color: var(--accent);
}

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

/* Accessible Focus States */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. Utility Classes & Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding-block: clamp(48px, 6vw, 88px);
  position: relative;
}

.section-title-wrap {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-title-wrap.text-center {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.eyebrow-dark {
  color: #f39c42;
}

.lead-text {
  font-size: clamp(1.1rem, 1.2vw + 0.5rem, 1.28rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 48ch;
}

.lead-text-light {
  color: rgba(255, 255, 255, 0.85);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

/* Grid presets */
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

/* Full Width Themed Section Bands (ensuring alternating rhythm) */
.section-dark {
  background-color: var(--dark);
  color: var(--dark-text);
}

.section-dark .lead-text {
  color: rgba(255, 255, 255, 0.8);
}

.section-primary {
  background-color: var(--primary);
  color: var(--primary-text);
}

.section-primary .lead-text {
  color: rgba(255, 255, 255, 0.85);
}

.section-surface {
  background-color: var(--surface);
  color: var(--text);
}

.section-bg {
  background-color: var(--bg);
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 48px;
  touch-action: manipulation;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(156, 79, 16, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary-dark {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary-dark:hover, .btn-secondary-dark:focus-visible {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   4. Top Bar (Desktop & Mobile)
   Non-sticky; single row under 36px on mobile
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 16px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition);
  font-weight: 500;
}

.top-bar-link:hover {
  color: var(--accent);
}

.top-bar-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.mobile-text {
  display: none;
}

.desktop-text {
  display: inline;
}

/* Mobile top bar adaptation */
@media (max-width: 767px) {
  .top-bar-inner {
    height: 34px;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
  }
  .top-bar-desktop-only {
    display: none !important;
  }
  .mobile-text {
    display: inline;
  }
  .desktop-text {
    display: none;
  }
  .top-bar-link {
    font-size: 0.8rem;
    gap: 5px;
  }
}

/* --------------------------------------------------------------------------
   5. Sticky Header & Navigation
   Strictly pinned at every viewport, 56-64px on mobile
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
  flex-wrap: nowrap;
}

/* Brand Logo / Wordmark */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border-bottom: 3px solid var(--accent);
  transition: var(--transition);
}

.brand-link:hover .brand-mark {
  background-color: var(--dark);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--accent);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Action Button (Phone quick call) */
.mobile-action-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: rgba(15, 58, 93, 0.08);
  color: var(--primary);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.mobile-action-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  margin-inline-start: auto;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  color: var(--primary);
  touch-action: manipulation;
}

.menu-toggle:hover {
  background-color: rgba(15, 58, 93, 0.05);
}

.menu-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--surface);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  padding: 24px 20px;
  display: none;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-link:hover, .mobile-nav-link:focus-visible {
  background-color: rgba(15, 58, 93, 0.05);
  color: var(--accent);
}

.mobile-nav-link.active {
  background-color: rgba(15, 58, 93, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.mobile-drawer-contact {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer-meta {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Header Breakpoint: Mobile < 768px */
@media (max-width: 767px) {
  .header-inner {
    height: 60px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .brand-link {
    height: clamp(32px, 9vw, 44px);
    max-width: min(60vw, 200px);
    width: auto;
    gap: 8px;
    flex-shrink: 1;
  }
  .brand-mark {
    height: 100%;
    width: auto;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }
  .brand-mark svg {
    width: 60%;
    height: 60%;
  }
  .brand-text {
    flex-shrink: 1;
    min-width: 0;
  }
  .desktop-nav, .header-cta-desktop {
    display: none !important;
  }
  .mobile-action-btn {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .brand-tagline {
    display: none;
  }
  .brand-wordmark {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }
}

/* --------------------------------------------------------------------------
   6. Hero Section (Colourful Field: Brand Gradient + CAD Grid Pattern)
   Strictly adheres to design_brief.json: heroBg (#0c2742) to primary (#0f3a5d)
   -------------------------------------------------------------------------- */
.hero-section {
  background: var(--hero-bg);
  background-image: 
    linear-gradient(135deg, #0c2742 0%, #0f3a5d 65%, #0a1d30 100%),
    radial-gradient(rgba(194, 109, 36, 0.16) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 28px 28px;
  color: var(--hero-text);
  padding-block: clamp(60px, 9vw, 110px);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}

/* Architectural CAD Line Overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(194, 109, 36, 0.18);
  border: 1px solid rgba(194, 109, 36, 0.45);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffb370;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-subheadline {
  font-size: clamp(1.15rem, 1.6vw + 0.5rem, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 58ch;
}

.hero-proof-strip {
  margin-top: clamp(36px, 5vw, 48px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.proof-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.proof-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-warm);
  flex-shrink: 0;
}

.proof-star {
  color: #f59e0b;
}

/* --------------------------------------------------------------------------
   7. Metrics & Scale Band (#0a1d30)
   Section 1: "National Engineering Scale & Impact"
   -------------------------------------------------------------------------- */
.metrics-band {
  background-color: var(--dark);
  color: var(--dark-text);
  padding-block: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.metric-card {
  padding: 16px 0;
  border-left: 3px solid var(--accent-warm);
  padding-left: 20px;
}

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.metric-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   8. Sector Matrix & Capabilities (Surface White)
   Section 2: 8 Core Sectors
   -------------------------------------------------------------------------- */
.sector-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  opacity: 0.4;
  transition: var(--transition);
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.sector-card:hover::before {
  opacity: 1;
  background-color: var(--accent);
}

.sector-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(15, 58, 93, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.sector-card:hover .sector-icon-wrap {
  background-color: var(--primary);
  color: #ffffff;
}

.sector-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.sector-name {
  color: var(--primary);
  margin-bottom: 12px;
}

.sector-projects-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  width: fit-content;
}

/* --------------------------------------------------------------------------
   9. Core & Specialist Disciplines (Paper-white #f8f9fa)
   Section 3: Comprehensive Civil & Structural Disciplines
   -------------------------------------------------------------------------- */
.discipline-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.discipline-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.discipline-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.discipline-title {
  color: var(--primary);
  margin-bottom: 10px;
}

.discipline-lead {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--muted);
}

.discipline-lead strong {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   10. Variant A Signature Dossier (#0a1d30)
   Section 4: Editorial Authority Case Study Dossier
   -------------------------------------------------------------------------- */
.signature-dossier {
  background: var(--dark);
  color: #ffffff;
  padding-block: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.signature-quote-wrap {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--accent-warm);
  display: block;
  margin-bottom: 8px;
}

.editorial-pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: 20px;
}

.quote-author {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.quote-author span {
  color: var(--accent-warm);
}

/* Dossier Grid */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 28px;
}

.dossier-panel {
  background: var(--card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.dossier-stat-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.dossier-stat-big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.dossier-stat-pill {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--accent);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.dossier-project-title {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.dossier-meta {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.dossier-breakdown {
  list-style: none;
  font-size: 0.92rem;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dossier-breakdown li {
  position: relative;
  padding-left: 20px;
  line-height: 1.45;
}

.dossier-breakdown li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: var(--accent-warm);
  font-size: 0.75rem;
  top: 1px;
}

/* --------------------------------------------------------------------------
   11. Engineering Workflow: 4-Stage Framework (Surface White)
   Section 5: "How We Deliver Certainty"
   -------------------------------------------------------------------------- */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.workflow-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.workflow-step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.workflow-card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.workflow-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   12. Accreditations, Governance & Net Zero (#0f3a5d)
   Section 6: Full-width brand band
   -------------------------------------------------------------------------- */
.accreditations-band {
  background-color: var(--primary);
  color: var(--primary-text);
  padding-block: clamp(56px, 7vw, 88px);
}

.accred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.accred-item {
  background: rgba(10, 29, 48, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
}

.accred-badge-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.accred-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accred-badge-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.accred-item h4 {
  color: #ffffff;
  font-size: 1.15rem;
}

.accred-item p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   13. Technical FAQ Section (Paper White #f8f9fa)
   Section 7: AEO-Optimised Accordion
   -------------------------------------------------------------------------- */
.faq-accordion {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  touch-action: manipulation;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  fill: var(--accent);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  display: none;
}

.faq-answer.show {
  display: block;
}

/* --------------------------------------------------------------------------
   14. Closing Consultation CTA Band (#0a1d30)
   Section 8: Direct Enquiries & Regional Directors
   -------------------------------------------------------------------------- */
.closing-cta-band {
  background-color: var(--dark);
  color: var(--dark-text);
  padding-block: clamp(60px, 8vw, 96px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing-cta-wrap {
  max-width: 820px;
  margin-inline: auto;
}

.closing-cta-wrap h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.closing-cta-wrap .btn-group {
  justify-content: center;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   15. Multi-Page Specific Component Styles
   (About, Services, Projects, Contact)
   -------------------------------------------------------------------------- */
/* Page Header / Subpage Hero */
.page-header {
  background: var(--hero-bg);
  background-image: linear-gradient(135deg, #0c2742 0%, #0f3a5d 100%);
  color: var(--hero-text);
  padding-block: clamp(48px, 6vw, 76px);
  border-bottom: 3px solid var(--accent);
}

.page-header h1 {
  color: #ffffff;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #cbd5e1;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Leadership Grid (About page) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.team-name {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.team-credentials {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: monospace;
  margin-bottom: 14px;
}

.team-contact {
  font-size: 0.88rem;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Timeline & Guiding Principles (About page) */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.principle-box {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-md);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.principle-box h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* Interactive Project Filter (Projects page) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  justify-content: center;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Project Table Matrix / Cards */
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.portfolio-sector-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.portfolio-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.portfolio-meta-table {
  width: 100%;
  font-size: 0.85rem;
  margin-top: 16px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.portfolio-meta-table td {
  padding-block: 4px;
}

.portfolio-meta-table td:first-child {
  color: var(--muted);
  width: 35%;
}

.portfolio-meta-table td:last-child {
  font-weight: 600;
  color: var(--text);
}

/* Regional Office Network (Contact page) */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.office-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.office-card.hq-card {
  border: 2px solid var(--primary);
  background: #ffffff;
}

.office-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: #ffffff;
  margin-bottom: 12px;
}

.office-card h3 {
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.office-address {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.office-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.office-phone-link:hover {
  color: var(--accent);
}

/* Contact Form & Map Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background-color: #ffffff;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 58, 93, 0.15);
  outline: none;
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 580px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.map-embed-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  height: 100%;
  min-height: 380px;
}

.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* --------------------------------------------------------------------------
   16. Comprehensive Multi-Column Footer (#0a1d30)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--dark);
  color: #cbd5e1;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(32px, 4vw, 48px);
  margin-bottom: 48px;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #94a3b8;
  max-width: 38ch;
  line-height: 1.55;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-links a:hover, .footer-links a:focus-visible {
  color: #ffffff;
  padding-left: 4px;
}

.footer-office-item {
  margin-bottom: 12px;
}

.footer-office-name {
  color: #ffffff;
  font-weight: 600;
  display: block;
}

.footer-office-phone {
  color: var(--accent);
  font-weight: 500;
}

/* Footer Bottom Bar */
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal-links a {
  color: #94a3b8;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   17. Back to Top Button
   >= 48px ergonomic touch target, smooth scroll
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
  z-index: 999;
  touch-action: manipulation;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   18. Accessible Form Feedback Live Region
   -------------------------------------------------------------------------- */
.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: none;
  font-size: 0.92rem;
}

.form-feedback.success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   19. Reduced Motion & Responsive Micro-Polish
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Stylesheet */
@media print {
  .site-header, .top-bar, .closing-cta-band, .back-to-top, .footer-bottom {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
  .section {
    padding-block: 20px;
  }
}
