/* ==========================================================================
   Assertica — New Era site chrome: nav + footer
   --------------------------------------------------------------------------
   Shared by every page in the direction. Scoped under `.ne-nav` / `.ne-footer`
   so nothing here can reach the existing theme.
   Requires tokens.css. In the WordPress theme these become header.php and
   footer.php partials — keep the markup identical when porting.
   ========================================================================== */

/* --- nav ----------------------------------------------------------------- */

.ne-nav {
  position: fixed;
  top: clamp(0.75rem, 2vh, 1.25rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - clamp(1.5rem, 4vw, 3rem));
  max-width: var(--ne-container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.7rem 0.7rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill, 100px);
  background: rgba(7, 10, 20, 0.72);
  backdrop-filter: saturate(150%) blur(var(--glass-blur));
  -webkit-backdrop-filter: saturate(150%) blur(var(--glass-blur));
}

.ne-nav__logo { display: flex; align-items: center; flex: none; }
.ne-nav__logo img { height: 22px; display: block; }

.ne-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ne-nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-sm, 0.9rem);
  font-weight: 500;
  color: var(--ink-body);
  text-decoration: none;
  transition: color var(--dur-fast, 0.2s) ease;
}

.ne-nav__links a:hover,
.ne-nav__links a[aria-current='page'] { color: var(--ink-bright); }

.ne-nav__links a[aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--orange); }

/* The flagship offering — the one nav link allowed to pull the eye. */
.ne-nav__links a.is-feature { color: var(--orange); font-weight: 600; white-space: nowrap; }
.ne-nav__links a.is-feature:hover { color: var(--orange-light); }

/* A tight-radius control inside the pill nav. A second capsule nested in the
   first is what made this read as dated — the shape contrast is the fix. */
.ne-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 1.15rem;
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: var(--radius-control-sm, 10px);
  background: rgba(249, 115, 22, 0.1);
  font-family: var(--font-body);
  font-size: var(--text-sm, 0.9rem);
  font-weight: 500;
  color: var(--ink-bright) !important;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--dur-base, 0.3s) var(--ease-cine),
              background var(--dur-base, 0.3s) var(--ease-cine),
              box-shadow var(--dur-base, 0.3s) var(--ease-cine);
}

.ne-nav__cta:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white) !important;
  box-shadow: var(--shadow-orange-sm, 0 4px 20px rgba(249, 115, 22, 0.4));
}

/* The nav CTA never gets the underline treatment of a plain nav link. */
.ne-nav__links .ne-nav__cta[aria-current='page'] { text-decoration: none; }

.ne-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.65rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control-sm, 10px);   /* a control, not a label */
  background: var(--glass-strong);
  cursor: pointer;
}

.ne-nav__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink-bright);
}

.ne-nav a:focus-visible,
.ne-nav button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (max-width: 900px) {
  .ne-nav { padding-left: 1.15rem; }
  .ne-nav__burger { display: flex; }
  .ne-nav__links {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    background: rgba(7, 10, 20, 0.96);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
  }
  .ne-nav__links[hidden] { display: none; }
  .ne-nav__links a { padding: 0.7rem 0.85rem; border-radius: var(--radius-control, 12px); font-size: 1rem; }
  .ne-nav__links a:hover { background: var(--glass); }
  .ne-nav__cta { justify-content: center; margin-top: 0.25rem; padding-block: 0.8rem; }
  .ne-nav__burger { border-radius: var(--radius-control-sm, 10px); }
}

/* --- footer --------------------------------------------------------------
   Sits on --void-2 so it separates from the field without leaving the ramp. */

.ne-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(7, 10, 20, 0.72), var(--void-2));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--ink-body);
  font-family: var(--font-body);
}

.ne-footer__inner {
  max-width: var(--ne-container);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--space-6, 2rem) 2.5rem;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.ne-footer__brand img { height: 24px; display: block; margin-bottom: 1.1rem; }

.ne-footer__brand p {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  font-size: var(--text-sm, 0.9rem);
  line-height: var(--leading-normal, 1.6);
  color: var(--ink-body);
}

.ne-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--glass-border-lit);
  padding-bottom: 3px;
  transition: border-color var(--dur-fast, 0.2s) ease, color var(--dur-fast, 0.2s) ease;
}

.ne-footer__mail:hover { color: var(--orange); border-color: var(--orange); }

.ne-footer__col h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: var(--text-2xs, 0.75rem);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow, 2px);
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ne-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }

.ne-footer__col a {
  font-size: var(--text-sm, 0.9rem);
  color: var(--ink-body);
  text-decoration: none;
  transition: color var(--dur-fast, 0.2s) ease;
}

.ne-footer__col a:hover { color: var(--orange); }

.ne-footer__bottom {
  max-width: var(--ne-container);
  margin: 0 auto;
  padding: 1.5rem var(--space-6, 2rem) 2.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-xs, 0.8rem);
  color: var(--ink-muted);
}

.ne-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.ne-footer__bottom a { color: var(--ink-muted); text-decoration: none; }
.ne-footer__bottom a:hover { color: var(--ink-bright); }

.ne-footer a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (max-width: 900px) {
  .ne-footer__inner { grid-template-columns: 1fr 1fr; }
  .ne-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .ne-footer__inner { grid-template-columns: 1fr; }
}
