/* ==========================================================================
   LDB GLOBAL HEADER — ldb-global-header.css  v1.0.0
   Charcoal sticky nav for leaddontbleed.com
   Rendered on every page via wp_body_open hook.
   ========================================================================== */

/* ---- Skip link ---- */
.ldb-skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  z-index: 99999;
  background: #0F1014;
  color: #F2EBD8;
  padding: 10px 20px;
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
}
.ldb-skip-link:focus {
  left: 16px;
}

/* ---- Header shell ---- */
.ldb-gh {
  position: sticky;
  top: 0;
  z-index: 9100;       /* above Astra's default 100 and child-theme 9000 */
  background-color: #0F1014;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease-in;
  /* Break out of any body margin constraints (e.g. Kit embed pages) */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
}
.ldb-gh.is-scrolled {
  border-bottom-color: #E47A1F;
}

/* ---- Inner bar ---- */
.ldb-gh-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  gap: 24px;
}

/* ---- Brand ---- */
.ldb-gh-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.ldb-gh-brand svg {
  flex-shrink: 0;
}
.ldb-gh-wordmark {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F2EBD8;
  white-space: nowrap;
  line-height: 1;
}
.ldb-gh-tm {
  font-size: 0.55em;
  line-height: 0;
  vertical-align: super;
  margin-left: 1px;
  color: #E47A1F;
  font-style: normal;
}

/* ---- Desktop nav ---- */
.ldb-gh-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.ldb-gh-nav a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 235, 216, 0.7);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}
.ldb-gh-nav a:hover,
.ldb-gh-nav a:focus {
  color: #F2EBD8;
  text-decoration: none;
  outline: none;
}
.ldb-gh-nav a[aria-current="page"] {
  color: #F2EBD8;
  border-bottom-color: #E47A1F;
}
/* Containment Check CTA link */
.ldb-gh-nav-cta {
  color: #E47A1F !important;
  border-bottom-color: transparent !important;
}
.ldb-gh-nav-cta:hover,
.ldb-gh-nav-cta:focus {
  color: #F2EBD8 !important;
}
.ldb-gh-nav-cta[aria-current="page"] {
  color: #F2EBD8 !important;
  border-bottom-color: #E47A1F !important;
}

/* ---- Hamburger toggle (hidden on desktop) ---- */
.ldb-gh-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-shrink: 0;
}
.ldb-gh-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #F2EBD8;
  border-radius: 1px;
  transition: transform 220ms ease, opacity 220ms ease;
}
/* Animated X state */
.ldb-gh-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ldb-gh-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.ldb-gh-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile full-screen overlay ---- */
.ldb-gh-menu {
  position: fixed;
  inset: 0;
  background-color: #0F1014;
  z-index: 9200;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 48px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ldb-gh-menu[hidden] {
  display: none !important;
}
.ldb-gh-menu-close {
  display: block;
  align-self: flex-end;
  background: none;
  border: none;
  color: #F2EBD8;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  margin-bottom: 28px;
  opacity: 0.8;
  transition: opacity 180ms;
}
.ldb-gh-menu-close:hover {
  opacity: 1;
}
.ldb-gh-menu nav {
  display: flex;
  flex-direction: column;
}
.ldb-gh-menu nav a {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  color: #F2EBD8;
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid rgba(242, 235, 216, 0.1);
  transition: color 180ms ease;
  min-height: 48px; /* WCAG tap target */
  display: flex;
  align-items: center;
}
.ldb-gh-menu nav a:first-child {
  border-top: 1px solid rgba(242, 235, 216, 0.1);
}
.ldb-gh-menu nav a:hover,
.ldb-gh-menu nav a:focus,
.ldb-gh-menu nav a[aria-current="page"] {
  color: #E47A1F;
  outline: none;
}

/* ---- Responsive: show hamburger, hide desktop nav ---- */
@media (max-width: 768px) {
  .ldb-gh-bar {
    padding: 14px 20px;
  }
  .ldb-gh-nav {
    display: none;
  }
  .ldb-gh-toggle {
    display: flex;
  }
  .ldb-gh-wordmark {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .ldb-gh-wordmark {
    font-size: 13px;
    letter-spacing: 0.04em;
  }
  .ldb-gh-brand svg {
    width: 28px;
    height: 28px;
  }
}
