/* ============================================================================
   BESONG Group — shared header + footer chrome for business-unit pages.
   Mirrors the header/footer of the root index.html exactly. All selectors are
   scoped to .site-header / .site-footer (or standalone chrome elements) so the
   page body keeps using assets-bu/css/site.css untouched.
   Load this AFTER assets-bu/css/site.css.
   ============================================================================ */

.site-header,
.site-footer {
  --bg-blue: #0062FE;
  --bg-orange: #F36434;
  --bg-navy: #07152E;
  --bg-light: #EFF7FE;
  --bg-line: #DCE4EF;
  --bg-muted: #596579;
  --bg-ink: #161616;
  --bg-shadow: 0 24px 70px rgba(7, 21, 46, .12);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.55;
}

/* Keep header/footer links clean even when the host page CSS lacks a global
   `a { text-decoration: none }` reset (e.g. the Aviation page uses its own
   Aviation/css/site.css). */
.site-header a,
.site-footer a { text-decoration: none; }

/* ---- Skip link -------------------------------------------------------------- */
.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: -60px;
  background: #fff;
  color: #07152E;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(7, 21, 46, .12);
}
.skip-link:focus { top: 16px; }

/* ---- Header shell ----------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 100;
  background: #fff;
  border-bottom: 0;
  backdrop-filter: none;
}
.site-header.is-scrolled { box-shadow: none; background: #fff; }
.site-header .shell,
.site-footer .shell { width: min(1380px, calc(100% - 70px)); margin-inline: auto; }

/* ---- Utility bar ------------------------------------------------------------ */
.site-header .utility-bar { background: var(--bg-blue); color: #fff; font-size: 12px; font-weight: 600; }
.site-header .utility-bar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header .utility-bar__left,
.site-header .utility-bar__right { display: flex; align-items: center; gap: 20px; }
.site-header .utility-bar__right a:hover { text-decoration: underline; }
.site-header .status-dot { width: 8px; height: 8px; background: #36E198; border-radius: 50%; box-shadow: 0 0 0 5px rgba(54, 225, 152, .16); }

/* ---- Nav bar ---------------------------------------------------------------- */
.site-header .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); z-index: 90; }
.site-header .nav-wrap__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-header .brand { display: flex; align-items: center; flex: 0 0 auto; width: auto; }
.site-header .brand img { width: 224px; max-height: none; height: auto; object-fit: contain; }
.site-header .primary-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-header .nav-item { position: relative; }
.site-header .nav-link {
  display: flex; align-items: center; gap: 7px; border: 0; background: transparent;
  padding: 15px 11px; min-height: 0; font-size: 14px; font-weight: 600; color: #202B3C; border-radius: 9px;
}
.site-header .nav-link:hover,
.site-header .nav-link.is-active,
.site-header .nav-link[aria-current="page"] { color: var(--bg-blue); background: var(--bg-light); }
.site-header .nav-button i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: .2s; }
.site-header .nav-button[aria-expanded="true"] i { transform: rotate(225deg) translate(-1px, -1px); }
.site-header .nav-cta { margin-left: 10px; }

/* ---- Mega menus ------------------------------------------------------------- */
.site-header .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(--bg-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;
}
.site-header .nav-item--dropdown:nth-of-type(3) .mega-menu { width: min(830px, 90vw); }
/* Neutralize the hover-open behaviour that assets-bu/site.css applies to .nav-item */
.nav-item:hover .mega-menu:not(.is-open) { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 10px); }
.site-header .mega-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.site-header .mega-menu__intro { padding: 18px; background: var(--bg-navy); color: #fff; border-radius: 13px; }
.site-header .mega-menu__intro p { font-size: 13px; color: #CBD4E2; }
.site-header .mega-menu__intro a { font-size: 13px; color: #fff; font-weight: 700; }
.site-header .mega-menu__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.site-header .mega-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid var(--bg-line); border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--bg-ink); }
.site-header .mega-card:hover { border-color: var(--bg-blue); color: var(--bg-blue); transform: translateY(-2px); }
.site-header .mega-menu--units { grid-template-columns: 1fr !important; width: min(960px, 92vw) !important; padding: 28px; }
.site-header .mega-menu__columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.site-header .mega-col { display: flex; flex-direction: column; gap: 2px; }
.site-header .mega-col__title { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--bg-muted); font-weight: 700; margin-bottom: 12px; }
.site-header .mega-col a { display: block; padding: 7px 0; margin-left: 0; font-size: 14px; font-weight: 600; color: var(--bg-ink); background: transparent; border-radius: 0; transition: color .15s; }
.site-header .mega-col a:hover { color: var(--bg-blue); background: transparent; }
.site-header .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(--bg-line); }
.site-header .mega-menu__foot span { font-size: 13px; color: var(--bg-muted); }
.site-header .mega-menu__foot a { font-size: 14px; font-weight: 700; color: var(--bg-blue); white-space: nowrap; }

/* ---- Mobile nav toggle ------------------------------------------------------ */
.site-header .nav-toggle { display: none; width: 45px; height: 45px; border: 0; border-radius: 10px; background: var(--bg-navy); padding: 11px; }
.site-header .nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.site-header .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Service ribbon --------------------------------------------------------- */
.site-header .service-ribbon { background: var(--bg-navy); color: #fff; }
.site-header .service-ribbon__inner { min-height: 38px; display: flex; align-items: center; gap: 28px; overflow: auto; }
.site-header .service-ribbon a { font-size: 12px; font-weight: 600; white-space: nowrap; color: #C9D3E3; }
.site-header .service-ribbon a:hover { color: #fff; }

/* ---- Eyebrow (used inside mega intros) -------------------------------------- */
.site-header .eyebrow { display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 0; margin: 0; font-size: 12px; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--bg-orange); background: transparent; }
.site-header .eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 0; }
.site-header .eyebrow--blue { color: var(--bg-blue); }
.site-header .eyebrow--light { color: #fff; }

/* ---- Nav CTA button --------------------------------------------------------- */
.site-header .button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 22px; border-radius: 7px; border: 1px solid transparent; font-weight: 700; font-size: 14px; box-shadow: none; transition: .2s; }
.site-header .button:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(7, 21, 46, .12); }
.site-header .button--sm { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.site-header .button--orange { background: var(--bg-orange); color: #fff; }

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer { background: #030B18; color: #fff; padding: 70px 0 24px; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.3fr .85fr .85fr .85fr 1.6fr .95fr; gap: 22px; }
.site-footer .footer-brand { grid-column: auto; }
.site-footer .footer-brand img { width: 210px; max-height: none; filter: none; opacity: 1; background: none; padding: 0; border-radius: 0; }
.site-footer .footer-brand p,
.site-footer .footer-newsletter p { margin: 14px 0 0; max-width: none; color: #9EACC0; font-size: 13px; }
.site-footer .footer-grid h3 { font-size: 14px; color: #fff; margin: 0 0 18px; letter-spacing: normal; text-transform: none; }
.site-footer .footer-grid > div > a { display: block; color: #9EACC0; font-size: 12px; margin: 10px 0; }
.site-footer .footer-grid > div > a:hover { color: #fff; }
.site-footer .footer-units__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.site-footer .footer-units__grid a { display: block; color: #9EACC0; font-size: 12px; margin: 10px 0; }
.site-footer .footer-units__grid a:hover { color: #fff; }
.site-footer .social-row { display: flex; gap: 8px; margin-top: 18px; }
.site-footer .social-row a { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; display: grid; place-items: center; margin: 0; color: #fff; }
.site-footer .social-row a:hover { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .06); }
.site-footer .inline-form { display: flex; margin-top: 14px; }
.site-footer .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; }
.site-footer .inline-form button { border: 0; background: var(--bg-orange); color: #fff; padding: 0 14px; border-radius: 0 7px 7px 0; min-height: 0; font-weight: 700; }
.site-footer .footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 50px; padding-top: 20px; color: #78869A; font-size: 11px; }
.site-footer .footer-bottom div { display: flex; gap: 14px; }
.site-footer .footer-bottom a:hover { color: #fff; }

/* ============================================================================
   Standalone chrome (back to top, toast, body lock)
   ============================================================================ */
body.nav-open { overflow: hidden; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #F36434; color: #fff; font-weight: 800; box-shadow: 0 24px 70px rgba(7, 21, 46, .12); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; z-index: 80; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.toast[data-toast-region] { position: fixed; z-index: 1000; right: 20px; bottom: 80px; max-width: 340px; background: #07152E; color: #fff; padding: 14px 18px; border-radius: 10px; box-shadow: 0 24px 70px rgba(7, 21, 46, .12); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; font-size: 13px; }
.toast[data-toast-region].is-visible { opacity: 1; visibility: visible; transform: none; }

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1100px) {
  .site-header .brand img { width: 190px; }
  .site-header .nav-toggle { display: block; }
  .site-header .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 114px);
    background: #fff; display: block; padding: 20px; overflow: auto; margin-left: 0;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: .2s; z-index: 95;
  }
  .site-header .primary-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .site-header .nav-item { border-bottom: 1px solid var(--bg-line); }
  .site-header .nav-link { width: 100%; justify-content: space-between; padding: 16px 10px; font-size: 15px; }
  .site-header .nav-cta { display: inline-flex; margin: 24px 0 0 10px; }
  .site-header .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;
  }
  .site-header .nav-item:hover .mega-menu:not(.is-open) { display: none; }
  .site-header .mega-menu.is-open { display: grid; }
  .site-header .mega-menu__intro { display: none; }
  .site-header .mega-menu__links { grid-template-columns: 1fr; }
  .site-header .mega-menu--units { padding: 4px 8px 18px; }
  .site-header .mega-menu__columns { grid-template-columns: 1fr; gap: 14px; }
  .site-header .mega-menu__foot { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; }
  .site-footer .footer-grid { grid-template-columns: 1.3fr repeat(2, 1fr); }
  .site-footer .footer-grid > div:nth-child(4),
  .site-footer .footer-newsletter { grid-column: auto; }
}

@media (max-width: 860px) {
  .site-header .shell,
  .site-footer .shell { width: min(calc(100% - 28px), 720px); }
  .site-header .utility-bar__left span:last-child { display: none; }
  .site-header .utility-bar__right a:first-child { display: none; }
  .site-header .nav-wrap__inner { min-height: 76px; }
  .site-header .brand img { width: 170px; }
  .site-header .service-ribbon__inner { gap: 20px; }
  .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-brand,
  .site-footer .footer-newsletter { grid-column: 1 / -1; }
  .site-footer .footer-bottom { flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header .utility-bar__right a:nth-child(2) { display: none; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   Engagement band (pre-footer CTA) — mirrors the root index.html band so the
   assets-bu pages' footer area matches the main site exactly.
   ============================================================================ */
.engagement-band { background: #0062FE; color: #fff; padding: 56px 0; font-family: "Poppins", Arial, sans-serif; line-height: 1.55; }
.engagement-band .shell { width: min(1380px, calc(100% - 70px)); margin-inline: auto; }
.engagement-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.engagement-band .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.engagement-band .eyebrow--light { color: #fff; }
.engagement-band h2 { font-size: 36px; margin: 10px 0 0; }
.engagement-band .engagement-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.engagement-band .button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 22px; border-radius: 7px; border: 1px solid transparent; font-weight: 700; font-size: 14px; box-shadow: none; transition: .2s; cursor: pointer; }
.engagement-band .button:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(7, 21, 46, .12); }
.engagement-band .button--light { background: #fff; color: #07152E; }
.engagement-band .button--ghost-light { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); }
.engagement-band .button--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .44); }
@media (max-width: 860px) { .engagement-band__inner { align-items: flex-start; flex-direction: column; } }
@media (max-width: 620px) { .engagement-band h2 { font-size: 30px; } }
