/* ==========================================================================
   BxPrecision Nav + Footer — ported verbatim from bxprecision.com.au
   ========================================================================== */

/* NAV */
.bxp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bx-border);
}
.bxp-nav .nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.bxp-nav .nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.bxp-nav .nav-logo img { display: block; }
.bxp-nav .nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.bxp-nav .nav-links a {
  color: var(--bx-muted); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; text-decoration: none;
}
.bxp-nav .nav-links a:hover,
.bxp-nav .nav-links a.active { color: var(--bx-heading); }

.bxp-nav .nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 10px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.bxp-nav .nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--bx-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Dropdown */
.bxp-nav .nav-dropdown { position: relative; }
.bxp-nav .nav-dropdown > a {
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.bxp-nav .nav-dropdown > a .chevron {
  stroke: currentColor; fill: none; transition: transform 0.2s;
}
.bxp-nav .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.98); border: 1px solid var(--bx-border);
  border-radius: 6px; padding: 0.5rem 0; min-width: 240px;
  list-style: none; margin: 0;
  z-index: 200;
}
.bxp-nav .dropdown-menu::before {
  content: ''; position: absolute; top: -0.75rem; left: 0; right: 0; height: 0.75rem;
}
.bxp-nav .nav-dropdown:hover .dropdown-menu { display: block; }
.bxp-nav .nav-dropdown:hover > a .chevron { transform: rotate(180deg); }
.bxp-nav .dropdown-menu a {
  display: block; padding: 0.6rem 1.25rem;
  color: var(--bx-muted); font-size: 0.85rem; font-weight: 500;
  transition: color 0.2s, background 0.2s;
  min-height: 44px; display: flex; align-items: center;
}
.bxp-nav .dropdown-menu a:hover { color: var(--bx-heading); background: rgba(255,255,255,0.04); }

/* Push page content down so it doesn't hide under fixed nav */
.wp-site-blocks { padding-top: 64px; }

/* FOOTER */
.bxp-footer {
  background: var(--bx-surface);
  border-top: 1px solid var(--bx-border);
  padding: 3rem 1.5rem;
  margin-top: 4rem;
}
.bxp-footer .footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.bxp-footer h4 {
  font-size: 0.82rem; font-weight: 600; color: var(--bx-heading);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin: 0 0 0.75rem; padding: 0;
}
.bxp-footer ul { list-style: none; margin: 0; padding: 0; }
.bxp-footer ul li { margin-bottom: 0.4rem; }
.bxp-footer ul a { color: var(--bx-muted); font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.bxp-footer ul a:hover { color: var(--bx-heading); }
.bxp-footer .footer-brand p { font-size: 0.85rem; color: var(--bx-muted); max-width: 280px; margin: 0; }
.bxp-footer .footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 1.5rem; margin-top: 2rem;
  border-top: 1px solid var(--bx-border);
  font-size: 0.8rem; color: var(--bx-muted);
  display: flex; justify-content: space-between; align-items: center;
}

/* MOBILE */
@media (max-width: 768px) {
  .bxp-nav .nav-links {
    display: none;
    flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(20, 20, 20, 0.98);
    border-bottom: 1px solid var(--bx-border);
  }
  .bxp-nav .nav-links.open { display: flex; }
  .bxp-nav .nav-links a {
    display: flex; align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--bx-border);
    min-height: 44px;
  }
  .bxp-nav .nav-toggle { display: flex; }
  .bxp-nav .nav-dropdown > a .chevron { display: inline-block; }

  .bxp-nav .dropdown-menu {
    position: static; transform: none;
    background: none; border: none; border-radius: 0;
    padding: 0; margin: 0; min-width: 0;
  }
  .bxp-nav .nav-dropdown.open .dropdown-menu { display: block; }
  .bxp-nav .dropdown-menu a {
    padding: 0.85rem 1.5rem 0.85rem 2.5rem;
    border-top: 1px solid var(--bx-border);
    background: none;
  }

  .bxp-footer .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .bxp-footer .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
