/* BESONG Group — shared site header & footer chrome.
   Ported from the main enterprise site so these pages share the same
   header and footer as the group home page. Scoped to chrome elements only;
   it deliberately does NOT restyle page body content. Loaded AFTER styles.css. */

:root {
  --chrome-blue: #0062FE;
  --chrome-orange: #F36434;
  --chrome-navy: #07152E;
  --chrome-ink: #161616;
  --chrome-muted: #596579;
  --chrome-light: #EFF7FE;
  --chrome-line: #DCE4EF;
  --chrome-shadow: 0 24px 70px rgba(7, 21, 46, .12);
  /* Same page width as home page — header + content stay aligned */
  --page-max: 1560px;
  --page-gutter: 32px;
  --shell: min(var(--page-max), calc(100% - var(--page-gutter)));
  --container: var(--page-max);
  /* Header is now in normal flow, so page heroes no longer need to reserve space for a fixed bar. */
  --header-height: 0px;
}

/* Font: match the home page chrome without touching body typography. */
.site-header, .site-header *,
.site-footer, .site-footer *,
.back-to-top, .toast { font-family: "Poppins", Arial, sans-serif; }

.shell,
.container {
  width: var(--shell) !important;
  margin-inline: auto;
}
.container.narrow {
  width: min(900px, calc(100% - var(--page-gutter))) !important;
}

.skip-link {
  position: fixed; z-index: 9999; left: 16px; top: -60px;
  background: #fff; color: var(--chrome-navy);
  padding: 12px 16px; border-radius: 8px; box-shadow: var(--chrome-shadow);
}
.skip-link:focus { top: 16px; }

/* ---- Header shell (override group's fixed dark header) ---- */
.site-header {
  position: relative; z-index: 100; inset: auto; height: auto; min-height: 0;
  border-bottom: 0; color: var(--chrome-ink); background: #fff;
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
}
.site-header .brand img { filter: none; }

.utility-bar { background: var(--chrome-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; z-index: 200; backdrop-filter: blur(18px);
}
.nav-wrap__inner {
  min-height: 88px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; position: relative;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 190px; height: auto; }

.primary-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: nowrap; min-width: 0; }
.nav-item { position: relative; }

.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;
}
.nav-link::after { display: none !important; content: none !important; }
.nav-link:hover, .nav-link.is-active { color: var(--chrome-blue); background: var(--chrome-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; flex: 0 0 auto; white-space: nowrap; }
.nav-cta.button--sm { min-height: 42px; padding: 9px 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; color: var(--chrome-ink);
  border: 1px solid var(--chrome-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;
}
.mega-menu::before { display: none; }
.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(--chrome-navy); color: #fff; border-radius: 13px; }
.mega-menu__intro .eyebrow { color: #F36434; }
.mega-menu__intro .eyebrow::before { background: #F36434; }
.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(--chrome-line); border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--chrome-ink);
}
.mega-card:hover { border-color: var(--chrome-blue); color: var(--chrome-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(--chrome-muted); font-weight: 700; margin-bottom: 12px; }
.mega-col a { padding: 7px 0; font-size: 14px; font-weight: 600; color: var(--chrome-ink); transition: color .15s; }
.mega-col a:hover { color: var(--chrome-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(--chrome-line); }
.mega-menu__foot span { font-size: 13px; color: var(--chrome-muted); }
.mega-menu__foot a { font-size: 14px; font-weight: 700; color: var(--chrome-blue); white-space: nowrap; }

.nav-toggle { display: none; width: 45px; height: 45px; border: 0; border-radius: 10px; background: var(--chrome-navy); padding: 11px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.service-ribbon { background: var(--chrome-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; }

/* ---- Buttons used in chrome (group body uses .btn, so no conflict) ---- */
.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; transition: .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(7, 21, 46, .12); }
.button svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s ease; }
.button:hover svg { transform: translateX(3px); }
.button--sm { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.button--orange { background: var(--chrome-orange); color: #fff; box-shadow: 0 12px 26px rgba(243, 100, 52, .25); }
.button--orange:hover { background: #E0521F; box-shadow: 0 16px 34px rgba(243, 100, 52, .32); }
.button--light { background: #fff; color: var(--chrome-navy); }

/* ---- Footer (override group's 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; color: #fff; }
.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(--chrome-orange); color: #fff; padding: 0 14px; border-radius: 0 7px 7px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 50px; padding: 20px 0 0; color: #78869A; font-size: 11px; }
.footer-bottom div { display: flex; gap: 14px; }
.footer-bottom a:hover { color: #fff; }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--chrome-orange); color: #fff; font-weight: 800; box-shadow: var(--chrome-shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; z-index: 80;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.toast {
  position: fixed; z-index: 1000; right: 20px; bottom: 80px; max-width: 340px;
  background: var(--chrome-navy); color: #fff; padding: 14px 18px; border-radius: 10px;
  box-shadow: var(--chrome-shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .2s; font-size: 13px;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Keep full desktop header breathing room down to 1101px */
@media (min-width: 1101px) and (max-width: 1400px) {
  :root {
    --page-gutter: 28px;
    --shell: min(var(--page-max), calc(100% - var(--page-gutter)));
  }
  .brand img { width: 172px; }
  .nav-wrap__inner { gap: 14px; }
  .primary-nav { gap: 4px; }
  .nav-link { padding: 9px 7px; font-size: 13px; gap: 5px; }
  .nav-item--lang { margin-left: 6px; }
  .language-button { min-height: 36px; padding: 6px 10px; font-size: 12px; }
  .nav-cta { margin-left: 8px; }
  .nav-cta.button--sm { min-height: 40px; padding: 8px 14px; font-size: 12.5px; }
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .brand img { width: 168px; }
  .nav-toggle { display: block; flex: 0 0 auto; margin-left: auto; }
  .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; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: .2s;
    border-bottom: 1px solid var(--chrome-line);
    box-shadow: 0 18px 40px rgba(7, 21, 46, .12); z-index: 210;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-item { border-bottom: 1px solid var(--chrome-line); width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 15px; }
  .nav-item--lang {
    margin: 0; padding: 12px 0 4px; border-bottom: 0; width: 100%;
  }
  .language-switcher { width: 100%; }
  .language-button {
    width: 100%; justify-content: flex-start; min-height: 48px;
    border-radius: 12px; padding: 12px 14px; font-size: 14px;
  }
  .language-button__chevron { margin-left: auto; }
  .language-popover {
    position: static; width: 100%; margin-top: 8px; box-shadow: none;
    border: 1px solid var(--chrome-line); border-radius: 12px; padding: 8px;
  }
  .nav-cta {
    display: inline-flex; width: 100%; justify-content: center;
    margin: 16px 0 4px; min-height: 48px;
  }
  .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); }
  .footer-grid > div:nth-child(4), .footer-newsletter { grid-column: auto; }
}

@media (max-width: 860px) {
  :root {
    --page-gutter: 28px;
    --shell: min(var(--page-max), calc(100% - var(--page-gutter)));
  }
  .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) {
  .nav-wrap__inner { min-height: 70px; gap: 12px; }
  .brand img { width: 148px; }
  .nav-toggle { width: 42px; height: 42px; }
  .primary-nav {
    padding: 10px 14px 18px;
    max-height: min(80vh, calc(100dvh - 78px));
  }
  .nav-link { padding: 13px 6px; font-size: 14.5px; }
  .utility-bar__right a:nth-child(2) { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-newsletter { grid-column: auto; }
  .button { width: 100%; }
}

/* Business Units — ecosystem mega-menu (centered so full panel stays visible) */
.nav-item--dropdown:has(> .mega-menu[data-bu2-menu]) {
  position: static;
}
.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);
}
.mega-menu[data-bu2-menu].is-open { transform: translate(-50%, 0); }
.bu2-eco { display: grid; grid-template-columns: 290px 1fr; gap: 40px; }
.bu2-eco__intro { display: flex; flex-direction: column; }
.bu2-eco__eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #F36434; }
.bu2-eco__title { margin: 16px 0 0; font-size: 23px; line-height: 1.18; font-weight: 800; letter-spacing: -.01em; color: var(--chrome-ink); }
.bu2-eco__desc { margin: 16px 0 0; font-size: 13px; line-height: 1.65; color: var(--chrome-muted); }
.bu2-eco__btn { margin-top: auto; align-self: flex-start; padding: 13px 26px; border-radius: 999px; background: var(--chrome-navy); color: #fff; font-size: 13px; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.bu2-eco__btn:hover { background: var(--chrome-blue); transform: translateY(-2px); }
.bu2-eco__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 22px; }
.bu2-card { display: flex; align-items: flex-start; gap: 14px; padding: 11px 14px; border-radius: 14px; transition: background .15s ease, transform .15s ease; }
.bu2-card:hover { background: #f2f6fc; transform: translateY(-1px); }
.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; }
.bu2-card__body { display: flex; flex-direction: column; gap: 3px; }
.bu2-card__body strong { font-size: 14px; font-weight: 700; color: var(--chrome-ink); }
.bu2-card__body span { font-size: 12px; line-height: 1.5; color: var(--chrome-muted); }

@media (max-width: 1100px) {
  .nav-item--dropdown:has(> .mega-menu[data-bu2-menu]) { position: relative; }
  .mega-menu[data-bu2-menu] {
    width: 100% !important;
    left: auto;
    right: auto;
    max-height: none;
    overflow: visible;
    padding: 4px 8px 18px !important;
    transform: none;
  }
  .mega-menu[data-bu2-menu].is-open { transform: none; }
  .bu2-eco { grid-template-columns: 1fr; gap: 18px; }
  .bu2-eco__title { font-size: 20px; }
  .bu2-eco__btn { align-self: stretch; text-align: center; }
  .bu2-eco__grid { grid-template-columns: 1fr; gap: 2px; }
}

/* Business Units — dark popup theme */
.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;
}
.bu2-eco__title { color: #ffffff; }
.bu2-eco__desc { color: #c6d3e6; }
.bu2-eco__btn { background: #ffffff; color: #0b1f3a; }
.bu2-eco__btn:hover { background: #e9eef6; color: #0b1f3a; }
.bu2-card:hover { background: rgba(255,255,255,.07); transform: translateY(-1px); }
.bu2-card__body strong { color: #ffffff; }
.bu2-card__body span { color: #aebed3; }

/* ---- Language converter (after Careers) ---- */
.nav-item--lang {
  position: relative;
  margin-left: 8px;
  margin-right: 4px;
  flex: 0 0 auto;
}
.language-switcher { position: relative; }
.language-switcher > summary {
  list-style: none;
  cursor: pointer;
}
.language-switcher > summary::-webkit-details-marker { display: none; }
.language-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px 7px 10px;
  border: 1px solid #D5DEEA;
  border-radius: 999px;
  background: #F7FAFD;
  color: #1B2B44;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.language-button:hover,
.language-switcher[open] .language-button {
  color: var(--chrome-blue);
  border-color: #B7CFFF;
  background: var(--chrome-light);
  box-shadow: 0 0 0 3px rgba(0, 98, 254, .08);
}
.language-button__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: currentColor;
}
.language-button__code { min-width: 1.4em; line-height: 1; }
.language-button__chevron {
  width: 8px;
  height: 8px;
  margin-left: 1px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s ease;
  opacity: .75;
}
.language-switcher[open] .language-button__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}
.language-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 120;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--chrome-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 21, 46, .14);
}
.language-popover__title {
  display: block;
  padding: 4px 10px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--chrome-muted);
}
.language-popover button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #202B3C;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.language-popover button span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.language-popover button small {
  color: var(--chrome-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.language-popover button:hover {
  color: var(--chrome-blue);
  background: #F3F7FC;
}
.language-popover button.is-active {
  color: var(--chrome-blue);
  background: var(--chrome-light);
}
.language-popover button.is-active::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chrome-blue);
  box-shadow: 0 0 0 3px rgba(0, 98, 254, .15);
  flex: 0 0 auto;
}
/* Hide Google Translate chrome */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.skiptranslate,
.goog-te-gadget { height: 0 !important; overflow: hidden !important; }
