/* =========================================================
   BADAWY NEXUS PUBLIC BLUE NAV + FOOTER UNIFIER
   Makes public pages match pricing page blue branding.
   ========================================================= */

:root{
  --bnx-public-blue:#063fbd;
  --bnx-public-blue-dark:#002b86;
  --bnx-public-blue-light:#0b57ff;
  --bnx-public-white:#ffffff;
  --bnx-public-soft:#d9e7ff;
  --bnx-public-line:rgba(255,255,255,.22);
  --bnx-public-green:#08c94f;
}

/* NAVIGATION BAR — public pages */
.nav,
.bnx-nav,
#topnav,
header.nav,
header.bnx-nav,
header#topnav,
.public-nav,
.site-nav,
.navbar,
.main-navbar{
  background:linear-gradient(90deg,var(--bnx-public-blue),var(--bnx-public-blue-dark)) !important;
  color:var(--bnx-public-white) !important;
  border-bottom:1px solid var(--bnx-public-line) !important;
  box-shadow:0 10px 30px rgba(6,63,189,.20) !important;
  backdrop-filter:blur(14px) !important;
}

/* Remove transparent/white nav look */
.nav *,
.bnx-nav *,
#topnav *,
header.nav *,
header.bnx-nav *,
header#topnav *,
.navbar *,
.main-navbar *{
  color:var(--bnx-public-white);
}

/* Nav links */
.nav a,
.bnx-nav a,
#topnav a,
.navbar a,
.main-navbar a,
.menu a,
.bnx-menu a,
.navigation-menu a{
  color:var(--bnx-public-white) !important;
  font-weight:800 !important;
}

/* Active/hover links */
.nav a:hover,
.bnx-nav a:hover,
#topnav a:hover,
.navbar a:hover,
.main-navbar a:hover,
.menu a:hover,
.bnx-menu a:hover,
.navigation-menu a:hover,
.nav a.active,
.bnx-nav a.active,
#topnav a.active,
.navbar a.active,
.main-navbar a.active,
.menu a.active,
.bnx-menu a.active,
.navigation-menu a.active{
  color:#ffffff !important;
}

/* Active underline like pricing */
.menu a.active::after,
.bnx-menu a.active::after,
.navigation-menu a.active::after,
.nav a.active::after{
  background:#ffffff !important;
}

/* Dropdowns under blue nav */
.bnx-company-menu,
.submenu,
.dropdown-menu{
  background:rgba(0,43,134,.96) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  box-shadow:0 26px 70px rgba(0,43,134,.32) !important;
}

.bnx-company-menu a,
.submenu a,
.dropdown-menu a{
  color:#ffffff !important;
}

.bnx-company-menu a:hover,
.submenu a:hover,
.dropdown-menu a:hover{
  background:rgba(255,255,255,.12) !important;
  color:#ffffff !important;
}

/* Login / outline buttons in nav */
.nav .btn-outline,
.bnx-nav .btn-outline,
#topnav .btn-outline,
.navbar .btn-outline,
.main-navbar .btn-outline{
  border-color:rgba(255,255,255,.70) !important;
  color:#ffffff !important;
  background:rgba(255,255,255,.06) !important;
}

/* Demo / primary nav buttons */
.nav .btn-green,
.bnx-nav .btn-green,
#topnav .btn-green,
.navbar .btn-green,
.main-navbar .btn-green,
.nav .btn-primary,
.bnx-nav .btn-primary,
#topnav .btn-primary{
  background:var(--bnx-public-green) !important;
  color:#ffffff !important;
  border:0 !important;
  box-shadow:0 12px 25px rgba(8,201,79,.20) !important;
}

/* Bigger logo on all public pages */
.logo img,
.brand img,
.bnx-logo img,
.navbar-brand img,
header img[src*="badawy-nexus-logo"],
header img[src*="badawy-nexus-favicon"],
.nav img[src*="badawy-nexus-logo"],
.nav img[src*="badawy-nexus-favicon"],
.bnx-nav img[src*="badawy-nexus-logo"],
.bnx-nav img[src*="badawy-nexus-favicon"],
#topnav img{
  width:185px !important;
  max-width:185px !important;
  max-height:78px !important;
  height:auto !important;
  object-fit:contain !important;
}

/* FOOTER — public pages */
footer,
.footer,
.bnx-footer,
.site-footer,
.public-footer{
  background:linear-gradient(90deg,var(--bnx-public-blue),var(--bnx-public-blue-dark)) !important;
  color:var(--bnx-public-white) !important;
  border-top:1px solid var(--bnx-public-line) !important;
  box-shadow:0 -14px 45px rgba(6,63,189,.16) !important;
}

/* Remove old green/orange decorative line if previously added */
footer::before,
.footer::before{
  display:none !important;
  content:none !important;
}

/* Footer bottom strips */
.footer-py-30,
.footer-bottom,
.copyright,
.footer .copyright,
footer .copyright{
  background:rgba(0,43,134,.35) !important;
  color:var(--bnx-public-soft) !important;
  border-top:1px solid var(--bnx-public-line) !important;
}

/* Footer text */
footer,
footer p,
footer span,
footer div,
.footer,
.footer p,
.footer span,
.footer div{
  color:var(--bnx-public-soft) !important;
}

/* Footer headings */
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6,
.footer-head{
  color:#ffffff !important;
  font-weight:900 !important;
}

/* Footer links */
footer a,
.footer a,
.footer-list a,
.footer-links a{
  color:var(--bnx-public-soft) !important;
  text-decoration:none !important;
  transition:.22s ease !important;
}

footer a:hover,
.footer a:hover,
.footer-list a:hover,
.footer-links a:hover{
  color:#ffffff !important;
  transform:translateY(-1px);
}

/* Footer icons */
footer i,
.footer i,
footer svg,
.footer svg{
  color:#ffffff !important;
  stroke:currentColor !important;
}

/* Footer logo slightly bigger too */
footer img[src*="badawy-nexus-logo"],
.footer img[src*="badawy-nexus-logo"],
footer img[src*="badawy-nexus-favicon"],
.footer img[src*="badawy-nexus-favicon"]{
  width:160px !important;
  max-width:160px !important;
  height:auto !important;
  object-fit:contain !important;
}

/* Social icons */
footer .social-icon a,
.footer .social-icon a,
footer .socials a,
.footer .socials a,
.foot-social-icon a{
  background:rgba(255,255,255,.10) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  color:#ffffff !important;
  border-radius:999px !important;
}

footer .social-icon a:hover,
.footer .social-icon a:hover,
footer .socials a:hover,
.footer .socials a:hover,
.foot-social-icon a:hover{
  background:rgba(255,255,255,.18) !important;
  color:#ffffff !important;
}

/* Override old muted/dark classes inside footer */
footer .text-muted,
.footer .text-muted,
footer .text-dark,
.footer .text-dark{
  color:var(--bnx-public-soft) !important;
}

footer .text-white,
.footer .text-white{
  color:#ffffff !important;
}

/* Mobile logo size */
@media(max-width:768px){
  .logo img,
  .brand img,
  .bnx-logo img,
  .navbar-brand img,
  header img[src*="badawy-nexus-logo"],
  header img[src*="badawy-nexus-favicon"],
  .nav img[src*="badawy-nexus-logo"],
  .nav img[src*="badawy-nexus-favicon"],
  .bnx-nav img[src*="badawy-nexus-logo"],
  .bnx-nav img[src*="badawy-nexus-favicon"],
  #topnav img{
    width:150px !important;
    max-width:150px !important;
    max-height:68px !important;
  }

  footer img[src*="badawy-nexus-logo"],
  .footer img[src*="badawy-nexus-logo"],
  footer img[src*="badawy-nexus-favicon"],
  .footer img[src*="badawy-nexus-favicon"]{
    width:135px !important;
    max-width:135px !important;
  }
}