/* Shared header and footer contract. Loaded after page-specific CSS so old
 * source-page chrome rules cannot change the classic theme shell. */
.topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.topnav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding-block: 0;
}

/* Several page-*.css leftovers redefine .container with padding-inline
 * instead of baking the gutter into the width, which shrinks the header
 * and pulls the logo/CTA in toward the nav links. Force the header's
 * container back to the site's actual formula (matches Home/Media Kit)
 * without touching .container elsewhere on those pages. */
.topnav-inner.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  padding-inline: 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: max-content;
}

.wordmark img {
  display: block;
  width: clamp(150px, 18vw, 220px);
  height: auto;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.desktop-nav ul,
.desktop-nav .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.topnav .nav-cta {
  display: inline-flex;
  justify-self: end;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-transform: uppercase;
  transform: none;
}

.topnav .nav-cta::before { display: none; }

.site-footer.footer {
  border-top: 1px solid var(--border);
  padding-block: 44px;
  color: var(--muted);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer .footer-links ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-links li { margin: 0; padding: 0; list-style: none; }
.site-footer .footer-links h3 { margin-bottom: 12px; color: var(--fg); font-size: 13px; text-transform: uppercase; }
.site-footer .footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

@media (max-width: 1080px) {
  .topnav-inner { gap: 16px; min-height: 68px; }
  .desktop-nav ul,
  .desktop-nav .menu { gap: 14px; }
  .desktop-nav a { font-size: 11px; }
  .topnav .nav-cta { padding: 10px 14px; font-size: 11px; }
}

@media (max-width: 900px) {
  .topnav-inner { grid-template-columns: 1fr auto; }
  .desktop-nav,
  .topnav .nav-cta { display: none; }
}

@media (max-width: 700px) {
  .topnav-inner { grid-template-columns: 1fr auto; min-height: 68px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-bottom { flex-direction: column; }
}

/* Hero background layer, shared by About/Consulting/Contact/Speaking/Featured/Books.
 * Each page supplies its own photo/color/video + overlay strength via inline
 * style/CSS custom properties from bb_classic_render_hero_bg() — see
 * inc/hero-background.php. Only this generic "fill, cover, tintable overlay"
 * behavior is shared; the content is per-page. */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero-bg[data-bg-type="image"],
.hero-bg[data-bg-type="video"] { filter: grayscale(1) contrast(1.05); }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, transparent, var(--hero-overlay-color, #000));
  opacity: var(--hero-overlay-opacity, .75);
}
.hero-bg[data-bg-type="color"]::after { display: none; }

.hero-bg-video-frame { position: absolute; inset: 0; overflow: hidden; }
.hero-bg-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.hero-bg-video-frame.hero-bg-video-frame--youtube iframe {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  transform: translate(-50%, -50%);
}
