/* Seagate header menu.
 *
 * Isolation note: Elementor's global kit styles bare elements with selectors
 * like `.elementor-kit-123 button` — specificity (0,1,1). Every rule below is
 * therefore scoped through `.sg-nav` and targets a class, never a bare element,
 * which lands at (0,2,0) or higher and wins without a single !important.
 *
 * Sizes are in px, not rem, so a theme that changes the root font size cannot
 * inflate the panel.
 */

.sg-nav {
  /* Panel interior — self-contained, independent of the site palette. */
  --sg-ink: #232B33;
  --sg-ink-2: #5C666F;
  --sg-ink-3: #8B939A;
  --sg-accent: #C93B22;
  --sg-accent-ink: #A02D18;
  --sg-accent-soft: #FBEDE9;
  --sg-surface: #FFFFFF;
  --sg-rail-bg: #F5F3F0;
  --sg-line-soft: #EFECE7;
  --sg-shadow: 0 18px 42px -14px rgba(35, 43, 51, .26), 0 2px 6px rgba(35, 43, 51, .06);

  /* Top bar — inherits the header's own colour by default so the nav keeps
     looking like the rest of the site. Set these to override. */
  --sg-bar-ink: currentColor;
  --sg-bar-ink-active: var(--sg-accent);
  --sg-bar-size: 15px;

  position: relative;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.sg-nav *,
.sg-nav *::before,
.sg-nav *::after {
  box-sizing: border-box;
}

.sg-nav [hidden] {
  display: none !important;
}

/* ---------- top bar ---------- */

.sg-nav .sg-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-nav .sg-nav__list > li {
  position: static;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-nav .sg-nav__list > li::before,
.sg-nav .sg-nav__list > li::marker {
  content: none;
}

.sg-nav .sg-nav__link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background: none;
  background-color: transparent;
  box-shadow: none;
  font-family: inherit;
  font-weight: 700;
  font-size: var(--sg-bar-size);
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sg-bar-ink);
  text-decoration: none;
  cursor: pointer;
  margin: 0;
  padding: 18px 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 3px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
  min-height: 0;
  width: auto;
}

.sg-nav .sg-nav__link:hover,
.sg-nav .sg-nav__link:focus-visible {
  background: none;
  background-color: transparent;
  color: var(--sg-bar-ink-active);
}

.sg-nav .sg-nav__link:focus-visible {
  outline: 2px solid var(--sg-bar-ink-active);
  outline-offset: -4px;
}

.sg-nav .sg-nav__link[aria-expanded="true"] {
  background: none;
  background-color: transparent;
  color: var(--sg-bar-ink-active);
  border-bottom-color: var(--sg-bar-ink-active);
}

.sg-nav .sg-caret {
  flex: none;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 140ms ease;
}

.sg-nav .sg-nav__link[aria-expanded="true"] .sg-caret {
  transform: rotate(180deg);
}

/* ---------- panels ---------- */

.sg-nav .sg-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  background: var(--sg-surface);
  color: var(--sg-ink);
  border-top: 1px solid var(--sg-line-soft);
  box-shadow: var(--sg-shadow);
  text-align: left;
}

.sg-nav .sg-panel.is-open {
  display: block;
  animation: sg-drop 170ms cubic-bezier(.2, .7, .3, 1);
}

@keyframes sg-drop {
  from { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .sg-nav .sg-panel.is-open { animation: none; }
  .sg-nav .sg-caret,
  .sg-nav .sg-nav__link,
  .sg-nav .sg-link { transition: none; }
}

/* Services-style dropdown sizes to its content, within limits.
 *
 * The horizontal padding is load-bearing: .sg-link carries a -8px side margin
 * so its hover background bleeds into the surrounding padding. Without padding
 * here that margin pushes the background outside the panel.
 *
 * max-width stops one very long label — "Streamlined Procurement Solutions in
 * Europe" — from stretching the panel to twice the width of the other six.
 */
.sg-nav .sg-panel--list {
  left: auto;
  right: auto;
  min-width: 260px;
  max-width: 360px;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
}

.sg-nav .sg-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-nav .sg-panel--list .sg-link {
  padding: 8px;
}

.sg-nav .sg-panel--list .sg-link__label {
  white-space: normal;
}

.sg-nav .sg-list li,
.sg-nav .sg-group__list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-nav .sg-list li::before,
.sg-nav .sg-group__list li::before,
.sg-nav .sg-list li::marker,
.sg-nav .sg-group__list li::marker {
  content: none;
}

/* ---------- two-pane mega ---------- */

.sg-nav .sg-mega {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  /* stretch, not start — otherwise the rail's background stops at its last
     item and leaves a bare block under it. */
  align-items: stretch;
}

/* Outline layout — every origin an equal, routes nested where they exist.
   Sized to its content and anchored under its own nav item rather than spanning
   the header: a handful of short links in a full-width panel reads as empty. */
.sg-nav .sg-panel--outline {
  left: auto;
  right: auto;
  /* Wide enough for two 190px columns plus the gap and padding, so a tall
     origin sits beside the short ones instead of below them. */
  min-width: 520px;
  max-width: 760px;
  border-radius: 0 0 8px 8px;
}

.sg-nav .sg-mega--outline {
  display: block;
  padding: 18px 22px 20px;
}

.sg-nav .sg-outline {
  column-width: 190px;
  column-gap: 34px;
  max-width: 1000px;
}

.sg-nav .sg-origin {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 20px;
}

.sg-nav .sg-origin__link {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--sg-ink);
  text-decoration: none;
  padding: 0 0 7px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--sg-line-soft);
}

.sg-nav .sg-origin__link:hover,
.sg-nav .sg-origin__link:focus-visible {
  color: var(--sg-accent);
  border-bottom-color: var(--sg-accent);
}

.sg-nav .sg-origin__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-nav .sg-origin__list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-nav .sg-origin__list li::before,
.sg-nav .sg-origin__list li::marker {
  content: none;
}

.sg-nav .sg-rail {
  background: var(--sg-rail-bg);
  border-right: 1px solid var(--sg-line-soft);
  padding: 8px 0 0;
  max-height: min(560px, 74vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sg-nav .sg-rail__item {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background: none;
  background-color: transparent;
  box-shadow: none;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 18px 9px 21px;
  color: var(--sg-ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: background 140ms ease;
  min-height: 0;
}

.sg-nav .sg-rail__item:hover {
  background: rgba(255, 255, 255, .75);
  color: var(--sg-ink);
}

.sg-nav .sg-rail__item:focus-visible {
  outline: 2px solid var(--sg-accent);
  outline-offset: -3px;
}

.sg-nav .sg-rail__item[aria-selected="true"] {
  background: var(--sg-surface);
  border-left-color: var(--sg-accent);
  color: var(--sg-accent-ink);
}

.sg-nav .sg-rail__count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--sg-ink-3);
  font-variant-numeric: tabular-nums;
}

.sg-nav .sg-rail__item[aria-selected="true"] .sg-rail__count {
  color: var(--sg-accent);
}

.sg-nav .sg-rail__aside {
  border-top: 1px solid var(--sg-line-soft);
  margin-top: 8px;
  padding: 12px 21px 16px;
}

.sg-nav .sg-rail__asideTitle {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sg-ink-3);
  margin-bottom: 6px;
}

.sg-nav .sg-rail__asideLink {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sg-ink-2);
  text-decoration: none;
  padding: 3px 0;
}

.sg-nav .sg-rail__asideLink:hover,
.sg-nav .sg-rail__asideLink:focus-visible {
  color: var(--sg-accent);
  text-decoration: underline;
}

.sg-nav .sg-pane {
  padding: 20px 24px 22px;
}

.sg-nav .sg-pane__head {
  display: flex;
  align-items: baseline;
  gap: 4px 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sg-line-soft);
}

.sg-nav .sg-pane__title {
  margin: 0;
  padding: 0;
  min-width: 0;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sg-ink);
}

.sg-nav .sg-pane__count {
  font-size: 13px;
  color: var(--sg-ink-2);
}

/* Flows inline after the count rather than being pushed right.
 *
 * With margin-left:auto the link stays right-aligned even after it wraps, so a
 * long origin — "Bosnia and Herzegovina" — drops it onto its own line with a
 * gap beside it. Flex cannot right-align on one line and left-align on the
 * next, so the link flows with the text instead and wraps under the title
 * without looking broken. */
.sg-nav .sg-pane__hub {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--sg-accent);
  text-decoration: none;
  white-space: nowrap;
}

.sg-nav .sg-pane__hub::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sg-ink-3);
  vertical-align: middle;
  margin: -2px 9px 0 1px;
}

.sg-nav .sg-pane__hub:hover,
.sg-nav .sg-pane__hub:focus-visible {
  color: var(--sg-accent-ink);
  text-decoration: underline;
}

/* Multi-column, not grid: groups differ wildly in length (one destination vs
   seven), and grid rows would leave a hole under every short group. Columns
   pack them and keep each group intact. */
.sg-nav .sg-groups {
  column-width: 190px;
  column-gap: 34px;
  max-width: 1000px;
}

.sg-nav .sg-group {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 20px;
}

.sg-nav .sg-group__title {
  margin: 0 0 8px;
  padding: 0 0 7px;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sg-ink-3);
  border-bottom: 1px solid var(--sg-line-soft);
}

.sg-nav .sg-group__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-nav .sg-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--sg-ink);
  background: none;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  padding: 5px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  transition: background 140ms ease, color 140ms ease;
}

.sg-nav .sg-link:hover,
.sg-nav .sg-link:focus-visible {
  background: var(--sg-accent-soft);
  color: var(--sg-accent-ink);
  outline: none;
}

.sg-nav .sg-link__arrow {
  flex: none;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--sg-ink-3);
  border-right: 1.5px solid var(--sg-ink-3);
  transform: rotate(45deg);
}

.sg-nav .sg-link:hover .sg-link__arrow,
.sg-nav .sg-link:focus-visible .sg-link__arrow {
  border-color: var(--sg-accent);
}

.sg-nav .sg-link__label {
  font-weight: 600;
}

.sg-nav .sg-mega__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 24px;
  border-top: 1px solid var(--sg-line-soft);
  background: var(--sg-rail-bg);
}

.sg-nav .sg-mega__all {
  font-size: 13px;
  font-weight: 700;
  color: var(--sg-ink);
  text-decoration: none;
}

.sg-nav .sg-mega__all:hover,
.sg-nav .sg-mega__all:focus-visible {
  color: var(--sg-accent);
  text-decoration: underline;
}

.sg-nav .sg-mega__cta {
  margin-left: auto;
  background: var(--sg-accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
}

.sg-nav .sg-mega__cta:hover,
.sg-nav .sg-mega__cta:focus-visible {
  background: var(--sg-accent-ink);
  color: #fff;
}

/* ---------- mobile ---------- */

.sg-nav .sg-burger,
.sg-nav .sg-close,
.sg-nav .sg-back,
.sg-nav .sg-nav__sheetHead,
.sg-nav .sg-nav__scrim {
  display: none;
}

@media (max-width: 1024px) {
  .sg-nav .sg-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 0;
    background: none;
    background-color: transparent;
    box-shadow: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    color: var(--sg-bar-ink);
  }

  .sg-nav .sg-burger__bars,
  .sg-nav .sg-burger__bars::before,
  .sg-nav .sg-burger__bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .sg-nav .sg-burger__bars { position: relative; }
  .sg-nav .sg-burger__bars::before { position: absolute; top: -6px; }
  .sg-nav .sg-burger__bars::after  { position: absolute; top: 6px; }

  .sg-nav .sg-nav__scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(35, 43, 51, .45);
    z-index: 90;
  }

  .sg-nav .sg-nav__sheet {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(370px, 90vw);
    background: var(--sg-surface);
    color: var(--sg-ink);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 200ms cubic-bezier(.2, .7, .3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .sg-nav.is-open .sg-nav__sheet { transform: translateX(0); }

  @media (prefers-reduced-motion: reduce) {
    .sg-nav .sg-nav__sheet { transition: none; }
  }

  .sg-nav .sg-nav__sheetHead {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--sg-line-soft);
    flex: none;
  }

  .sg-nav .sg-nav__sheetTitle {
    font-weight: 700;
    font-size: 15px;
    color: var(--sg-ink);
  }

  .sg-nav .sg-back,
  .sg-nav .sg-close {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 0;
    background: none;
    background-color: transparent;
    box-shadow: none;
    font-family: inherit;
    cursor: pointer;
    color: var(--sg-ink-2);
    font-weight: 700;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    padding: 6px 4px;
    margin: 0;
    min-height: 0;
    width: auto;
  }

  .sg-nav .sg-back { display: inline-flex; align-items: center; gap: 5px; }
  .sg-nav .sg-back[hidden] { display: none; }
  .sg-nav .sg-close { display: inline-block; margin-left: auto; font-size: 24px; line-height: 1; }

  .sg-nav .sg-nav__list {
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
  }

  .sg-nav .sg-nav__list > li {
    display: block;
    border-bottom: 1px solid var(--sg-line-soft);
  }

  /* Only the active branch is visible; the rest is stacked out of view. */
  .sg-nav.is-drilled .sg-nav__list > li:not(.is-active) { display: none; }
  .sg-nav.is-drilled .sg-nav__list > li.is-active > .sg-nav__link { display: none; }
  .sg-nav.is-drilled .sg-nav__list > li.is-active { border-bottom: 0; }

  .sg-nav .sg-nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 0;
    min-height: 48px;
    color: var(--sg-ink);
  }

  .sg-nav .sg-nav__link[aria-expanded="true"] {
    border-bottom-color: transparent;
    color: var(--sg-ink);
  }

  .sg-nav .sg-caret { transform: rotate(-90deg); }
  .sg-nav .sg-nav__link[aria-expanded="true"] .sg-caret { transform: rotate(-90deg); }

  .sg-nav .sg-panel {
    position: static;
    box-shadow: none;
    border-top: 0;
    min-width: 0;
  }

  .sg-nav .sg-mega { display: block; }

  .sg-nav .sg-rail {
    background: none;
    border-right: 0;
    max-height: none;
    padding: 0;
  }

  .sg-nav .sg-rail__item {
    border-left: 0;
    border-bottom: 1px solid var(--sg-line-soft);
    padding: 14px 16px;
    min-height: 48px;
  }

  .sg-nav .sg-rail__item[aria-selected="true"] {
    background: none;
    color: var(--sg-ink);
  }

  .sg-nav .sg-rail__aside { padding: 14px 16px; }

  /* On mobile the rail drills into a pane instead of swapping it in place. */
  .sg-nav .sg-panes { display: none; }
  .sg-nav .sg-panel.is-drilled .sg-rail { display: none; }
  .sg-nav .sg-panel.is-drilled .sg-panes { display: block; }
  .sg-nav .sg-panel.is-drilled .sg-mega__foot { display: none; }

  .sg-nav .sg-pane { padding: 0 0 16px; }

  .sg-nav .sg-pane__head {
    padding: 14px 16px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--sg-line-soft);
  }

  .sg-nav .sg-pane__hub { flex-basis: 100%; }
  .sg-nav .sg-pane__hub::before { content: none; }

  .sg-nav .sg-groups { display: block; column-width: auto; columns: 1; max-width: none; }
  .sg-nav .sg-group { margin: 0; }

  .sg-nav .sg-panel--outline { min-width: 0; max-width: none; border-radius: 0; }
  .sg-nav .sg-mega--outline { padding: 0; }
  .sg-nav .sg-mega--outline .sg-pane__head { padding: 14px 16px; margin-bottom: 0; }
  .sg-nav .sg-outline { column-width: auto; columns: 1; max-width: none; }
  .sg-nav .sg-origin { margin: 0; }

  .sg-nav .sg-origin__link {
    padding: 13px 16px;
    margin: 0;
    border-bottom: 1px solid var(--sg-line-soft);
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .sg-nav .sg-origin__list .sg-link { padding-left: 32px; }

  .sg-nav .sg-group__title {
    margin: 0;
    padding: 12px 16px 6px;
    border-bottom: 0;
    background: var(--sg-rail-bg);
  }

  .sg-nav .sg-link {
    margin: 0;
    border-radius: 0;
    padding: 13px 16px;
    border-bottom: 1px solid var(--sg-line-soft);
    min-height: 48px;
  }

  .sg-nav .sg-panel--list { max-width: none; padding: 0; }
  .sg-nav .sg-panel--list .sg-link { padding: 13px 16px; }
  .sg-nav .sg-list { padding: 0; }

  .sg-nav .sg-mega__foot { padding: 16px; }
  .sg-nav .sg-mega__cta { margin-left: 0; }
}

/* Nothing below this line targets anything outside .sg-nav.
 *
 * An earlier version hid Elementor's own dropdown and toggle with :has().
 * Removed: when Elementor renders its dropdown before the main bar, the
 * component lands inside that dropdown and the rule hides the menu itself.
 * Replace the widget with a Shortcode widget holding [seagate_menu] instead —
 * see README.
 */
