/* ============================================
   HEADER — fixed, paper, hairline border, boxed-badge logo
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.header_inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.4rem var(--main-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ===== Logo — boxed-badge ===== */
.header_logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.header_logo:hover {
  color: var(--ink);
}

.header_logo:hover .brand_badge {
  background: var(--accent-dark);
}

/* ===== Nav — hairline underline (no glow) — WP wp_nav_menu ===== */
.header_nav {
  display: flex;
  align-items: center;
}

.header_nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.header_nav > ul > li > a {
  font-family: "Geist", inherit;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.3rem 0;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.header_nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.header_nav > ul > li > a:hover {
  color: var(--accent);
}

.header_nav > ul > li > a:hover::after {
  width: 100%;
}

/* ===== CTA — big filled crimson ===== */
.header_cta_big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  font-family: "Geist", inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bg-paper);
  background: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.header_cta_big:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--bg-paper);
  transform: translateY(-1px);
}

/* ===== Burger ===== */
.header_burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  width: 5rem;
  height: 5rem;
  padding: 0 1rem;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.header_burger > span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ===== Mobile menu (hidden on desktop) — WP wp_nav_menu + standalone CTA ===== */
.header_mobile {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem var(--main-padding);
  background: var(--surface-bg-strong);
  border-top: 1px solid var(--hairline);
}

.header_mobile > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header_mobile > ul > li > a {
  display: block;
  font-family: "Geist", inherit;
  font-size: 3.4rem;
  font-weight: 500;
  color: var(--ink);
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
}

.header_mobile > ul > li:last-child > a {
  border-bottom: none;
}

/* ============================================
   Mobile — ≤1024px
   ============================================ */
@media (max-width: 1024px) {
  .header_inner {
    padding: 2rem var(--main-padding);
  }

  .header_logo {
    gap: 1.4rem;
  }

  .header_nav {
    display: none;
  }

  .header_cta_big {
    display: none;
  }

  .header_burger {
    display: flex;
    width: 14rem;
    height: 14rem;
    gap: 1.4rem;
    padding: 0 3rem;
  }

  .header_burger > span {
    height: 4px;
  }

  /* ===== Mobile CTA — bright filled crimson ===== */
  .header_mobile > a.header_mobile_cta {
    margin-top: 1.6rem;
    padding: 2.4rem 2rem;
    color: var(--bg-paper);
    background: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    border-bottom: 1.5px solid var(--accent);
    text-align: center;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 700;
    font-size: 3.6rem;
    transition:
      background 0.25s ease,
      border-color 0.25s ease;
  }

  .header_mobile > a.header_mobile_cta:hover,
  .header_mobile > a.header_mobile_cta:active {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--bg-paper);
  }
}
