/* ==========================================================================
   SSCG CONSULTING | Modern Enterprise Web Platform
   Design System: Professional Advisory & Macroeconomic Intelligence (Variant A)
   Locality: Birmingham, England, UK (Colmore Business District)
   Specification: WCAG 2.1 AA Compliant, Mobile-First, Zero-Regression Architecture
   ========================================================================== */

/* --- 1. DESIGN TOKENS & CSS VARIABLES --- */
:root {
  /* Official Palette from design_brief.json */
  --bg: #fbfbf9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #526071;
  --primary: #002e78;
  --primary-text: #ffffff;
  --accent: #c4821a;
  --accent-text: #875304; /* High-contrast (6.4:1 on white / 6.2:1 on off-white) brass tone for text */
  --accent-hover: #b07212;
  --dark: #08162b;
  --dark-text: #f8fafc;
  --hero-bg: #00205b;
  --hero-text: #ffffff;

  /* Derived Borders, Tints and Shadows */
  --border-light: rgba(15, 23, 42, 0.12);
  --border-card: rgba(15, 23, 42, 0.08);
  --border-dark: rgba(248, 250, 252, 0.14);
  --border-accent: rgba(196, 130, 26, 0.35);
  
  --surface-alt: #f4f4f0;
  --surface-tint: #edf2f9;
  --primary-light: rgba(0, 46, 120, 0.06);
  --accent-soft: rgba(196, 130, 26, 0.12);

  --shadow-sm: 0 1px 3px rgba(8, 22, 43, 0.06);
  --shadow-md: 0 4px 14px rgba(8, 22, 43, 0.08);
  --shadow-lg: 0 12px 28px rgba(8, 22, 43, 0.12);
  --shadow-hover: 0 16px 36px rgba(8, 22, 43, 0.14);

  /* Typography from design_brief.json */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Fluid Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.84rem, 0.8rem + 0.2vw, 0.9375rem);
  --text-base: clamp(0.975rem, 0.925rem + 0.25vw, 1.0625rem);
  --text-md: clamp(1.1rem, 1.025rem + 0.375vw, 1.25rem);
  --text-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.45rem);
  --text-xl: clamp(1.45rem, 1.3rem + 0.75vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.25rem);
  --text-3xl: clamp(2.1rem, 1.75rem + 1.75vw, 2.85rem);
  --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.65rem);

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Container & Radius */
  --container-max: 1240px;
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. RESET & BASE ELEMENTS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.62;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--text-4xl); font-weight: 700; line-height: 1.15; }
h2 { font-size: var(--text-3xl); font-weight: 600; line-height: 1.22; }
h3 { font-size: var(--text-2xl); font-weight: 600; line-height: 1.26; }
h4 { font-size: var(--text-xl); font-weight: 600; line-height: 1.32; }

p {
  margin-bottom: 1.15rem;
  max-width: 70ch;
}

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

ul, ol {
  list-style: none;
}

/* Focus Visibility & Accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 16px;
  z-index: 9999;
  background: var(--dark);
  color: var(--dark-text);
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.container-narrow {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

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

.section-tight {
  padding-block: clamp(32px, 4vw, 56px);
}

.section-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head.text-center {
  text-align: center;
}

.section-head.text-center p {
  margin-inline: auto;
}

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

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background-color: var(--accent-text);
}

.band-dark .eyebrow,
.band-primary .eyebrow,
.hero .eyebrow {
  color: #e2a84a;
}

.band-dark .eyebrow::before,
.band-primary .eyebrow::before,
.hero .eyebrow::before {
  background-color: #e2a84a;
}

.section-title {
  margin-bottom: 14px;
}

.section-sub {
  font-size: var(--text-md);
  color: var(--muted);
  line-height: 1.55;
}

/* --- 4. TOP BAR (DESKTOP & MOBILE COMPLIANT) --- */
.top-bar {
  background-color: var(--dark);
  color: var(--dark-text);
  font-size: var(--text-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}

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

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  white-space: nowrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(248, 250, 252, 0.85);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

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

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

.top-bar-badge {
  background: rgba(196, 130, 26, 0.2);
  color: #e2a84a;
  border: 1px solid rgba(196, 130, 26, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Mobile top bar constraints: <= 36px tall, nowrap, at most 2-3 short items */
@media (max-width: 767px) {
  .top-bar {
    height: 34px;
    overflow: hidden;
  }
  .top-bar-inner {
    justify-content: center;
    height: 34px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .top-bar-left {
    display: none !important;
  }
  .top-bar-desktop {
    display: none !important;
  }
  .top-bar-extra {
    display: none !important;
  }
  .top-bar-right {
    gap: 16px;
    flex-wrap: nowrap;
  }
  .top-bar-item {
    font-size: 0.75rem;
  }
}

/* --- 5. STICKY HEADER & NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(8, 22, 43, 0.04);
  transition: box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(8, 22, 43, 0.09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: clamp(56px, 7vw, 72px);
  flex-wrap: nowrap;
}

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

.logo-link:hover .logo-title {
  color: var(--primary);
}

.logo-emblem {
  width: clamp(34px, 8vw, 42px);
  height: clamp(34px, 8vw, 42px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hero-bg) 0%, var(--primary) 100%);
  color: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(196, 130, 26, 0.4);
  box-shadow: 0 2px 6px rgba(0, 32, 91, 0.25);
}

.logo-emblem svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

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

.logo-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hero-bg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  transition: color var(--transition-fast);
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.1;
  margin-top: 2px;
}

/* Primary Desktop Navigation */
.primary-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding-block: 8px;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

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

.header-cta {
  display: none !important;
}

/* Mobile Header Constraints (Phones 360px - 390px): One clean row of 56-64px */
@media (max-width: 991px) {
  .site-header {
    height: 60px;
  }
  .header-inner {
    height: 60px;
    gap: 10px;
    padding-inline: clamp(12px, 3vw, 16px);
  }
  .logo-link {
    height: clamp(32px, 9vw, 44px);
    max-width: min(60vw, 200px);
    width: auto;
    overflow: hidden;
    gap: 8px;
    flex-shrink: 1;
  }
  .logo-emblem {
    width: clamp(28px, 8vw, 36px);
    height: clamp(28px, 8vw, 36px);
    flex-shrink: 0;
  }
  .logo-emblem svg {
    width: clamp(16px, 5vw, 20px);
    height: clamp(16px, 5vw, 20px);
  }
  .logo-text-group {
    min-width: 0;
    overflow: hidden;
  }
  .logo-title {
    font-size: clamp(0.92rem, 3.6vw, 1.15rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo-tagline {
    display: none !important;
  }
  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  .mobile-action-btn {
    width: 38px;
    height: 38px;
  }
  .menu-toggle-btn {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }
}

/* Mobile Action Icon & Hamburger Button */
.mobile-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--primary);
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  border: 1px solid var(--border-light);
  transition: background-color var(--transition-fast);
}

.mobile-action-btn:hover {
  background: var(--primary-light);
}

.menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  margin-inline-start: auto;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text);
  transition: all var(--transition-fast);
}

.menu-toggle-btn:hover {
  background: var(--surface-tint);
  color: var(--primary);
}

.menu-icon-burger,
.menu-icon-close {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.menu-icon-close {
  display: none;
}

.menu-toggle-btn[aria-expanded="true"] .menu-icon-burger {
  display: none;
}

.menu-toggle-btn[aria-expanded="true"] .menu-icon-close {
  display: block;
}

/* Desktop Breakpoint for Navigation */
@media (min-width: 992px) {
  .primary-nav {
    display: block;
  }
  .header-cta {
    display: inline-flex;
  }
  .mobile-action-btn {
    display: none;
  }
  .menu-toggle-btn {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--surface);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 16px 32px rgba(8, 22, 43, 0.16);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  visibility: hidden;
}

.mobile-drawer.is-open {
  max-height: 90vh;
  overflow-y: auto;
  visibility: visible;
}

.mobile-drawer-inner {
  padding: 24px clamp(16px, 4vw, 32px) 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  padding: 12px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.06);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent);
}

.mobile-drawer-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.mobile-drawer-meta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
}

/* --- 6. BUTTONS & CTAS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 46, 120, 0.25);
}

.btn-primary:hover {
  background-color: #00225c;
  color: #ffffff;
  border-color: #00225c;
  box-shadow: 0 4px 14px rgba(0, 46, 120, 0.35);
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent);
  color: #08162b;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(196, 130, 26, 0.3);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #08162b;
  border-color: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(196, 130, 26, 0.4);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-white {
  background-color: #ffffff;
  color: var(--hero-bg);
  border-color: #ffffff;
  font-weight: 700;
}

.btn-white:hover {
  background-color: #f4f4f0;
  color: var(--hero-bg);
  transform: translateY(-1px);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

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

/* --- 7. HERO SECTION (COLOURFUL HERO, NEVER WHITE) --- */
.hero {
  position: relative;
  background-color: var(--hero-bg);
  color: var(--hero-text);
  padding-block: clamp(60px, 9vw, 110px);
  overflow: hidden;
  /* Photo-overlay with at least 70% opacity deep Colmore navy overlay */
  background-image: 
    linear-gradient(135deg, rgba(0, 32, 91, 0.88) 0%, rgba(8, 22, 43, 0.82) 100%),
    url('./_places/place-5.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
}

.hero-layout-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-layout-split {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e2a84a;
  margin-bottom: 16px;
  background: rgba(196, 130, 26, 0.18);
  border: 1px solid rgba(196, 130, 26, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
}

.hero-headline {
  color: #ffffff;
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-subheadline {
  color: rgba(248, 250, 252, 0.9);
  font-size: var(--text-md);
  line-height: 1.62;
  margin-bottom: 30px;
  max-width: 62ch;
}

.hero-proof-bar {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-proof-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.85);
  letter-spacing: 0.02em;
}

/* Hero Aside Card (Boardroom Credential Card) */
.hero-aside {
  position: relative;
  z-index: 2;
}

.hero-boardroom-card {
  background: rgba(8, 22, 43, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(196, 130, 26, 0.35);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.boardroom-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.boardroom-card-title {
  font-size: 1.1rem;
  color: #ffffff;
  font-family: var(--font-display);
}

.boardroom-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.boardroom-metric {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: var(--radius-xs);
  border-left: 2px solid var(--accent);
}

.boardroom-metric-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.boardroom-metric-lbl {
  font-size: 0.76rem;
  color: rgba(248, 250, 252, 0.75);
  margin-top: 4px;
}

.boardroom-card-quote {
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(248, 250, 252, 0.85);
  line-height: 1.5;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 20px;
}

.boardroom-card-cite {
  font-style: normal;
  display: block;
  font-size: 0.78rem;
  color: #e2a84a;
  font-weight: 600;
  margin-top: 6px;
}

/* Secondary Page Inner Hero */
.page-hero {
  background-color: var(--hero-bg);
  color: var(--hero-text);
  padding-block: clamp(48px, 6vw, 76px);
  position: relative;
  background-image: 
    linear-gradient(135deg, rgba(0, 32, 91, 0.94) 0%, rgba(8, 22, 43, 0.92) 100%),
    url('./_places/place-5.jpg');
  background-size: cover;
  background-position: center 25%;
  border-bottom: 3px solid var(--accent);
}

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

.page-hero p {
  color: rgba(248, 250, 252, 0.85);
  font-size: var(--text-md);
  max-width: 65ch;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: rgba(248, 250, 252, 0.7);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: rgba(248, 250, 252, 0.85);
}

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

.breadcrumbs-sep {
  opacity: 0.5;
}

/* --- 8. COLOUR BANDS (PROOF / DELIVERY / STATS / CLOSING CTA) --- */
/* Band 1: Corridor Proof Stats Band (Dark #08162b) */
.band-dark {
  background-color: var(--dark);
  color: var(--dark-text);
  border-block: 1px solid var(--border-dark);
}

.band-dark .section-title {
  color: #ffffff;
}

.band-dark .section-sub {
  color: rgba(248, 250, 252, 0.75);
}

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

.stat-item {
  padding: 20px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: transform var(--transition-fast);
}

.stat-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2a84a;
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.82rem;
  color: rgba(248, 250, 252, 0.7);
  line-height: 1.45;
}

/* Band 2: Delivery Engine (Primary Navy #002e78) */
.band-primary {
  background-color: var(--primary);
  color: #ffffff;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}

.band-primary .section-title {
  color: #ffffff;
}

.band-primary .eyebrow {
  color: #e2a84a;
}

.band-primary .eyebrow::before {
  background-color: #e2a84a;
}

.band-primary .section-sub {
  color: rgba(255, 255, 255, 0.85);
}

/* Band 3: Closing Consultation CTA Band (Deep Colmore Navy #00205b) */
.band-hero-bg {
  background-color: var(--hero-bg);
  color: var(--hero-text);
  border-top: 3px solid var(--accent);
  position: relative;
}

.band-hero-bg .section-title {
  color: #ffffff;
}

.band-hero-bg .section-sub {
  color: rgba(248, 250, 252, 0.85);
}

/* --- 9. SECTOR PRACTICES & CARDS (LIGHT SECTION 1) --- */
.card-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 28px);
}

@media (min-width: 640px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
}

@media (min-width: 768px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 24px);
}

@media (min-width: 600px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Base Card Style */
.card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 46, 120, 0.25);
}

.card-media {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
  background-color: var(--surface-alt);
}

.card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-media img {
  transform: scale(1.03);
}

.card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
}

.card-title {
  font-size: var(--text-lg);
  margin-bottom: 10px;
  color: var(--text);
}

.card-text {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-features {
  border-top: 1px solid var(--border-card);
  padding-top: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-feature-item {
  font-size: 0.82rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.card-feature-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: var(--accent);
  margin-top: 3px;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

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

.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* Practice Split Visual Container */
.split-hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}

@media (min-width: 900px) {
  .split-hero-container {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.split-hero-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.split-hero-img-wrap img {
  width: 100%;
  height: clamp(260px, 30vw, 360px);
  object-fit: cover;
}

/* --- 10. 5D DELIVERY ENGINE (BAND PRIMARY #002e78) --- */
.framework-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}

@media (min-width: 768px) {
  .framework-timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

.framework-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.framework-step:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

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

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.step-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* --- 11. SIGNATURE SECTION: DOCUMENTED ENTERPRISE IMPACT DOSSIER (LIGHT SECTION 2) --- */
.signature-section {
  background-color: var(--bg);
  position: relative;
  border-top: 1px solid var(--border-light);
}

.signature-dossier-box {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-md);
  position: relative;
}

.signature-dossier-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background-color: var(--accent);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

@media (min-width: 992px) {
  .dossier-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.signature-pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 20px;
  text-wrap: balance;
}

.signature-quote-author {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.signature-quote-name {
  font-weight: 700;
  color: var(--text);
}

.signature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: #8c5708;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  margin-bottom: 16px;
  border: 1px solid var(--border-accent);
}

/* Flanking 3 Oversized Statistics in 60pt Newsreader Serif with Hairline Borders */
.dossier-stats-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.oversized-stat-card {
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
  background: var(--bg);
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.oversized-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.75rem); /* ~60pt */
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap;
}

.stat-context-group {
  display: flex;
  flex-direction: column;
}

.stat-sector-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.stat-outcome-desc {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  margin-top: 2px;
}

/* --- 12. EXECUTIVE LEADERSHIP & BOARDROOM PEDIGREE --- */
.leadership-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

@media (min-width: 900px) {
  .leadership-split-layout {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.leadership-visual-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.leadership-visual-wrap img {
  width: 100%;
  height: clamp(340px, 45vw, 440px);
  object-fit: cover;
  object-position: center 20%;
}

.leadership-badge-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(8, 22, 43, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  border: 1px solid rgba(196, 130, 26, 0.3);
}

.leadership-badge-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.leadership-badge-role {
  font-size: 0.78rem;
  color: #e2a84a;
}

.leadership-bio-content h3 {
  margin-bottom: 16px;
}

.leadership-credentials-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-block: 20px;
}

@media (min-width: 600px) {
  .leadership-credentials-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.credential-item {
  background: var(--surface-alt);
  border: 1px solid var(--border-card);
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.84rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.credential-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: var(--primary);
  margin-top: 2px;
}

.credential-item strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.credential-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Secondary Leadership Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: clamp(24px, 4vw, 40px);
}

@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--text);
}

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

.team-card-bio {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

/* --- 13. MACROECONOMIC PUBLICATIONS & RESEARCH --- */
.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 28px);
}

@media (min-width: 768px) {
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .research-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.research-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.research-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.research-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.research-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
}

.research-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Data Table Styling for Africa 10 Index */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  background: var(--surface);
}

.data-table th {
  background: var(--dark);
  color: var(--dark-text);
  font-weight: 600;
  padding: 12px 16px;
  white-space: nowrap;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--accent);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-card);
  color: var(--text);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--surface-alt);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.82rem;
}

.score-badge {
  display: inline-block;
  background: rgba(196, 130, 26, 0.15);
  color: #8c5708;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
}

/* --- 14. PROCUREMENT & C-SUITE FAQ ACCORDION (AEO OPTIMISED) --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
  margin-inline: auto;
}

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

.faq-item:hover {
  border-color: rgba(0, 46, 120, 0.25);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--primary);
  stroke-width: 2.2;
  transition: transform var(--transition-fast);
}

.faq-item.is-active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding-inline: 22px;
}

.faq-item.is-active .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- 15. ADVISORY CONSULTATION INTAKE FORM --- */
.consultation-form-wrapper {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

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

@media (min-width: 600px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-label .required {
  color: #c53030;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 46, 120, 0.15);
  outline: none;
}

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

.form-help {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 4px;
}

.form-status-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}

.form-status-alert.is-success {
  display: block;
  background-color: #def7ec;
  color: #03543f;
  border: 1px solid #84e1bc;
}

.form-status-alert.is-error {
  display: block;
  background-color: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

/* Contact Info & Office Hubs */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.office-hub-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.office-hub-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 6px;
}

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

.office-hub-contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.84rem;
}

.office-hub-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

.office-hub-contacts a:hover {
  color: var(--accent);
}

.map-embed-container {
  width: 100%;
  height: clamp(280px, 35vw, 400px);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

.map-embed-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- 16. COMPREHENSIVE MULTI-COLUMN FOOTER --- */
.site-footer {
  background-color: var(--dark);
  color: var(--dark-text);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer-brand p {
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.86rem;
  line-height: 1.55;
  margin-top: 14px;
  margin-bottom: 20px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

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

.footer-links-list a {
  color: rgba(248, 250, 252, 0.75);
  transition: color var(--transition-fast), padding-inline-start var(--transition-fast);
}

.footer-links-list a:hover {
  color: #e2a84a;
  padding-inline-start: 4px;
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgba(248, 250, 252, 0.75);
  font-size: 0.85rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: var(--accent);
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.6);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(248, 250, 252, 0.6);
}

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

.footer-credits {
  font-size: 0.76rem;
  color: rgba(248, 250, 252, 0.55);
}

/* --- 17. BACK TO TOP BUTTON --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(8, 22, 43, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--accent);
  color: #08162b;
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.4;
}

/* --- 18. MOTION & PROGRESSIVE ENHANCEMENT --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
