/* ================================================
   MEGA NAV: "What We Do" dropdown
   ================================================ */

/* --- Trigger active state --- */
#cpMegaTrigger {
  position: relative;
  z-index: 1031;
}
#cpMegaTrigger.is-active .cp-nav__chevron {
  transform: rotate(180deg);
}
#cpMegaTrigger.is-active {
  color: var(--cp-accent) !important;
}

/* --- Overlay backdrop --- */
.cp-mega-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1029;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}
.cp-mega-overlay.is-open { display: block; }

/* --- Panel container --- */
/* Nearly full viewport width (minus gutters); caps so ultra-wide monitors stay sane */
.cp-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1440px, calc(100vw - 32px));
  z-index: 1040;
  padding-top: 6px;
  box-sizing: border-box;
}
.cp-mega.is-open { display: block; }

.cp-mega__panel {
  background: var(--cp-panel);
  border: 1px solid var(--cp-border);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

/* --- Mobile-only route back to the drawer ---
   Desktop dismisses a mega by moving the pointer away, which touch has no
   equivalent for. Hidden here and switched on in the 991px block below. */
.cp-mega__mobilebar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 14px;
  background: var(--cp-panel);
  border-bottom: 1px solid var(--cp-border);
}

.cp-mega__mobilebar-back,
.cp-mega__mobilebar-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: none;
  border: 1px solid var(--cp-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-slate);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.cp-mega__mobilebar-close {
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1;
}

.cp-mega__mobilebar-back:hover,
.cp-mega__mobilebar-close:hover {
  border-color: var(--cp-accent);
  color: var(--cp-white);
}

/* --- Tabs --- */
.cp-mega__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--cp-border);
  padding: 0 18px;
}

.cp-mega__tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--cp-slate);
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 12px 7px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.cp-mega__tab:hover { color: var(--cp-white); }
.cp-mega__tab.is-active {
  color: var(--cp-accent);
  border-bottom-color: var(--cp-accent);
}

/* --- "What we do" sections: back button + tabs row (shown after a tile is picked) --- */
.cp-mega__secbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--cp-border);
}

.cp-mega__secbar .cp-mega__tabs {
  border-bottom: none;
  padding: 0;
}

/* --- "What we do" mega: who-we-help style image tiles that link to each section --- */
.cp-mega-wtd {
  padding: 14px 20px 16px;
}

.cp-mega-wtd__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.cp-mega-wtd__tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-height: 190px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cp-border);
  background-color: var(--cp-deep);
  background-image: linear-gradient(155deg, rgba(8, 10, 16, 0.25) 0%, rgba(8, 10, 16, 0.85) 100%), var(--wtd-tile-bg);
  background-size: cover;
  background-position: center;
  text-decoration: none !important;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cp-mega-wtd__tile:hover,
.cp-mega-wtd__tile:focus-visible {
  border-color: rgba(245, 128, 36, 0.5);
  transform: translateY(-3px);
  outline: none;
}

.cp-mega-wtd__tile-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 12, 0.9) 72%);
}

.cp-mega-wtd__tile-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.25;
}

.cp-mega-wtd__tile-meta {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.cp-mega-wtd__tile-cta {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cp-accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cp-mega-wtd__tile:hover .cp-mega-wtd__tile-cta,
.cp-mega-wtd__tile:focus-visible .cp-mega-wtd__tile-cta {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .cp-mega-wtd__tiles {
    grid-template-columns: 1fr;
  }
}

/* --- Tab panels --- */
.cp-mega__pane { display: none; padding: 14px 20px 12px; }
.cp-mega__pane.is-active { display: block; }

/* --- Header row --- */
.cp-mega__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.cp-mega__title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-white);
  margin: 0 0 2px;
}
.cp-mega__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.cp-mega__title-link:hover {
  color: var(--cp-orange, #e87c1e);
  text-decoration: none;
}

.cp-mega__header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cp-orange, #e87c1e);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}
.cp-mega__header-link:hover { color: var(--cp-orange-bright, #f9a558); gap: 9px; }

.cp-mega__subtitle {
  font-size: 12px;
  color: var(--cp-muted);
  margin: 0;
  line-height: 1.35;
}

.cp-mega__search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cp-mega__search {
  background: var(--cp-ink);
  border: 1px solid var(--cp-border);
  border-radius: 6px;
  color: var(--cp-white);
  font-size: 13px;
  padding: 8px 14px 8px 34px;
  width: 220px;
  outline: none;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%234d5a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='5'/%3E%3Cline x1='10' y1='10' x2='13' y2='13'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}
.cp-mega__search::placeholder { color: var(--cp-muted); }
.cp-mega__search:focus { border-color: var(--cp-accent); }

.cp-mega__search--wide {
  width: min(300px, 36vw);
  max-width: 320px;
  flex: 1 1 200px;
}

.cp-mega__talk-btn {
  background: var(--cp-accent) !important;
  color: #fff !important;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  padding: 9px 20px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 14px rgba(245, 128, 36, 0.38);
}
.cp-mega__talk-btn:hover {
  background: var(--cp-accent-hover) !important;
  color: #fff !important;
}

/* Keep the CTA and its neighbour button together so the secondary button
   always sits immediately to the right of "Schedule a Call". */
.cp-mega__cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Secondary/outline button (e.g. "Services hub" next to Schedule a Call) */
.cp-mega__ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--cp-white) !important;
  border: 1px solid var(--cp-border);
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.cp-mega__ghost-btn:hover {
  border-color: var(--cp-accent);
  color: var(--cp-accent) !important;
}

/* --- Groups grid (browse view) --- */
.cp-mega__groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.cp-mega__group {
  background: var(--cp-deep);
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  padding: 18px 16px 14px;
}

.cp-mega__group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.cp-mega__group-icon {
  font-size: 14px;
  color: var(--cp-white);
  opacity: 0.7;
  width: 18px;
  text-align: center;
}

.cp-mega__group-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-white);
}

.cp-mega__group-count {
  font-size: 11px;
  color: var(--cp-muted);
  margin-left: auto;
  white-space: nowrap;
}

.cp-mega__cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cp-mega__cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--cp-slate) !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.cp-mega__cat-link:hover {
  background: rgba(245, 128, 36, 0.06);
  color: var(--cp-white) !important;
}

.cp-mega__cat-icon {
  font-size: 12px;
  color: var(--cp-muted);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.cp-mega__cat-name { flex: 1; }

.cp-mega__cat-badge {
  font-size: 11px;
  color: var(--cp-muted);
  background: var(--cp-ink);
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

/* search match highlighting */
.cp-mega__cat-link.is-hidden { display: none; }
.cp-mega__group.is-hidden { display: none; }

/* --- Footer --- */
.cp-mega__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--cp-border);
}

.cp-mega__footer-btn {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-slate) !important;
  text-decoration: none !important;
  border: 1px solid var(--cp-border);
  border-radius: 6px;
  padding: 8px 18px;
  transition: border-color 0.2s, color 0.2s;
}
.cp-mega__footer-btn:hover {
  border-color: var(--cp-accent);
  color: var(--cp-white) !important;
}

.cp-mega__footer-btn--secondary {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  color: rgba(132, 147, 184, 0.95) !important;
  border-color: rgba(30, 39, 64, 0.95);
  background: transparent;
}

.cp-mega__footer-btn--secondary:hover {
  color: var(--cp-white) !important;
  border-color: rgba(132, 147, 184, 0.45);
}

.cp-mega__footer--multi {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

/* --- Services mega: browse-by-category cards --- */
.cp-mega-svc-grid {
  margin-bottom: 4px;
}

/* --- Start here (primary entry paths) --- */
.cp-mega-svc-start {
  margin-bottom: 14px;
  padding: 12px 14px 14px;
  background: linear-gradient(135deg, rgba(245, 128, 36, 0.12) 0%, rgba(20, 25, 38, 0.95) 55%);
  border: 1px solid rgba(245, 128, 36, 0.28);
  border-radius: 10px;
}

.cp-mega-svc-start__title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cp-accent);
  margin: 0 0 4px;
}

.cp-mega-svc-start__hint {
  font-size: 11px;
  color: var(--cp-slate);
  margin: 0 0 10px;
  line-height: 1.4;
}

.cp-mega-svc-start__paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cp-mega-svc-start__path {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.55);
  border: 1px solid var(--cp-border);
  text-decoration: none !important;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.cp-mega-svc-start__path:hover {
  border-color: rgba(245, 128, 36, 0.45);
  background: rgba(245, 128, 36, 0.08);
}

.cp-mega-svc-start__path-label {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--cp-white) !important;
  line-height: 1.25;
}

.cp-mega-svc-start__path-desc {
  font-size: 10px;
  color: var(--cp-muted);
  line-height: 1.35;
}

.cp-mega-svc-section-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cp-muted);
  margin: 0 0 10px;
}

.cp-mega-svc-grid__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 16px;
  margin-bottom: 2px;
  /* Default grid stretch makes every card as tall as the tallest in the row;
     flex:1 on __body + margin-top:auto on __foot then leaves a huge gap on
     short cards (e.g. Security). Start-align rows so card height = content. */
  align-items: start;
  grid-auto-rows: min-content;
}

.cp-mega-svc-card.cp-mega__group {
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  min-height: 0;
  align-self: start;
  width: 100%;
}

.cp-mega-svc-card {
  background: var(--cp-deep);
  border: 1px solid var(--cp-border);
}

.cp-mega-svc-card__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cp-mega-svc-card__headings {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cp-mega-svc-card__headings::before {
  content: "Category";
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(132, 147, 184, 0.75);
  margin-bottom: 2px;
}

.cp-mega-svc-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.cp-mega-svc-card--orange .cp-mega-svc-card__icon {
  background: linear-gradient(145deg, #f39c12, #d35400);
}
.cp-mega-svc-card--blue .cp-mega-svc-card__icon {
  background: linear-gradient(145deg, #3498db, #1f618d);
}
.cp-mega-svc-card--violet .cp-mega-svc-card__icon {
  background: linear-gradient(145deg, #9b59b6, #6c3483);
}
.cp-mega-svc-card--green .cp-mega-svc-card__icon {
  background: linear-gradient(145deg, #27ae60, #1e8449);
}
.cp-mega-svc-card--teal .cp-mega-svc-card__icon {
  background: linear-gradient(145deg, #1abc9c, #117a65);
}
.cp-mega-svc-card--amber .cp-mega-svc-card__icon {
  background: linear-gradient(145deg, #ca6f1e, #935116);
}
.cp-mega-svc-card--rose .cp-mega-svc-card__icon {
  background: linear-gradient(145deg, #e91e63, #922b5c);
}

.cp-mega-svc-card__title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cp-mega-svc-card__tagline {
  font-size: 10px;
  font-weight: 500;
  color: rgba(77, 90, 122, 0.98);
  margin: 0;
  line-height: 1.4;
}

.cp-mega-svc-card__body {
  padding: 6px 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cp-mega-svc-card__body::before {
  content: "Services";
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(132, 147, 184, 0.72);
  margin-bottom: 4px;
}

.cp-mega-svc-card__body--split::before {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.cp-mega-svc-card__primary {
  font-weight: 700;
  font-size: 13px;
  padding: 8px 10px !important;
  margin-bottom: 2px;
  border-radius: 8px;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.cp-mega-svc-card__primary:hover {
  color: #fff !important;
  background: rgba(245, 128, 36, 0.14);
  border-color: rgba(245, 128, 36, 0.35);
}

.cp-mega-svc-card__primary .cp-mega__cat-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-mega-svc-card__primary .cp-mega__cat-icon {
  color: rgba(255, 255, 255, 0.82);
}

.cp-mega-svc-card__list {
  list-style: none;
  margin: 0;
  padding: 2px 0 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cp-mega-svc-card__list li {
  margin: 0;
}

.cp-mega-svc-card__list .cp-mega__cat-link--sub {
  padding: 4px 8px 4px 6px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(132, 147, 184, 0.92) !important;
  border-radius: 5px;
  border-left: 2px solid transparent;
}

.cp-mega-svc-card__list .cp-mega__cat-link--sub:hover {
  color: var(--cp-white) !important;
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(245, 128, 36, 0.55);
}

.cp-mega-svc-card__list .cp-mega__cat-link--sub .cp-mega__cat-icon {
  font-size: 10px;
  opacity: 0.75;
}

.cp-mega-svc-card__list--flat {
  padding-top: 4px;
}

.cp-mega-svc-card__body--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  padding-left: 8px;
  padding-right: 8px;
}

.cp-mega-svc-card__col {
  min-width: 0;
}

.cp-mega-svc-card__foot {
  padding: 5px 10px 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Secondary row links (card footers — primary CTA is header "Schedule a call") */
.cp-mega-svc-card__link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(132, 147, 184, 0.88) !important;
  text-decoration: none !important;
  padding: 3px 0 !important;
  border-radius: 0;
  background: none !important;
  letter-spacing: 0.02em;
}

.cp-mega-svc-card__link-secondary:hover {
  color: var(--cp-accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.cp-mega-svc-card.is-hidden {
  display: none;
}

.cp-mega-svc-footer-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--cp-border);
}

.cp-mega-svc-footer-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: var(--cp-deep);
  border: 1px solid var(--cp-border);
  border-radius: 10px;
  text-decoration: none !important;
  transition: border-color 0.2s, background 0.2s;
}

.cp-mega-svc-footer-tile:hover {
  border-color: rgba(245, 128, 36, 0.35);
  background: rgba(245, 128, 36, 0.05);
}

.cp-mega-svc-footer-tile__icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(245, 128, 36, 0.12);
  color: var(--cp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.cp-mega-svc-footer-tile__body {
  min-width: 0;
}

.cp-mega-svc-footer-tile__title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--cp-white) !important;
  margin-bottom: 1px;
}

.cp-mega-svc-footer-tile__desc {
  display: block;
  font-size: 11px;
  color: var(--cp-muted) !important;
  font-weight: 400;
  line-height: 1.35;
}

.cp-mega-svc-footer-strip--secondary {
  margin-top: 8px;
  padding-top: 12px;
  gap: 10px;
}

.cp-mega-svc-footer-tile--quiet {
  padding: 7px 9px;
  background: rgba(10, 13, 20, 0.4);
  border-color: rgba(30, 39, 64, 0.9);
}

.cp-mega-svc-footer-tile.cp-mega-svc-footer-tile--quiet:hover {
  border-color: rgba(132, 147, 184, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.cp-mega-svc-footer-tile--quiet .cp-mega-svc-footer-tile__icon {
  width: 28px;
  height: 28px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(132, 147, 184, 0.85);
}

.cp-mega-svc-footer-tile--quiet .cp-mega-svc-footer-tile__title {
  font-size: 11px;
  font-weight: 600;
  color: var(--cp-slate) !important;
}

.cp-mega-svc-footer-tile--quiet .cp-mega-svc-footer-tile__desc {
  font-size: 10px;
}

@media (max-width: 1100px) {
  .cp-mega-svc-start__paths {
    grid-template-columns: repeat(2, 1fr);
  }

  .cp-mega-svc-grid__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .cp-mega-svc-start__paths {
    grid-template-columns: 1fr;
  }

  .cp-mega-svc-grid__cards {
    grid-template-columns: 1fr;
  }

  .cp-mega-svc-footer-strip {
    grid-template-columns: 1fr;
  }

  .cp-mega-svc-card__body--split {
    grid-template-columns: 1fr;
  }

  .cp-mega__header {
    flex-direction: column;
    align-items: stretch;
  }

  .cp-mega__search-row {
    flex-wrap: wrap;
  }

  .cp-mega__search--wide {
    width: 100%;
    max-width: none;
  }
}

/* ================================================
   DETAIL VIEW: Category drill-down
   ================================================ */
.cp-mega__detail { display: none; }
.cp-mega__detail.is-active { display: block; }

.cp-mega__breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  margin-bottom: 16px;
  border: 1px dashed var(--cp-border);
  border-radius: 8px;
  padding: 12px 16px;
}

.cp-mega__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-slate) !important;
  text-decoration: none !important;
  border: 1px solid var(--cp-border);
  border-radius: 6px;
  padding: 6px 14px;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.cp-mega__back-btn:hover {
  border-color: var(--cp-accent);
  color: var(--cp-white) !important;
}

.cp-mega__crumb-trail {
  font-size: 13px;
  color: var(--cp-muted);
  flex: 1;
}
.cp-mega__crumb-trail span { color: var(--cp-white); }

.cp-mega__goto-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cp-accent) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.cp-mega__goto-btn:hover {
  background: var(--cp-accent-hover) !important;
  color: #fff !important;
}

/* --- Items grid --- */
.cp-mega__items {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.cp-mega__item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cp-deep);
  border: 1px solid var(--cp-border);
  border-radius: 10px;
  padding: 12px 20px;
  min-width: 180px;
  text-decoration: none !important;
  transition: border-color 0.2s, background 0.2s;
}
.cp-mega__item-card:hover {
  border-color: rgba(245, 128, 36, 0.35);
  background: rgba(245, 128, 36, 0.04);
}

.cp-mega__item-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

/* Photo thumbs crop to fill. Every group uses this today; the white plate
   above stays for logo thumbs, which would be unreadable without it. */
.cp-mega__item-logo--photo {
  object-fit: cover;
  background: transparent;
  padding: 0;
}

.cp-mega__item-logo--icon {
  background: #0c0e13;
}

.cp-mega__item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--cp-white) !important;
}

.cp-mega__item-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cp-mega__item-client {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Service drill-down: icon + label (no product logos) */
.cp-mega__items--services .cp-mega__item-card {
  min-width: 200px;
}
.cp-mega__item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 128, 36, 0.12);
  color: var(--cp-accent);
  font-size: 18px;
  flex-shrink: 0;
}

.cp-mega__related-block {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--cp-border);
  background: var(--cp-deep);
}
.cp-mega__related-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--cp-white);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.cp-mega__related-note {
  font-size: 12px;
  color: var(--cp-muted);
  margin: -6px 0 12px;
}

.cp-mega__svc-block {
  margin-bottom: 4px;
}
.cp-mega__svc-sublist {
  list-style: none;
  margin: 0 0 8px 0;
  padding: 2px 0 4px 10px;
  border-left: 2px solid var(--cp-border);
}
.cp-mega__svc-sublist .cp-mega__cat-link--sub {
  padding: 5px 8px;
  font-size: 12px;
}
.cp-mega__related-block--flush {
  margin-top: 10px;
  margin-bottom: 0;
}
.cp-mega__svc-sublist--related {
  border-left-color: rgba(245, 128, 36, 0.25);
}

/* --- Under Renovation card --- */
.cp-mega__renovation {
  border: 1px dashed var(--cp-border);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 20px;
}

.cp-mega__renovation-icon {
  font-size: 32px;
  color: var(--cp-muted);
  margin-bottom: 16px;
}

.cp-mega__renovation h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cp-white);
  margin: 0 0 8px;
}

.cp-mega__renovation p {
  font-size: 14px;
  color: var(--cp-muted);
  margin: 0 0 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cp-mega__renovation-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cp-accent) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.cp-mega__renovation-btn:hover {
  background: var(--cp-accent-hover) !important;
  color: #fff !important;
}

/* ================================================
   SERVICES TAB
   ================================================ */
.cp-mega__services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.cp-mega__service-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--cp-slate) !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}
.cp-mega__service-link:hover {
  background: rgba(245, 128, 36, 0.06);
  color: var(--cp-white) !important;
}

.cp-mega__service-icon {
  font-size: 14px;
  color: var(--cp-accent);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ================================================
   SERVICES MEGA v2 (crafty-penguins-nav.html)
   Sidebar categories + content pane + quick chips
   ================================================ */
/* Services browse: flex so the v2 grid respects panel height without overlapping content below */
#megaServicesBrowse {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#megaServicesBrowse > .cp-mega__header {
  flex-shrink: 0;
}

#megaServicesBrowse > .cp-mega-svc2 {
  flex: 1 1 auto;
  min-height: 0;
}

.cp-mega-svc2 {
  --svc2-bg: #151820;
  --svc2-raised: #1c2030;
  --svc2-hover: #222638;
  --svc2-border: rgba(255, 255, 255, 0.07);
  --svc2-border-mid: rgba(255, 255, 255, 0.13);
  --svc2-text: #f0f1f4;
  --svc2-muted: #8b8fa8;
  --svc2-dim: #52566a;
  --svc2-accent: #e85d2f;
  --svc2-accent-dim: rgba(232, 93, 47, 0.15);
  --svc2-accent-glow: rgba(232, 93, 47, 0.08);

  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  /* One row that respects max-height; min-height:0 on children contains the main pane scroll */
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  max-height: min(500px, calc(100vh - 200px));
  background: var(--svc2-bg);
  border-radius: 0 0 8px 8px;
  margin: 0 -4px;
  overflow: hidden;
}

.cp-mega-svc2__sidebar {
  position: relative;
  z-index: 2;
  border-right: 1px solid var(--svc2-border);
  padding: 6px 0 8px;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

/* Match mega tabs / section labels (Roboto, not monospace) */
.cp-mega-svc2__sidebar-label {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--svc2-muted);
  padding: 4px 1rem 8px;
  line-height: 1.3;
  flex-shrink: 0;
}

/* Natural row height (even distribution made rows huge and hurt hover/click feel). */
.cp-mega-svc2__sidebar > .cp-mega-svc2__cat {
  flex: 0 0 auto;
}

.cp-mega-svc2__cat {
  width: 100%;
  box-sizing: border-box;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 0.85rem;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  transition: background 0.12s, border-color 0.12s;
  color: inherit;
  text-decoration: none;
}

a.cp-mega-svc2__cat {
  -webkit-tap-highlight-color: transparent;
}

.cp-mega-svc2__cat:hover,
.cp-mega-svc2__cat:focus-visible {
  background: var(--svc2-raised);
}

.cp-mega-svc2__cat.is-active {
  background: rgba(36, 40, 58, 0.95);
  border-left-color: var(--svc2-accent);
}

.cp-mega-svc2__cat.is-hidden {
  display: none;
}

.cp-mega-svc2__cat-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  pointer-events: none;
}

.cp-mega-svc2__cat-icon--orange { background: #2a1a10; color: #e85d2f; }
.cp-mega-svc2__cat-icon--blue { background: #101a2a; color: #4a90d9; }
.cp-mega-svc2__cat-icon--violet { background: #1a102a; color: #9b6de8; }
.cp-mega-svc2__cat-icon--green { background: #0f2215; color: #3dba6f; }
.cp-mega-svc2__cat-icon--amber { background: #261d0a; color: #d4910f; }
.cp-mega-svc2__cat-icon--teal { background: #0a1f2e; color: #2aa8d4; }
.cp-mega-svc2__cat-icon--rose { background: #2a1010; color: #e84f4f; }

.cp-mega-svc2__cat-text {
  flex: 1;
  min-width: 0;
}

.cp-mega-svc2__cat-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--svc2-muted);
  display: block;
  line-height: 1.2;
  transition: color 0.12s;
}

.cp-mega-svc2__cat.is-active .cp-mega-svc2__cat-name,
.cp-mega-svc2__cat:hover .cp-mega-svc2__cat-name,
.cp-mega-svc2__cat:focus-visible .cp-mega-svc2__cat-name {
  color: var(--svc2-text);
}

.cp-mega-svc2__cat.is-active .cp-mega-svc2__cat-name {
  font-weight: 700;
}

.cp-mega-svc2__cat-sub {
  font-size: 10px;
  color: var(--svc2-dim);
  display: block;
  margin-top: 0;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-mega-svc2__cat-arrow {
  width: 14px;
  opacity: 0;
  font-size: 11px;
  color: var(--svc2-dim);
  flex-shrink: 0;
  transition: opacity 0.15s ease, color 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.cp-mega-svc2__cat:hover .cp-mega-svc2__cat-arrow,
.cp-mega-svc2__cat:focus-visible .cp-mega-svc2__cat-arrow {
  opacity: 1;
  color: rgba(255, 255, 255, 0.35);
}

.cp-mega-svc2__cat.is-active .cp-mega-svc2__cat-arrow {
  opacity: 1;
  color: var(--svc2-accent);
  transform: translateX(1px);
}

/* Single grid cell stacks all panes so row height = tallest pane (no jump on hover). */
.cp-mega-svc2__main {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  isolation: isolate;
}

.cp-mega-svc2__pane {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.15rem 1.6rem 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  max-height: 100%;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.cp-mega-svc2__pane.is-active:not(.cp-mega-svc2__pane--empty) {
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.cp-mega-svc2__pane--empty {
  display: none !important;
}

.cp-mega-svc2__empty {
  margin: 0;
  padding: 1.25rem 0.5rem;
  color: var(--svc2-muted, #8b93a7);
  font-size: 14px;
}
.cp-mega-svc2__empty a {
  color: #ea8837;
}

.cp-mega-svc2__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cp-mega-svc2__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--svc2-text);
  line-height: 1.2;
  margin: 0;
}

.cp-mega-svc2__desc {
  font-size: 12px;
  color: var(--svc2-muted);
  margin: 4px 0 0;
  line-height: 1.5;
  max-width: 42rem;
}

.cp-mega-svc2__head-cta {
  font-size: 12px;
  font-weight: 500;
  color: var(--svc2-accent) !important;
  background: var(--svc2-accent-dim);
  border: 1px solid rgba(232, 93, 47, 0.25);
  border-radius: 6px;
  padding: 6px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
  transition: background 0.15s;
}

.cp-mega-svc2__head-cta:hover {
  background: rgba(232, 93, 47, 0.22);
  color: #fff !important;
}

/* auto-fit (not auto-fill): lone cards expand to full pane width instead of
   leaving empty grid tracks that keep the first column narrow. */
.cp-mega-svc2__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px;
}

.cp-mega-svc2__card {
  background: rgba(28, 32, 48, 0.92);
  border: 1px solid var(--svc2-border);
  border-radius: 10px;
  padding: 12px 12px 10px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.cp-mega-svc2__card:hover {
  border-color: var(--svc2-border-mid);
  background: rgba(34, 38, 56, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.cp-mega-svc2__card.is-hidden {
  display: none;
}

.cp-mega-svc2__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Main-pane card title row: orange title + hover slab + chevron (match list rows) */
.cp-mega-svc2__card-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--svc2-accent) !important;
  text-decoration: none !important;
  padding: 8px 10px 8px 12px;
  margin: -6px 0 -6px -4px;
  border-radius: 6px;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.cp-mega-svc2__card-title::after {
  content: "\203A";
  flex-shrink: 0;
  width: 1.1em;
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--svc2-accent);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.cp-mega-svc2__card-title:hover,
.cp-mega-svc2__card-title:focus-visible {
  background: rgba(52, 56, 82, 0.55);
  color: #fff !important;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.cp-mega-svc2__card-title:hover::after,
.cp-mega-svc2__card-title:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.cp-mega-svc2__badge {
  font-family: ui-monospace, "DM Mono", monospace;
  font-size: 10px;
  color: var(--svc2-dim);
  background: var(--svc2-bg);
  border: 1px solid var(--svc2-border);
  border-radius: 20px;
  padding: 1px 6px;
  flex-shrink: 0;
}

.cp-mega-svc2__list {
  list-style: none;
  margin: 0;
  padding: 4px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cp-mega-svc2__list li {
  margin: 0;
  padding: 0;
  display: block;
}

/* Card rows: full-width hover slab + orange chevron (reference mega menu) */
.cp-mega-svc2__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(224, 226, 235, 0.92) !important;
  text-decoration: none !important;
  padding: 9px 10px 9px 12px;
  margin: 0 -2px;
  border-radius: 6px;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.cp-mega-svc2__item::after {
  content: "\203A";
  flex-shrink: 0;
  width: 1.1em;
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--svc2-accent);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.cp-mega-svc2__item:hover,
.cp-mega-svc2__item:focus-visible {
  background: rgba(52, 56, 82, 0.55);
  color: #fff !important;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cp-mega-svc2__item:hover::after,
.cp-mega-svc2__item:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.cp-mega-svc2__item.is-hidden,
.cp-mega-svc2__card-title.is-hidden,
.cp-mega-svc2__card-link.is-hidden,
.cp-mega-svc2__head-cta.is-hidden,
.cp-mega-svc2__chip.is-hidden {
  display: none !important;
}

.cp-mega-svc2__card-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--svc2-accent) !important;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none !important;
  opacity: 0.85;
}

.cp-mega-svc2__card:hover .cp-mega-svc2__card-link {
  opacity: 1;
}

.cp-mega-svc2__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 0.65rem;
  border-top: 1px solid var(--svc2-border);
  margin-top: auto;
}

.cp-mega-svc2__chip {
  font-size: 11px;
  color: var(--svc2-muted) !important;
  background: var(--svc2-raised);
  border: 1px solid var(--svc2-border);
  border-radius: 20px;
  padding: 5px 11px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
  text-decoration: none !important;
}

.cp-mega-svc2__chip:hover {
  border-color: var(--svc2-border-mid);
  color: var(--svc2-text) !important;
  background: var(--svc2-hover);
}

.cp-mega-svc2__chip--accent {
  color: var(--svc2-accent) !important;
  border-color: rgba(232, 93, 47, 0.3);
  background: var(--svc2-accent-glow);
}

.cp-mega-svc2__chip--accent:hover {
  background: var(--svc2-accent-dim);
  border-color: var(--svc2-accent);
}

/* ================================================
   HOMEPAGE #services — same row hover + chevron as mega cards
   (selectors only; no HTML / copy changes)
   ================================================ */
#services.s_cp_services .o_grid_item > div > a:last-of-type,
#services.s_cp_services [class*="col-lg"] > div > a:last-of-type,
#services.s_cp_services [class*="col-md"] > div > a:last-of-type {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.25rem;
  padding: 9px 12px 9px 14px !important;
  border-radius: 6px;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: rgba(240, 241, 244, 0.95) !important;
  text-decoration: none !important;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

#services.s_cp_services .o_grid_item > div > a:last-of-type::after,
#services.s_cp_services [class*="col-lg"] > div > a:last-of-type::after,
#services.s_cp_services [class*="col-md"] > div > a:last-of-type::after {
  content: "\203A";
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  color: #e85d2f;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

#services.s_cp_services .o_grid_item > div > a:last-of-type:hover,
#services.s_cp_services .o_grid_item > div > a:last-of-type:focus-visible,
#services.s_cp_services [class*="col-lg"] > div > a:last-of-type:hover,
#services.s_cp_services [class*="col-lg"] > div > a:last-of-type:focus-visible,
#services.s_cp_services [class*="col-md"] > div > a:last-of-type:hover,
#services.s_cp_services [class*="col-md"] > div > a:last-of-type:focus-visible {
  background: rgba(52, 56, 82, 0.55) !important;
  color: #fff !important;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

#services.s_cp_services .o_grid_item > div > a:last-of-type:hover::after,
#services.s_cp_services .o_grid_item > div > a:last-of-type:focus-visible::after,
#services.s_cp_services [class*="col-lg"] > div > a:last-of-type:hover::after,
#services.s_cp_services [class*="col-lg"] > div > a:last-of-type:focus-visible::after,
#services.s_cp_services [class*="col-md"] > div > a:last-of-type:hover::after,
#services.s_cp_services [class*="col-md"] > div > a:last-of-type:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

#services.s_cp_services .o_grid_item > div > a:last-of-type .fa-arrow-right,
#services.s_cp_services [class*="col-lg"] > div > a:last-of-type .fa-arrow-right,
#services.s_cp_services [class*="col-md"] > div > a:last-of-type .fa-arrow-right {
  display: none;
}

/* ================================================
   WHO WE HELP MEGA (4 image tiles → drill-down)
   ================================================ */
/* Desktop + any trigger that opens Who we help mega */
.cp-mega-wwh-trigger {
  position: relative;
  z-index: 1031;
}
.cp-mega-wwh-trigger.is-active .cp-nav__chevron {
  transform: rotate(180deg);
}
.cp-mega-wwh-trigger.is-active {
  color: var(--cp-accent) !important;
}

/* Beat Odoo / bundle rules that hide generic .cp-mega; sit above hero overlap */
#cpMegaNavWwh.cp-mega--wwh.is-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1060;
}

#cpMegaWwhOverlay.is-open {
  display: block !important;
  z-index: 1058;
}

.cp-mega--wwh .cp-mega-wwh__pane {
  display: block;
  padding: 14px 20px 12px;
}

.cp-mega-wwh__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.cp-mega-wwh__tile {
  position: relative;
  cursor: pointer;
  text-align: left;
  min-height: 148px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--cp-border);
  background-color: var(--cp-deep);
  background-image: linear-gradient(155deg, rgba(8, 10, 16, 0.2) 0%, rgba(8, 10, 16, 0.82) 100%), var(--wwh-tile-bg);
  background-size: cover;
  background-position: center;
  padding: 0;
  transition: border-color 0.2s, transform 0.2s;
}

.cp-mega-wwh__tile:hover,
.cp-mega-wwh__tile:focus-visible {
  border-color: rgba(245, 128, 36, 0.45);
  transform: translateY(-2px);
  outline: none;
}

.cp-mega-wwh__tile-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-height: 148px;
  padding: 16px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 12, 0.88) 70%);
}

.cp-mega-wwh__tile-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
}

.cp-mega-wwh__tile-meta {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.cp-mega-wwh__tile.is-hidden {
  display: none;
}

/* Who We Are reuses the tile styling, but its tiles are anchors that navigate
   straight to the page rather than buttons that open a drill-down. */
.cp-mega--wwa .cp-mega-wwh__tile {
  display: flex;
  text-decoration: none !important;
}
/* The inner span carries the bottom shadow but is sized by min-height, so it
   must stretch or the gradient stops short of a taller grid row. */
.cp-mega--wwa .cp-mega-wwh__tile-inner {
  flex: 1;
  padding-bottom: 36px;
}

/* nav.js appends the badge as the tile's last child; on a flex tile that makes
   it a full-height column, so pull it out of flow and sit it on the artwork. */
.cp-mega--wwa .cp-mega-wwh__tile .cp-nav-not-live {
  position: absolute;
  left: 18px;
  bottom: 12px;
  margin-left: 0;
  z-index: 1;
}
.cp-mega--wwa .cp-mega-wwh__tile-meta {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11px;
}

.cp-mega__items--wwh .cp-mega-wwh__entry.is-hidden {
  display: none;
}

.cp-mega-wwh__err {
  font-size: 13px;
  color: var(--cp-muted);
  margin: 8px 0 16px;
}
.cp-mega-wwh__err a {
  color: var(--cp-accent);
}

/* Engagement types tab (What We Do mega) */
.cp-mega__engage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 8px 0 16px;
}

@media (min-width: 700px) {
  .cp-mega__engage-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.cp-mega__engage-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: #131720;
  border: 1px solid #232a38;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.cp-mega__engage-card:hover {
  border-color: #4a6589;
  transform: translateY(-2px);
}

.cp-mega__engage-card--featured {
  border-left: 3px solid #ea8837;
}

.cp-mega__engage-card--solo {
  max-width: 100%;
}

.cp-mega__engage-k {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ea8837;
}

.cp-mega__engage-title {
  font-size: 16px;
  font-weight: 600;
  color: #f5f1e8;
  line-height: 1.25;
}

.cp-mega__engage-blurb {
  font-size: 13px;
  line-height: 1.5;
  color: #8a8b91;
  margin: 0;
  flex: 1;
}

.cp-mega__engage-meta {
  font-size: 12px;
  font-weight: 600;
  color: #ea8837;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 991px) {
  /* Both megas open from the mobile drawer as near-full-width sheets. */
  .cp-mega--wwh.is-open,
  #cpMegaNav.is-open {
    display: block !important;
  }
  .cp-mega__mobilebar {
    display: flex;
  }
  #cpMegaWwhOverlay.is-open,
  #cpMegaOverlay.is-open {
    display: block !important;
  }
  .cp-mega--wwh,
  #cpMegaNav {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    transform: none;
  }

  /* --- "What we do" mega on mobile: tiles -> drill-down, like Who we help --- */
  #cpMegaNav .cp-mega__panel {
    max-height: calc(100vh - 96px);
  }
  #cpMegaNav .cp-mega-wtd__tiles {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #cpMegaNav .cp-mega-wtd__tile,
  #cpMegaNav .cp-mega-wtd__tile-inner {
    min-height: 116px;
  }
  #cpMegaNav .cp-mega__tabs {
    flex-wrap: wrap;
  }
  /* Multi-column drill-down grids collapse to a single column. */
  #cpMegaNav .cp-mega__groups,
  #cpMegaNav .cp-mega-svc-start__paths,
  #cpMegaNav .cp-mega-svc-grid__cards,
  #cpMegaNav .cp-mega-svc-footer-strip,
  #cpMegaNav .cp-mega__services-grid,
  #cpMegaNav .cp-mega-svc-card__body--split {
    grid-template-columns: 1fr;
  }
  /* Services v2: stack the category sidebar above the content pane and let the
     outer panel handle scrolling instead of nested scroll areas. */
  #cpMegaNav .cp-mega-svc2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    max-height: none;
  }
  #cpMegaNav .cp-mega-svc2__sidebar {
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--svc2-border);
    overflow: visible;
  }
  #cpMegaNav .cp-mega-svc2__main {
    overflow: visible;
  }
  #cpMegaNav .cp-mega-svc2__pane {
    max-height: none;
    overflow: visible;
  }
}

/* Designer-only: unpublished routes still in the nav, not shown to visitors. */
.cp-nav-not-live {
  display: inline-block;
  flex-shrink: 0;
  margin-left: 0.45em;
  padding: 1px 5px;
  border: 1px solid rgba(245, 128, 36, 0.55);
  border-radius: 3px;
  background: rgba(245, 128, 36, 0.14);
  color: #f9a558;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.cp-nav__link .cp-nav-not-live,
.cp-nav__mobile-link .cp-nav-not-live {
  font-size: 8px;
  padding: 0 4px;
  margin-left: 0.35em;
  margin-right: 0.25em;
}

.cp-mega__item-card .cp-nav-not-live,
.cp-mega__engage-card .cp-nav-not-live,
.cp-mega__goto-btn .cp-nav-not-live {
  margin-left: 0.5em;
}

.cp-mega-svc2__card-title .cp-nav-not-live {
  margin-left: 8px;
  margin-right: 4px;
}

.cp-mega-svc2__item .cp-nav-not-live,
.cp-mega-svc2__cat .cp-nav-not-live {
  margin-left: auto;
  margin-right: 2px;
}

.cp-mega__cat-link .cp-nav-not-live {
  margin-left: auto;
}
