/* ========================================================================== 
   Aethel Cortex unified header and responsive mega menus
   ========================================================================== */

:root {
  --ac-brand: #51c85e;
  --ac-brand-dark: #3baa47;
  --ac-brand-rgb: 81, 200, 94;

  /*
   * Purple is now reserved only for the special promotional visual.
   */
  --ac-promo: #6d5dfc;
  --ac-promo-rgb: 109, 93, 252;

  --ac-rich: #0a0f1e;
  --ac-muted: #687083;
  --ac-border: #e7e9ef;
  --ac-surface: #f7f8fb;
  --ac-white: #ffffff;

  --ac-brand-soft: rgba(var(--ac-brand-rgb), 0.08);
  --ac-brand-soft-strong: rgba(var(--ac-brand-rgb), 0.14);
  --ac-brand-border: rgba(var(--ac-brand-rgb), 0.28);
  --ac-brand-shadow: rgba(var(--ac-brand-rgb), 0.2);

  --ac-header-height: 80px;
  --ac-header-bg: rgba(255, 255, 255, 0.86);
  --ac-panel-bg: rgba(255, 255, 255, 0.99);

  --ac-mega-gradient:
    linear-gradient(
      135deg,
      rgba(var(--ac-brand-rgb), 1) 0%,
      var(--ac-panel-bg) 30%,
      var(--ac-panel-bg) 100%
    );

  --ac-card-gradient:
    linear-gradient(
      135deg,
      rgba(var(--ac-brand-rgb), 0.075),
      var(--ac-surface)
    );

  --ac-shadow: 0 24px 80px rgba(10, 15, 30, 0.14);
  --ac-radius: 22px;
}

html{
    scroll-behavior: smooth !important;
}

html[data-ac-theme="dark"],
html[data-bs-theme="dark"] {
  --ac-rich: #f7f8fc;
  --ac-muted: #b8bfd0;
  --ac-border: rgba(255, 255, 255, 0.12);
  --ac-surface: #151b2c;
  --ac-white: #0e1422;
  --ac-header-bg: rgba(10, 15, 30, 0.9);
  --ac-panel-bg: rgba(14, 20, 34, 0.99);

  --ac-brand-soft: rgba(var(--ac-brand-rgb), 0.11);
  --ac-brand-soft-strong: rgba(var(--ac-brand-rgb), 0.17);
  --ac-brand-border: rgba(var(--ac-brand-rgb), 0.36);

  --ac-mega-gradient:
    linear-gradient(
      135deg,
      rgba(var(--ac-brand-rgb), 0.09) 0%,
      var(--ac-panel-bg) 45%,
      var(--ac-panel-bg) 100%
    );

  --ac-card-gradient:
    linear-gradient(
      135deg,
      rgba(var(--ac-brand-rgb), 0.11),
      var(--ac-surface)
    );

  --ac-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.ac-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0a0f1e;
  color: #fff;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.ac-skip-link:focus {
  transform: translateY(0);
}

.ac-site-header *,
.ac-site-header *::before,
.ac-site-header *::after {
  box-sizing: border-box;
}

.ac-site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10000;
  border-bottom: 1px solid var(--ac-border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateZ(0);
}

.admin-bar .ac-site-header {
  top: 32px;
}

.ac-header-offset {
  height: var(--ac-header-height);
}

.ac-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, 100%);
  height: var(--ac-header-height);
  margin: 0 auto;
}

.ac-brand {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 0 auto;
}

.ac-brand__logo,
.ac-brand__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.ac-brand__logo .custom-logo {
  display: block;
  width: auto;
  max-width: 150px;
  height: 40px;
  object-fit: contain;
}

.ac-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ac-brand);
  box-shadow: 0 10px 30px var(--ac-brand-shadow);
}

.ac-brand__mark-inner {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: #fff;
  transform: rotate(45deg);
}

.ac-brand__name {
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.ac-navigation-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.ac-primary-nav {
  min-width: 0;
}

.ac-nav__list,
.ac-submenu,
.ac-mega-widget-list,
.ac-mega-link-list,
.ac-simple-mega-grid {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ac-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ac-nav__item {
  position: relative;
  padding: 0;
  margin: 0;
}

.ac-nav__item--mega {
  position: static;
}

.ac-nav__row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ac-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 11px;
  color: var(--ac-muted);
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}

.ac-nav__link:hover,
.ac-nav__link:focus-visible,
.ac-nav__item.current-menu-item > .ac-nav__row > .ac-nav__link,
.ac-nav__item.current-menu-ancestor > .ac-nav__row > .ac-nav__link,
.ac-nav__item.is-open > .ac-nav__row > .ac-nav__link {
  color: var(--ac-rich);
  background: rgb(93 252 96 / 24%);
  outline: none;
}

.ac-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 36px;
  margin-left: -7px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ac-muted);
  cursor: pointer;
}



.ac-menu-toggle svg {
  transition: transform 180ms ease;
}

.ac-nav__item.is-open > .ac-nav__row > .ac-menu-toggle svg {
  transform: rotate(180deg);
}

.ac-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ac-theme-toggle,
.ac-mobile-nav-toggle,
.ac-mobile-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--ac-border);
  border-radius: 12px;
  background: var(--ac-white);
  color: var(--ac-rich);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.ac-theme-toggle:hover {
  transform: translateY(-1px);
}

.ac-theme-toggle i {
  transition: transform 220ms ease;
}

.ac-theme-toggle[aria-pressed="true"] i {
  transform: rotate(18deg);
}

.ac-theme-toggle:hover,
.ac-theme-toggle:focus-visible,
.ac-mobile-nav-toggle:hover,
.ac-mobile-nav-toggle:focus-visible,
.ac-mobile-nav-close:hover,
.ac-mobile-nav-close:focus-visible {
  border-color: #51c85e;
  color: var(--ac-brand);
  outline: none;
}

.ac-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: #0a0f1e;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, transform 180ms ease;
}

.ac-header-cta:hover,
.ac-header-cta:focus-visible {
  background: var(--ac-brand);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}
.ac-simple-mega-grid,
.ac-menu-admin-notice {
  color: var(--ac-brand);
  font-size: 13px;
  font-weight: 700;
}

.ac-mobile-nav-toggle,
.ac-navigation-shell__mobile-head,
.ac-mobile-nav-backdrop {
  display: none;
}

/* Desktop dropdowns and mega panels -------------------------------------- */
@media (min-width: 1024px) {
  .ac-submenu,  
  .ac-menu-panel--mega {
    position: absolute;
    /*padding-top:90px;*/
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.985);
    transform-origin: top center;
    transition:
      opacity 180ms ease,
      visibility 180ms ease,
      transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ac-submenu {
    top:0;
    left: 0;
    width: 280px;
    padding: 10px;
    border: 1px solid var(--ac-border);
    border-radius: 18px;
    background: var(--ac-panel-bg);
    box-shadow: var(--ac-shadow);
  }

  .ac-menu-panel--mega {
    /*top: 100%;*/
    left: 50%;
    width: min(1180px, calc(100vw - 48px));
    padding-top: 30px;
    transform: translate(-50%, 12px) scale(0.985);
  }

  /*
   * Keep ordinary dropdowns connected to their trigger while preserving a
   * small invisible hover bridge for nested submenus.
   */
  .ac-submenu::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 8px;
  }

  
.ac-menu-panel__surface {
  max-height: min(680px, calc(100vh - 120px));
  overflow: auto;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius);
  background: var(--ac-mega-gradient);
  box-shadow: var(--ac-shadow);
}

  .ac-nav__item:hover > .ac-submenu,
  .ac-nav__item:focus-within > .ac-submenu,
  .ac-nav__item.is-open > .ac-submenu,
  .ac-nav__item:hover > .ac-menu-panel--mega,
  .ac-nav__item:focus-within > .ac-menu-panel--mega,
  .ac-nav__item.is-open > .ac-menu-panel--mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .ac-nav__item--mega:hover > .ac-menu-panel--mega,
  .ac-nav__item--mega:focus-within > .ac-menu-panel--mega,
  .ac-nav__item--mega.is-open > .ac-menu-panel--mega {
    transform: translate(-50%, 0) scale(1);
  }

  .ac-submenu .ac-nav__row {
    width: 100%;
  }

  .ac-submenu .ac-nav__link {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--ac-rich);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
  }

  .ac-submenu .ac-menu-toggle {
    margin-left: 0;
  }

  .ac-submenu .ac-submenu {
    top: -10px;
    left: calc(100% + 9px);
  }
}

/* Shared mega widget wrapper --------------------------------------------- */
.ac-mega-widget-list > li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ac-mega-widget-list .widget-title,
.ac-mega-widget-list .wp-block-heading:empty {
  display: none;
}

.ac-mega-widget {
  padding: 0;
  margin: 0;
}

.ac-mega-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--ac-brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ac-mega-title {
  margin: 0 0 10px;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(24px, 2.3vw, 35px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ac-mega-copy {
  margin: 0;
  /*color: var(--ac-muted);*/
  font-size: 14px;
  line-height: 1.7;
}

.ac-mega-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 22px;
}

.ac-mega-link-list a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ac-rich);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.ac-mega-link-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--ac-brand);
  flex: 0 0 auto;
}

.ac-mega-link-list a:hover,
.ac-mega-link-list a:focus-visible {
  color: var(--ac-brand);
  transform: translateX(2px);
  outline: none;
}

/* ==========================================================================
   Shared mega-menu elements
   ========================================================================== */

.ac-mega-service__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ac-rich);
  color: var(--ac-white) !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.ac-mega-service__cta:hover,
.ac-mega-service__cta:focus-visible {
  background: var(--ac-brand);
  color: #ffffff !important;
  transform: translateY(-1px);
  outline: none;
}


/* ==========================================================================
   Shared feature and promotional panels
   ========================================================================== */

.ac-mega-service__feature,
.ac-mega-promo-visual {
  margin-top: 24px;
  padding: 22px;
  border-radius: 20px;
}

/*
 * Normal information panels use only the green brand system.
 */
.ac-mega-service__feature {
  border: 1px solid var(--ac-brand-border);
background: #DEFAF4;
background: linear-gradient(90deg,rgba(222, 250, 244, 1) 0%, rgba(182, 236, 214, 1) 50%, rgba(30, 201, 111, 0.79) 100%);
  color: var(--ac-rich);
}

.ac-mega-service__feature > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ac-rich);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.ac-mega-service__feature p {
  margin-top: 7px;
}

.ac-mega-service__feature a {
  color: var(--ac-brand);
  font-weight: 800;
  text-decoration: none;
}

.ac-mega-service__feature a:hover,
.ac-mega-service__feature a:focus-visible {
  color: var(--ac-brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}


/* ==========================================================================
   Services mega menu
   ========================================================================== */

.ac-mega-services__list {
  position: relative;
  display: block;
  min-height: 520px;
  background:
    linear-gradient(
      90deg,
      var(--ac-surface) 0,
      var(--ac-surface) 330px,
      transparent 330px
    ),
    var(--ac-mega-gradient);
}

.ac-mega-service {
  display: block;
  width: 330px;
}

.ac-mega-service__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 16px 8px 20px;
  border-left: 3px solid transparent;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.ac-mega-service__summary > a {
  flex: 1 1 auto;
  color: var(--ac-rich);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease;
}

.ac-mega-service__summary > a:hover,
.ac-mega-service__summary > a:focus-visible,
.ac-mega-service.is-active .ac-mega-service__summary > a {
  color: var(--ac-brand);
  outline: none;
}

.ac-mega-service.is-active .ac-mega-service__summary {
  border-left-color: var(--ac-brand);
  background: var(--ac-panel-bg);
}

.ac-mega-service__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ac-muted);
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.ac-mega-service__toggle:hover,
.ac-mega-service__toggle:focus-visible {
  color: var(--ac-brand);
  background: var(--ac-brand-soft);
  outline: none;
}

.ac-mega-service__detail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 330px;
  display: none;
  padding: 42px 46px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ac-mega-service.is-active .ac-mega-service__detail {
  display: block;
  animation: acMegaFade 180ms ease both;
}

@keyframes acMegaFade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================================================
   Special promotional visual
   Purple is allowed only inside this component
   ========================================================================== */

.ac-mega-promo-visual {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 142px;
  overflow: hidden;
  border: 1px solid rgba(var(--ac-promo-rgb), 0.18);
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(var(--ac-promo-rgb), 0.2),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      rgba(var(--ac-promo-rgb), 0.075),
      var(--ac-surface)
    );
}

.ac-mega-promo-visual__icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border-radius: 18px;
  background: var(--ac-promo);
  color: #ffffff;
  font-size: 24px;
  box-shadow:
    0 16px 34px rgba(var(--ac-promo-rgb), 0.24);
}

.ac-mega-promo-visual__content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.ac-mega-promo-visual__content strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ac-rich);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.ac-mega-promo-visual__content span {
  display: block;
  color: var(--ac-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.ac-mega-promo-visual__orb {
  position: absolute;
  right: -40px;
  bottom: -55px;
  width: 160px;
  height: 160px;
  border: 28px solid rgba(var(--ac-promo-rgb), 0.08);
  border-radius: 50%;
  pointer-events: none;
}


/* ==========================================================================
   Resources, Company and other simple mega menus
   ========================================================================== */

.ac-simple-mega {
  padding: 18px;
  background: transparent;
}

/*
 * Auto-fit prevents the Resources menu from leaving an empty third column.
 * Two links become two equal columns, while larger menus automatically fill
 * additional columns.
 */
.ac-simple-mega-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}

.ac-simple-mega-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  padding: 20px;
  border: 1px solid var(--ac-border);
  border-radius: 18px;
  background: #fff;
  color: var(--ac-rich);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.ac-simple-mega-card:hover,
.ac-simple-mega-card:focus-visible {
  border-color: #51c85e;
  background: var(--ac-white);
  box-shadow:
    0 14px 34px rgba(var(--ac-brand-rgb), 0.12);
  color: var(--ac-brand);
  transform: translateY(-2px);
  outline: none;
}

.ac-simple-mega-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--ac-brand-soft);
  color: var(--ac-brand);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.ac-simple-mega-card:hover .ac-simple-mega-card__icon,
.ac-simple-mega-card:focus-visible .ac-simple-mega-card__icon {
  background: var(--ac-brand);
  color: #ffffff;
  transform: translate(1px, -1px);
}

/* Mobile drawer ----------------------------------------------------------- */
@media (max-width: 1023.98px) {
  .ac-header-inner {
    padding: 0 22px;
  }

  .ac-brand__name {
    font-size: 17px;
  }

  .ac-brand__logo .custom-logo {
    max-width: 126px;
    height: 36px;
  }

  .ac-mobile-nav-toggle {
    display: inline-flex;
  }

  body.ac-nav-open {
    overflow: hidden;
  }

  .ac-navigation-shell {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10020;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(92vw, 460px);
    height: 100dvh;
    padding: 22px;
    background: var(--ac-white);
    box-shadow: -24px 0 80px rgba(10, 15, 30, 0.22);
    transform: translateX(105%);
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .admin-bar .ac-navigation-shell {
    top: 32px;
    height: calc(100dvh - 32px);
  }

  body.ac-nav-open .ac-navigation-shell {
    transform: translateX(0);
  }

  .ac-navigation-shell__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    margin-bottom: 18px;
  }

  .ac-navigation-shell__title {
    color: var(--ac-rich);
    font-family: Sora, Inter, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
  }

  .ac-mobile-nav-close {
    border-radius: 999px;
  }

  .ac-mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(10, 15, 30, 0.44);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 240ms ease, visibility 240ms ease;
  }

  body.ac-nav-open .ac-mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ac-primary-nav {
    flex: 1 1 auto;
  }

  .ac-nav__list {
    display: block;
  }

  .ac-nav__item {
    border-bottom: 1px solid var(--ac-border);
  }

  .ac-nav__row {
    width: 100%;
  }

  .ac-nav__link {
    flex: 1 1 auto;
    min-height: 58px;
    padding: 12px 4px;
    border-radius: 0;
    color: var(--ac-rich);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-transform: none;
    white-space: normal;
  }

  .ac-nav__link:hover,
  .ac-nav__link:focus-visible,
  .ac-nav__item.is-open > .ac-nav__row > .ac-nav__link {
    background: transparent;
    color: var(--ac-brand);
  }

  .ac-menu-toggle {
    width: 44px;
    height: 44px;
    margin-left: 6px;
    border: 1px solid var(--ac-border);
    border-radius: 12px;
    flex: 0 0 auto;
  }

  .ac-submenu,
  .ac-menu-panel--mega {
    position: static;
    display: none;
    width: 100%;
    margin: 0 0 14px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .ac-nav__item.is-open > .ac-submenu,
  .ac-nav__item.is-open > .ac-menu-panel--mega {
    display: block;
  }

  .ac-submenu {
    padding: 4px 0 8px 15px;
    border-left: 2px solid rgba(109, 93, 252, 0.2);
  }

  .ac-submenu .ac-nav__item {
    border-bottom: 0;
  }

  .ac-submenu .ac-nav__link {
    min-height: 42px;
    padding: 8px 4px;
    color: var(--ac-muted);
    font-size: 14px;
    font-weight: 650;
  }

  .ac-menu-panel__surface {
    overflow: hidden;
    border: 1px solid var(--ac-border);
    border-radius: 18px;
    background: var(--ac-surface);
  }

  .ac-header-actions {
    margin-top: 20px;
  }

  .ac-header-cta {
    flex: 1 1 auto;
    min-height: 50px;
  }

  .ac-mega-services__list {
    position: static;
    display: block;
    min-height: 0;
    background: var(--ac-panel-bg);
  }

  .ac-mega-service {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--ac-border);
  }

  .ac-mega-service:last-child {
    border-bottom: 0;
  }

  .ac-mega-service__summary {
    display: flex;
    min-height: 56px;
    padding: 9px 12px 9px 15px;
    border-left: 0;
  }

  .ac-mega-service.is-active .ac-mega-service__summary {
    background: rgba(109, 93, 252, 0.06);
  }

  .ac-mega-service__detail {
    position: static;
    display: none;
    padding: 20px 15px 24px;
    border-top: 1px solid var(--ac-border);
    background: var(--ac-panel-bg);
    overflow: visible;
  }

  .ac-mega-service.is-active .ac-mega-service__detail {
    display: block;
  }

  .ac-mega-service__toggle svg {
    transition: transform 180ms ease;
  }

  .ac-mega-service.is-active .ac-mega-service__toggle svg {
    transform: rotate(180deg);
  }

  .ac-mega-link-list {
    grid-template-columns: 1fr;
  }

  .ac-simple-mega {
    padding: 10px;
  }

  .ac-simple-mega-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ac-simple-mega-card {
    min-height: 64px;
    padding: 14px;
  }

  .ac-mega-promo-visual {
    min-height: 0;
    margin-top: 20px;
    padding: 18px;
  }

  .ac-mega-promo-visual__icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 15px;
    font-size: 19px;
  }
}

@media (max-width: 782px) {
    
    .ac-menu-toggle:hover,
.ac-menu-toggle:focus-visible {
  color: var(--ac-rich);
  background: rgba(109, 93, 252, 0.08);
  outline: none;
}
  .admin-bar .ac-site-header {
    top: 0;
  }

  .admin-bar .ac-navigation-shell {
    top: 46px;
    height: calc(100dvh - 46px);
  }
}

@media (max-width: 520px) {
  .ac-header-inner {
    padding: 0 16px;
  }

  .ac-brand__name {
    max-width: 170px;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-site-header *,
  .ac-site-header *::before,
  .ac-site-header *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}



/* ==========================================================================
   Aethel Cortex refined footer
   ========================================================================== */

.ac-site-footer {
  color: var(--ac-rich);
  background: var(--ac-white);
}

.ac-footer-grid {
  align-items: start;
}

/* Brand ------------------------------------------------------------------ */

.ac-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 25px;
  color: var(--ac-rich);
  text-decoration: none;
}

.ac-footer-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 9px;
  background: var(--ac-brand);
  box-shadow: 0 10px 25px rgba(var(--ac-brand-rgb), 0.22);
  transform: rotate(45deg);
}

.ac-footer-brand__mark span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
}

.ac-footer-brand__name {
  font-family: Sora, Inter, sans-serif;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.ac-footer-brand-copy {
  max-width: 370px;
  margin: 0 0 26px;
  color: var(--ac-muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.75;
}

/* Column typography ------------------------------------------------------ */

.ac-footer-heading {
  position: relative;
  margin: 4px 0 22px;
  padding-bottom: 11px;
  color: var(--ac-rich);
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.ac-footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--ac-brand);
}

.ac-footer-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-footer-list li {
  margin: 0;
  padding: 0;
}

.ac-footer-link {
  display: inline-flex;
  color: var(--ac-muted);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.012em;
  text-decoration: none;
  text-transform: none;
  transition:
    color 170ms ease,
    transform 170ms ease;
}

.ac-footer-link:hover,
.ac-footer-link:focus-visible {
  color: var(--ac-brand);
  transform: translateX(3px);
  outline: none;
}

.ac-footer-link--disabled {
  color: color-mix(in srgb, var(--ac-muted) 52%, transparent);
  font-weight: 500;
  cursor: not-allowed;
  transform: none;
}

/* Tools ------------------------------------------------------------------ */

.ac-footer-tool {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ac-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.ac-footer-tool__dot {
  width: 5px;
  height: 5px;
  margin-top: 7px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--ac-brand);
  box-shadow: 0 0 0 4px rgba(var(--ac-brand-rgb), 0.08);
}

.ac-footer-coming-soon {
  margin-top: 23px;
  padding: 16px 17px;
  border: 1px solid var(--ac-brand-border);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(var(--ac-brand-rgb), 0.07),
      rgba(var(--ac-brand-rgb), 0.025)
    );
}

.ac-footer-coming-soon__label {
  margin: 0 0 7px;
  color: var(--ac-brand);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ac-footer-coming-soon__copy {
  margin: 0;
  color: var(--ac-muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.65;
}

/* Trust badges ----------------------------------------------------------- */

.ac-footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
}

.ac-footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ac-footer-badge img {
  display: block;
  width: 92px;
  height: 44px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.58;
  transition:
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.ac-footer-badge:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-1px);
}

/* Social links ----------------------------------------------------------- */

.ac-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ac-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--ac-border);
  border-radius: 11px;
  background: transparent;
  color: var(--ac-muted);
  font-size: 13px;
  text-decoration: none;
  transition:
    color 170ms ease,
    border-color 170ms ease,
    background-color 170ms ease,
    transform 170ms ease;
}

.ac-footer-social:hover,
.ac-footer-social:focus-visible {
  border-color: var(--ac-brand);
  background: var(--ac-brand-soft);
  color: var(--ac-brand);
  transform: translateY(-2px);
  outline: none;
}

/* Contact block ---------------------------------------------------------- */

.ac-footer-contact {
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid var(--ac-border);
}

.ac-footer-contact__label {
  margin: 0 0 9px;
  color: var(--ac-rich);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.ac-footer-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ac-brand);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 170ms ease,
    gap 170ms ease;
}

.ac-footer-contact__link i {
  font-size: 10px;
}

.ac-footer-contact__link:hover,
.ac-footer-contact__link:focus-visible {
  gap: 11px;
  color: var(--ac-brand-dark);
  outline: none;
}

/* Bottom bar ------------------------------------------------------------- */

.ac-site-footer > div > .border-t:last-child p {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1023.98px) {
  .ac-footer-heading {
    margin-top: 0;
  }
}

@media (max-width: 639px) {
  .ac-site-footer {
    padding-top: 72px;
  }

  .ac-footer-grid {
    margin-bottom: 64px;
  }

  .ac-footer-brand-copy {
    max-width: 100%;
  }

  .ac-footer-column {
    padding-top: 3px;
  }

  .ac-footer-heading {
    margin-bottom: 18px;
  }
}
/* ========================================================================== 
   Header runtime performance safeguards
   These rules do not change mega-menu positioning, hover bridges or sizing.
   ========================================================================== */

/* Dark mode is intentionally disabled during the migration. */
.ac-theme-toggle {
  display: none !important;
}

body.ac-modal-open .ac-site-header {
  background: #ffffff !important;
}

@media (max-width: 1023px) {
  .ac-navigation-shell {
    -webkit-overflow-scrolling: touch;
  }
}
