:root {
  --color-primary: #007d7f;
  --color-primary-dark: #045456;
  --color-secondary: #3fa6a8;
  --color-accent: #b3302f;
  --color-text: #1c3435;
  --color-text-muted: #4c6c6f;
  --color-bg: #f4faf9;
  --color-surface: #ffffff;
  --color-border: #dbe9e8;
  --shadow: 0 20px 45px rgba(4, 55, 56, 0.12);
  --shadow-sm: 0 4px 14px rgba(4, 55, 56, 0.08);
  --shadow-lg: 0 30px 60px rgba(9, 35, 48, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
  --focus-ring: 0 0 0 3px rgba(179, 48, 47, 0.4);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

/* Brand: text selection uses a soft company-red wash. */
::selection {
  background: rgba(179, 48, 47, 0.18);
  color: inherit;
}
::-moz-selection {
  background: rgba(179, 48, 47, 0.18);
  color: inherit;
}

/* The [hidden] attribute must always win — several components (e.g. the
   nav's flex/grid items) set their own `display` at equal specificity to
   the UA stylesheet's [hidden]{display:none}, which an author rule wins on
   a tie, silently un-hiding "hidden" elements. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: linear-gradient(180deg, #f8fcfe 0%, var(--color-bg) 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 160ms var(--ease), opacity 160ms var(--ease);
}

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1.1rem;
  background: var(--color-primary-dark);
  color: #ffffff;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  transition: top 160ms var(--ease);
}

.skip-link:focus {
  top: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 6px 20px rgba(4, 55, 56, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container,
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-brand img {
  display: block;
  height: 40px;
  width: auto;
}

.site-nav a {
  color: var(--color-text);
  font-weight: 700;
}

.site-nav a[aria-current="page"],
.site-nav a[aria-current="true"] {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Primary nav (site-nav web component) */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 160ms var(--ease);
}

.nav-toggle:hover {
  background: var(--color-bg);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
  min-width: 0;
  /* No overflow:hidden here — dropdown submenus are absolutely positioned
     below this row and would get clipped along with any real overflow.
     The JS overflow-collapse mechanism doesn't depend on clipping; it
     measures and hides items directly. */
}

.nav-list > li {
  position: relative;
  flex-shrink: 0;
}

.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  font-size: 0.93rem;
  letter-spacing: -0.01em;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.nav-list > li > a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* Small chevron affordance so hover-revealed submenus read as such. */
.dropdown > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0 1px 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.4;
  transform: rotate(45deg);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

.dropdown:hover > a::after,
.dropdown:focus-within > a::after {
  opacity: 0.75;
  transform: rotate(45deg) translate(-1px, -1px);
}

.nav-toggle:focus-visible,
.dropdown-toggle:focus-visible,
.nav-search-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.dropdown {
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  cursor: pointer;
}

.dropdown-toggle.nav-more-trigger {
  display: inline-flex;
  width: auto;
  height: auto;
  gap: 0.3rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  font-size: 0.93rem;
  white-space: nowrap;
}

.dropdown-toggle.nav-more-trigger span {
  font-size: 0.6rem;
  opacity: 0.55;
}

.dropdown-toggle.nav-more-trigger:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.nav-more[hidden] {
  display: none;
}

.nav-more .dropdown-menu {
  left: auto;
  right: 0;
}

.nav-cta {
  flex-shrink: 0;
  padding: 0.6rem 1.2rem;
  font-size: 0.92rem;
}

.site-nav a.nav-cta {
  color: #ffffff;
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
  /* On mobile, <nav> (position:fixed) leaves flex flow entirely, so it can
     no longer push trailing siblings right via its flex:1. This keeps
     search+hamburger pinned to the far right regardless. Harmless on
     desktop since .site-nav's own flex:1 already consumes that space. */
  margin-left: auto;
}

.nav-search-btn:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  margin: 0;
  padding: 0.6rem;
  list-style: none;
  min-width: 220px;
  max-width: 520px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.dropdown-menu li + li {
  margin-top: 0.15rem;
}

.dropdown-menu a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  color: var(--color-text);
  font-weight: 500;
  white-space: normal;
  transition: background 140ms var(--ease), color 140ms var(--ease);
}

.dropdown-menu a:hover,
.dropdown-menu a[aria-current="page"] {
  background: var(--color-bg);
  color: var(--color-primary);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 901px) {
  .dropdown-menu:has(li:nth-child(12)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 0.15rem 0.5rem;
    min-width: 420px;
  }

  .dropdown-menu:has(li:nth-child(24)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 620px;
  }

  .dropdown-menu:has(li:nth-child(12)) li + li {
    margin-top: 0;
  }

  .dropdown-menu-grouped {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    min-width: 460px;
  }

  .dropdown-menu-grouped:has(.dropdown-group:nth-child(3)) {
    min-width: 640px;
  }
}

.dropdown-group {
  flex: 1 1 0;
  min-width: 190px;
}

.dropdown-group + .dropdown-group {
  border-left: 1px solid var(--color-border);
  padding-left: 1.25rem;
}

.dropdown-group-label {
  margin: 0 0 0.35rem;
  padding: 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.dropdown-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-group li + li {
  margin-top: 0.15rem;
}

main {
  padding: 2.5rem 0 4rem;
  min-height: 70vh;
}

section {
  padding: 2.5rem 0;
  scroll-margin-top: 5.5rem;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

ul {
  padding-left: 1.2rem;
  color: var(--color-text-muted);
}

.section-intro {
  max-width: 68ch;
}

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

.page-intro,
.hero,
.card,
.callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-intro,
.hero {
  padding: 2rem;
}

.hero-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(17, 107, 139, 0.2);
  border: 1px solid transparent;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), opacity 160ms var(--ease);
}

.btn:hover {
  color: #ffffff;
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(17, 107, 139, 0.28);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(17, 107, 139, 0.22);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  background: #ffffff;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.btn-outline:hover {
  border-color: var(--color-secondary);
  background: var(--color-bg);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0);
}

.hero-card {
  padding: 1.4rem;
  background: linear-gradient(135deg, rgba(17,107,139,0.08), rgba(39,167,201,0.12));
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card > .media-placeholder:first-child {
  max-width: none;
  margin-bottom: 1rem;
}

.card {
  padding: 1.4rem;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.card-icon {
  display: block;
  width: clamp(72px, 7vw, 90px);
  height: auto;
  aspect-ratio: 2353 / 1502;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.card-graphic {
  display: block;
  width: 52px;
  height: 52px;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}

.card:hover .card-graphic {
  color: var(--color-secondary);
}

.card-group-title {
  margin-top: 2rem;
  margin-bottom: 0.35rem;
}

.card-group-title:first-of-type {
  margin-top: 1.25rem;
}

/* Portrait card: full-bleed composite image (icon + person on a colour blob)
   at the top, title and link below. Used on the FSP index. */
.card--portrait {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2353 / 1502;
  object-fit: cover;
  background: var(--color-bg);
}

.card--portrait > h3 {
  margin: 1.1rem 1.4rem 0;
}

.card--portrait > .card-meta {
  margin: 0.5rem 1.4rem 1.3rem;
  padding-top: 0;
  border-top: none;
}

.card-meta {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.card-meta a {
  font-weight: 600;
}

.checklist-group + .checklist-group {
  margin-top: 2rem;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.7rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border: 2px solid var(--color-secondary);
  border-radius: 5px;
  background: rgba(63, 166, 168, 0.1);
}

.service-directory h3 {
  margin-bottom: 0.5rem;
}

.service-directory ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.1rem 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.service-directory li a {
  display: block;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.92rem;
}

.service-directory li a:hover {
  color: var(--color-primary);
}

.callout {
  padding: 1.25rem 1.4rem;
  background: rgba(39, 167, 201, 0.08);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.site-footer {
  background: var(--color-primary-dark);
  color: #eaf5fa;
  padding: 2rem 0 2.5rem;
  border-top: 3px solid var(--color-accent);
}

.footer-brand {
  display: inline-flex;
  padding: 0.5rem 0.85rem;
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 0.85rem;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.site-footer a {
  color: #bfe5f0;
}

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

.site-footer h3 {
  color: #ffffff;
  font-size: 1rem;
}

.site-footer p {
  color: #bfe5f0;
}

.site-footer ul {
  padding-left: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(234, 245, 250, 0.15);
}

.footer-bottom p {
  margin: 0;
  color: #a9cdd9;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .footer-grid,
  .card-grid.two-up,
  .card-grid.three-up {
    grid-template-columns: 1fr;
  }

  .card-grid.four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 768px) {
  main {
    padding-top: 1.5rem;
  }

  .page-intro,
  .hero {
    padding: 1.4rem;
  }
}

/* ==========================================================================
   page-hero component (assets/js/page-hero.js)
   Base .hero already inherits the surface/border/shadow/radius/padding
   card treatment from ".page-intro, .hero" above. Variants override what
   they need to feel distinct while staying on the same token system.
   ========================================================================== */

.hero {
  margin-bottom: 1.5rem;
  overflow: hidden;
  /* Heroes are full-bleed — square corners so the panel meets the viewport
     edges (and the promo banner above) cleanly, with no rounded-corner gap. */
  border-radius: 0;
}

.hero-description {
  font-size: 1.05rem;
  max-width: 60ch;
}

.hero .button-row {
  margin-top: 1.5rem;
}

.hero-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.hero-breadcrumb a {
  color: var(--color-text-muted);
}

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

.hero-breadcrumb [aria-current="page"] {
  color: var(--color-primary-dark);
}

.hero-breadcrumb-sep {
  opacity: 0.5;
}

.hero-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-meta-pills li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-meta-pills li a {
  color: inherit;
  text-decoration: none;
}

.hero-meta-pills li a:hover,
.hero-meta-pills li a:focus-visible {
  text-decoration: underline;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary-dark);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 16ch;
}

.hero-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-link-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-primary-dark);
  font-weight: 700;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.hero-link-grid a span {
  opacity: 0.5;
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero-link-grid a:hover {
  border-color: var(--color-secondary);
  background: var(--color-bg);
  transform: translateY(-1px);
}

.hero-link-grid a:hover span {
  opacity: 1;
  transform: translateX(3px);
}

/* --- home: full-bleed, data-motif gradient, richest treatment --- */

.hero--home {
  padding: 0;
  border: none;
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.10) 1.5px, transparent 1.6px),
    linear-gradient(135deg, var(--color-primary-dark), var(--color-primary) 65%, var(--color-secondary));
  background-size: 36px 36px, 100% 100%;
  color: #ffffff;
}

.hero-inner--home {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  gap: 2.25rem;
  padding: 3rem 2rem 2.25rem;
}

.hero--home h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
}

.hero--home .eyebrow {
  color: #bfe9f5;
}

.hero--home .hero-description {
  color: rgba(255, 255, 255, 0.86);
}

.hero-card--home {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.hero-card--home h2 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.hero--home .hero-stats {
  flex-direction: column;
  gap: 1rem;
}

.hero--home .hero-stat-value {
  color: #ffffff;
}

.hero--home .hero-stat-label {
  color: rgba(255, 255, 255, 0.75);
  max-width: none;
}

.hero-trust-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.9rem 2rem;
}

.hero-trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* --- service: full-width, precision-flagged with a rule accent --- */

.hero--service {
  border-left: 4px solid var(--color-secondary);
}

.hero-inner--service {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hero-service-main {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-service-icon {
  flex: 0 0 auto;
  align-self: center;
  width: clamp(150px, 20vw, 264px);
  height: auto;
  aspect-ratio: 2353 / 1502;
  object-fit: contain;
}

/* Portrait composite (icon + person on a colour blob) — used on FSP pages.
   Wants more room than the flat service icons so the figure stays legible. */
.hero-service-icon--portrait {
  width: clamp(260px, 40vw, 480px);
}

/* Simple line graphic (FSP engagement-model pages) — sits in a soft tinted
   tile so a thin-stroke icon still holds the corner of the hero. */
.hero-service-icon--graphic {
  width: clamp(128px, 17vw, 184px);
  aspect-ratio: 1 / 1;
  padding: clamp(22px, 3vw, 36px);
  background: linear-gradient(135deg, rgba(0, 125, 127, 0.08), rgba(63, 166, 168, 0.16));
  border-radius: 28px;
}

.hero-service-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.hero-service-foot .button-row {
  margin-top: 0;
}

/* --- landing: section overview with in-section jump links --- */

.hero--landing {
  background: var(--color-bg);
}

.hero-inner--landing .hero-description {
  max-width: 68ch;
}

/* --- about: warm tinted surface, people/credibility forward --- */

.hero--about {
  background: linear-gradient(135deg, rgba(39, 167, 201, 0.1), rgba(17, 107, 139, 0.05));
}

.hero-inner--about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 2rem;
}

.hero-inner--about .hero-stats {
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* --- contact: minimal, action-forward --- */

.hero--contact {
  box-shadow: none;
  border: 1px solid var(--color-border);
  padding: 2.25rem 2rem;
}

/* --- insights: editorial masthead for Resources/Insights/Blog --- */

.hero--insights {
  border-bottom: 3px solid var(--color-accent);
  border-radius: 0;
}

.hero--insights .eyebrow {
  color: var(--color-accent);
}

.hero--insights h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.01em;
}

.hero--insights .hero-meta-pills {
  gap: 1.25rem;
}

.hero--insights .hero-meta-pills li {
  padding: 0 0 0.3rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero--insights .hero-meta-pills li:first-child {
  border-bottom-color: var(--color-accent);
  color: var(--color-text);
}

@media (max-width: 900px) {
  .hero-inner--home,
  .hero-inner--about {
    grid-template-columns: 1fr;
  }

  .hero-card--home {
    order: -1;
  }

  .hero-inner--service {
    gap: 1.75rem;
  }

  .hero-service-icon {
    width: clamp(116px, 18vw, 168px);
  }

  .hero-service-icon--portrait {
    width: clamp(240px, 34vw, 320px);
  }

  .hero-service-icon--graphic {
    width: clamp(112px, 15vw, 148px);
  }

  .hero--home .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-inner--about .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .hero-inner--home {
    padding: 2.25rem 1.25rem 1.75rem;
  }

  .hero-trust-bar {
    padding: 0.9rem 1.25rem;
  }

  .hero-service-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-inner--service {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .hero-service-icon {
    order: -1;
    align-self: flex-start;
    width: clamp(112px, 30vw, 152px);
    margin-bottom: 0.25rem;
  }

  .hero-service-icon--portrait {
    align-self: stretch;
    width: 100%;
    max-width: 420px;
    margin-bottom: 0.5rem;
  }

  .hero-service-icon--graphic {
    width: clamp(104px, 30vw, 132px);
    margin-bottom: 0.25rem;
  }
}

/* ==========================================================================
   service-diagram component (assets/js/service-diagram.js)
   Service -> Phase -> Deliverable interactive diagram used on pillar pages.
   ========================================================================== */

service-diagram {
  display: block;
}

.service-diagram {
  margin-top: 0.5rem;
}

.service-diagram-host--pinned .service-diagram-stage {
  position: sticky;
  z-index: 5;
  background: var(--color-bg);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* Compact horizontal stepper: small chips in a row, sized to their label
   (not stretched into equal columns), with a slim progress underline along
   the bottom edge instead of a line threaded through big circular badges.
   Kept deliberately small — this is a wayfinding aid, not the main event;
   the deliverable content below it is. */
.service-diagram-track {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.service-diagram-track::before,
.service-diagram-track-fill {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
}

.service-diagram-track::before {
  background: var(--color-border);
}

.service-diagram-track-fill {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease);
}

.service-diagram-phase {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem 0.3rem 0.3rem;
  border: none;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  font: inherit;
  color: var(--color-text-muted);
  text-align: left;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.service-diagram-phase-index {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.68rem;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.service-diagram-phase-label {
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}

.service-diagram-phase:hover {
  color: var(--color-primary-dark);
  background: var(--color-bg);
}

.service-diagram-phase:hover .service-diagram-phase-index {
  border-color: var(--color-secondary);
}

.service-diagram-phase.is-done .service-diagram-phase-index {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: transparent;
}

.service-diagram-phase.is-done .service-diagram-phase-index::before {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.65rem;
}

.service-diagram-phase.is-done .service-diagram-phase-label {
  color: var(--color-text-muted);
}

.service-diagram-phase.is-active {
  color: var(--color-primary-dark);
  background: linear-gradient(135deg, rgba(0, 125, 127, 0.1), rgba(63, 166, 168, 0.08));
}

.service-diagram-phase.is-active .service-diagram-phase-label {
  font-weight: 700;
}

.service-diagram-phase.is-active .service-diagram-phase-index {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 125, 127, 0.35);
}

.service-diagram-panels {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.service-diagram-host--pinned .service-diagram-panels {
  box-shadow: var(--shadow);
}

.service-diagram-panel {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.service-diagram-panel.is-active {
  height: auto;
  overflow: visible;
  visibility: visible;
  animation: service-diagram-fade 220ms var(--ease);
}

/* Scroll-driven phase changes swap via transform, not a fade — the pop-in
   keyframe is only for the click/keyboard fallback (no active pin scroll). */
.service-diagram-host--pinned .service-diagram-panel.is-active {
  animation: none;
}

/* Continuous scroll-driven updates are already eased in JS — a CSS
   transition on top would fight it and lag. Keep the transition only for
   the discrete click/keyboard fallback. */
.service-diagram-host--pinned .service-diagram-track-fill {
  transition: none;
}

.service-diagram-viewport {
  position: relative;
  overflow: hidden;
}

.service-diagram-viewport::before,
.service-diagram-viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 36px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms var(--ease);
}

.service-diagram-viewport::before {
  top: 0;
  background: linear-gradient(to bottom, var(--color-surface), rgba(255, 255, 255, 0));
}

.service-diagram-viewport::after {
  bottom: 0;
  background: linear-gradient(to top, var(--color-surface), rgba(255, 255, 255, 0));
}

.service-diagram-viewport.sd-more-above::before {
  opacity: 1;
}

.service-diagram-viewport.sd-more-below::after {
  opacity: 1;
}

.service-diagram-scroller {
  will-change: transform;
}

@keyframes service-diagram-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-diagram-phase-summary {
  margin: 0 0 1.25rem;
  max-width: 68ch;
  color: var(--color-text);
  font-weight: 500;
}

.service-diagram-group-label {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.service-diagram-group-label:first-of-type {
  margin-top: 0;
}

.service-diagram-deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.service-diagram-deliverable {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  height: 100%;
  padding: 0.9rem 1rem 0.9rem 1.15rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  overflow: hidden;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.service-diagram-deliverable::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 180ms var(--ease);
}

a.service-diagram-deliverable:hover {
  background: var(--color-surface);
  border-color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}

a.service-diagram-deliverable:hover::before {
  opacity: 1;
}

.service-diagram-deliverable--plain {
  border-style: dashed;
  color: var(--color-text-muted);
}

.service-diagram-deliverable-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-diagram-deliverable-label {
  display: block;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 0.94rem;
}

.service-diagram-deliverable--plain .service-diagram-deliverable-label {
  color: var(--color-text-muted);
}

.service-diagram-deliverable-desc {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.84rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.service-diagram-deliverable-arrow {
  flex-shrink: 0;
  opacity: 0.45;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

a.service-diagram-deliverable:hover .service-diagram-deliverable-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ==========================================================================
   services-overview component (assets/js/services-overview.js)
   Homepage variant of service-diagram: all 10 services as a single-line,
   horizontally scrollable tab strip (not a numbered sequence, so no index
   badge or connecting line).
   ========================================================================== */

services-overview .service-diagram-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  padding: 0.25rem 0 0.75rem;
  background: none;
  border: none;
  box-shadow: none;
}

services-overview .service-diagram-track::before,
services-overview .service-diagram-track-fill {
  display: none;
}

services-overview .service-diagram-phase {
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-align: center;
}

services-overview .service-diagram-phase.is-active {
  border-color: var(--color-secondary);
  background: var(--color-bg);
}

services-overview .service-diagram-phase-index {
  display: none;
}

services-overview .service-diagram-phase-label {
  font-size: 0.85rem;
}

/* ==========================================================================
   Deliverable detail-page navigation (back to pillar + sibling deliverables)
   ========================================================================== */

.deliverable-context {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0 2.5rem;
}

.deliverable-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  transition: gap 160ms var(--ease), color 160ms var(--ease);
}

.deliverable-back:hover {
  color: var(--color-secondary);
  gap: 0.6rem;
}

.deliverable-siblings {
  margin-top: 1.5rem;
}

.deliverable-siblings-label {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.deliverable-siblings ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deliverable-siblings a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 160ms var(--ease), color 160ms var(--ease), background 160ms var(--ease);
}

.deliverable-siblings a:hover {
  border-color: var(--color-secondary);
  color: var(--color-primary-dark);
  background: var(--color-bg);
}

/* ==========================================================================
   Forms (assets/js/form-mailer.js)
   ========================================================================== */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-field label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-field label .form-required {
  color: var(--color-secondary);
  font-weight: 700;
}

.form-field label .form-optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-legend {
  margin: -0.3rem 0 1.1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-field .form-hint {
  margin: -0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: #d64545;
}

.form-error {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c23a3a;
}

.form-error:empty {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
}

.form-draft-note,
.form-success {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
}

.form-draft-note {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.form-draft-clear {
  border: none;
  background: none;
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.form-success {
  background: rgba(39, 167, 201, 0.12);
  border: 1px solid var(--color-secondary);
  color: var(--color-primary-dark);
  font-weight: 600;
}

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

/* ==========================================================================
   Site search (assets/js/search.js) — trigger button lives in style.css
   under "Primary nav" as .nav-search-btn
   ========================================================================== */

.search-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1.25rem 2rem;
}

.search-overlay[hidden] {
  display: none;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 30, 41, 0.55);
  backdrop-filter: blur(2px);
}

body.search-open {
  overflow: hidden;
}

.search-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(6, 22, 30, 0.4);
  overflow: hidden;
}

.search-panel-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
}

.search-icon {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

#site-search-input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 1.05rem;
  color: var(--color-text);
  background: transparent;
}

.search-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}

.search-close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.search-status {
  margin: 0;
  padding: 0.5rem 1.1rem 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.search-status:empty {
  padding: 0;
}

.search-results {
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  overflow-y: auto;
}

.search-empty-note {
  padding: 0.6rem 0.75rem 0.9rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.search-result a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--color-text);
  transition: background 140ms var(--ease);
}

.search-result.is-active a,
.search-result a:hover {
  background: var(--color-bg);
}

.search-result-title {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.search-result-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
}

.search-result-snippet {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.search-result-snippet mark {
  background: rgba(240, 138, 36, 0.28);
  color: inherit;
  border-radius: 3px;
  padding: 0 0.1em;
}

@media (max-width: 640px) {
  .search-overlay {
    padding: 0;
  }

  .search-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1.25rem 2rem;
}

.gate-overlay[hidden] {
  display: none;
}

.gate-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 30, 41, 0.55);
  backdrop-filter: blur(2px);
}

body.gate-open {
  overflow: hidden;
}

.gate-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(6, 22, 30, 0.4);
}

.gate-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gate-panel-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.gate-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.gate-close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.gate-intro {
  margin: 0.75rem 0 1.25rem;
}

@media (max-width: 640px) {
  .gate-overlay {
    padding: 0;
  }

  .gate-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .nav-backdrop,
  .gate-overlay,
  .search-overlay,
  .hero-breadcrumb,
  .button-row,
  [data-gate-guide] {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .card,
  .hero,
  .callout,
  .page-intro {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }

  .checklist li::before {
    background: transparent;
  }
}

/* --- quote-block: testimonial cards --- */

.quote-block,
.quote-grid {
  display: grid;
  gap: 1.25rem;
}

.quote-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.quote-card {
  margin: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.quote-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.55;
  margin-bottom: 0.25rem;
}

.quote-text {
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  text-wrap: pretty;
}

.quote-attribution {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quote-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.quote-name {
  margin: 0;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 0.92rem;
}

.quote-role {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

/* --- trust-bar: portable, standalone (page-hero has its own inline variant) --- */

.trust-bar {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.trust-bar--light {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.trust-bar--dark {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #ffffff;
}

.trust-bar-label {
  margin: 0 0 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.trust-bar--dark .trust-bar-label {
  color: rgba(255, 255, 255, 0.75);
}

.trust-bar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-bar-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.trust-bar--dark .trust-bar-list li {
  color: rgba(255, 255, 255, 0.85);
}

.trust-bar-list img {
  height: 22px;
  width: auto;
}

/* --- faq-accordion --- */

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* Open question gets a red marker rule, echoing the active-nav accent. */
.faq-item:has(.faq-question[aria-expanded="true"]) {
  box-shadow: inset 3px 0 0 var(--color-accent);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background 160ms var(--ease);
}

.faq-question:hover {
  background: var(--color-bg);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.faq-icon {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-primary);
  transform: translate(-50%, -50%);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.faq-icon::before {
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 1.25rem 1.1rem;
}

.faq-answer p {
  margin: 0;
}

/* --- stats-block: standalone stat grid --- */

.stats-block-head {
  margin-bottom: 1.5rem;
}

.stats-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-tile-value {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary-dark);
}

.stat-tile-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Media placeholder
   Marks where a real photo/graphic will go before assets exist.
   Swap the whole <figure> for an <img>/<picture> once the asset is delivered.

   Usage:
   <figure class="media-placeholder ratio-16x9" data-media="stock">
     <span class="media-placeholder__label">Clinical team reviewing data on screen</span>
     <span class="media-placeholder__path">assets/images/home/hero.jpg</span>
   </figure>

   Ratio modifiers: ratio-16x9 ratio-4x3 ratio-3x2 ratio-1x1 ratio-3x4 ratio-21x9
   data-media values (drive the corner tag + tint):
     stock | company | leadership | logo | map | icon | diagram | screenshot
   ========================================================================== */
.media-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  background-color: var(--color-bg);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 11px,
      rgba(4, 55, 56, 0.05) 11px,
      rgba(4, 55, 56, 0.05) 22px
    );
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-placeholder::before {
  content: "\25A6  image placeholder";
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-surface);
  background: var(--color-primary);
  border-bottom-right-radius: var(--radius-sm);
}

.media-placeholder[data-media]::after {
  content: attr(data-media);
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 0;
  border-right: 0;
  border-bottom-left-radius: var(--radius-sm);
}

.media-placeholder__label {
  max-width: 36ch;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.media-placeholder__path {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  word-break: break-all;
}

.media-placeholder.ratio-16x9 { aspect-ratio: 16 / 9; }
.media-placeholder.ratio-21x9 { aspect-ratio: 21 / 9; }
.media-placeholder.ratio-4x3  { aspect-ratio: 4 / 3; }
.media-placeholder.ratio-3x2  { aspect-ratio: 3 / 2; }
.media-placeholder.ratio-1x1  { aspect-ratio: 1 / 1; }
.media-placeholder.ratio-3x4  { aspect-ratio: 3 / 4; }

/* Real image in the same slot a .media-placeholder would occupy. */
.media-frame {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame.ratio-16x9 { aspect-ratio: 16 / 9; }
.media-frame.ratio-21x9 { aspect-ratio: 21 / 9; }
.media-frame.ratio-4x3  { aspect-ratio: 4 / 3; }
.media-frame.ratio-3x2  { aspect-ratio: 3 / 2; }
.media-frame.ratio-1x1  { aspect-ratio: 1 / 1; }
.media-frame.ratio-3x4  { aspect-ratio: 3 / 4; }

.media-with-text .media-frame { margin: 0; }

.media-placeholder[data-media="leadership"],
.media-placeholder[data-media="company"] {
  background-color: #eef6f5;
}
.media-placeholder[data-media="logo"],
.media-placeholder[data-media="icon"] {
  background-color: var(--color-surface);
}
.media-placeholder[data-media="map"] {
  background-color: #edf4f7;
}

.media-placeholder.ratio-1x1,
.media-placeholder.ratio-3x4 {
  max-width: 320px;
}

/* Logo strip: a row of small logo placeholders */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 0 0 1.5rem;
}
.logo-strip .media-placeholder {
  flex: 0 0 auto;
  width: 160px;
  aspect-ratio: 5 / 2;
  margin: 0;
  padding: 1rem;
}
.logo-strip .media-placeholder::before,
.logo-strip .media-placeholder::after { content: none; }
.logo-strip .media-placeholder__label { font-size: 0.8rem; }

/* Two-column: text beside a media slot */
.media-with-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.media-with-text .media-placeholder { margin: 0; }
@media (max-width: 720px) {
  .media-with-text { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  .media-placeholder {
    background-image:
      repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 11px,
        rgba(255, 255, 255, 0.06) 11px,
        rgba(255, 255, 255, 0.06) 22px
      );
  }
}

/* ==========================================================================
   Company red accents (--color-accent, #b3302f)
   A restrained red rule / marker on every component, layered on top of the
   teal system. Touches borders, markers, hover and active states only —
   never body text or the primary CTA colour.
   ========================================================================== */

/* Breadcrumb: current and hovered crumbs in red. */
.hero-breadcrumb [aria-current="page"],
.hero-breadcrumb a:hover {
  color: var(--color-accent);
}

/* Cards: red hover border (transient). */
.card:hover {
  border-color: var(--color-accent);
}

/* Hero link grid + meta pills: red on hover only. */
.hero-link-grid a:hover {
  border-color: var(--color-accent);
}
.hero-meta-pills li a:hover,
.hero-meta-pills li a:focus-visible {
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
}

/* Nav dropdown panels: a thin red top rule; group labels in red. */
.dropdown-menu {
  border-top: 2px solid var(--color-accent);
}
.dropdown-group-label {
  color: var(--color-accent);
}

/* Stat tiles and trust bars: a thin red top edge. */
.stat-tile,
.trust-bar--light,
.trust-bar--dark {
  border-top: 3px solid var(--color-accent);
}
.hero-trust-bar {
  border-top: 2px solid var(--color-accent);
}

/* Required-field marker and search category label. */
.form-field label .form-required,
.search-result-category {
  color: var(--color-accent);
}

/* Search overlay: active / hovered result marker + highlight. */
.search-result.is-active a,
.search-result a:hover {
  box-shadow: inset 3px 0 0 var(--color-accent);
}
.search-result-snippet mark {
  background: rgba(179, 48, 47, 0.22);
}

/* Buttons / CTAs: teal at rest, full company-red on hover. */
.btn:hover,
.btn-outline:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  opacity: 1;
  box-shadow: 0 14px 30px rgba(179, 48, 47, 0.3);
}
.btn:active,
.btn-outline:active {
  background: #9a2726;
  box-shadow: 0 6px 16px rgba(179, 48, 47, 0.28);
}

/* Footer credentials / standards badges (in the brand column). */
.footer-creds {
  margin-top: 1.4rem;
}
.footer-creds-label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem 0.4rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 2px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}
.footer-badge svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.85;
}

/* Footer badge — official logo variant (light chip so dark-footer logos read). */
.footer-badge--logo {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  padding: 0.6rem 0.9rem 0.6rem 0.8rem;
}
.footer-badge-logo {
  display: block;
  height: 54px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}
