/* Apex Header Bridge - header-only stylesheet for WordPress-rendered pages.
   GENERATED from the static landing page's own tokens/reset/buttons/nav/mobile-menu
   rules plus the header-related media queries, every selector scoped under .apex-sh.
   Regenerate with build-bridge.py; do not hand-edit. */

/* ============================================================
   Night Circuit - Apex Track Experience · Concept C
   Dark, cinematic, premium automotive editorial direction.
   Base graphite/near-black, warm off-white text, single orange accent.
   ============================================================ */

.apex-sh {
  /* surfaces */
  --bg: #0E1013;
  --bg-raise: #14171B;
  --bg-deep: #090B0D;

  /* ink (warm off-white ramp) */
  --ink: #F5F3EF;
  --ink-soft: #BDBAB2;
  --ink-muted: #8F8C85;

  /* hairlines */
  --line: rgba(245, 243, 239, 0.12);
  --line-strong: rgba(245, 243, 239, 0.24);

  /* accent */
  --accent: #F17C20;
  --accent-hover: #E06910;
  --accent-deep: #B45510; /* orange readable on the light band */

  /* light band (inverted section) */
  --paper: #F5F3EF;
  --paper-ink: #15171B;
  --paper-soft: #4A4C51;
  --paper-line: rgba(21, 23, 27, 0.16);

  /* type */
  --font-ui: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Archivo Black', system-ui, 'Arial Black', sans-serif;
  --font-cond: 'Barlow Condensed', 'Oswald', system-ui, sans-serif;
  --font-mono: 'Chakra Petch', ui-monospace, monospace;

  /* layout */
  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(56px, 8vw, 120px);
  --maxw: 1240px;
}

.apex-sh, .apex-sh * { margin: 0; padding: 0; box-sizing: border-box; }



.apex-sh img { max-width: 100%; height: auto; display: block; }

.apex-sh a { color: inherit; text-decoration: none; }

/* ---------- typography ---------- */
.apex-sh h1, .apex-sh h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.apex-sh h3, .apex-sh h4 {
  font-family: var(--font-cond);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
}

.apex-sh h1 { font-size: clamp(40px, 8vw, 96px); }
.apex-sh h2 { font-size: clamp(32px, 5vw, 60px); }
.apex-sh h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: 0.02em; }

.apex-sh .eyebrow {
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.apex-sh .eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
  flex: 0 0 auto;
}

.apex-sh .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 62ch;
}

.apex-sh .muted { color: var(--ink-muted); }

/* ---------- layout ---------- */
.apex-sh .container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.apex-sh .section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.apex-sh .section--tight { padding-top: calc(var(--section-y) * 0.75); padding-bottom: calc(var(--section-y) * 0.75); }

.apex-sh .section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.apex-sh .section-head .eyebrow { margin-bottom: 22px; }
.apex-sh .section-head h2 { margin-bottom: 18px; }
.apex-sh .section-head .lead { margin-top: 6px; }

/* full-width bands */
.apex-sh .band { position: relative; }
.apex-sh .band--raise { background: var(--bg-raise); }
.apex-sh .band--deep { background: var(--bg-deep); }
.apex-sh .band--light { background: var(--paper); color: var(--paper-ink); }
.apex-sh .band--light h2, .apex-sh .band--light h3 { color: var(--paper-ink); }
.apex-sh .band--light .lead { color: var(--paper-soft); }
.apex-sh .band--light .eyebrow { color: var(--accent-deep); }
.apex-sh .band--light .eyebrow::before { background: var(--accent-deep); }

/* ---------- buttons ---------- */
.apex-sh .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.apex-sh .btn:active { transform: translateY(1px); }
.apex-sh .btn--primary { background: var(--accent); color: #0B0C0E; border-color: var(--accent); }
.apex-sh .btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.apex-sh .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.apex-sh .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.apex-sh .btn--paper { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.apex-sh .btn--paper:hover { background: #000; }
.apex-sh .btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.apex-sh .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.apex-sh a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- nav ---------- */
.apex-sh .nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}
.apex-sh .nav.scrolled { background: rgba(9, 11, 13, 0.92); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.apex-sh .nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.apex-sh .brand { display: flex; align-items: center; gap: 12px; line-height: 1; }
.apex-sh .brand-logo { height: 42px; width: auto; display: block; }
.apex-sh .brand-logo--footer { height: 55px; }
.apex-sh .brand-text { display: flex; flex-direction: column; }
.apex-sh .hero-tagline {
  font-family: var(--font-cond);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 12px;
}
.apex-sh .track-map { margin: 0; }
.apex-sh .track-map img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
  border: 1px solid var(--line-strong);
}
.apex-sh .track-map figcaption {
  margin-top: 14px;
  font-family: var(--font-cond);
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.apex-sh .brand .brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.apex-sh .brand .brand-sub {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}
.apex-sh .nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.apex-sh .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  transition: color 0.18s ease;
}
.apex-sh .nav-links a:hover { color: var(--ink); }
.apex-sh .nav-links a.active { color: var(--accent); }
.apex-sh .nav .btn { min-height: 44px; padding: 9px 22px; }
.apex-sh .nav-cta { display: inline-flex; }

.apex-sh .nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
}
.apex-sh .nav-toggle span {
  display: block;
  position: relative;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: background 0.2s ease;
}
.apex-sh .nav-toggle span::before, .apex-sh .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}
.apex-sh .nav-toggle span::before { top: -7px; }
.apex-sh .nav-toggle span::after { top: 7px; }
.apex-sh .nav-toggle[aria-expanded="true"] span { background: transparent; }
.apex-sh .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.apex-sh .nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* mobile menu */
.apex-sh .mobile-menu {
  position: fixed;
  top: 76px; left: 0; right: 0;
  z-index: 59;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  padding: 10px var(--pad-x) 22px;
  display: none;
}
.apex-sh .mobile-menu.open { display: block; }
.apex-sh .mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--font-cond);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.apex-sh .mobile-menu a:last-of-type { border-bottom: 0; }
.apex-sh .mobile-menu .btn { margin-top: 18px; width: 100%; }
@media (max-width: 900px) {
  .apex-sh .nav-links { display: none; }
  .apex-sh .nav-cta { display: none; }
  .apex-sh .nav-toggle { display: inline-flex; }
  .apex-sh .scroll-cue { display: none; }
}
/* ---- bridge-only: suppress the Kubio header; keep the bar legible, on top, and in flow ----
   Sticky wrapper, not a fixed bar: that reserves the header's height in normal flow so no
   WordPress content can end up hidden behind the bar. */
.wp-block-kubio-header,
.wp-block-kubio-menu-offscreen,
#navigation.h-navigation_overlap { display: none !important; }
.apex-sh { position: sticky; top: 0; z-index: 9990; }
.apex-sh .nav {
  position: relative; top: auto; left: auto; right: auto; z-index: 2;
  background: rgba(9, 11, 13, 0.97);
  border-bottom-color: rgba(245, 243, 239, 0.14);
}
.apex-sh .mobile-menu { z-index: 1; }
body.admin-bar .apex-sh { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .apex-sh { top: 46px; }
}
