/* ═══════════════════════════════════════════════════════════════════
   Shared marketing header (.mkt-header)
   ─────────────────────────────────────────────────────────────────────
   ONE header for every marketing-funnel surface: /marketing, /pricing,
   /for-practitioners, /guides/*, and the generated SEO corpus
   (/gates, /channels, /authorities, /numerology).

   The HTML block that pairs with this stylesheet is duplicated verbatim
   in each hand-authored page and emitted by scripts/generate-seo-pages.mjs
   (the static build has no include mechanism). If you change the markup,
   change ALL copies and regenerate the corpus.

   Behavior (mobile drawer toggle): /js/marketing-header.js
   Theme: tokens only — works on both the dark default and the light
   parchment theme (html[data-theme="light"]).
   ═══════════════════════════════════════════════════════════════════ */

.mkt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-secondary, rgba(255, 255, 255, 0.08));
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass, rgba(10, 10, 10, 0.88));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mkt-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary, #fff);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.mkt-header__logo:hover {
  opacity: 0.8;
}

.mkt-header__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 1rem;
}

.mkt-header__nav a {
  color: var(--text-secondary, rgba(255, 255, 255, 0.85));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.mkt-header__nav a:hover {
  color: var(--text-primary, #fff);
}

.mkt-header__cta {
  background: var(--gold, #c9a84c) !important;
  color: #08080f !important;
  font-weight: 700 !important;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  transition: opacity 0.2s;
}

.mkt-header__cta:hover {
  opacity: 0.88;
  color: #08080f !important;
}

/* ── Hamburger toggle (hidden on desktop) ─────────────────── */
.mkt-header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  /* min tap target WCAG 2.5.5 */
  min-width: 44px;
  min-height: 44px;
  color: var(--text-primary, #fff);
  line-height: 1;
  font-size: 1.4rem;
  margin-left: auto;
  flex-shrink: 0;
  border-radius: 6px;
  transition: background-color 0.18s ease;
  position: relative;
  z-index: 201;
}

.mkt-header__toggle:focus-visible {
  outline: 3px solid var(--gold, #c9a84c);
  outline-offset: 2px;
}

.mkt-header__toggle:hover {
  background: var(--color-black-alpha-6, rgba(255, 255, 255, 0.06));
}

/* ── Mobile: slide-out drawer ─────────────────────────────── */
@media (max-width: 768px) {
  .mkt-header__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* The header's backdrop-filter makes it the containing block for
     fixed-position descendants, which would trap the fixed drawer +
     overlay inside the ~60px header box. Drop the filter on mobile and
     use a solid bar so the drawer/overlay position against the viewport. */
  .mkt-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg, #05091a);
  }

  /* Drawer: parked off-screen, slides in when .nav-open is set. Uses
     transform + visibility (not display) so the motion can animate and
     AT/keyboard access still drops out when closed. */
  .mkt-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 82vw);
    background: var(--bg2, #1c1c1e);
    border-left: 1px solid var(--border-subtle, #3a3a3f);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 0.5rem;
    display: flex;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.26s ease, visibility 0s linear 0.26s;
    z-index: 200;
    overflow-y: auto;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.45);
  }

  .mkt-header.nav-open .mkt-header__nav {
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.26s ease, visibility 0s linear 0s;
  }

  @media (prefers-reduced-motion: reduce) {
    .mkt-header__nav { transition: none; }
  }

  /* Dim overlay behind the open drawer */
  .mkt-header.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
  }

  /* Nav links — WCAG 2.5.5 minimum 44×44px touch target */
  .mkt-header__nav a {
    width: 100%;
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle, #3a3a3f);
    font-size: 1rem;
    color: var(--text-primary, #fff);
  }

  .mkt-header__cta {
    margin-top: 1rem;
    border-bottom: none;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ── Marketing accent unification ─────────────────────────────
   The light "Sunrise" theme swaps the ENTIRE gold family to rose
   (--gold: #c47a8a, --gold-text: #934a5e, rose alphas) — an in-app
   design choice that reads off-brand (mauve/pink) on the marketing
   funnel. Marketing surfaces pin the brand gold ramp instead so the
   funnel reads as one family with the navy+gold app.
   - fills/borders: --color-gold-500 (#c9a84c), dark text on top
   - accent TEXT:   --color-gold-700 (#7a6030) — AA ≈5.5:1 on parchment
   Scoped to body: this file is only loaded by marketing pages, so the
   app's Sunrise theme is unaffected. */
html[data-theme="light"] body {
  --gold:      var(--color-gold-500, #c9a84c);
  --gold-dim:  var(--color-gold-600, #a88840);
  --gold-text: var(--color-gold-700, #7a6030);
  --gold-alpha-06: rgba(201, 168, 76, 0.06);
  --gold-alpha-08: rgba(201, 168, 76, 0.08);
  --gold-alpha-10: rgba(201, 168, 76, 0.10);
  --gold-alpha-15: rgba(201, 168, 76, 0.15);
  --gold-alpha-22: rgba(201, 168, 76, 0.22);
  --gold-alpha-30: rgba(201, 168, 76, 0.30);
  --gold-alpha-50: rgba(201, 168, 76, 0.50);
}
