/* ═══════ AIO Pro Chimney — Shared Services Mega-Menu ═══════
   Scoped under .aio-mega* so it cannot collide with page styles. */

.aio-mega { position: relative; display: inline-flex; align-items: center; }

.aio-mega > .aio-mega-trigger {
  color: #231557; text-decoration: none; font-weight: 700; font-size: .86rem;
  text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center;
  gap: 6px; position: relative; background: none; border: none; font-family: inherit;
  padding: 0; letter-spacing: inherit;
}
.aio-mega > .aio-mega-trigger::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: linear-gradient(135deg, #e63946 0%, #b71c1c 100%); transition: .3s;
}
.aio-mega:hover > .aio-mega-trigger::after,
.aio-mega.open > .aio-mega-trigger::after { width: 100%; }
.aio-mega > .aio-mega-trigger .aio-mega-caret { font-size: .68rem; transition: transform .25s; }
.aio-mega.open > .aio-mega-trigger .aio-mega-caret { transform: rotate(180deg); }

.aio-mega-panel {
  display: none; position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%);
  background: #fff; border-radius: 14px; border: 1px solid #ececec;
  box-shadow: 0 22px 60px rgba(0,0,0,.16);
  padding: 26px 30px; z-index: 999;
  grid-template-columns: repeat(4, minmax(184px, 1fr)); gap: 10px 26px;
  width: max-content; max-width: 92vw;
}
.aio-mega:hover .aio-mega-panel,
.aio-mega.open .aio-mega-panel { display: grid; }
.aio-mega-panel::before {
  content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}

.aio-mega-col h5 {
  font-size: .66rem; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase;
  color: #d4af37; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0;
}
.aio-mega-col a {
  display: block; color: #444; text-decoration: none; font-size: .82rem; font-weight: 600;
  text-transform: none; letter-spacing: 0; padding: 7px 9px; border-radius: 6px;
  transition: .18s; line-height: 1.35;
}
.aio-mega-col a::after { display: none !important; }
.aio-mega-col a:hover { background: #f8f9fa; color: #e63946; padding-left: 15px; }
.aio-mega-col a .aio-mega-free {
  display: inline-block; background: #e63946; color: #fff; font-size: .58rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .8px; padding: 2px 6px; border-radius: 4px;
  margin-left: 6px; vertical-align: middle;
}

.aio-mega-foot {
  grid-column: 1 / -1; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f0f0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.aio-mega-foot span { font-size: .8rem; color: #777; font-weight: 600; }
.aio-mega-foot a.aio-mega-all {
  background: linear-gradient(135deg, #e63946 0%, #b71c1c 100%); color: #fff !important;
  padding: 9px 20px; border-radius: 50px; font-size: .74rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1px; text-decoration: none; white-space: nowrap;
}
.aio-mega-foot a.aio-mega-all:hover { filter: brightness(1.1); padding-left: 20px; }

/* ── Mobile / tablet: panel becomes an inline accordion inside the nav ── */
@media (max-width: 992px) {
  .aio-mega { display: block; width: 100%; }
  .aio-mega > .aio-mega-trigger { width: 100%; justify-content: space-between; padding: 6px 0; }
  .aio-mega-panel {
    position: static; transform: none; display: none; width: 100%; max-width: 100%;
    grid-template-columns: 1fr; box-shadow: none; border: none; border-left: 3px solid #d4af37;
    border-radius: 0; padding: 6px 0 6px 12px; margin: 6px 0 4px; gap: 0;
    max-height: 62vh; overflow-y: auto;
  }
  .aio-mega:hover .aio-mega-panel { display: none; }
  .aio-mega.open .aio-mega-panel { display: grid; }
  .aio-mega-col { margin-bottom: 10px; }
  .aio-mega-col h5 { margin-bottom: 4px; }
  .aio-mega-col a { font-size: .84rem; padding: 8px 6px; }
  .aio-mega-foot { flex-direction: column; align-items: stretch; text-align: center; }
}

.aio-skip{position:absolute;left:-9999px;top:0;z-index:9999;background:#231557;color:#fff;padding:12px 20px;font-weight:800;text-decoration:none;border-radius:0 0 8px 0;}
.aio-skip:focus{left:0;}
:focus-visible{outline:3px solid #d4af37;outline-offset:2px;}
