/*--------------------------------------------------------------
# NeuraAI — division theme layer
#
# Loaded AFTER assets/css/main.css. It does three things and no more:
#   1. re-points the inherited template's accent token to the NeuraAI
#      signal colour (warm orange) defined in the group design system;
#   2. styles the NEURA / AI brand lockup;
#   3. styles the group bar and footer group strip that connect this
#      division back to Neura Digital.
#
# The inherited stylesheet uses var(--accent-color) in 334 places, so the
# division signal colour is genuinely a token swap rather than a re-skin.
# Changing the four values in the ":root" block below re-themes the whole
# division; that is the mechanism NeuraSec / Enterprise / MSP will reuse.
--------------------------------------------------------------*/

:root {
  /* Group base tokens (shared with the Neura Digital root site) */
  --neura-bg: #050608;
  --neura-surface: #0e1218;
  --neura-border: rgba(255, 255, 255, 0.1);
  --neura-text-muted: #a4afbd;

  /* Division signal — NeuraAI */
  --neura-signal: #ff8a2a;
  --neura-signal-bright: #ffb04a;
  --neura-signal-soft: rgba(255, 138, 42, 0.16);

  /* Re-point the inherited template accent at the division signal */
  --accent-color: var(--neura-signal);
  --nav-dropdown-hover-color: var(--neura-signal);
}

/* Two literals in the inherited stylesheet were not tokenised. */
.btn-getstarted,
.btn-getstarted:focus {
  background: var(--accent-color);
}

/*--------------------------------------------------------------
# Brand lockup — NEURAAI
#
# The joined family wordmark, mirroring .brand-lockup on the group
# site: no separator character, NEURA carries the family weight and
# the suffix carries the division signal.
--------------------------------------------------------------*/
.nlockup {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--heading-font);
  white-space: nowrap;
}

.nlockup-family {
  font-weight: 800;
  letter-spacing: 0.07em;
  /* Cancel the trailing letter-space, then re-open a hair so the joint
     reads as one word in two voices rather than as a word space. */
  margin-right: -0.07em;
  padding-right: 0.05em;
  color: var(--heading-color);
}

.nlockup-suffix {
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--neura-signal);
}

.header .logo .sitename.nlockup {
  font-size: 26px;
}

.footer .footer-about .logo .sitename.nlockup {
  font-size: 22px;
}

@media (max-width: 400px) {
  .header .logo .sitename.nlockup {
    font-size: 21px;
  }
}

/*--------------------------------------------------------------
# Group bar — the relationship back to Neura Digital
--------------------------------------------------------------*/
.ngroup-bar {
  background: var(--neura-bg);
  border-bottom: 1px solid var(--neura-border);
  font-size: 13px;
  line-height: 1.4;
}

.ngroup-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.ngroup-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--neura-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.ngroup-home strong {
  color: #fff;
  font-weight: 600;
}

.ngroup-home:hover {
  color: #fff;
}

/* The masterbrand cue is a neutral signal line, not a spectrum. */
.ngroup-signal {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  flex: 0 0 auto;
  background: #d7dee8;
}

.ngroup-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.ngroup-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--neura-text-muted);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.ngroup-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.ngroup-nav a[data-div="ai"]::before { background: #ff8a2a; opacity: 1; }
.ngroup-nav a[data-div="neurasec"]::before { background: #2f80ff; opacity: 1; }
.ngroup-nav a[data-div="enterprise"]::before { background: #9b6cff; opacity: 1; }
.ngroup-nav a[data-div="msp"]::before { background: #23d6a5; opacity: 1; }

.ngroup-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.ngroup-nav a.is-current {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Current division is also marked with text, not colour alone. */
.ngroup-nav a.is-current::after {
  content: " (you are here)";
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 575px) {
  .ngroup-bar-inner {
    justify-content: flex-start;
  }

  .ngroup-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    margin-left: -10px;
  }

  .ngroup-nav::-webkit-scrollbar {
    display: none;
  }
}

/* Compact NeuraDigital group navigation. The inherited NeuraAI header remains
   the practice navigation; on mobile the group links move into that one menu. */
.ngroup-bar--compact .ngroup-bar-inner {
  min-height: 54px;
  padding-top: 7px;
  padding-bottom: 7px;
  flex-wrap: nowrap;
}

.ngroup-brand {
  display: inline-flex;
  align-items: baseline;
  color: #fff;
  font-family: var(--heading-font);
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.ngroup-brand__suffix {
  color: #d7dee8;
}

.ngroup-primary {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ngroup-primary > a,
.ngroup-practices > summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--neura-text-muted);
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.ngroup-primary > a:hover,
.ngroup-practices > summary:hover,
.ngroup-practices[open] > summary {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.ngroup-talk {
  color: #111 !important;
  background: var(--neura-signal) !important;
}

.ngroup-practices {
  position: relative;
}

.ngroup-practices > summary {
  list-style: none;
}

.ngroup-practices > summary::-webkit-details-marker { display: none; }
.ngroup-practices > summary::after { content: "⌄"; margin-left: 7px; }

.ngroup-practices__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(560px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--neura-border);
  border-radius: 12px;
  background: var(--neura-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transform: translateX(-50%);
}

.ngroup-practices__panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--heading-font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ngroup-practices__panel a:hover,
.ngroup-practices__panel a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 3px 0 0 var(--neura-signal);
}

.ngroup-practices__panel span {
  display: block;
  margin-top: 4px;
  color: var(--neura-text-muted);
  font-family: var(--default-font);
  font-size: 12px;
  font-weight: 400;
}

.mobile-group-only { display: none !important; }

@media (max-width: 1199px) {
  .ngroup-primary { display: none; }
  .ngroup-bar--compact .ngroup-bar-inner { justify-content: flex-start; }
  .mobile-group-only { display: list-item !important; }
  .mobile-practice-label {
    margin-top: 14px;
    padding: 16px 20px 6px;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    font-family: var(--heading-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

/*--------------------------------------------------------------
# Footer group strip
--------------------------------------------------------------*/
.footer .footer-group {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  text-align: center;
}

.footer .footer-group-label {
  margin: 0 0 12px;
  font-family: var(--heading-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
}

.footer .footer-group-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.footer .footer-group-list a {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 999px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.footer .footer-group-list a:hover,
.footer .footer-group-list a:focus-visible {
  color: #fff;
  border-color: var(--neura-signal);
}

.footer .footer-group-list a[aria-current] {
  color: #fff;
  border-color: var(--neura-signal);
}

.footer .footer-group-legal {
  margin: 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
}

.footer .footer-group-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer .footer-group-legal a:hover {
  color: #fff;
}

/*--------------------------------------------------------------
# Accessible AI call-to-action colours
--------------------------------------------------------------*/
.hero .hero-buttons a[href="/contact/"].btn.btn-primary,
a[href="/contact/"].btn-primary,
a[href="/contact/"].btn-book-call,
a[href="/contact/"].btn-closing-cta {
  color: #111 !important;
}

.blog-post-content a[href="/contact/"].btn-inline-cta {
  color: #6f2f00 !important;
  border-color: #6f2f00 !important;
}

.blog-post-content a[href="/contact/"].btn-inline-cta:hover,
.blog-post-content a[href="/contact/"].btn-inline-cta:focus-visible {
  color: #6f2f00 !important;
}

/*--------------------------------------------------------------
# Focus visibility — the inherited template relies on UA defaults
--------------------------------------------------------------*/
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--neura-signal-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
