:root {
  --bem-blue: #00518a;
  --bem-blue-dark: #003a65;
  --bem-cyan: #009fe3;
  --bem-light: #f2f5fb;
  --bem-white: #ffffff;
  --bem-graphite: #333333;
  --bem-steel: #6f7f8f;
  --bem-border: #c7d3df;
  --bem-panel: #fbfdff;
  --bem-shadow: 0 16px 38px rgba(0, 58, 101, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bem-light);
  color: var(--bem-graphite);
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--bem-blue);
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.container-xl {
  max-width: 1280px;
}

.contact-strip {
  background: var(--bem-graphite);
  color: var(--bem-white);
  font-size: 0.82rem;
}

.contact-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}

.contact-strip__inner span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-strip__title {
  color: #d7eefc;
  font-weight: 600;
}

.site-masthead {
  background: var(--bem-blue);
  color: var(--bem-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-masthead__row {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--bem-white);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--bem-white);
}

.site-brand__mark,
.site-footer__mark {
  width: 62px;
  min-width: 62px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bem-white);
  color: var(--bem-blue);
  border-left: 7px solid var(--bem-cyan);
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
}

.site-brand__copy {
  display: grid;
  gap: 0.15rem;
}

.site-brand__name {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
}

.site-brand__tagline {
  color: #d5edf9;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-navbar {
  --bs-primary-rgb: 0, 81, 138;
  background: var(--bem-blue-dark) !important;
  border-bottom: 4px solid var(--bem-cyan);
  box-shadow: 0 5px 18px rgba(0, 58, 101, 0.18);
}

.site-navbar .navbar-nav {
  gap: 0.1rem;
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.9rem 0.7rem;
  text-transform: uppercase;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--bem-white);
  background: rgba(0, 159, 227, 0.16);
}

.site-navbar .dropdown-menu {
  border: 0;
  border-radius: 0 0 4px 4px;
  box-shadow: var(--bem-shadow);
}

.site-navbar .dropdown-item {
  color: var(--bem-graphite);
  font-size: 0.88rem;
  padding: 0.65rem 1rem;
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item.active {
  background: var(--bem-light);
  color: var(--bem-blue);
}

.home-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bem-blue-dark);
}

.home-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 58, 101, 0.86), rgba(0, 81, 138, 0.62), rgba(0, 159, 227, 0.22));
}

.home-hero__content {
  position: relative;
  z-index: 1;
  color: var(--bem-white);
}

.home-hero h1 {
  max-width: 740px;
  color: var(--bem-white);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.home-hero .lead {
  max-width: 720px;
  color: #e4f5fc;
}

.eyebrow,
.section-kicker {
  color: var(--bem-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.project-strip {
  background: var(--bem-white);
  padding: 2rem 0;
}

.project-card {
  position: relative;
  min-height: 220px;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  color: var(--bem-white);
  text-decoration: none;
  box-shadow: var(--bem-shadow);
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 81, 138, 0.12), rgba(0, 58, 101, 0.86));
}

.project-card span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: var(--bem-white);
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
}

.project-card:hover {
  color: var(--bem-white);
}

.project-card:hover img {
  transform: scale(1.05);
}

.page-hero {
  background: linear-gradient(135deg, var(--bem-blue), var(--bem-blue-dark));
  color: var(--bem-white);
  padding: 3.3rem 0;
}

.page-hero--light {
  background: linear-gradient(135deg, var(--bem-white), #e8f3fb);
  color: var(--bem-graphite);
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  color: inherit;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.page-hero .lead {
  max-width: 760px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero--light .lead {
  color: var(--bem-steel);
}

.site-breadcrumbs {
  padding: 1rem 0 0;
}

.site-breadcrumbs .breadcrumb {
  border: 1px solid var(--bem-border);
  border-radius: 4px !important;
  font-size: 0.85rem;
}

.site-breadcrumbs a {
  color: var(--bem-blue);
}

.content-section {
  padding: 3.25rem 0;
}

.content-section--home {
  padding-top: 4rem;
}

.content-panel {
  background: var(--bem-white);
  border: 1px solid var(--bem-border);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 58, 101, 0.06);
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.content-panel--home {
  min-height: 100%;
}

.content-panel--wide {
  max-width: 1050px;
  margin: 0 auto;
}

.home-link-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.home-link-grid a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--bem-white);
  border-left: 4px solid var(--bem-cyan);
  color: var(--bem-blue);
  font-weight: 700;
  text-decoration: none;
}

.home-link-grid a:hover {
  background: #e9f6fd;
}

.site-sidebar {
  position: sticky;
  top: 92px;
  background: var(--bem-white);
  border: 1px solid var(--bem-border);
  border-radius: 6px;
  overflow: hidden;
}

.site-sidebar__title {
  background: var(--bem-blue);
  color: var(--bem-white);
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
  padding: 0.9rem 1rem;
}

.site-sidebar .list-group-item {
  color: var(--bem-graphite);
  font-size: 0.9rem;
  padding: 0.78rem 1rem;
}

.site-sidebar .list-group-item.active,
.site-sidebar .list-group-item:hover {
  background: var(--bem-light);
  color: var(--bem-blue);
  border-color: var(--bem-border);
}

.site-prose {
  color: var(--bem-graphite);
}

.site-prose > * + * {
  margin-top: 1rem;
}

.site-prose h2,
.site-prose h3,
.site-prose h4 {
  margin-top: 1.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(0, 159, 227, 0.28);
}

.site-prose p {
  margin-bottom: 0;
}

.site-prose a,
.content-table a,
.content-list-item a,
.listing-card,
.category-card a {
  color: var(--bem-blue);
  text-decoration: underline;
  text-decoration-color: rgba(0, 159, 227, 0.45);
  text-underline-offset: 0.16em;
}

.site-prose a:hover,
.content-table a:hover,
.content-list-item a:hover,
.listing-card:hover,
.category-card a:hover {
  color: var(--bem-cyan);
  text-decoration-color: currentColor;
}

.site-prose ul,
.site-prose ol {
  padding-left: 1.4rem;
}

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

.content-table-wrap {
  margin: 1.5rem 0;
  border: 1px solid var(--bem-border);
  border-radius: 4px;
}

.content-table {
  margin-bottom: 0;
  min-width: 560px;
}

.content-table th {
  background: var(--bem-blue);
  color: var(--bem-white);
}

.content-table td {
  background: var(--bem-panel);
}

.content-media,
.gallery-card {
  margin: 0;
}

.content-media img,
.gallery-card img {
  width: 100%;
  border: 1px solid var(--bem-border);
  border-radius: 4px;
  background: var(--bem-white);
}

.content-media figcaption,
.gallery-card figcaption {
  color: var(--bem-steel);
  font-size: 0.84rem;
  margin-top: 0.45rem;
}

.content-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.content-list-item,
.listing-card,
.category-card {
  border: 1px solid var(--bem-border);
  border-radius: 6px;
  background: var(--bem-white);
}

.content-list-item {
  padding: 1rem;
}

.content-list-item h2 {
  border: 0;
  margin: 0.35rem 0 0;
  font-size: 1.1rem;
}

.listing-cards {
  margin-bottom: 1.5rem;
}

.listing-card {
  justify-content: center;
  padding: 1rem;
  min-height: 118px;
  font-weight: 700;
  text-decoration: none;
}

.listing-card:hover {
  border-color: var(--bem-cyan);
}

.category-card {
  overflow: hidden;
}

.category-card .card-title {
  font-size: 1.05rem;
}

.category-card--horizontal {
  border-left: 5px solid var(--bem-cyan);
}

.category-card--minimal {
  background: var(--bem-light);
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--bem-border);
  padding-bottom: 1.25rem;
}

.article-header h1 {
  margin-bottom: 0.75rem;
}

.article-main-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 1rem;
}

.toc {
  background: var(--bem-light);
  border-left: 4px solid var(--bem-cyan);
  margin-bottom: 2rem;
  padding: 1rem;
}

.toc ul {
  margin: 0;
}

.site-footer {
  background: var(--bem-blue-dark);
  color: rgba(255, 255, 255, 0.84);
  padding: 3rem 0;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--bem-white);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-footer__summary {
  margin-top: 1rem;
  color: #c9dbe8;
}

.site-footer__heading {
  color: var(--bem-white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer__links {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  color: #d7eefc;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--bem-cyan);
}

blockquote {
  border-left: 5px solid var(--bem-cyan);
  color: var(--bem-blue-dark);
  margin: 1.5rem 0;
  padding: 0.8rem 1.2rem;
  background: var(--bem-light);
}

pre {
  background: #202b33;
  color: var(--bem-white);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
}

@media (min-width: 992px) {
  .nav-item--overflow {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .contact-strip__inner {
    display: grid;
    gap: 0.25rem;
    padding: 0.45rem 0;
  }

  .site-masthead__row {
    min-height: 74px;
  }

  .site-brand__mark {
    width: 54px;
    min-width: 54px;
  }

  .site-brand__tagline {
    display: none;
  }

  .site-navbar .nav-link {
    padding: 0.75rem 0;
  }

  .home-hero {
    min-height: 360px;
  }

  .site-sidebar {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .content-panel {
    padding: 1rem;
  }

  .page-hero {
    padding: 2.3rem 0;
  }

  .project-card img {
    height: 210px;
  }
}
