/* FourthAlpha's shared colour language. The original lavender logo is the
   signature; deeper violet is used for readable text and working controls.
   Sage, sand and teal remain intentional materials within service stories. */
:root {
  --fa-logo-lavender: #c685ff;
  --fa-accent: #6542c4;
  --fa-accent-hover: #50309e;
  --fa-accent-deep: #55318f;
  --fa-accent-light: #dcc5ff;
  --fa-accent-mid: #ab87e5;
  --fa-accent-tint: #ede5f8;
  --fa-accent-soft: #e2d4f2;
  --fa-accent-line: #cdbbdf;
  /* Compatibility names used by the original theme and editable blocks. */
  --blue: var(--fa-accent);
  --blue-light: var(--fa-accent-light);
}

.hero-visual,
.journey-visual { --fva-blue: var(--fa-accent); }

/* SVG presentation attributes defer to this shared accent, not a second blue. */
.fva-floating-cursor path { fill: var(--fva-blue); }

/* State is consistently violet; sage is reserved for illustrative materials
   and success indicators rather than competing navigation highlights. */
.problem-options button.active {
  background: #2e2939;
  box-shadow: inset 3px 0 0 var(--fa-accent-mid);
}
.journey-steps button.active { background: #30293d; border-color: #8d75aa; }
.journey-steps button.active > span { color: var(--fa-accent-light); }
.connection-toggle button.active { background: var(--fa-accent-tint); color: #392453; }
.connection-toggle button.active span { color: var(--fa-accent-deep); }
.desktop-nav .sub-menu a:hover,
.desktop-nav .sub-menu a:focus-visible,
.mobile-menu .sub-menu a:hover,
.mobile-menu .sub-menu a:focus-visible { background: var(--fa-accent-tint); }

/* Links remain recognisable without colour alone; existing underlines,
   focus rings and active borders are retained by their component styles. */
.text-link:hover,
.header-cta:hover { color: var(--fa-accent); }
.dark-section .text-link:hover { color: var(--fa-accent-light); }
.approach .text-link:hover { color: #fff; }
.svc-content .fa-section-process a { color: var(--fa-accent-light); }
.svc-content .fa-section-process :focus-visible {
  outline-color: var(--fa-accent-light);
}

/* Reading surfaces retain their contrast in each of the nine service stories. */
.svc-page--social-media-content { --svc-tint: var(--fa-accent-tint); --svc-deep: var(--fa-accent-deep); }
.svc-art--social-media-content .svc-art-caption { color: var(--fa-accent-deep); }
.svc-auto-assist { background: var(--fa-accent); border-color: var(--fa-accent); }
.svc-auto-assist > span { color: #fff; }

/* Inline service SVGs inherit the visual's theme. These target only the old
   decorative cobalt paths; logo SVGs are intentionally never recoloured. */
.service-preview svg :is([stroke="#3654ff"],[stroke="#3455ff"],[stroke="#3157f8"]),
.svc-art svg :is([stroke="#3654ff"],[stroke="#3455ff"],[stroke="#3157f8"]) { stroke: var(--fa-accent); }
.service-preview svg :is([fill="#3654ff"],[fill="#3455ff"],[fill="#3157f8"]),
.svc-art svg :is([fill="#3654ff"],[fill="#3455ff"],[fill="#3157f8"]) { fill: var(--fa-accent); }
.service-preview svg [fill="#e5e8ff"] { fill: var(--fa-accent-soft); }
.svc-art svg [stroke="#d1d9e7"] { stroke: #d7cce3; }
.svc-art svg [stroke="#a3aed2"] { stroke: #b3a1cd; }

@media (forced-colors: active) {
  .problem-options button.active,
  .journey-steps button.active { border-color: Highlight; }
}
