:root {
  --bs-primary: #1e3a5f;
  --bs-primary-rgb: 30, 58, 95;
  --bs-secondary: #64748b;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: #334155;
  --bs-body-bg: #fafbfc;
  --besi-accent: #d97706;
  --besi-accent-hover: #b45309;
  --besi-accent-tint: #fdf1e2;
  --besi-navy: #1e3a5f;
  --besi-navy-mid: #16304f;
  --besi-slate: #64748b;
  --besi-surface: #f1f5f9;
  --besi-dark: #0f172a;
  --besi-line: #e2e8f0;
  --besi-heading-color: #ff0000;
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
}

[id] {
  scroll-margin-top: 220px;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

h1, h2 {
  color: var(--besi-heading-color) !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1100;
  padding: 0.5rem 1rem;
  background: var(--besi-navy);
  color: #fff;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 1rem;
}

.top-bar {
  background: var(--besi-dark);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.top-bar__link {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.125rem 0;
}

.top-bar__link:hover,
.top-bar__link:focus {
  color: #fff;
  text-decoration: underline;
}

.top-bar__link .bi {
  font-size: 0.95rem;
}

@media (max-width: 575.98px) {
  .top-bar__inner {
    justify-content: space-between;
  }

  .top-bar__link {
    font-size: 0.8125rem;
  }
}

.brand-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--besi-navy);
  letter-spacing: 0.02em;
}

.navbar {
  background: var(--besi-dark);
}

.navbar-brand {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.navbar-brand-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
}

.navbar-brand-logo {
  height: 36px;
  width: auto;
  max-width: min(220px, calc(100vw - 5.5rem));
  object-fit: contain;
  display: block;
  transition: height 0.2s ease, max-width 0.2s ease;
}

.site-header.is-scrolled .navbar-brand-logo {
  height: 28px;
}

.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
}

.footer-brand-logo {
  height: 32px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

@media (min-width: 992px) {
  .navbar-brand-logo {
    height: auto;
    max-width: 260px;
  }

  .site-header.is-scrolled .navbar-brand-logo {
    height: auto;
    max-width: 150px;
  }

  .footer-brand-logo {
    height: 38px;
    max-width: 220px;
  }
}

.site-header {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.navbar .nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  padding: 0.75rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: #fff;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.nav-cta {
  background: var(--besi-accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus {
  background: var(--besi-accent-hover);
  color: #fff !important;
}

.btn-primary {
  --bs-btn-bg: var(--besi-accent);
  --bs-btn-border-color: var(--besi-accent);
  --bs-btn-hover-bg: var(--besi-accent-hover);
  --bs-btn-hover-border-color: var(--besi-accent-hover);
  --bs-btn-active-bg: var(--besi-accent-hover);
  --bs-btn-active-border-color: var(--besi-accent-hover);
  font-weight: 600;
  min-height: 44px;
  padding: 0.625rem 1.5rem;
}

.btn-outline-primary {
  --bs-btn-color: var(--besi-navy);
  --bs-btn-border-color: var(--besi-navy);
  --bs-btn-hover-bg: var(--besi-navy);
  --bs-btn-hover-border-color: var(--besi-navy);
}

.btn-outline-light {
  --bs-btn-border-color: rgba(255, 255, 255, 0.35);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.14);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  min-height: 44px;
  padding: 0.625rem 1.5rem;
}

.section-padding {
  padding: 4.5rem 0;
}

.section-padding-sm {
  padding: 3.5rem 0 2rem;
}

.section-alt {
  background-color: var(--besi-surface);
}

.page-hero {
  border-bottom: 1px solid var(--besi-line);
}

.section-title {
  font-weight: 700;
  color: var(--besi-navy);
  margin-bottom: 1rem;
}

.letter-spacing-sm {
  letter-spacing: 0.06em;
}

.hero-video {
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video__element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(217, 119, 6, 0.28), rgba(217, 119, 6, 0) 60%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 58, 95, 0.8) 55%, rgba(22, 48, 79, 0.88) 100%);
}

.hero-video__scrim::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("/static/images/hex-pattern.59e91a57182d.svg");
  background-repeat: repeat;
  opacity: 0.45;
}

.hero-video__content {
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero-video.no-video .hero-video__element {
  display: none;
}

.hero-video.no-video .hero-video__media {
  background: var(--besi-navy) url("/static/images/hero-poster.2d4354f79000.svg") center / cover no-repeat;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.5rem 1.1rem 0.5rem 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-trust__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 1.75rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

a.hero-trust__item:hover,
a.hero-trust__item:focus {
  color: var(--besi-accent);
}

.hero-trust__item:first-child {
  padding-left: 0;
}

.hero-trust__item .bi {
  color: var(--besi-accent);
  font-size: 1.15rem;
}

.hero-trust__divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.14);
}

.service-card {
  display: block;
  background: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 30px -14px rgba(15, 23, 42, 0.15);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.service-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 20px 40px -16px rgba(15, 23, 42, 0.22);
  color: inherit;
}

.service-card:hover .service-card__title {
  color: var(--besi-accent-hover);
}

.service-card__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--besi-navy), var(--besi-navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.service-card__icon {
  font-size: 1.5rem;
  color: var(--besi-accent);
}

.clients-intro {
  max-width: 42rem;
}

.clients-intro p:last-child {
  margin-bottom: 0;
}

.clients-logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  border-top: 1px solid var(--besi-line);
  border-bottom: 1px solid var(--besi-line);
  padding: 2.25rem 0.5rem;
}

.clients-logo-grid__item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  min-height: auto;
  max-width: 160px;
  width: auto;
}

.clients-logo-grid__image {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.why-besi-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.why-besi-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--besi-accent-tint);
  border-radius: 10px;
  padding: 0.75rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--besi-navy);
  text-decoration: none;
}

a.why-besi-stat:hover,
a.why-besi-stat:focus {
  background: var(--besi-accent-tint);
  color: var(--besi-accent-hover);
}

.why-besi-stat .bi {
  color: var(--besi-accent-hover);
}

.brand-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--besi-line);
  border-radius: 10px;
  padding: 0.875rem 1.75rem;
  min-height: 72px;
}

.brand-badge__logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.brand-badge__name {
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--besi-navy);
}

.photo-placeholder {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(155deg, var(--besi-dark), var(--besi-navy) 60%, var(--besi-navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("/static/images/hex-pattern.59e91a57182d.svg");
  background-repeat: repeat;
  opacity: 0.45;
}

.photo-placeholder .bi {
  position: relative;
  font-size: 2.75rem;
  color: rgba(217, 119, 6, 0.85);
}

.photo-placeholder__caption {
  position: absolute;
  left: 1rem;
  bottom: 0.875rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 0.375rem 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 500;
}

.service-area {
  display: block;
}

.service-area__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.service-area__kicker {
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--besi-accent-hover);
  margin: 0 0 1.5rem;
}

.service-area__heading {
  font-weight: 700;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--besi-navy) !important;
  margin: 0;
}

.service-area__intro p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--bs-body-color);
  max-width: 46ch;
  text-wrap: pretty;
}

.service-area__map {
  border-top: 2px solid var(--besi-navy);
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.service-area__map svg {
  display: block;
}

.service-area-map__state {
  fill: var(--besi-line);
  stroke: #fff;
  stroke-width: 1.25;
}

.service-area-map__state--served {
  fill: var(--besi-accent);
}

.service-area-map__label {
  font: 700 13px 'Space Grotesk', system-ui, sans-serif;
  fill: #fff;
  letter-spacing: 0.06em;
}

.service-area__rule {
  border-top: 2px solid var(--besi-navy);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  max-width: 1280px;
  margin: 0 auto;
}

.service-area__rule div {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--besi-navy);
  padding: 1rem 0.75rem;
  border-left: 1px solid var(--besi-line);
}

.service-area__rule div:first-child {
  border-left: 0;
  background: var(--besi-accent);
  color: #fff;
}

@media (max-width: 760px) {
  .service-area__head {
    grid-template-columns: 1fr;
    padding: 40px 1.5rem 1.5rem;
  }

  .service-area__map {
    padding: 1.5rem;
  }

  .service-area__rule {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-area__rule div:nth-child(n+5) {
    border-top: 1px solid var(--besi-line);
  }

  .service-area__rule div:nth-child(5) {
    border-left: 0;
  }
}

.service-detail-row {
  display: flex;
  align-items: center;
  gap: 4.5rem;
}

.service-detail-row:nth-child(even) {
  flex-direction: row-reverse;
}

.service-detail-row__media {
  flex: 0 0 44%;
  aspect-ratio: 4 / 3;
}

.service-detail-row__media.photo-placeholder {
  min-height: 0;
}

.service-detail-row__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-detail-row__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--besi-navy), var(--besi-navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--besi-accent);
  font-size: 1.35rem;
}

@media (max-width: 991.98px) {
  .service-detail-row,
  .service-detail-row:nth-child(even) {
    flex-direction: column;
    gap: 1.75rem;
  }

  .service-detail-row__media {
    flex-basis: auto;
    width: 100%;
  }
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--besi-dark), var(--besi-navy));
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -70px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 60px solid rgba(217, 119, 6, 0.18);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
}

.site-footer {
  background-color: var(--besi-dark);
  color: #cbd5e1;
}

.site-footer .brand-text {
  color: #fff;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
  min-height: 44px;
  line-height: 44px;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 1.125rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus {
  background: var(--besi-accent);
  color: #fff;
}

.richtext p:last-child {
  margin-bottom: 0;
}

.contact-form .form-control:focus {
  border-color: var(--besi-navy);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.15);
}

.contact-info {
  font-style: normal;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767.98px) {
  .hero-video.no-video-mobile .hero-video__element {
    display: none;
  }

  .hero-video.no-video-mobile .hero-video__media {
    background: var(--besi-navy) url("/static/images/hero-poster.2d4354f79000.svg") center / cover no-repeat;
  }

  .display-4 {
    font-size: 2rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-trust__item {
    padding: 0;
  }

  .hero-trust__divider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
