
/* =====================================================================
   Bimgraphix Megamenu — STYLES
   Every rule is scoped under .bgx-mm so nothing leaks into the site,
   and the reset below stops site styles leaking into the menu.
   Brand values live in the custom properties on .bgx-mm.
   ===================================================================== */

.bgx-mm {
  --bgx-ink: #0B1320;          /* headings, active text, buttons      */
  --bgx-ink-hover: #1A2638;    /* button hover                        */
  --bgx-text: #3A4352;         /* inactive category text              */
  --bgx-muted: #5B6576;        /* menu items, labels, descriptions    */
  --bgx-line: #E5E7EB;         /* dividers                            */
  --bgx-rail: #F5F6F7;         /* panel 2 background                  */
  --bgx-hover-bg: #EEF0F3;     /* icon button hover                   */
  --bgx-link-hover: #1A5BC4;   /* service link hover                  */
  --bgx-card: #0B1320;         /* featured project card               */
  --bgx-card-img: #1E2A3A;
  --bgx-card-label: #9FB0C8;
  --bgx-card-text: #D5DCE6;
  --bgx-focus: #1A5BC4;
  --bgx-blur: 14px;            /* background blur strength            */
  --bgx-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bgx-panel: max(20%, 300px);/* width of panels 1 and 2             */
  --bgx-ease: cubic-bezier(.2, .7, .2, 1);

  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: flex-end;
  font-family: var(--bgx-font);
  -webkit-font-smoothing: antialiased;
  color: var(--bgx-ink);
}
.bgx-mm[hidden] { display: none !important; }

/* light reset inside the menu */
.bgx-mm *, .bgx-mm *::before, .bgx-mm *::after { box-sizing: border-box; }
.bgx-mm * { font-family: inherit; text-transform: none; letter-spacing: inherit; text-shadow: none; float: none; }
.bgx-mm button { text-transform: none; letter-spacing: inherit; box-shadow: none; min-width: 0; width: auto; height: auto; line-height: inherit; }
.bgx-mm h2, .bgx-mm p, .bgx-mm ul, .bgx-mm li { margin: 0; padding: 0; }
.bgx-mm ul { list-style: none; }
.bgx-mm a { color: inherit; text-decoration: none; }
.bgx-mm button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; text-align: left; -webkit-appearance: none; appearance: none; }
.bgx-mm svg { display: block; flex-shrink: 0; }
.bgx-mm img { display: block; max-width: none; }

/* lock page scroll while open */
html.bgx-mm-lock, html.bgx-mm-lock body { overflow: hidden !important; }
/* panel 3 locks the page and its scrollbar disappears: keep panels 1 and 2
   exactly where they were (no sideways jump), panel 1's white still runs to the edge */
@media (min-width: 861px) {
  html.bgx-mm-lock .bgx-mm { padding-right: var(--bgx-mm-sbw, 0px); }
  html.bgx-mm-lock .bgx-mm .bgx-mm__p1 {
    width: calc(var(--bgx-panel) + var(--bgx-mm-sbw, 0px));
    margin-right: calc(-1 * var(--bgx-mm-sbw, 0px));
    padding-right: calc(24px + var(--bgx-mm-sbw, 0px));
  }
}


/* ---------- blurred page behind the menu ---------- */
.bgx-mm .bgx-mm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 32, 0.5);
  -webkit-backdrop-filter: blur(var(--bgx-blur));
  backdrop-filter: blur(var(--bgx-blur));
  opacity: 0;
  transition: opacity .3s ease;
}
/* panels 1-2 open: the page behind stays usable and scrollable (clicks and the
   mouse wheel pass through everything except the panels themselves) */
.bgx-mm.is-open:not(.is-details) { pointer-events: none; }
.bgx-mm.is-open:not(.is-details) .bgx-mm__panel { pointer-events: auto; }
.bgx-mm.is-open .bgx-mm__backdrop { opacity: 0; }
.bgx-mm.is-details .bgx-mm__backdrop { opacity: 1; } /* blur only once the third panel is open */

/* ---------- panels (shared) ---------- */
.bgx-mm .bgx-mm__panel {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}
.bgx-mm .bgx-mm__p1 { z-index: 1; }
.bgx-mm .bgx-mm__p2 { z-index: 2; }
.bgx-mm .bgx-mm__p3 { z-index: 3; }
@keyframes bgxSlideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.bgx-mm.is-open .bgx-mm__p1 { animation: bgxSlideIn .3s var(--bgx-ease); }
.bgx-mm .bgx-mm__p2, .bgx-mm .bgx-mm__p3 { display: none; }
.bgx-mm.is-exp .bgx-mm__p2 { display: flex; animation: bgxSlideIn .3s var(--bgx-ease); }
.bgx-mm.is-details .bgx-mm__p3 { display: flex; animation: bgxSlideIn .3s var(--bgx-ease); }

.bgx-mm .bgx-mm__spacer { flex: 1 1 auto; min-height: 24px; }

.bgx-mm .bgx-mm__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bgx-muted);
}

/* round icon buttons (close × and back arrows) */
.bgx-mm .bgx-mm__icon-btn {
  width: 48px;
  height: 48px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--bgx-ink);
  transition: background .15s;
}
.bgx-mm .bgx-mm__icon-btn:hover { background: var(--bgx-hover-bg); }

/* left-to-right underline used on all text links */
.bgx-mm .bgx-mm__ul {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1.5px;
  padding-bottom: 4px;
  -webkit-box-decoration-break: slice;
  box-decoration-break: slice;
  transition: background-size .35s var(--bgx-ease), color .2s;
}
.bgx-mm .bgx-mm__ul:hover, .bgx-mm .bgx-mm__ul:focus-visible { background-size: 100% 1.5px; }
.bgx-mm .bgx-mm__link-strong { font-size: 15px; font-weight: 600; color: var(--bgx-ink); }

.bgx-mm a:focus-visible, .bgx-mm button:focus-visible {
  outline: 2px solid var(--bgx-focus);
  outline-offset: 3px;
}

/* × sits exactly over the hamburger that opened the menu (set by megamenu.js) */
.bgx-mm.is-aligned .bgx-mm__p1 [data-bgx-close-all] {
  position: absolute;
  left: var(--bgx-trig-x);
  top: var(--bgx-trig-y);
  transform: translate(-50%, -50%);
  z-index: 5;
}
.bgx-mm.is-aligned .bgx-mm__p1-top { min-height: 48px; }

/* =====================================================================
   PANEL 1 — main menu (right)
   ===================================================================== */
.bgx-mm .bgx-mm__p1 {
  width: var(--bgx-panel);
  flex-shrink: 0;
  background: #fff;
  padding: 24px 24px 28px 32px;
  border-left: 1px solid var(--bgx-line);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.14);   /* same edge shadow as panel 2 */
}
.bgx-mm .bgx-mm__p1-top { display: flex; justify-content: flex-end; }
.bgx-mm .bgx-mm__p1-label { display: block; margin: 20px 0 12px; }
.bgx-mm .bgx-mm__nav { display: flex; flex-direction: column; }
.bgx-mm .bgx-mm__mi {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.8px;
  color: var(--bgx-muted) !important;
  transition: color .15s;
}
.bgx-mm .bgx-mm__mi:hover, .bgx-mm .bgx-mm__mi:focus-visible { color: var(--bgx-ink) !important; }
.bgx-mm .bgx-mm__mi.is-emphasis, .bgx-mm .bgx-mm__mi.is-active { font-weight: 600; }
.bgx-mm .bgx-mm__p1-foot { display: flex; gap: 28px; padding-top: 20px; border-top: 1px solid var(--bgx-line); }
.bgx-mm .bgx-mm__sec { font-size: 15px; font-weight: 500; color: var(--bgx-muted); }
.bgx-mm .bgx-mm__sec:hover, .bgx-mm .bgx-mm__sec:focus-visible { color: var(--bgx-ink); }

/* =====================================================================
   PANEL 2 — Expertise categories (middle)
   ===================================================================== */
.bgx-mm .bgx-mm__p2 {
  width: var(--bgx-panel);
  flex-shrink: 0;
  background: var(--bgx-rail);
  padding: 85px 16px 28px;
  gap: 4px;
  border-left: 1px solid var(--bgx-line);
  border-right: 1px solid var(--bgx-line);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.14);
}
.bgx-mm .bgx-mm__p2-close { position: absolute !important; top: 24px; right: 16px; }
.bgx-mm .bgx-mm__p2-title {
  padding: 0 16px 18px !important;
  font-size: 26px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--bgx-ink);
}
.bgx-mm .bgx-mm__cats { display: flex; flex-direction: column; gap: 4px; }
.bgx-mm .bgx-mm__cat {
  display: flex !important;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 14px 16px !important;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.bgx-mm .bgx-mm__cat:hover { background: #fff; }
.bgx-mm .bgx-mm__cat-num { width: 26px; flex-shrink: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--bgx-muted); }
.bgx-mm .bgx-mm__cat-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.bgx-mm .bgx-mm__cat-title { font-size: 18.5px; line-height: 1.3; font-weight: 500; color: var(--bgx-text); }
.bgx-mm .bgx-mm__cat-count { font-size: 14px; color: var(--bgx-muted); }
.bgx-mm .bgx-mm__cat.is-active { background: #fff; box-shadow: 0 1px 2px rgba(11, 19, 32, 0.06); }
.bgx-mm .bgx-mm__cat.is-active .bgx-mm__cat-num,
.bgx-mm .bgx-mm__cat.is-active .bgx-mm__cat-title { color: var(--bgx-ink); font-weight: 600; }
.bgx-mm .bgx-mm__p2-foot { padding: 8px 16px; }

/* =====================================================================
   PANEL 3 — services (left, widest)
   ===================================================================== */
.bgx-mm .bgx-mm__p3 {
  flex: none;
  width: calc((100% - 2 * var(--bgx-panel)) * 0.85);
  min-width: 0;
  background: #fff;
  padding: 34px clamp(28px, 4vw, 64px) 28px;
  box-shadow: -24px 0 48px rgba(0, 0, 0, 0.22);
}
.bgx-mm .bgx-mm__p3-close { position: absolute !important; top: 24px; right: 24px; z-index: 1; }
.bgx-mm .bgx-mm__detail { flex: 1 0 auto; display: flex; flex-direction: column; gap: 16px; }
.bgx-mm .bgx-mm__detail[hidden] { display: none; }

.bgx-mm .bgx-mm__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 64px 20px 0;
  border-bottom: 1px solid var(--bgx-line);
}
.bgx-mm .bgx-mm__title { font-size: 44px; line-height: 1.08; font-weight: 600; letter-spacing: -1.2px; color: var(--bgx-ink); }
.bgx-mm .bgx-mm__blurb { max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--bgx-muted); }

.bgx-mm .bgx-mm__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  padding-top: 4px !important;
}
.bgx-mm .bgx-mm__services li { display: flex; align-items: center; min-height: 56px; }
.bgx-mm .bgx-mm__svc { font-size: 18px; line-height: 1.6; font-weight: 500; color: var(--bgx-ink); transition: color .2s; }
.bgx-mm .bgx-mm__svc .bgx-mm__ul { transition: background-size .55s cubic-bezier(.4, 0, .2, 1); }
.bgx-mm .bgx-mm__svc:hover, .bgx-mm .bgx-mm__svc:focus-visible { color: var(--bgx-link-hover); }
.bgx-mm .bgx-mm__svc:hover .bgx-mm__ul, .bgx-mm .bgx-mm__svc:focus-visible .bgx-mm__ul { background-size: 100% 1.5px; }

/* grouped services (v3) */
.bgx-mm .bgx-mm__groups {
  columns: 210px auto;   /* groups flow into balanced columns, no gaps */
  column-gap: 40px;
  padding-top: 8px;
}
.bgx-mm .bgx-mm__group { break-inside: avoid; margin-bottom: 26px; }
.bgx-mm .bgx-mm__group-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 6px; padding-bottom: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bgx-muted);
  border-bottom: 2px solid var(--bgx-ink);
}
.bgx-mm .bgx-mm__list { display: flex; flex-direction: column; }
.bgx-mm .bgx-mm__list li { border-bottom: 1px solid var(--bgx-line); }
.bgx-mm .bgx-mm__list .bgx-mm__svc {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px; padding: 9px 0;
  font-size: 16px; line-height: 1.35; font-weight: 500; color: var(--bgx-ink);
}
.bgx-mm .bgx-mm__svc-arr { display: none; }
/* hover: a thin underline draws under the service name from left to right */
.bgx-mm .bgx-mm__list .bgx-mm__svc-t {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  background-position: 0 calc(100% - 2px); /* line sits just under the letters */
  padding-bottom: 0;
  transition: background-size .45s cubic-bezier(.4, 0, .2, 1);
}
.bgx-mm .bgx-mm__list .bgx-mm__svc:hover .bgx-mm__svc-t,
.bgx-mm .bgx-mm__list .bgx-mm__svc:focus-visible .bgx-mm__svc-t { background-size: 100% 1px; }
@media (min-width: 1700px) { .bgx-mm .bgx-mm__groups { columns: 230px auto; column-gap: 56px; } .bgx-mm .bgx-mm__list .bgx-mm__svc { font-size: 17px; } }
@media (max-width: 860px) { .bgx-mm .bgx-mm__groups { columns: 1; } .bgx-mm .bgx-mm__group { margin-bottom: 22px; } }

/* featured project card */
.bgx-mm .bgx-mm__feat {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  min-height: 188px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bgx-card);
  color: #fff !important;
}
.bgx-mm .bgx-mm__feat-img { position: relative; width: 44%; flex-shrink: 0; overflow: hidden; background: var(--bgx-card-img); display: flex; align-items: center; justify-content: center; }
.bgx-mm .bgx-mm__feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--bgx-ease); }
.bgx-mm .bgx-mm__feat:hover .bgx-mm__feat-img img { transform: scale(1.03); }
.bgx-mm .bgx-mm__feat-ph { font-size: 12px; letter-spacing: .5px; color: #8E9BB0; }
.bgx-mm .bgx-mm__feat-body { flex: 1; min-width: 0; padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.bgx-mm .bgx-mm__feat-label { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--bgx-card-label); }
.bgx-mm .bgx-mm__feat-name { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.4px; color: #fff; }
.bgx-mm .bgx-mm__feat-info { display: flex; flex-direction: column; gap: 8px; }
.bgx-mm .bgx-mm__feat-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--bgx-card-text); }
.bgx-mm .bgx-mm__feat-row svg { margin-top: 2px; color: var(--bgx-card-label); }
.bgx-mm .bgx-mm__feat-key { color: var(--bgx-card-label); }
.bgx-mm .bgx-mm__feat-link-wrap { margin-top: auto; }
.bgx-mm .bgx-mm__feat-link { font-size: 14px; font-weight: 600; color: #fff; }
.bgx-mm .bgx-mm__feat:hover .bgx-mm__feat-link { background-size: 100% 1.5px; }

/* buttons */
.bgx-mm .bgx-mm__ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.bgx-mm .bgx-mm__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 28px;
  border-radius: 2px;
  background: var(--bgx-ink);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background .2s;
}
.bgx-mm .bgx-mm__cta:hover { background: var(--bgx-ink-hover); }
.bgx-mm .bgx-mm__cta-arrow { display: inline-flex; transition: transform .2s; }
.bgx-mm .bgx-mm__cta:hover .bgx-mm__cta-arrow { transform: translateX(3px); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* large screens (e.g. 2560×1440) */
@media (min-width: 1700px) {
  .bgx-mm .bgx-mm__services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1700px) and (min-height: 960px) {
  .bgx-mm .bgx-mm__feat { min-height: clamp(260px, 28vh, 380px); }
  .bgx-mm .bgx-mm__feat-name { font-size: 28px; }
  .bgx-mm .bgx-mm__feat-row { font-size: 16px; }
  .bgx-mm .bgx-mm__feat-body { padding: 36px 40px; gap: 16px; }
}

/* small laptops / tablets landscape */
@media (max-width: 1100px) {
  .bgx-mm .bgx-mm__services { grid-template-columns: minmax(0, 1fr); }
}

/* tablets portrait & phones: panels stack on top of each other */
@media (max-width: 860px) {
  .bgx-mm .bgx-mm__p1, .bgx-mm .bgx-mm__p2, .bgx-mm .bgx-mm__p3 {
    position: absolute !important;
    top: 0; right: 0; bottom: 0;
    width: 100%;
    max-width: 440px;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.25);
  }
  .bgx-mm .bgx-mm__p1 { z-index: 1; }
  .bgx-mm .bgx-mm__p2 { z-index: 2; }
  .bgx-mm .bgx-mm__p3 { z-index: 3; padding: 32px 24px 24px; }
  .bgx-mm .bgx-mm__title { font-size: 32px; }
  .bgx-mm .bgx-mm__feat { flex-direction: column; }
  .bgx-mm .bgx-mm__feat-img { width: 100%; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .bgx-mm *, .bgx-mm *::before, .bgx-mm *::after { animation: none !important; transition: none !important; }
}

.bgx-site-hd__menu{display:grid;place-items:center;width:48px;height:48px;margin-right:-9px;padding:0;background:none;border:0;cursor:pointer}.bgx-site-hd__menu span{position:relative;display:block;width:30px;height:20px;border-top:3px solid #fff;border-bottom:3px solid #fff}.bgx-site-hd__menu span::after{content:"";position:absolute;left:0;right:0;top:50%;height:3px;margin-top:-1.5px;background:#fff}.bgx-site-hd__menu:hover span,.bgx-site-hd__menu:hover span::after{border-color:#7FB0F0}.bgx-site-hd__menu:hover span::after{background:#7FB0F0}.bgx-site-hd__menu:focus-visible{outline:3px solid #7FB0F0;outline-offset:2px}

/* language switcher (menu bottom strip, same row as Security & Privacy) */
.bgx-mm .bgx-mm__p1-foot { align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; }
.bgx-mm .bgx-mm__p1-foot .bgx-mm__sec { font-size: 13px; white-space: nowrap; }
.bgx-mm .bgx-mm__lang { order: -1; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; letter-spacing: .03em; color: var(--bgx-muted); white-space: nowrap; }
.bgx-mm .bgx-mm__lang svg { flex: none; margin-right: 1px; opacity: .75; }
.bgx-mm .bgx-mm__lang a { color: var(--bgx-muted); text-decoration: none; }
.bgx-mm .bgx-mm__lang a:hover, .bgx-mm .bgx-mm__lang a:focus-visible { color: var(--bgx-ink); }
.bgx-mm .bgx-mm__lang a.is-on { color: var(--bgx-ink); font-weight: 600; }
.bgx-mm .bgx-mm__lang-dot { color: #B8C0CC; }
