/* static/css/components/navbar.css */

.bc-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  background: rgba(19,19,19,0.88);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(255,255,255,0.11);
  box-shadow: 0 14px 30px -22px rgba(0,0,0,0.95);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  animation: nav-drop 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes nav-drop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes nav-item {
  from { opacity: 0; transform: translateY(-9px); }
  to   { opacity: 1; transform: translateY(0); }
}.bc-navbar.scrolled .nav-container { height: 64px; }

.bc-navbar.scrolled {
  background: rgba(10,10,10,0.94);
  border-bottom-color: rgba(255,255,255,0.15);
  box-shadow: 0 16px 36px -18px rgba(0,0,0,1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 78px;
  display: flex;
  align-items: center;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 1.35rem;
  flex-shrink: 0;
  min-width: 0;
  max-width: 60%;
}.nav-logo img {

  height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  animation: nav-item 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}

.bc-navbar.scrolled .nav-logo img { height: 42px; }

.nav-logo:hover img {
  opacity: 0.85;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links::before {
  content: "";
  flex: 0 0 auto;
  width: 1px;
  height: 24px;
  margin-right: 1.35rem;
  background: rgba(255,255,255,0.13);
  animation: nav-item 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.nav-links > li:nth-child(1) { animation: nav-item 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both; }
.nav-links > li:nth-child(2) { animation: nav-item 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.41s both; }
.nav-links > li:nth-child(3) { animation: nav-item 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.46s both; }
.nav-links > li:nth-child(4) { animation: nav-item 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.51s both; }
.nav-links > li:nth-child(5) { animation: nav-item 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.56s both; }
.nav-links > li:nth-child(6) { animation: nav-item 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.61s both; }

.nav-link {
  position: relative;
  color: #b4b4b4;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 0;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.005em;
}.nav-link:hover {
  color: #ffffff;
  background: none;
}

.nav-links .nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--accent, #dc2626);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after { transform: scaleX(1); }.nav-link.active {
  color: #ffffff;
  border-bottom: none;
}

.nav-chevron {
  font-size: 0.55rem;
  margin-left: 0.3rem;
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 640px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 14px;
  padding: 0.85rem 0.85rem 0.7rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px) scale(0.985);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.16,1,0.3,1),
              visibility 0.22s ease;
  z-index: 100;
}

/* accent hairline across the top edge of the panel */
.nav-dropdown-menu::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.6rem;
  right: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,0.65), transparent);
  pointer-events: none;
}

/* keeps the pointer inside the dropdown while crossing the gap */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 16px;
}

/* The trigger is a link: clicking it goes to the page. The panel is a
   shortcut, revealed on hover for pointers and on :focus-within for
   keyboard, so tabbing to the trigger opens it and Tab carries on into the
   items. No JS and no toggle state to keep in sync. */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-trigger:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 3px;
  border-radius: 4px;
}

.nav-dropdown-menu--narrow { width: 320px; }

.dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Equal-height rows: stretch stops a two-line title leaving its neighbour
   floating half a row up, which is what made the panel look untidy. */
.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  align-items: stretch;
}

.dropdown-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 2rem 0.95rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
  background: rgba(255,255,255,0.045);
  border-color: rgba(220,38,38,0.28);
  outline: none;
}

.dropdown-item:focus-visible { border-color: #ef4444; }

/* arrow slides in on hover rather than sitting there permanently */
.dropdown-item::after {
  content: "\2192";
  position: absolute;
  top: 0.95rem;
  right: 0.85rem;
  font-size: 0.82rem;
  color: #ef4444;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16,1,0.3,1);
}

.dropdown-item:hover::after,
.dropdown-item:focus-visible::after { opacity: 1; transform: translateX(0); }

.dropdown-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  font-size: 0.92rem;
  flex-shrink: 0;
  margin-top: 0.12rem;
  transition: transform 0.24s cubic-bezier(0.16,1,0.3,1), box-shadow 0.24s ease;
}

.dropdown-item:hover .dropdown-icon,
.dropdown-item:focus-visible .dropdown-icon {
  transform: scale(1.07);
  box-shadow: 0 6px 18px -8px rgba(220,38,38,0.7);
}

.dropdown-title {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: #f7f7f7;
  margin-bottom: 0.22rem;
  transition: color 0.2s ease;
}

.dropdown-item:hover .dropdown-title,
.dropdown-item:focus-visible .dropdown-title { color: #ef4444; }

/* was #737373 on #111111, which is 3.98:1 and under AA */
.dropdown-desc {
  display: block;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #9b9b9b;
}

.dropdown-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding: 0.75rem 0.9rem 0.3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ef4444;
  text-decoration: none;
}

.dropdown-foot i { font-size: 0.7rem; transition: transform 0.22s cubic-bezier(0.16,1,0.3,1); }
.dropdown-foot:hover i { transform: translateX(5px); }

.dropdown-foot:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-menu { transition: opacity 0.01ms, visibility 0.01ms; transform: translateX(-50%); }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { transform: translateX(-50%); }
  .dropdown-item::after,
  .dropdown-item:hover .dropdown-icon,
  .dropdown-foot:hover i { transition: none; transform: none; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.nav-right > *:nth-child(1) { animation: nav-item 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.62s both; }
.nav-right > *:nth-child(2) { animation: nav-item 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.68s both; }

.nav-incident {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  border: 1px solid rgba(220,38,38,0.55);
  border-radius: 6px;
  text-decoration: none;
  background: rgba(220,38,38,0.10);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-incident:hover {
  background: #dc2626;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: #dc2626;
  color: #ffffff;
  padding: 0.52rem 1.15rem;
  border-radius: 6px;
  border: 1px solid #dc2626;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}.nav-cta:hover {
  color: #ffffff;
  background: #b91c1c;
  border-color: #b91c1c;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #f5f5f5;
  font-size: 1.1rem;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.menu-toggle:hover {
  border-color: rgba(255,255,255,0.25);
}

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: calc(100vh - 72px);
  overflow-y: auto;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.06);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
  will-change: transform;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.25s ease, visibility 0s linear 0s;
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 1rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mobile-menu .nav-link {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
}

.mobile-menu .nav-link--sub {
  padding-left: 1.75rem;
  font-size: 0.82rem;
  color: #737373;
}

.mobile-menu .nav-link--sub:hover {
  color: #ffffff;
}

.mobile-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #dc2626;
  padding: 0.75rem 0.85rem 0.25rem;
}

.mobile-incident {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.mobile-cta {
  display: block;
  text-align: center;
  margin-top: 0.25rem;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-container {
    padding: 0 1.25rem;
  }
  .nav-right .nav-incident {
    font-size: 0.72rem;
    padding: 0.4rem 0.7rem;
  }
  .nav-right .nav-cta {
    display: none;
  }
  .nav-logo {
    margin-right: 1rem;
  }
  .nav-logo img {
    height: 40px;
  }
  .nav-logo .nav-logo-dark {
    height: 125px;
    margin: -43px 0;
  }
}

@media (max-width: 600px) {
  .nav-right {
    gap: 0.4rem;
  }
  .nav-right .nav-incident {
    font-size: 0.68rem;
    padding: 0.35rem 0.6rem;
  }
  .nav-logo img {
    height: 36px;
  }
  .nav-logo .nav-logo-dark {
    height: 113px;
    margin: -39px 0;
  }
  .logo-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .nav-container {
    padding: 0 0.9rem;
  }
  .nav-right .nav-incident {
    font-size: 0.62rem;
    padding: 0.3rem 0.5rem;
  }
  .nav-logo img {
    height: 32px;
  }
  .nav-logo .nav-logo-dark {
    height: 100px;
    margin: -34px 0;
  }
}

.ir-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ir-modal.open {
  opacity: 1;
  visibility: visible;
}

.ir-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.ir-modal-dialog {
  position: relative;
  width: 95%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.ir-modal.open .ir-modal-dialog {
  transform: translateY(0);
}

.ir-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 2rem 0;
}

.ir-modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.ir-modal-header p {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: #a3a3a3;
}

.ir-modal-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #737373;
  font-size: 1rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ir-modal-close:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.25);
}

.ir-modal-urgency {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.5rem 2rem;
  padding: 1rem 1.25rem;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
}

.ir-modal-urgency i {
  color: #dc2626;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ir-modal-urgency span {
  font-size: 0.82rem;
  color: #a3a3a3;
}

.ir-modal-urgency a {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-top: 0.15rem;
}

.ir-modal-urgency a:hover {
  color: #dc2626;
}

.ir-form {
  padding: 0.5rem 2rem 2rem;
}

.ir-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ir-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.ir-form-row .ir-field {
  margin-bottom: 0;
}

.ir-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #a3a3a3;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ir-required {
  color: #dc2626;
}

.ir-field input,
.ir-field select,
.ir-field textarea {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #f5f5f5;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.88rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.ir-field input::placeholder,
.ir-field textarea::placeholder {
  color: #525252;
}

.ir-field input:focus,
.ir-field select:focus,
.ir-field textarea:focus {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.ir-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23737373' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

.ir-field select option {
  background: #111111;
  color: #f5f5f5;
}

.ir-field textarea {
  resize: vertical;
  min-height: 100px;
}

.ir-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.ir-disclaimer {
  font-size: 0.72rem;
  color: #525252;
  line-height: 1.4;
}

.ir-disclaimer strong {
  color: #737373;
}

.ir-submit {
  flex-shrink: 0;
}

.ir-success {
  display: none;
  padding: 3rem 2rem;
  text-align: center;
}

.ir-success i {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.ir-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.ir-success p {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: #a3a3a3;
}

@media (max-width: 600px) {
  .ir-modal-dialog {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .ir-modal-header,
  .ir-form,
  .ir-modal-urgency {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .ir-modal-urgency {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }

  .ir-form-row {
    grid-template-columns: 1fr;
  }

  .ir-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ir-disclaimer {
    text-align: center;
  }
}

.is-hidden { display: none !important; }

.form-error {
  display: none;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.08);
  border-radius: 6px;
  color: #fca5a5;
  font-size: 0.88rem;
  line-height: 1.5;
}
.form-error i {
  font-size: 1rem;
  color: #ef4444;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
