/* Standard BESONG site header + footer chrome, ported to match the rest of the site.
   Loaded AFTER styles.css so shared chrome classes render like every other page. */

:root {
  --blue: #0062FE;
  --orange: #F36434;
  --navy: #07152E;
  --navy2: #0B172A;
  --ink: #161616;
  --muted: #596579;
  --light: #EFF7FE;
  --line: #DCE4EF;
  --white: #fff;
  --mint: #2DA771;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(7, 21, 46, .12);
  --shell: min(1380px, calc(100% - 70px));
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: -60px;
  transform: none;
  background: #fff;
  color: var(--navy);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 16px;
  transform: none;
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  top: auto;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.utility-bar {
  min-height: 0;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.utility-bar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.utility-bar__left,
.utility-bar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.utility-bar__right a:hover {
  text-decoration: underline;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #36E198;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(54, 225, 152, .16);
}

.nav-wrap {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(7, 21, 46, .08);
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
}

.nav-wrap__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 224px;
  height: auto;
}

.primary-nav {
  position: static;
  inset: auto;
  max-height: none;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 0;
  border-top: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
  border-bottom: 0;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 15px 11px;
  font-size: 14px;
  font-weight: 600;
  color: #202B3C;
  border-radius: 9px;
}

.nav-link::after {
  content: none;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue);
  background: var(--light);
}

.nav-button i {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: .2s;
}

.nav-button[aria-expanded="true"] i {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-cta {
  margin-left: 10px;
}

.button--sm {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13px;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 10px);
  width: min(760px, 90vw);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(7, 21, 46, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  transition: .2s;
}

.nav-item--dropdown:nth-of-type(3) .mega-menu {
  width: min(830px, 90vw);
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-menu__intro {
  padding: 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 13px;
}

.mega-menu__intro p {
  font-size: 13px;
  color: #CBD4E2;
}

.mega-menu__intro a {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}

.mega-menu__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mega-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.mega-card:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.mega-menu--units {
  grid-template-columns: 1fr !important;
  width: min(960px, 92vw) !important;
  padding: 28px;
}

.mega-menu__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-col__title {
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.mega-col a {
  padding: 7px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color .15s;
}

.mega-col a:hover {
  color: var(--blue);
}

.mega-menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mega-menu__foot span {
  font-size: 13px;
  color: var(--muted);
}

.mega-menu__foot a {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  padding: 11px;
}

.nav-toggle span {
  display: block;
  width: auto;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  transform: none;
}

.service-ribbon {
  background: var(--navy);
  color: #fff;
}

.service-ribbon__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow: auto;
}

.service-ribbon a {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: #C9D3E3;
}

.service-ribbon a:hover {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--orange);
}

.eyebrow:before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}

.eyebrow--blue {
  color: var(--blue);
}

.eyebrow--light {
  color: #fff;
}

/* Footer */
.site-footer {
  background: #030B18;
  color: #fff;
  padding: 70px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .85fr .85fr .85fr 1.6fr .95fr;
  gap: 22px;
}

.footer-brand img {
  width: 210px;
  filter: none;
}

.footer-brand p,
.footer-newsletter p {
  color: #9EACC0;
  font-size: 13px;
}

.footer-grid h3 {
  font-size: 14px;
  color: #fff;
  margin: 0 0 18px;
}

.footer-grid > div > a {
  display: block;
  color: #9EACC0;
  font-size: 12px;
  margin: 10px 0;
}

.footer-grid > div > a:hover {
  color: #fff;
}

.footer-units__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}

.footer-units__grid a {
  display: block;
  color: #9EACC0;
  font-size: 12px;
  margin: 10px 0;
}

.footer-units__grid a:hover {
  color: #fff;
}

.social-row {
  display: flex;
  gap: 8px;
}

.social-row a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.inline-form {
  display: flex;
}

.inline-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, .2);
  background: #0B172A;
  color: #fff;
  padding: 12px;
  border-radius: 7px 0 0 7px;
}

.inline-form button {
  border: 0;
  background: var(--orange);
  color: #fff;
  padding: 0 14px;
  border-radius: 0 7px 7px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 50px;
  padding-top: 20px;
  color: #78869A;
  font-size: 11px;
}

.footer-bottom div {
  display: flex;
  gap: 14px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .2s;
  z-index: 80;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Responsive chrome */
@media (max-width: 1100px) {
  .brand img {
    width: 190px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 114px);
    background: #fff;
    display: block;
    padding: 20px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: .2s;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-list {
    display: block;
  }

  .nav-item {
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 10px;
    font-size: 15px;
  }

  .nav-cta {
    display: inline-flex;
    margin: 24px 0 0 10px;
  }

  .mega-menu {
    position: static;
    transform: none !important;
    width: 100% !important;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 8px 18px;
    display: none;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mega-menu.is-open {
    display: grid;
  }

  .mega-menu__intro {
    display: none;
  }

  .mega-menu__links {
    grid-template-columns: 1fr;
  }

  .mega-menu--units {
    padding: 4px 8px 18px;
  }

  .mega-menu__columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mega-menu__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .utility-bar {
    display: block;
  }

  .utility-bar__left span:last-child {
    display: none;
  }

  .utility-bar__right a:first-child {
    display: none;
  }

  .nav-wrap__inner {
    min-height: 76px;
  }

  .brand img {
    width: 170px;
  }

  .service-ribbon__inner {
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand,
  .footer-newsletter {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .utility-bar__right a:nth-child(2) {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-newsletter {
    grid-column: auto;
  }
}
