/* ==========================================================================
   Beveron site navigation — pairs with /nav.html (shared include) and /js-new/nav-new.js
   Every rule is scoped under .bvNav so it cannot restyle the host page.
   The only rules outside the scope are the --bvNav-h token and the
   #nav-new-placeholder skeleton that reserves the bar before the include loads.
   Typography is inherited from the common stylesheet font (Inter).
   No pure white: off-white is #f8fbfd.
   ========================================================================== */

:root { --bvNav-h: 65px; }

/* Skeleton bar while the include is still loading: same paint as the real bar,
   fixed so it never takes space in the document flow (no layout shift). */
#nav-new-placeholder:empty {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  height: var(--bvNav-h);
  background: rgba(248, 251, 253, .88);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}

/* ---------- root + reset (defends against Bootstrap 4/5 and legacy site CSS) ---------- */
.bvNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  height: var(--bvNav-h);
  margin: 0; padding: 0; border: 0;
  background: transparent;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.55;
  color: #122a44; text-align: left;
  -webkit-text-size-adjust: 100%;
}
/* The include ships an inline anti-flash rule (.bvNav hidden + clipped until this sheet applies). */
nav.bvNav { visibility: visible; overflow: visible; }
/* In-flow spacer shipped after the fixed bar so page content starts below it. */
.bvNav-spacer { display: block; height: var(--bvNav-h); margin: 0; padding: 0; }
.bvNav *, .bvNav *::before, .bvNav *::after { box-sizing: border-box; }
.bvNav ul { margin: 0; padding: 0; list-style: none; }
.bvNav li { margin: 0; padding: 0; float: none; }
.bvNav li::before, .bvNav li::after { content: none; }
.bvNav a { text-decoration: none; background-image: none; }
.bvNav a:hover, .bvNav a:focus { text-decoration: none; }
.bvNav img { max-width: none; vertical-align: middle; border: 0; }
.bvNav button {
  margin: 0; font: inherit; color: inherit; text-transform: none;
  background: none; border: 0; border-radius: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.bvNav :focus { outline: none; box-shadow: none; }
.bvNav :focus-visible { outline: 2px solid #0084c8; outline-offset: 2px; }

/* Blurred translucent bar painted on a pseudo-element: a backdrop-filter on the
   fixed root itself would trap the fixed mobile menu inside the 65px bar. */
.bvNav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(248, 251, 253, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.bvNav .bvNav-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.bvNav .bvNav-ico { display: block; width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ---------- container (container-xl) ---------- */
.bvNav .bvNav-inner {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
  width: 100%; height: 100%; margin: 0 auto; padding: 0 12px;
}
@media (min-width: 1200px) { .bvNav .bvNav-inner { max-width: 1140px; } }
@media (min-width: 1400px) { .bvNav .bvNav-inner { max-width: 1320px; } }

.bvNav .bvNav-brand { display: block; flex-shrink: 0; margin-right: 16px; padding: 0; border-radius: 6px; }
.bvNav .bvNav-brand img { display: block; width: auto; height: 42px; }

/* ---------- right cluster: phone, Arabic, CTA, burger ---------- */
.bvNav .bvNav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.bvNav .bvNav-desk { display: none; }
.bvNav .bvNav-phone, .bvNav .bvNav-ar {
  align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 8px; border-radius: 999px;
  color: #374151; font-size: 16px; font-weight: 400; white-space: nowrap;
  transition: color .15s ease-in-out, background-color .15s ease-in-out;
}
.bvNav .bvNav-phone { font-size: 15px; font-weight: 500; }
.bvNav .bvNav-phone .bvNav-ico { color: #006b9f; }
.bvNav .bvNav-phone:hover, .bvNav .bvNav-ar:hover { color: #122a44; background: #f1f5f9; }
.bvNav .bvNav-phonetext { display: none; }

.bvNav .bvNav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px;
  background: #006b9f; color: #f8fbfd;
  font-size: 16px; font-weight: 500; line-height: 1.5; text-align: center; white-space: nowrap;
  transition: transform 160ms ease-out, background-color 200ms ease;
}
.bvNav .bvNav-cta:hover, .bvNav .bvNav-cta:focus { background: #005a86; color: #f8fbfd; }
.bvNav .bvNav-cta:active { transform: scale(.97); }
.bvNav .bvNav-cta-sm { min-height: 41px; font-size: 14px; }
.bvNav .bvNav-cta-block { display: flex; width: 100%; }
.bvNav .bvNav-cta-top { display: none; }
@media (min-width: 576px) { .bvNav .bvNav-cta-top { display: inline-flex; } }

.bvNav .bvNav-burger {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; min-height: 44px; padding: 4px 12px;
  color: rgba(33, 37, 41, .65);
  border: 1px solid rgba(33, 37, 41, .15); border-radius: 6px;
  line-height: 1; transition: box-shadow .15s ease-in-out;
}
.bvNav .bvNav-burger:hover { color: #122a44; }
.bvNav .bvNav-ico-burger { width: 26px; height: 26px; }

/* ---------- link list ---------- */
.bvNav .bvNav-list { display: flex; flex-direction: column; }
.bvNav .bvNav-item { position: relative; }

.bvNav .bvNav-link {
  display: flex; align-items: center; width: 100%;
  min-height: 44px; padding: 10px 14px; border-radius: 999px;
  color: #374151; font-size: 15px; font-weight: 500; line-height: 1.55; text-align: left;
  white-space: nowrap;
  transition: color .15s ease-in-out, background-color .15s ease-in-out;
}
.bvNav .bvNav-link:hover, .bvNav .bvNav-link[aria-expanded="true"] { color: #122a44; background: #f1f5f9; }
.bvNav .bvNav-link:focus-visible { outline: 2px solid #0084c8; outline-offset: 2px; }
.bvNav .bvNav-toggle::after {
  content: ""; display: inline-block; margin-left: .255em;
  border-top: .3em solid; border-right: .3em solid transparent; border-bottom: 0; border-left: .3em solid transparent;
}
.bvNav .bvNav-ico-inline { margin-right: 10px; color: #006b9f; }

/* ---------- dropdown panels ---------- */
.bvNav .bvNav-panel {
  display: none; z-index: 1000;
  min-width: 10rem; margin: 10px 0 0; padding: 10px;
  background: #f8fbfd; color: #212529; font-size: 16px; text-align: left;
  border: 1px solid #e6edf3; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(17, 40, 60, .14);
  transform-origin: top center;
}
.bvNav .bvNav-panel.is-open { display: block; animation: bvNav-drop 180ms cubic-bezier(.23, 1, .32, 1); }
@keyframes bvNav-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bvNav-fade { from { opacity: 0; } to { opacity: 1; } }

.bvNav .bvNav-panel-lg { width: min(760px, 92vw); }
.bvNav .bvNav-panel-res { width: min(860px, 94vw); }
.bvNav .bvNav-panel-about { width: min(560px, 92vw); }

.bvNav .bvNav-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }

/* product item */
.bvNav .bvNav-mitem {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; border-radius: 14px; color: #122a44;
  transition: background-color 180ms ease;
}
.bvNav .bvNav-mitem:hover, .bvNav .bvNav-mitem:focus { background: #f3f8fc; color: #122a44; }
.bvNav .bvNav-micon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.bvNav .bvNav-micon img { display: block; width: 44px; height: 44px; object-fit: contain; }
.bvNav .bvNav-mname { display: block; font-size: 15px; font-weight: 700; }
.bvNav .bvNav-mdesc { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: #4b5563; }
.bvNav .bvNav-mfoot {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin-top: 14px; padding: 14px; border-radius: 14px;
  background: #f6f9fc; font-size: 14px; color: #374151;
}

/* resource / about item */
.bvNav .bvNav-rlink {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 8px 10px; border-radius: 12px;
  color: #122a44; font-size: 14.5px; font-weight: 500; line-height: 1.3;
  transition: background-color 160ms ease;
}
.bvNav .bvNav-rlink:hover, .bvNav .bvNav-rlink:focus { background: #f3f8fc; color: #122a44; }
.bvNav .bvNav-ricon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; background: #eef6fb; color: #006b9f;
}
.bvNav .bvNav-mitem:focus-visible, .bvNav .bvNav-rlink:focus-visible { outline-offset: -2px; }
.bvNav .bvNav-ricon img { display: block; width: 28px; height: 28px; object-fit: contain; }

/* described item: icon tile, bold title and a grey one-line description (same voice as product items) */
.bvNav .bvNav-ritem { align-items: flex-start; padding: 10px; }
.bvNav .bvNav-rtext { display: block; min-width: 0; }
.bvNav .bvNav-rname { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.35; color: #122a44; }
.bvNav .bvNav-rdesc { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; line-height: 1.45; color: #4b5563; }

/* secondary solution links (folder-specific extras under the product grid) */
.bvNav .bvNav-sub { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e6edf3; }

/* ---------- mobile offcanvas (below 992px) ---------- */
.bvNav .bvNav-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column;
  width: 400px; max-width: 88vw; height: 100%;
  background: #f8fbfd; border-left: 1px solid rgba(0, 0, 0, .175);
  visibility: hidden; transform: translateX(100%);
  transition: transform .3s ease-in-out, visibility 0s linear .3s;
  outline: 0;
}
.bvNav .bvNav-menu.is-open { visibility: visible; transform: none; transition: transform .3s ease-in-out; }
.bvNav .bvNav-menuhead { display: flex; align-items: center; justify-content: space-between; padding: 16px; }
.bvNav .bvNav-menutitle { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; color: #122a44; }
.bvNav .bvNav-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: -12px -12px -12px auto; border-radius: 6px;
  color: #000; opacity: .5; transition: opacity .15s ease;
}
.bvNav .bvNav-close:hover { opacity: .75; }
.bvNav .bvNav-close:focus-visible { opacity: 1; }
.bvNav .bvNav-menubody { flex-grow: 1; padding: 16px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.bvNav .bvNav-backdrop {
  position: fixed; inset: 0; z-index: 1;
  background: #000; opacity: 0; transition: opacity .15s linear;
}
.bvNav .bvNav-backdrop[hidden] { display: none; }
.bvNav .bvNav-backdrop.is-visible { opacity: .5; }

.bvNav .bvNav-mob { display: block; }
.bvNav .bvNav-xs { display: block; margin-top: 16px; }
@media (min-width: 576px) { .bvNav .bvNav-xs { display: none; } }

@media (max-width: 991.98px) {
  .bvNav .bvNav-panel { width: 100%; margin-top: 0; padding: 4px 0; border: 0; border-radius: 18px; box-shadow: none; }
}

/* ---------- desktop (992px and up) ---------- */
@media (min-width: 992px) {
  .bvNav .bvNav-burger, .bvNav .bvNav-menuhead, .bvNav .bvNav-backdrop, .bvNav .bvNav-mob { display: none !important; }
  .bvNav .bvNav-desk { display: inline-flex; }

  .bvNav .bvNav-actions { order: 3; }
  .bvNav .bvNav-menu {
    position: static; z-index: auto; flex-grow: 1;
    width: auto; max-width: none; height: auto;
    background: transparent; border: 0;
    visibility: visible; transform: none; transition: none;
  }
  .bvNav .bvNav-menubody { display: flex; flex-grow: 0; padding: 0; overflow: visible; }
  .bvNav .bvNav-list { flex-direction: row; gap: 4px; margin: 0 auto; }
  .bvNav .bvNav-link { width: auto; }

  .bvNav .bvNav-panel {
    position: absolute; top: 100%; left: 50%;
    translate: calc(-50% + var(--bvNav-shift, 0px)) 0;
  }
  .bvNav .bvNav-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bvNav .bvNav-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* described items make panels taller: keep every panel inside the viewport */
  .bvNav .bvNav-panel { max-height: calc(100vh - var(--bvNav-h) - 16px); overflow-y: auto; overscroll-behavior: contain; }
  .bvNav .bvNav-panel-lg { width: min(860px, 94vw); }
}
/* small desktop / tablet landscape: solution sub-block in 2 columns, 3 from 1200px */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .bvNav .bvNav-sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .bvNav .bvNav-phone { padding: 0 14px; }
  .bvNav .bvNav-phonetext { display: inline; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bvNav .bvNav-panel.is-open { animation: bvNav-fade 120ms ease; }
  .bvNav .bvNav-menu, .bvNav .bvNav-menu.is-open, .bvNav .bvNav-backdrop,
  .bvNav .bvNav-link, .bvNav .bvNav-cta, .bvNav .bvNav-mitem, .bvNav .bvNav-rlink, .bvNav .bvNav-phone, .bvNav .bvNav-ar, .bvNav .bvNav-close { transition: none; }
  .bvNav .bvNav-cta:active { transform: none; }
}

/* ---------- forced colours (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .bvNav::before { border-bottom-color: CanvasText; }
  .bvNav .bvNav-panel, .bvNav .bvNav-menu { border: 1px solid CanvasText; }
}

/* Light-only design: stop phone browsers (Samsung Internet, Chrome auto-dark) from repainting the page dark. */
:root{color-scheme:only light}
