/* ==========================================================================
   navbar-override.css — Rimas 2.0 Navbar System
   Owns navbar presentation ONLY.
   Matches global-nav.js injected markup:
   .rbs-navbar
   .rbs-nav-container
   .rbs-brand
   .rbs-logo
   .rbs-wordmark
   .rbs-nav-drawer
   .rbs-nav-links
   .has-dropdown
   .dropdown
   .rbs-contact-pill
   .rbs-burger
   ========================================================================== */

header[data-global-nav] {
  position: relative;
  z-index: 5000;
  min-height: 56px;
}

header[data-global-nav] ul,
header[data-global-nav] li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.rbs-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  width: 100%;
  background: linear-gradient(90deg, #0f2f54 0%, #1b4f7e 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rbs-nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.72rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.rbs-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.rbs-brand:hover,
.rbs-brand:focus-visible {
  text-decoration: none;
  color: #ffffff;
}

.rbs-logo {
  height: 32px;
  width: auto;
  display: block;
}

.rbs-wordmark {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #ffffff;
  white-space: nowrap;
}

.rbs-nav-drawer {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.rbs-nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: 0;
}

.rbs-nav-links > li {
  position: relative;
}

.rbs-nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: #eef5ff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
  opacity: 0.94;
  transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.rbs-nav-links > li > a:hover,
.rbs-nav-links > li > a:focus-visible {
  color: #ffffff;
  opacity: 1;
  transform: translateY(-1px);
  text-decoration: none;
}

.rbs-nav-links > li > a.active {
  color: #ffcc66;
  opacity: 1;
}

.has-dropdown > a::after {
  content: "▾";
  margin-left: 0.22rem;
  font-size: 0.72rem;
  line-height: 1;
  transform: translateY(1px);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  margin-top: 0.55rem;
  padding: 0.5rem 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(12, 59, 102, 0.10);
  display: none;
  z-index: 6000;
}

.rbs-nav-links > li:last-child .dropdown {
  left: auto;
  right: 0;
}

.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.dropdown li {
  width: 100%;
}

.dropdown li a {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  color: #12223b;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown li a:hover,
.dropdown li a:focus-visible {
  background: #edf3fb;
  color: #0f2f54;
  text-decoration: none;
}

.dropdown li a.active {
  color: #0f2f54;
  background: rgba(15, 47, 84, 0.08);
}

.dropdown-section-label {
  padding: 0.45rem 1rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 47, 84, 0.62);
  cursor: default;
  user-select: none;
}

.dropdown-divider {
  height: 1px;
  margin: 0.4rem 0;
  background: rgba(15, 47, 84, 0.10);
}

.has-dropdown.is-open > .dropdown {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    display: block;
  }
}

.rbs-contact-pill {
  background: #f4c76a;
  color: #12223b !important;
  padding: 0.42rem 1.15rem !important;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  opacity: 1 !important;
}

.rbs-contact-pill:hover,
.rbs-contact-pill:focus-visible {
  background: #ffbd32;
  color: #12223b !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.rbs-burger {
  display: none;
  width: 40px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.rbs-burger span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rbs-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.rbs-nav-mobile-footer {
  display: none;
}

/* ==========================================================================
   Mobile drawer
   ========================================================================== */
@media (max-width: 991.98px) {
  .rbs-nav-container {
    position: relative;
    padding: 0.7rem 1rem;
  }

  .rbs-burger {
    display: inline-flex;
    position: relative;
    z-index: 1001;
  }

  .rbs-nav-drawer {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 1000;
    flex-direction: column;
    height: calc(100dvh - 72px);
    max-height: calc(100dvh - 72px);
    overflow: hidden;
    overflow-x: hidden;
    background: linear-gradient(180deg, #0f2f54 0%, #1b4f7e 100%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.25);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: stretch;
  }

  .rbs-nav-drawer.open {
    display: flex;
  }

  .rbs-nav-links {
    position: static;
    display: block !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin: 0;
    margin-left: 0;
    padding: 0.9rem 1rem 0.5rem;
    gap: 0;
    text-align: left;
  }

  .rbs-nav-links > li {
    width: 100%;
    text-align: left;
  }

  .rbs-nav-links > li + li {
    margin-top: 0.5rem;
  }

  .rbs-nav-links > li > a {
    display: block;
    width: 100%;
    padding: 0.42rem 0.1rem;
    opacity: 1;
    font-size: 1.02rem;
    font-weight: 650;
    color: #f4f7fd;
    letter-spacing: 0.01em;
    text-align: left;
    white-space: normal;
  }

  .has-dropdown > a::after {
    content: "";
  }

  .dropdown {
    position: static;
    display: block;
    background: transparent;
    box-shadow: none;
    border: 0;
    min-width: 0;
    margin-top: 0.05rem;
    padding: 0.08rem 0 0.3rem;
    text-align: left;
  }

  .dropdown::before {
    content: none;
  }

  .dropdown li a {
    padding: 0.28rem 0 0.28rem 1rem;
    color: #deebff;
    background: transparent;
    font-size: 0.97rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
  }

  .dropdown li a:hover,
  .dropdown li a:focus-visible {
    color: #ffffff;
    background: transparent;
    text-decoration: underline;
  }

  .dropdown li a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
  }

  .dropdown-section-label {
    padding: 0.38rem 0 0.14rem 1rem;
    color: rgba(255, 255, 255, 0.72);
    text-align: left;
  }

  .dropdown-divider {
    margin: 0.45rem 0 0.35rem;
    background: rgba(255, 255, 255, 0.15);
  }

  .rbs-contact-item {
    display: none !important;
  }

  .rbs-nav-mobile-footer {
    display: block;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 0.72rem 1rem 1rem;
    background: transparent;
    border-top: 0;
  }

  .rbs-contact-pill--mobile {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: center;
  }
}

@media (min-width: 992px) {
  .rbs-nav-mobile-footer {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .rbs-wordmark {
    font-size: 0.92rem;
  }

  .rbs-logo {
    height: 28px;
  }
}