/* ==========================================================================
   ADI Mission Control — Shared page styles
   Used by: case study pages, engineer profile pages
   Deployed to: /css/mc-pages.css on each ADI site via FTP
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared: decorative hero curves — disable pointer events
   -------------------------------------------------------------------------- */
.hero-curve-top-overlay,
.hero-curve-top-overlay-top-no-opacity { pointer-events: none; }

/* --------------------------------------------------------------------------
   Shared: services banner — styled as text, not a heading
   -------------------------------------------------------------------------- */
.services-banner-text {
  color: #1e3a8a;
  font-size: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* --------------------------------------------------------------------------
   Shared: dropdown links inherit elementor-sub-item styling from style.css
   so the HTML doesn't need that class on every <a> tag.
   -------------------------------------------------------------------------- */
.dropdown-content li a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.dropdown-content li a:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  border-left-color: #00d4ff;
}

/* --------------------------------------------------------------------------
   Shared: mobile nav (self-contained so pages don't rely on remote main.js)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: transparent;
    border: 0;
    z-index: 30;
  }
  .menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  header nav#nav {
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    display: none !important;
    background: #002b45;
    z-index: 25;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  header nav#nav.open { display: block !important; }
  header nav#nav .nav-menu {
    display: block !important;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  header nav#nav .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  header nav#nav .nav-menu > li > a {
    display: block;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1px;
  }
  /* Main site's style.css has `.dropdown-content { max-height: 0; overflow: hidden }`
     at @media (max-width: 768px) — different properties to our `display:
     none/block`, so the specificity boost doesn't cover them. Explicit
     resets here prevent children being clipped to 0-height when we toggle
     `.dropdown.open`. */
  header nav#nav .dropdown-content {
    position: static !important;
    display: none;
    background: #001c2e;
    box-shadow: none;
    padding: 0;
    max-height: none !important;
    overflow: visible !important;
  }
  header nav#nav .dropdown.open > .dropdown-content {
    display: block;
    max-height: none !important;
    overflow: visible !important;
  }
  header nav#nav .dropdown-content li a {
    display: block;
    padding: 12px 32px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    text-decoration: none;
  }
  header nav#nav .arrow { float: right; transition: transform 0.2s ease; }
  header nav#nav .dropdown.open > a .arrow { transform: rotate(180deg); }
}

/* --------------------------------------------------------------------------
   Shared: footer accordion — matches remote style.css `.active` convention
   -------------------------------------------------------------------------- */
.accordion-toggle.active + .accordion-content {
  display: block !important;
  max-height: none !important;
}


/* ==========================================================================
   CASE STUDY PAGES (cs-*)
   ========================================================================== */

/* --- Hero --- */
.cs-hero { position: relative; overflow: hidden; min-height: auto; display: flex; align-items: center; justify-content: center; text-align: center; background: #002b45; }
.cs-hero-background { position: absolute; inset: 0; z-index: 0; }
.cs-hero-background img.hero-image { width: 100%; height: 100%; object-fit: cover; filter: brightness(35%); }
.cs-hero::before { display: none; }
.cs-hero-inner { position: relative; z-index: 5; max-width: 1200px; margin: 0 auto; padding: 120px 24px 30px; }
.cs-hero-content { color: #ffffff; }
.cs-hero-eyebrow { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #87f6ff; font-weight: 600; margin-bottom: 16px; }
.cs-hero-h1 { font-family: 'Raleway', sans-serif; font-size: 46px; line-height: 1.15; font-weight: 800; margin: 0 0 16px; color: #ffffff !important; }
.cs-hero-sub { font-size: 18px; color: rgba(255,255,255,0.92); max-width: 960px; margin: 0 auto 20px; line-height: 1.65; }
.cs-hero-meta { display: inline-flex; gap: 16px; align-items: center; color: rgba(255,255,255,0.7); font-size: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
.cs-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cs-hero-phone { display: inline-flex; align-items: center; gap: 6px; background: #ff5b03; color: white; font-weight: 700; padding: 8px 18px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.cs-hero-cta { margin-top: 28px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cs-hero-cta a.primary { background: #ff5b03; color: white; font-weight: 700; padding: 14px 28px; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.cs-hero-cta a.secondary { background: transparent; color: white; font-weight: 600; padding: 14px 28px; border-radius: 8px; text-decoration: none; border: 2px solid rgba(255,255,255,0.5); }
.cs-hero-banner-text { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #80eff7; margin: 20px 0 0; font-family: 'Inter', sans-serif; }

/* --- Hero outcome badge --- */
.cs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0;
  backdrop-filter: blur(4px);
}
.cs-hero-badge svg { display: block; }
.cs-hero-badge--fixed { background: rgba(34, 197, 94, 0.22); color: #bbf7d0; border: 1px solid rgba(134, 239, 172, 0.45); }
.cs-hero-badge--found { background: rgba(251, 191, 36, 0.2); color: #fde68a; border: 1px solid rgba(252, 211, 77, 0.45); }

/* --- Content wrap + TOC sidebar --- */
.cs-wrap { max-width: 900px; margin: 0 auto; padding: 56px 24px; }
.cs-section { margin-bottom: 48px; }
.cs-section h2 { font-family: 'Raleway', sans-serif; color: #1a2273; font-size: 32px; font-weight: 800; margin: 0 0 20px; }
.cs-section p { font-size: 16px; line-height: 1.75; color: #1b2e6e; margin: 0 0 16px; }

.cs-wrap-with-toc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 20px;
}
.cs-wrap-with-toc .cs-wrap { max-width: none; margin: 0; padding: 0 0 20px; }
.cs-toc {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 20px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
}
.cs-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}
.cs-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: cs-toc-c; }
.cs-toc li { counter-increment: cs-toc-c; margin: 0; }
.cs-toc a {
  display: block;
  padding: 8px 10px;
  color: #1b2e6e;
  text-decoration: none;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.cs-toc a::before {
  content: counter(cs-toc-c, decimal-leading-zero);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
  letter-spacing: 0.5px;
}
.cs-toc a:hover { background: #eef2ff; color: #1a2273; }
.cs-toc a.is-active {
  background: #eef2ff;
  color: #1a2273;
  font-weight: 600;
  border-left-color: #ff5b03;
}
.cs-toc a.is-active::before { color: #ff5b03; }

/* --- Breadcrumb (case study) --- */
/* The site's global `nav { position: absolute; top: 180px; right: 40px }`
   rule in style.css catches every <nav>. Without this explicit override the
   breadcrumb floats behind the header menu. `static` pins it back to its
   natural grid-row position inside .cs-wrap-with-toc. */
.cs-breadcrumb {
  position: static;
  grid-column: 1 / -1;
  margin: 0 0 4px;
  font-size: 13px;
  color: #64748b;
  /* The main site's mobile stylesheet has a bare `nav { ... }` rule for the
     slide-in header menu: height: 100vh, background: rgba(30,58,138,0.98),
     width: 280px, padding: 80px 30px, z-index: 9999, overflow-y: auto. That
     rule applies to ANY <nav>, including this breadcrumb, on mobile — it was
     rendering the breadcrumb as a full-viewport dark-blue rectangle. Explicit
     resets below so the breadcrumb behaves like text regardless of viewport. */
  height: auto;
  max-height: none;
  width: auto;
  max-width: 100%;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  z-index: auto;
  overflow: visible;
  box-shadow: none;
  top: auto;
  right: auto;
  left: auto;
}
.cs-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.cs-breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.cs-breadcrumb li + li::before {
  content: '›';
  color: #94a3b8;
  padding: 0 8px;
  font-size: 14px;
}
.cs-breadcrumb a {
  color: #1a3a5c;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.cs-breadcrumb a:hover {
  border-bottom-color: #1a3a5c;
}
.cs-breadcrumb [aria-current="page"] {
  color: #1b2e6e;
  font-weight: 500;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .cs-breadcrumb [aria-current="page"] { max-width: 260px; }
}

/* --- Trust bar --- */
.cs-trust-bar {
  margin: 14px auto 0;
  padding: 14px 28px;
  position: relative;
  z-index: 5;
  display: inline-block;
}
.cs-trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 36px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
}
.cs-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  line-height: 1.3;
}
.cs-trust-item strong { color: #1a2273; font-size: 14px; }
.cs-trust-item img { display: block; height: 40px; width: auto; }
.cs-trust-shield { color: #1e3a8a; display: inline-flex; }

/* --- Facts section --- */
.cs-case-facts { background: white; border: 1px solid #c7d2fe; border-radius: 14px; padding: 24px 28px; margin-bottom: 48px; box-shadow: 0 1px 2px rgba(26, 34, 115, 0.05); }
.cs-case-facts-title { font-family: 'Raleway', sans-serif; font-size: 22px; font-weight: 800; color: #1a2273; margin: 0 0 20px; }
.cs-case-facts-grid { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.cs-case-facts-grid--no-engineers { grid-template-columns: 1fr; }
.cs-case-facts-engineers { display: flex; flex-direction: column; gap: 12px; }
.cs-engineer-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 14px; background: #f8fafc; border: 1px solid #e0e7ff; border-radius: 12px; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.cs-engineer-card:hover { border-color: #6366f1; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15); }
.cs-engineer-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; background: #eef2ff; display: block; }
/* Fallback when an engineer hasn't uploaded a headshot — pair with the
   ADI footer-variant logo (light artwork on transparent) and paint the
   brand dark-blue behind it so the mark reads as an intentional brand
   placeholder rather than a stretched/broken photo. Mirrors
   `.ei-card-photo--logo` and `.engineer-avatar--logo`. */
.cs-engineer-card--logo img { object-fit: contain; padding: 14px; background: #1A3A5C; }
.cs-engineer-card-meta { text-align: center; line-height: 1.35; }
.cs-engineer-card-meta strong { display: block; font-size: 15px; color: #1a2273; font-weight: 700; }
.cs-engineer-card-meta span { display: block; font-size: 12px; color: #475569; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.cs-case-facts-body { min-width: 0; }
.cs-key-facts-table { width: 100%; border-collapse: collapse; }
.cs-key-facts-table th, .cs-key-facts-table td { text-align: left; padding: 10px 12px; font-size: 15px; vertical-align: top; border-bottom: 1px solid #eef2ff; }
.cs-key-facts-table tr:last-child th, .cs-key-facts-table tr:last-child td { border-bottom: 0; }
.cs-key-facts-table th { width: 160px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.5px; font-size: 12px; }
.cs-key-facts-table td { color: #1b2e6e; line-height: 1.55; }
.cs-key-facts-table a { color: #1e3a8a; text-decoration: underline; font-weight: 600; }

/* --- Symptoms --- */
.cs-key-symptom { background: #eef2ff; border-left: 4px solid #1e3a8a; border-radius: 10px; padding: 20px 24px; margin-top: 8px; }
.cs-key-symptom-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #1e3a8a; margin-bottom: 6px; }
.cs-key-symptom-body { font-size: 16px; line-height: 1.6; color: #1b2e6e; }

/* --- Per-section image (manual picks: Symptoms / Methods / Outcome) ---
   One image picked by a director from the case study's attached photos,
   floated to the right at 50% of the section width so the body prose
   wraps on the left (magazine layout). Sections use `display: flow-root`
   so the section box always contains the floated image. Callout blocks
   that follow the body (key symptom / equipment / engineer attribution)
   `clear: both` so they always sit beneath the image regardless of
   how short the body text is. */
.cs-section { display: flow-root; }
.cs-section-image {
  float: right;
  width: 50%;
  margin: 0 0 16px 28px;
  padding: 0;
}
.cs-section-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  background: #f8fafc;
}
/* Subsequent callout blocks should sit beneath the floated image when the
   body text is taller than the image (i.e. they'd otherwise wrap into a
   narrow column). The key-symptom callout is intentionally NOT in this
   clearfix set — Peter wants it to flow up alongside the image when the
   body prose is short, giving a tighter magazine layout. CSS handles
   that naturally: an unfloated block stays in the left column until its
   top crosses the bottom of the float, at which point it goes full width. */
.cs-method-list,
.cs-equipment-list,
.cs-engineer-line,
.cs-cta {
  clear: both;
}
/* On phones, stack image above the body prose at full width. Float would
   only leave a cramped <200px column for body text. */
@media (max-width: 720px) {
  .cs-section-image {
    float: none;
    width: 100%;
    margin: 18px 0 16px;
  }
  .cs-section-image img { max-height: 320px; border-radius: 10px; }
}

/* --- Methods Used --- */
.cs-method-list { display: grid; gap: 14px; margin-top: 14px; }
.cs-method-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  background: #f0f4ff;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  padding: 18px 22px;
}
.cs-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-method-icon svg { display: block; }
.cs-method-body { font-size: 15px; line-height: 1.7; color: #1b2e6e; margin: 0; }
.cs-method-body strong { color: #1a2273; }
.cs-method-body a { color: #1a2273; text-decoration: underline; }

/* --- Investigation Process timeline --- */
.cs-process-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.cs-process-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  background: #ffffff;
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cs-process-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.cs-process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50px;
  bottom: -10px;
  width: 2px;
  height: 10px;
  background: linear-gradient(180deg, #fdba74 0%, transparent 100%);
  border-radius: 2px;
}
.cs-process-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a1f 0%, #ff5b03 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255, 91, 3, 0.28);
  user-select: none;
}
.cs-process-step-content { padding-top: 4px; min-width: 0; }
.cs-process-step-title {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1a2273;
  margin: 0 0 6px;
  line-height: 1.3;
}
.cs-process-step-body {
  font-size: 15px;
  line-height: 1.7;
  color: #1b2e6e;
  margin: 0;
}

/* --- Engineer attribution line --- */
.cs-engineer-line { background: #f8fafc; border-radius: 10px; padding: 16px 20px; margin-top: 24px; font-size: 15px; color: #1b2e6e; }
.cs-engineer-line a { color: #1e3a8a; text-decoration: underline; font-weight: 600; }

/* --- Outcome gallery + lightbox --- */
.cs-outcome-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.cs-gallery-btn {
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  aspect-ratio: 1 / 1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cs-gallery-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
}
.cs-gallery-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.cs-gallery-btn:hover img { transform: scale(1.05); }

.cs-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 72px;
  cursor: zoom-out;
  animation: cs-lightbox-in 0.18s ease;
}
.cs-lightbox.is-open { display: flex; }
.cs-lightbox-stage { position: relative; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; cursor: default; }
.cs-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: block;
}
.cs-lightbox-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.cs-lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}
.cs-lightbox-btn:hover { background: #ffffff; }
.cs-lightbox-btn:disabled { opacity: 0.35; cursor: default; }
.cs-lightbox-prev { left: 16px; }
.cs-lightbox-next { right: 16px; }
.cs-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 26px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
}
.cs-lightbox-close:hover { background: #ffffff; }
@keyframes cs-lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Related links --- */
.cs-related-links { background: #f8fafc; border-radius: 14px; padding: 24px 28px; margin-top: 16px; }
.cs-related-links h2 { font-family: 'Raleway', sans-serif; font-size: 22px; font-weight: 800; color: #1a2273; margin: 0 0 16px; }
.cs-related-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.cs-related-links li a { display: inline-block; background: white; border: 1px solid #c7d2fe; color: #1e3a8a; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.cs-related-links li a:hover { background: #eef2ff; }

/* --- CTA banner --- */
.cs-cta { background: #9ddee1; color: #0f2350; padding: 60px 24px; text-align: center; }
.cs-cta h2 { font-family: 'Raleway', sans-serif; font-size: 32px; font-weight: 800; margin: 0 0 12px; color: #0f2350; }
.cs-cta p { font-size: 16px; color: #1b2e6e; max-width: 600px; margin: 0 auto 24px; line-height: 1.6; }
.cs-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cs-cta-buttons a.primary { background: #ff5b03; color: white; font-weight: 700; padding: 16px 32px; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.cs-cta-buttons a.secondary { background: transparent; color: #0f2350; font-weight: 600; padding: 16px 32px; border-radius: 8px; text-decoration: none; border: 2px solid rgba(15, 35, 80, 0.4); }

/* --- Case study responsive --- */
@media (max-width: 900px) {
  .cs-wrap-with-toc { grid-template-columns: 1fr; gap: 0; margin-top: 20px; padding: 0 18px; }
  .cs-toc { display: none; }
}
@media (max-width: 768px) {
  .cs-hero { min-height: 0; }
  .cs-hero-inner { padding: 10px 18px 24px; }
  .cs-hero-h1 { font-size: 32px; }
  .cs-hero-sub { font-size: 16px; }
  .cs-wrap { padding: 40px 18px; }
  .cs-section h2 { font-size: 26px; }
  .cs-cta { padding: 40px 18px; }
  .cs-cta h2 { font-size: 26px; }
  .cs-cta-buttons { flex-direction: column; }
  .cs-cta-buttons a { width: 100%; text-align: center; justify-content: center; }
  .cs-timeline { padding-left: 28px; }
  .cs-timeline-num { left: -44px; width: 28px; height: 28px; font-size: 13px; }
  .cs-case-facts { padding: 18px 20px; }
  .cs-case-facts-grid { grid-template-columns: 1fr; gap: 20px; }
  .cs-case-facts-engineers { flex-direction: column; align-items: stretch; }
  .cs-engineer-card { flex-direction: row; justify-content: flex-start; text-align: left; padding: 12px 14px; }
  .cs-engineer-card img { width: 64px; height: 64px; flex-shrink: 0; }
  .cs-engineer-card--logo img { padding: 9px; }
  .cs-engineer-card-meta { text-align: left; }
  .cs-key-facts-table th { width: auto; display: block; padding: 10px 0 4px; border-bottom: 0; }
  .cs-key-facts-table td { display: block; padding: 0 0 12px; border-bottom: 1px solid #eef2ff; }
  .cs-key-facts-table tr:last-child td { border-bottom: 0; }
  .cs-hero-banner-text { font-size: 14px; letter-spacing: 1px; margin-top: 14px; }
}
@media (max-width: 600px) {
  .cs-trust-bar-inner { gap: 14px; padding: 10px 16px; }
  .cs-trust-item span { display: none; }
  .cs-trust-item img { height: 32px; }
  .cs-outcome-gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .cs-lightbox { padding: 16px 8px; }
  .cs-lightbox-btn { width: 40px; height: 40px; font-size: 18px; }
  .cs-lightbox-prev { left: 6px; }
  .cs-lightbox-next { right: 6px; }
  .cs-lightbox-close { top: 10px; right: 10px; }
  .cs-process-step {
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 16px 18px;
  }
  .cs-process-step-num {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .cs-process-step:not(:last-child)::after { left: 38px; }
}


/* ==========================================================================
   CASE STUDIES INDEX PAGE (csi-*)
   ========================================================================== */

/* --- Pagination (server-side, real /page/N/ URLs) --- */
/* Main-site style.css has a bare `nav { position: absolute; top: 180px; right: 40px }`
   rule that catches every <nav> element at desktop, plus a slide-in fixed
   variant at mobile. Explicit resets here pin the pager back to its natural
   in-flow position. Same pattern as `.cs-breadcrumb`. */
.csi-pager {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  z-index: auto;
  overflow: visible;
  box-shadow: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 32px 0 0;
}
.csi-pager-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1a2273;
  background: #ffffff;
  border: 1px solid #cbd5f5;
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 40px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
a.csi-pager-btn:hover { background: #eef2ff; border-color: #1a2273; }
.csi-pager-btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.csi-pager-btn.csi-pager-active {
  background: #1a2273;
  border-color: #1a2273;
  color: #ffffff;
  cursor: default;
}
/* Pager page links are now <button>s (client-side pagination, no navigation). */
button.csi-pager-btn { cursor: pointer; line-height: 1.2; -webkit-appearance: none; appearance: none; }
button.csi-pager-btn:hover { background: #eef2ff; border-color: #1a2273; }
button.csi-pager-btn.csi-pager-active:hover { background: #1a2273; border-color: #1a2273; }
/* The "…" gap between page-number jumps — not interactive. */
.csi-pager-btn.csi-pager-gap {
  border-color: transparent;
  background: transparent;
  min-width: auto;
  padding: 8px 4px;
  cursor: default;
}
@media (max-width: 640px) {
  .csi-pager-btn { font-size: 13px; padding: 7px 12px; min-width: 36px; }
}

/* --- Service routing block (below the case study grid, before the CTA) --- */
.csi-services {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 24px 32px;
  background: #f7f9fd;
  border: 1px solid #dbe4f3;
  border-radius: 14px;
}
.csi-services-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a2273;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.csi-services-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.csi-services-grid li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid #cbd5f5;
  border-radius: 10px;
  color: #1a3a5c;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.csi-services-grid li a em {
  font-style: normal;
  color: #94a3b8;
  font-size: 16px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.csi-services-grid li a:hover { background: #eef2ff; border-color: #1a2273; }
.csi-services-grid li a:hover em { color: #ff5b03; transform: translateX(2px); }
@media (max-width: 900px) { .csi-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .csi-services { padding: 18px 16px; margin-top: 22px; }
  .csi-services-grid { grid-template-columns: 1fr; }
}

/* --- Section heading above the filter bar --- */
.csi-section-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1a2273;
  margin: 36px 0 18px;
}

.csi-content { max-width: 1400px; margin: 0 auto; padding: 12px 40px 20px; }
.csi-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.csi-filter-btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1b2e6e;
  cursor: pointer;
  transition: all 0.15s ease;
}
.csi-filter-btn:hover { background: #eef2ff; border-color: #6366f1; }
.csi-filter-active { background: #1e3a8a !important; color: #ffffff !important; border-color: #1e3a8a !important; }
.csi-count { font-size: 14px; color: #64748b; margin: 0 0 24px; }
.csi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}
.csi-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.15s ease;
}
.csi-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }
.csi-card-link { position: absolute; inset: 0; z-index: 1; }
.csi-card-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.csi-card-body { padding: 20px; }
.csi-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.csi-card-tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.csi-card-tag--type { background: #1e3a8a; color: #ffffff; }
.csi-card-tag--location { background: #ecfdf5; color: #065f46; }
.csi-card-tag--outcome { background: #f0fdf4; color: #166534; }
.csi-card-title { font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 700; color: #1a2273; margin: 0 0 8px; line-height: 1.35; }
.csi-card-desc { font-size: 14px; line-height: 1.6; color: #475569; margin: 0 0 14px; }
.csi-card-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.csi-card-meta li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.45; flex-wrap: wrap; }
.csi-card-meta .csi-meta-label {
  flex: 0 0 92px;
  color: #64748b;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.csi-card-meta .csi-meta-value { color: #1b2e6e; font-weight: 500; flex: 1 1 auto; min-width: 0; }
.csi-card-meta .csi-meta-link {
  color: #1a2273;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  z-index: 2;
  border-bottom: 1px dotted rgba(26, 34, 115, 0.4);
}
.csi-card-meta .csi-meta-link:hover { color: #ff5b03; border-bottom-color: #ff5b03; }
.csi-card-meta .csi-meta-more { color: #94a3b8; font-weight: 500; }
.csi-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f5f9; padding-top: 12px; font-size: 13px; }
.csi-card-location { color: #64748b; position: relative; z-index: 2; }
a.csi-card-location { text-decoration: underline; color: #1e3a8a; }
.csi-card-read { color: #1e3a8a; font-weight: 600; }
@media (max-width: 768px) {
  .csi-content { padding: 24px 18px 10px; }
  .csi-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ENGINEER PROFILE PAGES (ep-*)
   ========================================================================== */

/* --- Hero --- */
.ep-hero-image { filter: brightness(35%); }
.ep-hero-content { margin-top: 120px !important; text-align: center !important; }
.ep-hero-title { font-size: 54px !important; line-height: 1.15 !important; }
.ep-hero-title .ep-h1-name { display: block; }
.ep-hero-title .ep-h1-role { display: block; font-size: 0.5em; font-weight: 500; letter-spacing: 0.02em; margin-top: 10px; opacity: 0.9; }
@media (max-width: 600px) {
  .ep-hero-title .ep-h1-role { font-size: 0.55em; margin-top: 8px; }
}
.ep-hero-description { font-size: 24px !important; text-transform: uppercase !important; letter-spacing: 2px !important; margin-top: 8px !important; }
.ep-value-prop { font-size: 16px; color: rgba(255,255,255,0.85); margin-top: 16px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.ep-hero-cta { margin-top: 28px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ep-cta-phone { display: inline-flex; align-items: center; gap: 8px; background: #ff5b03; color: white; font-weight: 700; padding: 14px 28px; border-radius: 8px; text-decoration: none; font-size: 16px; }
.ep-cta-profile { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: white; font-weight: 600; padding: 14px 28px; border-radius: 8px; text-decoration: none; font-size: 16px; border: 2px solid rgba(255,255,255,0.5); }

/* --- Main section + trust grid --- */
.ep-main-section { max-width: 1200px; margin: 0 auto; padding: 20px 40px; }
/* 20px above and below the breadcrumb when it sits at the top of
   ep-main-section — section's 20px top padding + 20px margin-bottom on the
   breadcrumb gives equal visual gap either side. */
.ep-main-section > .cs-breadcrumb { margin: 0 0 20px; }

/* Generic MC-template rule: when .cs-breadcrumb sits directly in <main>
   (i.e. it's not inside a padded section wrapper), give it the same
   centred-with-padding treatment other content sections use plus 20px
   vertical margin either side. Applies to engineers-index and any future MC
   page that places the breadcrumb at the top of <main>. */
main > .cs-breadcrumb {
  max-width: 1180px;
  margin: 20px auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.ep-trust-grid { display: grid !important; grid-template-columns: 260px 1fr !important; gap: 40px !important; align-items: start !important; }
.ep-photo-column { display: flex !important; flex-direction: column !important; gap: 20px !important; width: 260px !important; min-width: 260px !important; }
.ep-profile-card { position: static !important; transform: none !important; flex-direction: column !important; text-align: center !important; padding: 24px 28px !important; max-width: none !important; }
.ep-engineer-meta { align-items: center !important; gap: 6px !important; margin-top: 12px; }
/* Engineer profile hero — fallback for engineers without an uploaded headshot.
   Paired with `/images/adi-logo-footer.webp` (light artwork on transparent),
   chosen in mainSiteBuilder.ts so the mark stays legible against the brand
   dark-blue painted here. `object-fit: contain` + percentage padding stops
   the logo from stretching across the rounded square. */
.engineer-avatar.engineer-avatar--logo { background: #1A3A5C !important; }
.engineer-avatar.engineer-avatar--logo img { object-fit: contain !important; padding: 18% !important; background: transparent !important; }
.ep-trust-callout { font-size: 14px; color: #1b2e6e; line-height: 1.6; padding: 16px 20px; background: #f0f4ff; border-radius: 10px; border-left: 4px solid #1e3a8a; margin: 0; }
.ep-trust-grid .expertise-heading { margin-bottom: 20px !important; }
.ep-trust-body { font-size: 16px; line-height: 1.75; color: #1b2e6e; margin-bottom: 24px; }
.ep-facts-row { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.ep-facts-container { flex: 1; min-width: 200px; }

/* Engineer Facts table — mobile readability override.
   The brand style.css renders each `engineer-facts-row` as a two-column row
   (label left, value right). On phones, long values like an EFR qualification
   or "Leak Detection Jobs Completed For ADI Since 2011" + a 4-digit number
   collide with the long label and squash into illegible wraps. Below 640px
   we restructure each row into a vertical card: small uppercase eyebrow label
   on top, headline value below in the existing brand colour, thin divider
   between rows. Desktop layout is untouched (only fires inside the media
   query). */
@media (max-width: 640px) {
  .ep-facts-container .engineer-facts-description-container {
    display: flex;
    flex-direction: column;
  }
  .ep-facts-container .engineer-facts-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 14px 0 !important;
    margin: 0 !important;
    border-top: 1px solid rgba(26, 58, 92, 0.12) !important;
    width: 100% !important;
  }
  .ep-facts-container .engineer-facts-row:first-of-type {
    border-top: none !important;
    padding-top: 8px !important;
  }
  .ep-facts-container .engineer-facts-row-name {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    line-height: 1.4 !important;
    text-align: left !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
  .ep-facts-container .engineer-facts-row-description-blue,
  .ep-facts-container .engineer-facts-row-description-orange {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  .ep-facts-container .engineer-facts-row-description-blue { color: #1A3A5C !important; }
  .ep-facts-container .engineer-facts-row-description-orange { color: #f97316 !important; }
}

/* --- Section overrides (remote style.css has large paddings for the index page) --- */
.expertise-section { padding-top: 40px !important; padding-bottom: 40px !important; }

/* --- Specialisms + equipment --- */
.ep-specialisms-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ep-specialism-tag { display: inline-block; padding: 8px 16px; font-size: 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.ep-specialism-tag--linked { background: #1e2a78; color: #fff; }
.ep-specialism-tag--plain { background: #f0f4ff; color: #1e2a78; }

/* --- Equipment block --- */
.ep-equipment-block { margin-top: 28px; }
.ep-equipment-heading { font-family: 'Inter', sans-serif; font-size: 18px; color: #1a2273; margin-bottom: 12px; }
.ep-equipment-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ep-equipment-pill { background: #eef2ff; color: #1b2e6e; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid #c7d2fe; }

/* --- Regions --- */
.ep-regions-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ep-region-link { color: #1b2e6e; text-decoration: none; font-size: 15px; padding: 6px 0; display: block; border-bottom: 1px solid rgba(27, 46, 110, 0.08); }

/* --- Case studies grid --- */
.ep-case-studies-section { padding: 10px 40px 40px; max-width: 1400px; margin: 0 auto; }
.ep-cs-heading { font-family: 'Inter', sans-serif; font-size: 22px; color: #1a2273; }
.ep-case-studies-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 24px; }

/* --- Case study card tiles (builder-generated) --- */
.ep-cs-tiles { display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: 12px; }
.ep-cs-tile { width: 50%; flex: 1 1 50%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.ep-cs-tile--logo { background: linear-gradient(135deg, #1a2273 0%, #1e3a8a 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ep-cs-tile--logo img { width: 70%; max-width: 180px; height: auto; opacity: 0.92; }
.ep-cs-box { flex-direction: column !important; max-width: none !important; width: 100% !important; }
.ep-cs-box-inner { border-radius: 16px !important; border: 1px solid rgba(0, 0, 0, 0.08) !important; }
.ep-cs-link { position: relative; }
.ep-cs-link:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }
.ep-cs-link-overlay { position: absolute; inset: 0; z-index: 1; }
.ep-cs-footer-link { position: relative; z-index: 2; }
a.ep-cs-footer-link { text-decoration: underline; color: #1e3a8a; }

/* Intro sentence between the "Case Studies by X" header and the grid.
   No max-width — the section container is already capped at 1400px, and
   engineers with 3-4 specialisms produce a sentence that fits on one line
   at typical desktop widths once the artificial 780px reading-width cap
   is removed. On narrower viewports it wraps naturally. */
.ep-cs-intro {
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
  margin: 4px 0 22px;
}

/* --- Card metadata: outcome pill + "Methods used" line --- */
.ep-cs-meta {
  margin: 12px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ep-cs-outcome {
  align-self: flex-start;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.4;
}
.ep-cs-outcome--fixed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.ep-cs-outcome--found {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.ep-cs-methods {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}
.ep-cs-methods-label {
  font-weight: 600;
  color: #1a3a5c;
  margin-right: 4px;
}
.ep-cs-methods-more {
  color: #94a3b8;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .ep-cs-methods { font-size: 12px; }
  .ep-cs-outcome { font-size: 11px; padding: 3px 8px; }
}

/* --- Reviews section (engineer profile) — horizontal slider --- */
.ep-reviews-section { padding: 10px 40px 40px; max-width: 1400px; margin: 0 auto; }
.ep-reviews-header { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.ep-reviews-heading { font-family: 'Inter', sans-serif; font-size: 22px; color: #1a2273; margin: 0; white-space: nowrap; }
.ep-reviews-header-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(26,34,115,0.18) 0%, rgba(26,34,115,0.04) 100%); }
.ep-reviews-header-count { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ep-reviews-intro { font-size: 16px; line-height: 1.6; color: #475569; margin: 4px 0 22px; max-width: 780px; }

/* Slider container with arrows */
.ep-reviews-slider-wrap { position: relative; }
.ep-reviews-slider {
  display: flex;
  align-items: flex-start;        /* natural card heights — no forced stretch */
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(26,58,92,0.25) transparent;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
}
.ep-reviews-slider::-webkit-scrollbar { height: 8px; }
.ep-reviews-slider::-webkit-scrollbar-thumb { background: rgba(26,58,92,0.25); border-radius: 4px; }
.ep-reviews-slider::-webkit-scrollbar-track { background: transparent; }
.ep-reviews-slider:focus { outline: 2px solid rgba(30,58,138,0.35); outline-offset: 2px; border-radius: 6px; }

/* Arrow buttons — desktop only */
.ep-reviews-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(15,23,42,0.12);
  background: #ffffff;
  color: #1a3a5c;
  font-size: 24px; line-height: 1;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15,23,42,0.10);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background 150ms ease, transform 150ms ease;
}
.ep-reviews-arrow:hover { background: #1a3a5c; color: #ffffff; transform: translateY(-50%) scale(1.05); }
.ep-reviews-arrow--prev { left: -18px; }
.ep-reviews-arrow--next { right: -18px; }

/* Cards sized to fit 4 across the slider on desktop. Equal heights via
   the slider's align-items: stretch + flex-column inside the card. */
.ep-review-card {
  position: relative;
  flex: 0 0 calc((100% - 60px) / 4);   /* 4 cards visible, 3×20px gaps */
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  padding: 20px 20px 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}
.ep-review-card:hover {
  box-shadow: 0 10px 28px rgba(15,23,42,0.10);
  border-color: rgba(26,58,92,0.18);
  transform: translateY(-1px);
}
.ep-review-card::before {
  content: '\201C';
  position: absolute;
  top: 6px; right: 14px;
  font-family: 'Georgia', serif;
  font-size: 44px;
  line-height: 1;
  color: rgba(26,58,92,0.07);
  pointer-events: none;
  user-select: none;
}

/* Unicode stars — single text node per colour, no nested span per star */
.ep-review-stars { display: block; font-size: 15px; letter-spacing: 1px; line-height: 1; margin-bottom: 6px; }
.ep-review-star--full { color: #f5b400; }
.ep-review-star--empty { color: #e2e8f0; }

.ep-review-date { display: block; font-size: 12px; color: #64748b; font-weight: 500; margin-bottom: 12px; }
.ep-review-title {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 700; line-height: 1.35;
  color: #0f172a; margin: 0 0 10px;
}
.ep-review-body {
  display: block;
  font-size: 14px; line-height: 1.6; color: #334155;
  margin: 0 0 14px;
  word-break: break-word;
  overflow-wrap: break-word;
  /* Cap super-long bodies so one outlier doesn't dominate the row height */
  max-height: 22em;
  overflow: hidden;
}

.ep-review-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ep-review-author { font-size: 13px; color: #475569; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.ep-review-author-initial {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #1a3a5c 0%, #1e3a8a 100%);
  color: #ffffff; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}

/* Verified badge — tick via ::before, no SVG */
.ep-review-verified {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0;
  padding: 3px 8px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.ep-review-verified::before {
  content: '\2713';
  font-size: 12px; font-weight: 800;
  line-height: 1;
}

/* Tablet — 2 cards visible */
@media (max-width: 1099px) {
  .ep-review-card { flex: 0 0 calc((100% - 20px) / 2); }
  .ep-reviews-arrow--prev { left: -12px; }
  .ep-reviews-arrow--next { right: -12px; }
}

/* Mobile — 1 card visible, arrows hidden (native swipe is primary affordance) */
@media (max-width: 720px) {
  .ep-reviews-section { padding: 10px 20px 30px; }
  .ep-review-card { flex: 0 0 calc(100% - 8px); padding: 18px 18px 14px; border-radius: 14px; }
  .ep-review-title { font-size: 15px; }
  .ep-review-body { font-size: 13.5px; }
  .ep-reviews-arrow { display: none; }
  .ep-reviews-header-count { display: none; }   /* hide chip on narrow viewports */
}

/* --- Empty / tombstone states --- */
.ep-empty-state { max-width: 720px; margin: 40px auto; padding: 32px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; text-align: center; }
.ep-empty-state p { margin: 0 0 16px; }
.ep-empty-state p:last-child { margin-bottom: 0; }
.ep-empty-state-primary { font-size: 17px; color: #1b2e6e; line-height: 1.7; }
.ep-empty-state-secondary { font-size: 15px; color: #475569; line-height: 1.7; }
.ep-empty-state a { color: #1e3a8a; font-weight: 600; text-decoration: underline; }

/* --- Areas --- */
.ep-areas-heading { font-family: 'Inter', sans-serif; font-size: 28px; color: #1a2273; margin-bottom: 12px; }
.ep-areas-description { margin-bottom: 20px; }

/* --- CTA section --- */
.ep-cta-section { background: #9ddee1; padding: 60px 40px; text-align: center; color: #0f2350; }
.ep-cta-inner { max-width: 700px; margin: 0 auto; }
.ep-cta-heading { font-family: 'Raleway', sans-serif; font-size: 32px; font-weight: 800; margin-bottom: 12px; color: #0f2350; }
.ep-cta-body { font-size: 16px; line-height: 1.6; color: #1b2e6e; margin-bottom: 28px; }
.ep-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ep-cta-buttons .ep-cta-phone { font-size: 18px; padding: 16px 32px; }

/* --- Map icon --- */
.ep-map-icon { padding-right: 5px; }

/* --- Footer terms --- */
.ep-terms-link { font-size: 15px; }
.ep-terms-link .sublink { color: #87f6ff; }

/* --- Engineer pagination --- */
.ep-view-more {
  margin-top: 32px;
  text-align: center;
}
.ep-view-more-link {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: #1e3a8a;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
  transition: background 0.15s ease, transform 0.15s ease;
}
.ep-view-more-link:hover {
  background: #2a4ba8;
  transform: translateY(-1px);
}
.ep-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  padding: 8px 0 24px;
}
.ep-pagination-link {
  display: inline-block;
  min-width: 38px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}
a.ep-pagination-link:hover { background: #eef2ff; }
.ep-pagination-current {
  background: #1e3a8a;
  color: #ffffff !important;
  border-color: #1e3a8a;
  cursor: default;
}
.ep-pagination-disabled {
  color: #94a3b8 !important;
  background: #f1f5f9;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

/* --- Engineer profile responsive --- */
@media (max-width: 900px) {
  .ep-trust-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 32px 20px 16px !important;
  }
  .ep-trust-grid .ep-photo-column {
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: center !important;
  }
  .ep-trust-grid .ep-photo-column > p {
    text-align: center !important;
  }
  .ep-trust-grid .engineer-profile-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 24px 28px !important;
  }
  .ep-trust-grid .engineer-meta { align-items: center !important; text-align: center !important; }
  .ep-hero-content {
    margin-top: 10px !important;
    padding: 0 16px !important;
  }
  .ep-main-section { padding-top: 20px !important; }
  .ep-hero-content h1 { font-size: 36px !important; }
  .ep-hero-content .hero-description, .ep-hero-content .ep-hero-description { font-size: 18px !important; letter-spacing: 1px !important; }
  .ep-hero-content .ep-value-prop { font-size: 14px !important; }
  .ep-hero-cta { flex-direction: column !important; gap: 10px !important; }
  .ep-hero-cta a { width: 100%; text-align: center; justify-content: center; padding: 14px 20px !important; }
  .ep-section-padded { padding-left: 20px !important; padding-right: 20px !important; }
  .ep-cta-section { padding: 40px 20px !important; }
  .ep-cta-section h2 { font-size: 26px !important; }
  .ep-cta-buttons { flex-direction: column !important; gap: 10px !important; }
  .ep-cta-buttons a { width: 100%; text-align: center; justify-content: center; }
  .ep-regions-grid { grid-template-columns: 1fr 1fr !important; }
  .ep-case-studies-grid { grid-template-columns: 1fr !important; }
  .expertise-section { padding-left: 20px !important; padding-right: 20px !important; }
  .engineer-about-us-section { padding-left: 20px !important; padding-right: 20px !important; }
}
@media (max-width: 480px) {
  .ep-hero-content h1 { font-size: 30px !important; }
  .ep-hero-content .hero-description, .ep-hero-content .ep-hero-description { font-size: 16px !important; }
  .ep-regions-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   Engineers Index Page  (ei-*)
   /meet-our-engineers/
   ============================================================ */

.ei-hero { min-height: 420px; }
.ei-hero .hero-image { filter: brightness(35%); }
.ei-hero-content { max-width: 1040px; padding: 40px 20px 80px; }
.ei-hero-h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 16px;
  color: #ffffff !important;
  white-space: nowrap;
  max-width: none !important;
}
.ei-hero-sub {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 20px;
  max-width: 760px;
}
.ei-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 12px;
}
.ei-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255, 91, 3, 0.9);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* --- Content section --- */
.ei-section {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 20px;
}
/* --- Filter bar — multi-select dropdowns above the engineer grid ---
   Replaces the previous chip layout (which sprawled across the page with
   ~19 chips) with two compact buttons that expand to a checkbox panel
   on click. Driven by engineers-index-filter.js. */
.ei-filter-bar {
  margin: 0 auto 28px;
  max-width: 1100px;
  padding: 18px 22px;
  background: #f7f9fd;
  border: 1px solid #dbe4f3;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.ei-filter-dropdown {
  position: relative;
  min-width: 240px;
  flex: 0 1 auto;
}
.ei-filter-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid #cbd5f5;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ei-filter-dropdown-btn:hover { border-color: #1a2273; }
.ei-filter-dropdown-btn[aria-expanded="true"] {
  border-color: #1a2273;
  box-shadow: 0 0 0 3px rgba(26, 34, 115, 0.12);
}
.ei-filter-dropdown-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.ei-filter-dropdown-summary {
  flex: 1 1 auto;
  font-weight: 600;
  color: #1b2e6e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ei-filter-dropdown--has-selection .ei-filter-dropdown-summary { color: #1a2273; }
.ei-filter-dropdown-caret {
  color: #64748b;
  font-size: 11px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.ei-filter-dropdown-btn[aria-expanded="true"] .ei-filter-dropdown-caret {
  transform: rotate(180deg);
}
.ei-filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 240px;
  max-height: 320px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cbd5f5;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(26, 34, 115, 0.12);
  z-index: 20;
  padding: 6px 0;
}
.ei-filter-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ei-filter-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 14px;
  color: #1b2e6e;
  cursor: pointer;
  transition: background 0.1s ease;
}
.ei-filter-option label:hover { background: #f0f4ff; }
.ei-filter-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #1a2273;
  cursor: pointer;
  flex-shrink: 0;
}
.ei-filter-dropdown-clear {
  display: block;
  width: calc(100% - 16px);
  margin: 6px 8px 4px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #ff5b03;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}
.ei-filter-dropdown-clear:hover {
  background: #fff7ed;
  border-color: #fcd9b8;
}
.ei-filter-reset {
  margin-left: auto;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #ff5b03;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
}
.ei-filter-reset:hover { text-decoration: underline; }
.ei-filter-empty {
  margin: 24px auto 0;
  padding: 18px 20px;
  max-width: 560px;
  text-align: center;
  background: #fff7ed;
  border: 1px solid #fcd9b8;
  border-radius: 12px;
  font-size: 14px;
  color: #7a3d0d;
}
.ei-filter-empty-reset {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #ff5b03;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  text-decoration: underline;
}
@media (max-width: 640px) {
  .ei-filter-bar { padding: 14px 16px; gap: 10px; flex-direction: column; align-items: stretch; }
  .ei-filter-dropdown { min-width: 0; width: 100%; }
  .ei-filter-dropdown-panel { right: 0; left: 0; }
  .ei-filter-reset { margin-left: 0; align-self: flex-end; }
}

/* --- Card grid --- */
.ei-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  margin-top: 24px;
}
.ei-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ei-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 34, 115, 0.08);
}
.ei-card-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  align-self: center;
  background: linear-gradient(135deg, #eef2ff, #cbd5f5);
  border: 3px solid #eef2ff;
}
.ei-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Fallback for engineers without an uploaded headshot — show the ADI logo
   centred in the circle on the brand dark-blue so the placeholder reads as
   an intentional brand mark rather than a missing-photo state. Paired with
   the footer-variant logo (light artwork on transparent) chosen in
   mainSiteBuilder.ts so the mark stays legible against the dark bg. */
.ei-card-photo--logo {
  background: #1A3A5C;
  border-color: #1A3A5C !important;
}
.ei-card-photo--logo img {
  object-fit: contain;
  padding: 16px;
}
.ei-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}
.ei-card-name {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1a2273;
  margin: 0;
  text-align: center;
}
.ei-card-location {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}
/* --- Key facts --- */
.ei-card-facts {
  list-style: none;
  padding: 14px 16px;
  margin: 6px 0 0;
  background: #f8fafc;
  border-radius: 10px;
  display: grid;
  gap: 8px;
}
.ei-card-facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  gap: 12px;
}
.ei-card-facts li span {
  color: #64748b;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.ei-card-facts li strong {
  color: #1a2273;
  font-weight: 700;
  font-size: 14px;
  text-align: right;
  line-height: 1.35;
}

/* --- Recent case studies --- */
.ei-card-cases {
  margin-top: 4px;
  border-top: 1px solid #eef2ff;
  padding-top: 12px;
}
.ei-card-cases-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 8px;
}
.ei-card-cases ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ei-card-cases li a {
  display: block;
  color: #1a3a5c;
  font-size: 13px;
  line-height: 1.45;
  padding: 4px 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ei-card-cases li a:hover {
  color: #ff5b03;
  border-bottom-color: #ff5b03;
}

/* --- CTA button --- */
.ei-card-cta {
  margin-top: auto;
  padding-top: 14px;
  display: inline-block;
  text-align: center;
  background: #1a3a5c;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  padding: 12px 18px;
  transition: background 0.15s ease;
}
.ei-card-cta:hover { background: #ff5b03; }

/* --- Service routing block (after engineer grid) --- */
.ei-services-section {
  max-width: 1180px;
  margin: 64px auto 0;
  padding: 32px 36px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}
.ei-services-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #1a2273;
  margin: 0 0 20px;
}
.ei-services-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ei-services-grid li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  min-height: 56px;
  background: #ffffff;
  border: 1px solid #dbe4f3;
  border-radius: 10px;
  color: #1a3a5c;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.ei-services-grid li a em {
  font-style: normal;
  font-size: 18px;
  color: #94a3b8;
  transition: color 0.15s ease, transform 0.15s ease;
}
.ei-services-grid li a:hover {
  background: #eef2ff;
  border-color: #1a2273;
  transform: translateY(-1px);
}
.ei-services-grid li a:hover em { color: #ff5b03; transform: translateX(2px); }
@media (max-width: 900px) {
  .ei-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ei-services-section { padding: 24px 20px; margin-top: 48px; }
  .ei-services-heading { font-size: 22px; }
  .ei-services-grid { grid-template-columns: 1fr; gap: 8px; }
  .ei-services-grid li a { min-height: 48px; padding: 12px 16px; font-size: 14px; }
}

/* --- CTA section --- */
.ei-cta-section {
  margin: 80px 0 0;
  padding: 60px 40px;
  background: #9ddee1;
  text-align: center;
  color: #0f2350;
}
.ei-cta-inner { max-width: 700px; margin: 0 auto; }
.ei-cta-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #0f2350;
}
.ei-cta-body {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px;
  color: #1b2e6e;
}
.ei-cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ei-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ff5b03;
  color: #fff !important;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.15s ease;
}
.ei-cta-phone:hover { transform: translateY(-1px); }

.ei-empty {
  text-align: center;
  padding: 40px;
  color: #64748b;
}

/* Tablet + narrow desktop — allow the H1 to wrap naturally rather than overflow */
@media (max-width: 960px) {
  .ei-hero-h1 { white-space: normal; font-size: 38px; }
}

@media (max-width: 768px) {
  .ei-hero-h1 { font-size: 32px; white-space: normal; }
  .ei-hero-sub { font-size: 15px; }
  .ei-grid { grid-template-columns: 1fr; gap: 20px; }
  .ei-card { padding: 20px; }
  .ei-card-name { font-size: 20px; }
}

/* ============================================================
   Engineer Profile — Entity Upgrade (2026-04-22)
   Hero stat cards, FAQ Q&A section, "How X Works" process
   ============================================================ */

/* --- Definition sentence in hero (replaces generic value prop) --- */
.ep-definition {
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.55;
}
.ep-definition br { content: ''; display: block; margin-bottom: 8px; }

/* --- "What {Name} Does" section (sits between breadcrumb and trust grid) --- */
.ep-does-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 0 auto 32px;
  max-width: 1100px;
}
.ep-does-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #1a2273;
  margin: 0 0 18px;
}
.ep-does-block {
  padding: 14px 0;
  border-bottom: 1px solid #eef2ff;
}
.ep-does-block:last-child { border-bottom: none; padding-bottom: 0; }
.ep-does-block:first-of-type { padding-top: 0; }
.ep-does-subheading {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a3a5c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}
.ep-does-body {
  font-size: 16px;
  line-height: 1.65;
  color: #1b2e6e;
  margin: 0;
}
.ep-does-body br { content: ''; display: block; margin-bottom: 6px; }
.ep-does-body a {
  color: #1a3a5c;
  text-decoration: underline;
  text-decoration-color: #cbd5f5;
  text-underline-offset: 3px;
}
.ep-does-body a:hover {
  color: #ff5b03;
  text-decoration-color: #ff5b03;
}
@media (max-width: 600px) {
  .ep-does-section { padding: 22px 20px; }
  .ep-does-heading { font-size: 22px; }
  .ep-does-subheading { font-size: 13px; }
  .ep-does-body { font-size: 15px; }
}

/* --- Hero stat grid (inside hero, below definition, above CTA) --- */
.ep-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 0 12px;
}
.ep-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #ffffff;
  text-align: center;
  backdrop-filter: blur(4px);
}
.ep-hero-stat-value {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}
.ep-hero-stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Q&A + Process wrapper (shared section padding) --- */
.ep-section-qa-process {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.ep-section-qa-process:empty { display: none; }

/* --- Q&A (FAQ-style) --- */
.ep-qa-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 36px;
}
.ep-qa-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #1a2273;
  margin: 0 0 24px;
}
.ep-qa-block {
  border-bottom: 1px solid #eef2ff;
}
.ep-qa-block:last-child { border-bottom: none; }
.ep-qa-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ep-qa-summary::-webkit-details-marker { display: none; }
.ep-qa-summary::marker { content: ''; }
.ep-qa-summary:hover .ep-qa-question { color: #ff5b03; }
.ep-qa-question {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a3a5c;
  margin: 0;
  line-height: 1.4;
  flex: 1;
  transition: color 0.2s ease;
}
.ep-qa-chevron {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 2px solid #1a3a5c;
  border-bottom: 2px solid #1a3a5c;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -4px;
}
.ep-qa-block[open] .ep-qa-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.ep-qa-answer {
  font-size: 16px;
  line-height: 1.7;
  color: #1b2e6e;
  margin: 0;
  padding: 0 0 20px;
}
.ep-qa-answer a {
  color: #1a3a5c;
  text-decoration: underline;
  text-decoration-color: #cbd5f5;
  text-underline-offset: 3px;
}
.ep-qa-answer a:hover {
  color: #ff5b03;
  text-decoration-color: #ff5b03;
}

/* --- "How {Name} Works" process --- */
.ep-process-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 36px;
}
.ep-process-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #1a2273;
  margin: 0 0 12px;
}
.ep-process-intro {
  font-size: 16px;
  line-height: 1.7;
  color: #1b2e6e;
  margin: 0 0 24px;
  max-width: 780px;
}
.ep-process-list {
  list-style: none;
  counter-reset: ep-process-counter;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.ep-process-list li {
  counter-increment: ep-process-counter;
  position: relative;
  padding: 16px 16px 16px 60px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #dbe3f5;
  font-size: 15px;
  line-height: 1.6;
  color: #1b2e6e;
}
.ep-process-list li::before {
  content: counter(ep-process-counter);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a3a5c;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-process-list li strong {
  color: #1a2273;
  font-weight: 700;
}

@media (max-width: 900px) {
  .ep-section-qa-process { padding: 32px 20px 20px; gap: 28px; }
  .ep-qa-section, .ep-process-section { padding: 24px 20px; }
  .ep-qa-heading, .ep-process-heading { font-size: 24px; }
  .ep-process-list li { padding: 14px 14px 14px 52px; }
  .ep-process-list li::before { left: 12px; width: 28px; height: 28px; font-size: 13px; }
  .ep-hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ep-hero-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ep-hero-stat-value { font-size: 17px; }
  .ep-qa-question { font-size: 16px; }
  .ep-qa-answer { font-size: 15px; }
}

/* ====================================================================
   SEO Location Pages (Phase 4 — 2026-06-03)
   Branch: peter/main-site-location-pages
   Used by: data/templates/seo-location-page-template.html and any
   page rendered through src/lib/seoLocationPages/pagePublisher.ts.
   ==================================================================== */
.mc-seo-hero-content {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 24px;
}
.mc-seo-h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 16px;
  font-weight: 700;
}
.mc-seo-hero-subtitle {
  font-size: clamp(15px, 1.7vw, 18px);
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 24px;
  line-height: 1.45;
}
.mc-seo-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.mc-seo-hero-button {
  display: inline-block;
  padding: 12px 22px;
  background: #ffffff;
  color: #002b45;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.mc-seo-hero-button:hover { transform: translateY(-1px); }
.mc-seo-hero-button-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.mc-seo-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  color: #1f2933;
  line-height: 1.6;
  font-size: 17px;
}
.mc-seo-article > * { margin-top: 0; }
.mc-seo-article > * + * { margin-top: 1.2em; }
.mc-seo-article h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  color: #1a2273;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}
.mc-seo-article h3 {
  font-size: clamp(18px, 1.9vw, 22px);
  color: #1a2273;
  margin-top: 1.8em;
  margin-bottom: 0.4em;
  line-height: 1.3;
}
.mc-seo-article p { margin: 0 0 1.1em; }
.mc-seo-article ul,
.mc-seo-article ol {
  margin: 0 0 1.1em 1.4em;
  padding: 0;
}
.mc-seo-article li { margin: 0 0 0.4em; }
.mc-seo-article a {
  color: #1a2273;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mc-seo-article a:hover { color: #061a6b; }

/* Archetype accents — light left border on the first H2 per archetype.
   Pure decoration: doesn't affect copy, just hints at the page's lead. */
.mc-seo-archetype-infrastructure .mc-seo-article > h2:first-of-type { border-left: 4px solid #1a2273; padding-left: 14px; }
.mc-seo-archetype-symptom        .mc-seo-article > h2:first-of-type { border-left: 4px solid #b45309; padding-left: 14px; }
.mc-seo-archetype-technology     .mc-seo-article > h2:first-of-type { border-left: 4px solid #047857; padding-left: 14px; }
.mc-seo-archetype-insurer        .mc-seo-article > h2:first-of-type { border-left: 4px solid #6d28d9; padding-left: 14px; }
.mc-seo-archetype-engineer       .mc-seo-article > h2:first-of-type { border-left: 4px solid #0369a1; padding-left: 14px; }
.mc-seo-archetype-case_study     .mc-seo-article > h2:first-of-type { border-left: 4px solid #be123c; padding-left: 14px; }

.mc-seo-contact {
  background: #f4f6fb;
  padding: 48px 24px 56px;
}
.mc-seo-contact-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.mc-seo-contact h2 {
  margin: 0 0 12px;
  color: #1a2273;
  font-size: clamp(22px, 2.4vw, 28px);
}
.mc-seo-contact p { margin: 0; color: #1f2933; }
.mc-seo-contact a { color: #1a2273; text-decoration: underline; }

@media (max-width: 600px) {
  .mc-seo-hero-content { padding: 40px 18px; }
  .mc-seo-body         { padding: 24px 18px 36px; font-size: 16px; }
}
