/* Shared site header: mirrors the full-height, flush-left homepage logo. */
.navbar {
  height: 96px !important;
  min-height: 96px !important;
  padding-left: 0 !important;
}

.navbar .logo {
  align-self: stretch;
  display: flex;
  flex: 0 0 auto;
  height: 100%;
  margin: 0;
  padding: 0;
}

.navbar .logo > span {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.navbar .logo img {
  display: block;
  width: auto !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0;
  object-fit: contain;
  object-position: left center;
  filter: none !important;
  transform: none !important;
}

.navbar .logo:hover img {
  filter: none !important;
  transform: none !important;
}

/* Keep fixed-header page content and sticky sub-navigation below the taller header. */
.page-hero,
.leadership-hero,
.careers-main,
.career-apply-hero,
.jobs-hero {
  margin-top: 96px !important;
}

.filter-bar,
.nav-links {
  top: 96px !important;
}

/* Shared wayfinding for every page beyond the homepage. */
.page-trail {
  position: relative;
  z-index: 20;
  margin-top: 96px;
  border-bottom: 1px solid rgba(126, 151, 178, 0.14);
  background: linear-gradient(90deg, #f8fbfd 0%, #ffffff 48%, #fffaf0 100%);
}

.page-trail-inner {
  display: flex;
  width: min(1320px, 100%);
  min-height: 54px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4f667d;
  font: 600 0.78rem/1 'DM Sans', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.page-back-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(126, 151, 178, 0.25);
  border-radius: 50%;
  background: #f5f9fc;
  font-size: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-back:hover,
.page-back:focus-visible {
  background: #f5f9fc;
  color: #29475d;
  outline: none;
}

.page-back:hover .page-back-icon,
.page-back:focus-visible .page-back-icon {
  border-color: #8ea9bf;
  transform: translateX(-2px);
}

.page-breadcrumb {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 10px;
  color: #82909c;
  font-size: 0.78rem;
  list-style: none;
}

.page-breadcrumb a {
  color: #5f7488;
  text-decoration: none;
}

.page-breadcrumb a:hover,
.page-breadcrumb a:focus-visible {
  color: #29475d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-breadcrumb-separator {
  color: #caa54a;
  font-size: 1.05rem;
  line-height: 1;
}

.page-breadcrumb [aria-current="page"] {
  color: #4f667d;
  font-weight: 600;
}

body.has-page-trail .page-hero,
body.has-page-trail .leadership-hero,
body.has-page-trail .careers-hero,
body.has-page-trail .career-apply-hero,
body.has-page-trail .jobs-hero {
  margin-top: 0 !important;
}

@media (max-width: 960px) {
  .navbar {
    padding-right: 20px !important;
  }

  .page-trail-inner {
    min-height: 50px;
    padding: 0 20px;
  }

  .page-back {
    padding-left: 0;
  }
}

@media (max-width: 520px) {
  .page-trail-inner {
    gap: 12px;
    padding: 0 16px;
  }

  .page-back-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .page-breadcrumb {
    font-size: 0.72rem;
  }
}

/* Services: keep every source photo proportional inside its existing tile. */
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block !important;
  width: auto;
  height: auto;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(8, 22, 33, 0.06), rgba(8, 22, 33, 0.62)), var(--svc-image);
  background-position: center, center;
  background-size: cover, contain;
  background-repeat: no-repeat;
}

.svc-card::before {
  inset: -18px !important;
  z-index: 1;
  width: auto;
  height: auto !important;
  opacity: 0.72;
  filter: blur(12px);
  transform: scale(1.06) !important;
  background-image: var(--svc-image) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.svc-card .svc-name {
  z-index: 3;
}
