:root {
  --blue: #1B5EA8;
  --navy: #0a2d56;
  --yellow: #F5C518;
  --bg: #f0f4fa;
  --surface: #ffffff;
  --text: #1a202c;
  --muted: #718096;
  --muted-2: #4a5568;
  --line: #e2e8f0;
  --green: #276749;
  --red: #c53030;
  --orange: #744210;
  --purple: #553c9a;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 2px 12px rgba(27, 94, 168, 0.10);
  --container: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

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

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

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-main {
  padding: 1.25rem 0 4rem;
}

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar {
  background: var(--blue);
}

.top-bar-inner {
  min-height: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .25rem 0;
}

.top-bar span,
.site-link-label {
  color: rgba(255,255,255,.78);
  font-size: 11px;
}

.top-bar a {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
}

.top-bar-links {
  display: flex;
  gap: .875rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--blue);
  box-shadow: var(--shadow-lg);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.bee-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  font-size: 30px;
  box-shadow: var(--shadow);
}

.brand-name {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 900;
  line-height: 1.05;
}

.brand-blue {
  color: var(--blue);
}

.brand-sub {
  color: var(--muted);
  font-size: 10px;
  margin-top: .25rem;
}

.header-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: var(--navy);
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  padding: 0;
  position: relative;
}

.nav-toggle span:not(.screen-reader-text) {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }

.tab-nav {
  background: var(--navy);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-nav-inner {
  display: flex;
  align-items: center;
}

.primary-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  margin: 0;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem .9rem;
  color: rgba(255,255,255,.68);
  font-size: 11.5px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: .15s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
  background: rgba(245, 197, 24, 0.08);
}

.hero-section {
  padding-top: .5rem;
}

.hero-grid,
.g2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
}

.g3,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.125rem 1.25rem;
}

.card-hero {
  padding: 1.5rem;
}

.card-title,
.entry-title,
.section-header h2,
.archive-header h1,
.page-card .entry-title {
  color: var(--blue);
  font-weight: 800;
}

.card-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .9rem;
  font-size: 13px;
}

.lead {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  color: var(--navy);
  font-weight: 700;
  margin: .35rem 0 .75rem;
}

.section-lbl {
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
  padding: 2px 9px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

.button-row,
.pill-row {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: .7rem 1rem;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s ease;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-blue:hover {
  background: #174f8a;
  color: #fff;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
}

.btn-yellow:hover {
  background: #f0bb00;
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--muted-2);
  border-color: var(--line);
}

.btn-outline:hover {
  color: var(--blue);
  border-color: var(--blue);
}

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

.stats-column {
  flex-direction: column;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .95rem 1rem;
  flex: 1 1 160px;
}

.stat-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  margin-bottom: .2rem;
}

.stat-val {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  color: var(--blue);
  line-height: 1;
  font-weight: 900;
}

.stat-sub {
  margin-top: .25rem;
  font-size: 10px;
  color: var(--muted);
}

.section-space,
.stats-section {
  padding-top: 1.25rem;
}

.section-header {
  margin-bottom: 1rem;
}

.section-header p,
.entry-meta,
.row-sub,
.footer-card p,
.footer-card li,
.entry-content,
.card p {
  color: var(--muted-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.pill-blue { background: #ebf4ff; color: var(--blue); border: 1px solid #bee3f8; }
.pill-green { background: #f0fff4; color: var(--green); border: 1px solid #c6f6d5; }
.pill-yellow { background: #fffbea; color: var(--orange); border: 1px solid #f6ad55; }
.pill-gray { background: #f7fafc; color: var(--muted); border: 1px solid var(--line); }

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .75rem .9rem;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: .45rem;
}

.row:hover {
  background: #ebf4ff;
  border-color: var(--blue);
}

.row-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.row-sub {
  font-size: 10px;
}

.field {
  margin-bottom: .75rem;
}

.field label {
  display: block;
  margin-bottom: .15rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: .55rem .65rem;
  font-size: 12px;
}

.service-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .85rem;
}

.svc-tile {
  background: #f7fafc;
  border: 2px solid var(--line);
  border-radius: 10px;
  min-height: 92px;
  padding: .9rem .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  flex-direction: column;
  text-align: center;
  transition: .15s ease;
}

.svc-tile:hover {
  background: #ebf4ff;
  border-color: var(--blue);
}

.svc-tile .icon {
  font-size: 24px;
  line-height: 1;
}

.svc-tile .name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}

.entry-card .entry-header {
  margin-bottom: .75rem;
}

.entry-title {
  margin: 0 0 .25rem;
  font-size: clamp(1.2rem, 1rem + .8vw, 1.7rem);
}

.entry-title a {
  color: inherit;
}

.entry-meta {
  font-size: 11px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.entry-content blockquote {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border-left: 4px solid var(--blue);
  background: #f7fafc;
  border-radius: 0 8px 8px 0;
}

.entry-thumbnail {
  margin-bottom: .85rem;
}

.pagination-wrap {
  margin-top: 1rem;
}

.pagination {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: .4rem .8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.pagination .current,
.pagination .page-numbers:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.site-footer {
  margin-top: 3rem;
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 2rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1rem;
}

.footer-title {
  color: var(--yellow);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .6rem;
}

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

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li + li {
  margin-top: .45rem;
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255,255,255,.65);
  padding-top: 1rem;
}

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

@media (max-width: 1024px) {
  .g3,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .g2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(calc(100% - 1rem), var(--container));
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-row {
    align-items: center;
  }

  .bee-mark {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .tab-nav-inner {
    display: none;
    padding: .5rem 0;
  }

  .tab-nav-inner.is-open {
    display: block;
  }

  .primary-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-menu a {
    border-bottom: 0;
    border-radius: 8px;
    margin-bottom: .2rem;
  }

  .g3,
  .post-grid,
  .service-tile-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-direction: column;
  }

  .site-footer-bottom {
    flex-direction: column;
  }
}

/* Manual section labels / eyebrows
   Add this class to a Paragraph, Heading, Group, or HTML block when you want
   the small blue label. The text comes from the block content itself.
*/
.bbh-section-label,
.bbh-eyebrow,
.entry-content .bbh-section-label,
.entry-content .bbh-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
  padding: 2px 9px;
  font-size: 9px;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 .75rem;
}

.bbh-section-label + h1,
.bbh-section-label + h2,
.bbh-section-label + h3,
.bbh-section-label + h4,
.bbh-section-label + h5,
.bbh-section-label + h6,
.bbh-eyebrow + h1,
.bbh-eyebrow + h2,
.bbh-eyebrow + h3,
.bbh-eyebrow + h4,
.bbh-eyebrow + h5,
.bbh-eyebrow + h6 {
  margin-top: 0;
}
