/* ============================================================================
   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;
  height: auto;
  top: auto;
  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(1560px, calc(100% - 32px)); 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 (match home assets/css/styles.css) ----------------------------- */
.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: 200; }
.site-header .nav-wrap__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.site-header .brand { display: flex; align-items: center; flex: 0 0 auto; width: auto; }
.site-header .brand img { width: 190px; max-height: none; height: auto; object-fit: contain; }
.site-header .primary-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: nowrap; min-width: 0; }
.site-header .nav-item { position: relative; }
.site-header .nav-link {
  display: flex; align-items: center; gap: 6px; border: 0; background: transparent;
  padding: 10px 8px; min-height: 0; font-size: 13.5px; font-weight: 600; color: #202B3C;
  border-radius: 9px; white-space: nowrap;
}
.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; flex: 0 0 auto; white-space: nowrap; }
.site-header .nav-cta.button--sm { min-height: 42px; padding: 9px 16px; font-size: 13px; }
.site-header .nav-item--lang { position: relative; margin-left: 8px; margin-right: 4px; flex: 0 0 auto; }

/* ---- 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 .eyebrow { color: #F36434; }
.site-header .mega-menu__intro .eyebrow::before { background: #F36434; }
.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 .nav-cta.button--sm { min-height: 42px; padding: 9px 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 — match home breakpoints
   ============================================================================ */
@media (min-width: 1101px) and (max-width: 1400px) {
  .site-header .brand img { width: 172px; }
  .site-header .nav-wrap__inner { gap: 14px; }
  .site-header .primary-nav { gap: 4px; }
  .site-header .nav-link { padding: 9px 7px; font-size: 13px; gap: 5px; }
  .site-header .nav-item--lang { margin-left: 6px; }
  .site-header .nav-cta { margin-left: 8px; }
  .site-header .nav-cta.button--sm { min-height: 40px; padding: 8px 14px; font-size: 12.5px; }
}

@media (max-width: 1100px) {
  .site-header .brand img { width: 168px; }
  .site-header .nav-toggle { display: block; flex: 0 0 auto; margin-left: auto; }
  .site-header .primary-nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0; max-height: min(78vh, calc(100dvh - 90px));
    background: #fff; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 20px; overflow: auto; margin-left: 0; -webkit-overflow-scrolling: touch;
    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: 14px 8px; font-size: 15px; white-space: normal; }
  .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(1560px, calc(100% - 28px)); }
  .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 { position: relative; overflow: hidden; color: #fff; padding: 74px 0; font-family: "Poppins", Arial, sans-serif; line-height: 1.55; background: linear-gradient(120deg, #030b18, #0a1f45 62%, #0062fe); }
.engagement-band::after { content: ""; position: absolute; right: -160px; top: -230px; width: 600px; height: 600px; border: 90px solid rgba(255,255,255,.05); border-radius: 50%; pointer-events: none; }
.engagement-band .shell { width: min(1560px, calc(100% - 32px)); margin-inline: auto; }
.engagement-band__inner { position: relative; z-index: 2; 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 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.04em; }
.engagement-band p { max-width: 720px; margin: 14px 0 0; color: #c7d4e7; font-size: 1.05rem; line-height: 1.6; }
.engagement-band .engagement-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.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; text-decoration: none; transition: .2s; cursor: pointer; }
.engagement-band .button:hover { transform: translateY(-2px); }
.engagement-band .button--orange { background: #F36434; color: #fff; box-shadow: 0 12px 26px rgba(243, 100, 52, .25); }
.engagement-band .button--orange:hover { background: #E0521F; box-shadow: 0 16px 34px rgba(243, 100, 52, .32); }
.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 { padding: 56px 0; } .engagement-band h2 { font-size: clamp(1.75rem, 7vw, 2.2rem); } }

/* Business Units — ecosystem mega-menu (centered so full panel stays visible) */
.site-header .nav-item--dropdown:has(> .mega-menu[data-bu2-menu]) {
  position: static;
}
.site-header .mega-menu[data-bu2-menu] {
  left: 50%;
  right: auto;
  width: min(1080px, calc(100vw - 32px)) !important;
  max-height: min(78vh, 720px);
  overflow-y: auto;
  grid-template-columns: 1fr !important;
  padding: 28px !important;
  transform: translate(-50%, 10px);
}
.site-header .mega-menu[data-bu2-menu].is-open { transform: translate(-50%, 0); }
.site-header .bu2-eco { display: grid; grid-template-columns: 290px 1fr; gap: 40px; }
.site-header .bu2-eco__intro { display: flex; flex-direction: column; }
.site-header .bu2-eco__eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #F36434; }
.site-header .bu2-eco__title { margin: 16px 0 0; font-size: 23px; line-height: 1.18; font-weight: 800; letter-spacing: -.01em; color: #0f2138; }
.site-header .bu2-eco__desc { margin: 16px 0 0; font-size: 13px; line-height: 1.65; color: #5b6b82; }
.site-header .bu2-eco__btn { margin-top: auto; align-self: flex-start; padding: 13px 26px; border-radius: 999px; background: #0b1f3a; color: #fff; font-size: 13px; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.site-header .bu2-eco__btn:hover { background: #0062fe; transform: translateY(-2px); }
.site-header .bu2-eco__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 22px; }
.site-header .bu2-card { display: flex; align-items: flex-start; gap: 14px; padding: 11px 14px; border-radius: 14px; transition: background .15s ease, transform .15s ease; }
.site-header .bu2-card:hover { background: #f2f6fc; transform: translateY(-1px); }
.site-header .bu2-card__num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bu, #0062fe); color: #fff; font-size: 13px; font-weight: 800; }
.site-header .bu2-card__body { display: flex; flex-direction: column; gap: 3px; }
.site-header .bu2-card__body strong { font-size: 14px; font-weight: 700; color: #0f2138; }
.site-header .bu2-card__body span { font-size: 12px; line-height: 1.5; color: #5b6b82; }
@media (max-width: 1100px) {
  .site-header .nav-item--dropdown:has(> .mega-menu[data-bu2-menu]) { position: relative; }
  .site-header .mega-menu[data-bu2-menu] {
    width: 100% !important;
    left: auto;
    right: auto;
    max-height: none;
    overflow: visible;
    padding: 4px 8px 18px !important;
    transform: none;
  }
  .site-header .mega-menu[data-bu2-menu].is-open { transform: none; }
  .site-header .bu2-eco { grid-template-columns: 1fr; gap: 18px; }
  .site-header .bu2-eco__title { font-size: 20px; }
  .site-header .bu2-eco__btn { align-self: stretch; text-align: center; }
  .site-header .bu2-eco__grid { grid-template-columns: 1fr; gap: 2px; }
}

/* Business Units — dark popup theme */
.site-header .mega-menu[data-bu2-menu] {
  background: linear-gradient(135deg, #0a1a33 0%, #0c1f3d 55%, #10264b 100%) !important;
  border-color: rgba(255,255,255,.10) !important;
  color: #e6edf7;
}
.site-header .bu2-eco__title { color: #ffffff; }
.site-header .bu2-eco__desc { color: #c6d3e6; }
.site-header .bu2-eco__btn { background: #ffffff; color: #0b1f3a; }
.site-header .bu2-eco__btn:hover { background: #e9eef6; color: #0b1f3a; }
.site-header .bu2-card:hover { background: rgba(255,255,255,.07); transform: translateY(-1px); }
.site-header .bu2-card__body strong { color: #ffffff; }
.site-header .bu2-card__body span { color: #aebed3; }
