/* =============================
   BALANEX THEME OVERRIDES
   Based on BRAND_COLORS (constants.ts)
   navyDark: #11477e
   brandOrange: #c7603f
   ============================= */

:root {
  --bx-navy-dark: #11477e;
  --bx-navy-light: #1a5a9c;
  --bx-orange: #c7603f;

  /* FIXED: old was #020617 (almost black) */
  --bx-bg-dark: #11477e; /* Correct Balanex navy */

  --bx-text: #f9fafb;
  --bx-text-muted: #cbd5f5;
  --bx-border-subtle: rgba(148, 163, 184, 0.35);
}

/* Keep everything namespaced to .bx-* so we don't fight Elegant too much */

/* ===== HEADER ===== */

.bx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.bx-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.bx-logo img {
  height: 56px;
  width: auto;
  display: block;
}

/* Shared nav layout */

.bx-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bx-nav-left {
  flex: 1 1 auto;
}

.bx-nav-right {
  flex: 0 0 auto;
}

/* Base nav link style */

.bx-nav-link {
  position: relative;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bx-navy-dark);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.bx-nav-link:hover {
  color: var(--bx-orange);
  background-color: #f3f4f6;
}

/* Dropdowns */

.bx-nav-dropdown {
  position: relative;
}

.bx-nav-dropdown-toggle {
  padding-right: 1.6rem;
}

.bx-chevron {
  font-size: 0.7rem;
}

/* Menus */

.bx-nav-dropdown-menu {
  position: absolute;
  top: 2.3rem;
  min-width: 13rem;
  background: #ffffff;
  border-radius: 0.65rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.16s ease;
  z-index: 60;
}

.bx-nav-dropdown-left {
  left: 0;
}

.bx-nav-dropdown-right {
  right: 0;
}

.bx-nav-dropdown:hover .bx-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bx-nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--bx-navy-dark);
  text-decoration: none;
  border-radius: 0.4rem;
}

.bx-nav-dropdown-menu a:hover {
  background: #f3f4f6;
  color: var(--bx-orange);
}

/* Language & phone */

.bx-language-icon,
.bx-phone-icon {
  font-size: 0.9rem;
}

.bx-language,
.bx-phone-link {
  white-space: nowrap;
}

/* Login button */

.bx-login-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  background-color: var(--bx-orange);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(199, 96, 63, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.bx-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(199, 96, 63, 0.4);
  opacity: 0.96;
}

/* Responsive header */

@media (max-width: 960px) {
  .bx-header-inner {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .bx-nav-left {
    order: 2;
    flex-basis: 100%;
    flex-wrap: wrap;
  }

  .bx-nav-right {
    order: 3;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .bx-header-inner {
    padding-bottom: 0.9rem;
  }
}

/* ===== FOOTER ===== */

.bx-footer {
  margin-top: 3rem;

  /* FIXED: change to real Balanex navy */
  background: #11477e !important;

  color: var(--bx-text-muted);
  border-top: 1px solid var(--bx-border-subtle);
  padding: 2.5rem 1.5rem 1.75rem;
  font-size: 0.9rem;
}

.bx-footer-top {
  max-width: 1120px;
  margin: 0 auto 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 3fr);
  gap: 2.25rem;
}

@media (max-width: 960px) {
  .bx-footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

.bx-footer-brand {
  max-width: 420px;
}

.bx-footer-logo img {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
}

.bx-footer-tagline {
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.bx-footer-description {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* CTAs */

.bx-footer-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 0.3rem;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.bx-btn-primary {
  background-color: var(--bx-orange);
  color: #ffffff;
}

.bx-btn-primary:hover {
  background-color: #a94e33;
}

.bx-btn-secondary {
  background-color: #ffffff;
  color: var(--bx-navy-dark);
  border-color: #e5e7eb;
}

.bx-btn-secondary:hover {
  background-color: #f3f4f6;
}

/* Social icons */

.bx-footer-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bx-footer-social img {
  height: 26px;
  width: 26px;
  display: block;
  border-radius: 999px;
}

/* Columns */

.bx-footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.bx-footer-col h3 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.bx-footer-col a {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
  color: var(--bx-text-muted);
  text-decoration: none;
}

.bx-footer-col a:hover {
  color: #ffffff;
}

.bx-footer-text {
  margin-bottom: 0.3rem;
}

.bx-footer-hours {
  font-size: 0.8rem;
  color: #dbeafe;
}

.bx-footer-divider {
  margin: 0.7rem 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

/* Bottom bar */

.bx-footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #dbeafe;
}

.bx-footer-legal {
  display: flex;
  flex-wrap: wra

