
/* =============================================
   NAVBAR — AllFirefighter v7
   Consolidated: 9 items → 6 (+ More dropdown)
   New: NFPA Standards as standalone item
============================================= */
.navbar-fire{
  background:#111315;
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  position:sticky;
  top:0;
  z-index:1030;
}
.navbar-fire .navbar-brand{
  font-size:26px;font-weight:900;color:#fff;
  text-decoration:none;letter-spacing:.2px;
  display:flex;align-items:center;gap:10px;
  flex-shrink:0;
}
.navbar-fire .navbar-toggler{
  border:1px solid rgba(255,255,255,.14);border-radius:14px;
  padding:8px 10px;box-shadow:none!important;
  background:rgba(255,255,255,.03);
}
.navbar-fire .navbar-toggler:focus-visible{outline:2px solid #ff7070;outline-offset:3px;}
.navbar-toggler-icon{
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.95)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-fire .navbar-nav{
  gap:4px;
  align-items:center;
}

/* Base pill style */
.navbar-fire .menu-item{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 10px;margin:0 1px;
  color:#fff!important;opacity:.92;font-weight:600;font-size:13px;line-height:1;
  text-decoration:none!important;
  background:transparent!important;
  border:1px solid transparent!important;
  border-radius:5px;box-shadow:none!important;
  cursor:pointer;
  transition:transform .12s ease,background .12s ease,border-color .12s ease,opacity .12s ease;
  white-space:nowrap;
}
.navbar-fire .menu-item:hover{
  opacity:1;transform:translateY(-1px);
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(255,255,255,.22)!important;
}
.navbar-fire .menu-item.active{
  opacity:1;
  background:rgba(255,59,59,.20)!important;
  border-color:rgba(255,59,59,.65)!important;
  color:#fff!important;
}

/* NFPA item gets a subtle accent by default */



.navbar-fire .menu-item:focus-visible{outline:2px solid rgba(255,59,59,.9);outline-offset:3px;}

/* Install App button */
#menuInstallApp{
  appearance:none;-webkit-appearance:none;
  background:rgba(255,255,255,.06)!important;
  border:1px solid rgba(255,255,255,.12)!important;
}
#menuInstallApp.install-ready{
  opacity:1;font-weight:900;
  background:rgba(255,59,59,.22)!important;
  border-color:rgba(255,59,59,.85)!important;
}
#menuInstallApp.install-installed{opacity:.65!important;pointer-events:none;}

/* Dropdown */
.navbar-fire .dropdown-menu{
  background:#1b1e21;
  border:1px solid rgba(255,255,255,.12);
  border-radius:6px;padding:8px;
  min-width:200px;
  box-shadow:0 18px 50px rgba(0,0,0,.5);
}
.navbar-fire .dropdown-item{
  color:#fff;border-radius:3px;
  padding:10px 12px;font-weight:500;font-size:14px;
  display:flex;align-items:center;gap:10px;
}
.navbar-fire .dropdown-item:hover,
.navbar-fire .dropdown-item:focus{
  background:rgba(255,255,255,.08);color:#fff;
}
.navbar-fire .dropdown-item .di-icon{
  width:28px;height:28px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:8px;background:rgba(255,255,255,.06);
  font-size:14px;flex-shrink:0;
}

/* ── MOBILE ── */
@media(max-width:992px){
  .navbar-fire{position:fixed;top:0;left:0;right:0;}

  .navbar-fire .navbar-collapse{
    margin-top:10px;padding:12px;
    background:rgba(10,10,10,.98);
    border:1px solid rgba(255,255,255,.10);
    border-radius:18px;
    max-height:calc(100dvh - 90px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .navbar-fire .navbar-nav{
    display:grid;
    grid-template-columns:1fr;
    gap:4px;
    margin-top:6px;
    align-items:stretch;
  }
  .navbar-fire .navbar-nav .nav-item{width:100%;}
  .navbar-fire .menu-item{
    width:100%;justify-content:space-between;
    padding:14px 12px;margin:0;border-radius:5px;font-size:14px;
    background:rgba(255,255,255,.07)!important;
  }
  .navbar-fire .menu-item:hover{transform:none;}
  .navbar-fire .dropdown-toggle.menu-item{width:100%;}
  .navbar-fire .dropdown-menu{width:100%;margin-top:8px;border-radius:16px;}
  /* Install App takes full row */
  .navbar-fire .nav-item-install{grid-column:span 2;}

  /* Add top padding to body so sticky nav doesn't cover content */
  body{padding-top:64px;}
}
@media(max-width:420px){
  .navbar-fire .navbar-nav{grid-template-columns:1fr;}
  .navbar-fire .nav-item-install{grid-column:span 1;}
}
@media(max-width:360px){.navbar-fire .navbar-brand{font-size:22px;}}

/* AF_MOBILE_MENU_CLEAN_V1 */
@media (max-width: 992px) {

  .navbar-fire .dropdown-toggle.menu-item {
    width: 100%;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-fire .dropdown-menu {
    padding: 6px !important;
    margin-top: 4px !important;
  }

  .navbar-fire .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    min-height: 44px;
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  .navbar-fire .dropdown-item .di-icon {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
  }

  .navbar-fire .dropdown-divider {
    margin: 5px 0 !important;
  }
}



/* AF NAVBAR STANDARD V1 — Shared on every page */

body .navbar-fire {
    background: #111315 !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #303438 !important;
}

body .navbar-fire .navbar-brand img {
    height: 48px !important;
    width: auto !important;
    max-height: 48px !important;
}

body .navbar-fire .menu-item {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #cbd0d5 !important;
}

body .navbar-fire .menu-item:hover {
    background: #25292d !important;
    transform: none !important;
    color: #fff !important;
}

body .navbar-fire .dropdown-menu {
    background: #1b1e21 !important;
    border-radius: 6px !important;
}

body .navbar-fire .dropdown-item {
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 3px !important;
}

body .navbar-fire .di-icon {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body .navbar-fire .navbar-toggler {
    border-radius: 5px !important;
}

@media (max-width: 992px) {
    body .navbar-fire .navbar-collapse {
        background: #1b1e21 !important;
    }

    body .navbar-fire .menu-item {
        min-height: 48px;
        padding: 12px !important;
    }
}

/* NFPA: Only highlight when active */




/* NFPA homepage: remove permanent red highlight */


/* NFPA unified state */
.navbar-fire .menu-item.nfpa-item:not(.active) {
    background: transparent !important;
    border-color: transparent !important;
    color: #cbd0d5 !important;
}
.navbar-fire .menu-item.nfpa-item:not(.active):hover {
    background: #25292d !important;
}
.navbar-fire .menu-item.nfpa-item.active {
    background: rgba(255,59,59,.20) !important;
    border-color: rgba(255,59,59,.65) !important;
    color: #fff !important;
}
