/* Solutions mega-menu (29 Oct 2026): brand-style panel, icon tiles, playful hover */
@media (min-width: 1025px) {
  .cc-nav .cc-has-mega > a::after { transition: transform .25s var(--cc-ease); }
  .cc-nav .cc-has-mega:hover > a::after, .cc-nav .cc-has-mega:focus-within > a::after { transform: rotate(225deg) translate(-2px, -2px); }
  .cc-nav .cc-has-mega:hover > a, .cc-nav .cc-has-mega:focus-within > a { color: var(--cc-purple); background: var(--cc-purple-50); }

  .cc-nav .sub-menu.cc-mega {
    left: 50%; top: calc(100% + 14px); width: min(920px, 92vw); min-width: 0;
    transform: translate(-42%, 14px) scale(.98); transform-origin: 30% 0;
    display: grid !important; grid-template-columns: 250px repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px;
    padding: 14px; background: #fff; border: 2.5px solid var(--cc-black); border-radius: 22px; box-shadow: 7px 7px 0 var(--cc-black);
    transition: opacity .22s var(--cc-ease), transform .28s cubic-bezier(.2,1.3,.4,1), visibility .22s;
  }
  /* hover bridge so the panel doesn't close crossing the gap */
  .cc-nav .sub-menu.cc-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
  .cc-nav .cc-has-mega:hover > .sub-menu.cc-mega,
  .cc-nav .cc-has-mega:focus-within > .sub-menu.cc-mega { opacity: 1; visibility: visible; transform: translate(-42%, 0) scale(1); }

  /* intro card */
  .cc-mega__intro { grid-column: 1; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; border-radius: 16px; background: var(--cc-purple); color: #fff; border: 2px solid var(--cc-black); position: relative; overflow: hidden; }
  .cc-mega__intro::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--cc-yellow); border: 2px solid var(--cc-black); opacity: .95; transition: transform .5s cubic-bezier(.2,1.3,.4,1); }
  .cc-has-mega:hover .cc-mega__intro::after { transform: translate(-14px, -14px) scale(1.06); }
  .cc-mega__kicker { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: #fff; color: var(--cc-purple); border: 1.5px solid var(--cc-black); border-radius: 999px; padding: 4px 10px; }
  .cc-mega__intro strong { font-family: var(--cc-font-head); font-size: 1.45rem; line-height: 1.08; font-weight: 900; }
  .cc-mega__intro p { margin: 0; font-size: .88rem; line-height: 1.5; color: rgba(255,255,255,.92); position: relative; z-index: 1; }
  .cc-nav .cc-mega__intro a.cc-mega__all { width: auto; margin-top: auto; align-self: flex-start; position: relative; z-index: 1; padding: 9px 14px; background: #fff; color: var(--cc-black); font-weight: 800; font-size: .88rem; border: 2px solid var(--cc-black); border-radius: 999px; box-shadow: 3px 3px 0 var(--cc-black); transition: transform .15s, box-shadow .15s; }
  .cc-nav .cc-mega__intro a.cc-mega__all:hover { background: var(--cc-yellow); color: var(--cc-black); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--cc-black); }

  /* items */
  .cc-nav .cc-mega__item > a { width: 100%; height: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border: 2px solid transparent; border-radius: 14px; background: transparent; color: var(--cc-black); transition: background .15s, border-color .15s, transform .18s var(--cc-ease), box-shadow .18s var(--cc-ease); }
  .cc-nav .cc-mega__item > a:hover, .cc-nav .cc-mega__item > a:focus-visible { background: var(--cc-purple-50); border-color: var(--cc-black); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--cc-black); color: var(--cc-black); }
  .cc-nav .cc-mega__item.current-menu-item > a { background: var(--cc-purple-50); border-color: var(--cc-purple); }
  .cc-mega__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; border: 2px solid var(--cc-black); background: var(--cc-yellow); box-shadow: 2px 2px 0 var(--cc-black); transition: transform .35s cubic-bezier(.2,1.6,.4,1); }
  .cc-mega__icon img, .cc-mega__icon svg { width: 26px; height: 26px; }
  .cc-mega__item--lilac .cc-mega__icon { background: #E3DDFF; }
  .cc-mega__item--cyan .cc-mega__icon { background: #CFF1FF; }
  .cc-mega__item--green .cc-mega__icon { background: #C9F5D9; }
  .cc-mega__item > a:hover .cc-mega__icon { transform: rotate(-8deg) scale(1.1); }
  .cc-mega__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
  .cc-mega__name { font-family: var(--cc-font-head); font-weight: 800; font-size: .98rem; line-height: 1.2; }
  .cc-mega__desc { font-size: .8rem; line-height: 1.35; color: #4a4d53; font-weight: 500; }
  .cc-mega__go { flex: none; font-weight: 900; color: var(--cc-purple); opacity: 0; transform: translateX(-6px); transition: opacity .15s, transform .2s var(--cc-ease); }
  .cc-mega__item > a:hover .cc-mega__go { opacity: 1; transform: translateX(0); }

  /* staggered entrance */
  .cc-mega > li { opacity: 0; transform: translateY(6px); transition: opacity .25s var(--cc-ease), transform .3s var(--cc-ease); }
  .cc-has-mega:hover .cc-mega > li, .cc-has-mega:focus-within .cc-mega > li { opacity: 1; transform: none; }
  .cc-mega > li:nth-child(2){transition-delay:.03s}.cc-mega > li:nth-child(3){transition-delay:.05s}.cc-mega > li:nth-child(4){transition-delay:.07s}
  .cc-mega > li:nth-child(5){transition-delay:.09s}.cc-mega > li:nth-child(6){transition-delay:.11s}.cc-mega > li:nth-child(7){transition-delay:.13s}
  .cc-mega > li:nth-child(8){transition-delay:.15s}.cc-mega > li:nth-child(9){transition-delay:.17s}.cc-mega > li:nth-child(10){transition-delay:.19s}
  .cc-mega > li:nth-child(11){transition-delay:.21s}

  /* footer strip */
  .cc-mega__foot { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 12px 14px 12px 18px; background: var(--cc-yellow); border: 2px solid var(--cc-black); border-radius: 14px; font-size: .9rem; }
  .cc-mega__foot b { font-weight: 800; }
  .cc-nav .cc-mega__foot a { width: auto; flex: none; padding: 8px 14px; background: var(--cc-black); color: #fff; border-radius: 999px; font-weight: 800; font-size: .86rem; }
  .cc-nav .cc-mega__foot a:hover { background: var(--cc-purple); color: #fff; }
  .cc-nav .cc-mega__foot a span { display: inline-block; transition: transform .2s; }
  .cc-nav .cc-mega__foot a:hover span { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) { .cc-mega, .cc-mega > li, .cc-mega__icon, .cc-mega__intro::after { transition: none !important; } }

/* mobile drawer: keep the rail list, add the icons, hide the desktop-only cards */
@media (max-width: 1024px) {
  .cc-mega__intro, .cc-mega__foot, .cc-mega__desc, .cc-mega__go { display: none !important; }
  .cc-nav .cc-mega__item > a { display: flex !important; align-items: center; gap: 12px; }
  .cc-mega__icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--cc-black); background: var(--cc-yellow); }
  .cc-mega__icon img, .cc-mega__icon svg { width: 20px; height: 20px; }
  .cc-mega__item--lilac .cc-mega__icon { background: #E3DDFF; }
  .cc-mega__item--cyan .cc-mega__icon { background: #CFF1FF; }
  .cc-mega__item--green .cc-mega__icon { background: #C9F5D9; }
}
/* keep the panel inside the viewport on smaller laptops */
@media (min-width: 1025px) and (max-width: 1400px) {
  .cc-nav .cc-has-mega { position: static; }
  .cc-nav .sub-menu.cc-mega { left: 50%; transform: translate(-50%, 14px) scale(.98); width: min(900px, calc(100vw - 48px)); top: calc(100% - 4px); }
  .cc-nav .cc-has-mega:hover > .sub-menu.cc-mega, .cc-nav .cc-has-mega:focus-within > .sub-menu.cc-mega { transform: translate(-50%, 0) scale(1); }
}
@media (min-width: 1025px) and (max-width: 1180px) {
  .cc-nav .sub-menu.cc-mega { grid-template-columns: 210px repeat(3, minmax(0, 1fr)); }
  .cc-mega__desc { font-size: .76rem; }
}
/* review fixes */
@media (min-width: 1025px) {
  .cc-mega__intro { grid-row: 1 / span 4; }
  .cc-mega__intro::after { width: 110px; height: 110px; right: -46px; bottom: -46px; }
  .cc-mega__intro p { padding-right: 6px; }
  .cc-nav .sub-menu.cc-mega { top: calc(100% + 18px); }
  .cc-nav .cc-mega__item.current-menu-item > a { border-color: transparent; background: transparent; }
  .cc-nav .cc-mega__item.current-menu-item .cc-mega__name::after { content: "You're here"; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--cc-purple); color: #fff; font-family: var(--cc-font-body); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
  .cc-mega__desc { color: #3a3d43; }
}
@media (min-width: 1025px) {
  .cc-nav .sub-menu.cc-mega { align-items: stretch; }
  .cc-mega__intro { grid-row: 1 / -1; align-self: stretch; }
  .cc-mega__foot { grid-row: 4; }
  .cc-nav .cc-mega__item.current-menu-item .cc-mega__name::after { content: "Here"; white-space: nowrap; display: inline-block; }
}
@media (min-width: 1025px) {
  .cc-nav .sub-menu.cc-mega { grid-auto-flow: row; grid-template-rows: repeat(3, auto) auto; }
  .cc-mega__intro { grid-column: 1; grid-row: 1 / 5; }
  .cc-mega > .cc-mega__item { grid-column: auto; }
  .cc-mega > li:nth-child(2) { grid-area: 1 / 2; } .cc-mega > li:nth-child(3) { grid-area: 1 / 3; } .cc-mega > li:nth-child(4) { grid-area: 1 / 4; }
  .cc-mega > li:nth-child(5) { grid-area: 2 / 2; } .cc-mega > li:nth-child(6) { grid-area: 2 / 3; } .cc-mega > li:nth-child(7) { grid-area: 2 / 4; }
  .cc-mega > li:nth-child(8) { grid-area: 3 / 2; } .cc-mega > li:nth-child(9) { grid-area: 3 / 3; } .cc-mega > li:nth-child(10) { grid-area: 3 / 4; }
  .cc-mega > .cc-mega__foot { grid-area: 4 / 2 / 5 / 5; }
}
@media (min-width: 1025px) { .cc-nav .cc-mega__item > a { align-items: flex-start; } .cc-mega__intro::after { width: 90px; height: 90px; right: -38px; bottom: -38px; } }

/* Industries mega panel (29 Oct): 10 items, intro + 3 columns + 4th row */
@media (min-width: 1025px) {
  .cc-nav .sub-menu.cc-mega--ind { grid-template-rows: repeat(4, auto) auto; }
  .cc-mega--ind > .cc-mega__intro { grid-area: 1 / 1 / 5 / 2; }
  .cc-mega--ind > li:nth-child(11) { grid-area: 4 / 2; }
  .cc-mega--ind > .cc-mega__foot { grid-area: 5 / 2 / 6 / 5; }
  .cc-mega--ind > li:nth-child(12) { grid-area: 5 / 2 / 6 / 5; }
  .cc-mega--ind .cc-mega__intro { background: var(--cc-yellow); color: var(--cc-black); }
  .cc-mega--ind .cc-mega__intro strong, .cc-mega--ind .cc-mega__intro p, .cc-mega--ind .cc-mega__kicker { color: var(--cc-black); }
  .cc-mega--ind .cc-mega__intro .cc-mega__all { background: var(--cc-black); color: #fff; }
}
.cc-mega__item--green .cc-mega__icon { background: #9FEBC1; }
@media (min-width: 1025px) {
  .cc-nav .sub-menu.cc-mega--ind { grid-template-rows: repeat(4, auto); }
  .cc-mega--ind > li:nth-child(12), .cc-mega--ind > .cc-mega__foot { grid-area: 4 / 3 / 5 / 5; }
  .cc-mega--ind .cc-mega__intro::after { background: var(--cc-purple); }
}
@media (min-width: 1025px) {
  .cc-mega--ind .cc-mega__intro { justify-content: flex-start; }
  .cc-mega--ind .cc-mega__intro .cc-mega__all { margin-top: auto; position: relative; z-index: 1; }
  .cc-mega--ind .cc-mega__intro::after { width: 110px; height: 110px; right: -46px; bottom: -46px; }
  .cc-mega--ind .cc-mega__intro p { font-size: .95rem; }
}
