/* ============================================================
   FindElectro — "Book a Service" MEGA MENU
   Additive header enhancement. Reuses existing --fe-* design
   tokens from styles.css. Font-family intentionally left to
   inherit so the global Poppins branding applies.
   ============================================================ */

/* ============ MEGA MENU: Book a Service ============ */
.fe-mega-parent > .fe-mega-panel {
  display: none;
  padding: 0;
  min-width: unset;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--fe-border-soft);
  box-shadow: var(--fe-shadow-lg);
}
@media (min-width: 992px) {
  .fe-mega-parent > .fe-mega-panel {
    position: fixed !important;
    inset: auto auto auto 50% !important;
    top: var(--fe-header-h, 88px) !important;
    transform: translateX(-50%) !important;
    width: min(1140px, 94vw);
    margin: 0 !important;
  }
  .fe-mega-parent:hover > .fe-mega-panel,
  .fe-mega-parent:focus-within > .fe-mega-panel,
  .fe-mega-parent.show > .fe-mega-panel {
    display: block;
    animation: fe-mega-fade .22s ease-out;
  }
  .fe-mega-parent > .fe-mega-panel::before {
    content: "";
    position: absolute;
    top: -0.75rem; left: 0; right: 0; height: 0.75rem;
  }
}
@keyframes fe-mega-fade {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.fe-mega-inner { display: flex; align-items: stretch; background: #FFFFFF; max-height: 76vh; }

.fe-mega-cats {
  width: 280px; flex: 0 0 280px;
  background: var(--fe-bg-soft);
  border-right: 1px solid var(--fe-border-soft);
  padding: 1rem;
  overflow-y: auto;
}
.fe-mega-cat {
  display: flex; align-items: center; gap: .7rem;
  width: 100%; border: none; background: transparent;
  padding: .68rem .8rem; border-radius: 12px;
  text-align: left; font-weight: 600;
  font-size: .85rem; color: var(--fe-text-soft); cursor: pointer;
  transition: all .2s ease; margin-bottom: .2rem;
}
.fe-mega-cat .fe-mega-cat-ico { font-size: 1.05rem; color: var(--fe-primary); width: 22px; text-align: center; flex-shrink: 0; }
.fe-mega-cat span { flex: 1; }
.fe-mega-cat .fe-mega-cat-arrow { font-size: .7rem; opacity: 0; transform: translateX(-4px); transition: all .2s ease; color: var(--fe-primary); }
.fe-mega-cat:hover { background: rgba(255,255,255,0.7); color: var(--fe-primary); }
.fe-mega-cat.active {
  background: linear-gradient(90deg, var(--fe-bg-tint), rgba(0,140,157,0.03));
  color: var(--fe-primary);
  box-shadow: inset 3px 0 0 var(--fe-primary);
}
.fe-mega-cat.active .fe-mega-cat-arrow { opacity: 1; transform: translateX(0); }

.fe-mega-content { flex: 1 1 auto; padding: 1.5rem 1.7rem; overflow-y: auto; }
.fe-mega-pane { display: none; }
.fe-mega-pane.active { display: block; animation: fe-pane-fade .25s ease; }
@keyframes fe-pane-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.fe-mega-pane-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.fe-mega-pane-head i { font-size: 1.3rem; color: var(--fe-primary); }
.fe-mega-pane-head h6 { margin: 0; font-weight: 800; font-size: 1.05rem; color: var(--fe-text); }
.fe-mega-pane-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .2rem 1.4rem; }
.fe-mega-link {
  display: flex; align-items: center; gap: .4rem;
  padding: .48rem .5rem; border-radius: 8px;
  font-size: .86rem; font-weight: 500;
  color: var(--fe-text-soft); text-decoration: none; transition: all .18s ease;
}
.fe-mega-link i { font-size: .5rem; color: var(--fe-accent-cyan); flex-shrink: 0; }
.fe-mega-link:hover { background: var(--fe-bg-tint); color: var(--fe-primary); padding-left: .75rem; }
.fe-mega-pane-more { margin-top: 1rem; }
.fe-mega-pane-more a { font-size: .82rem; font-weight: 700; color: var(--fe-primary); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.fe-mega-pane-more a:hover { gap: .55rem; }

.fe-mega-promo {
  width: 260px; flex: 0 0 260px;
  background: linear-gradient(160deg, #0F1B2D 0%, #08313A 100%);
  color: #fff; padding: 1.6rem 1.4rem; flex-direction: column;
}
.fe-mega-promo-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--fe-accent-cyan), var(--fe-primary));
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1rem;
}
.fe-mega-promo h5 { font-weight: 700; font-size: 1.02rem; margin-bottom: .5rem; color: #fff; }
.fe-mega-promo p { font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 1.1rem; line-height: 1.5; }
.fe-mega-promo .btn-fe-ai { width: 100%; justify-content: center; }
.fe-mega-promo-links { list-style: none; padding: 0; margin: 1.1rem 0 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.fe-mega-promo-links a { color: rgba(255,255,255,.85); font-size: .83rem; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: space-between; transition: color .2s ease; }
.fe-mega-promo-links a:hover { color: var(--fe-accent-cyan); }

@media (max-width: 991.98px) {
  .fe-mega-parent > .fe-mega-panel {
    position: static !important;
    width: 100% !important;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,.12);
    margin-top: .5rem !important;
  }
  .fe-mega-inner { flex-direction: column; max-height: none; background: transparent; }
  .fe-mega-cats { display: none; }
  .fe-mega-content { padding: .75rem 1rem; }
  .fe-mega-pane { display: block !important; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .75rem; }
  .fe-mega-pane:last-child { border-bottom: none; margin-bottom: 0; }
  .fe-mega-pane-head h6 { color: #fff; }
  .fe-mega-pane-head i { color: var(--fe-accent-cyan); }
  .fe-mega-pane-grid { grid-template-columns: 1fr; gap: 0; }
  .fe-mega-link { color: #fff; }
  .fe-mega-link:hover { background: rgba(255,255,255,.08); color: var(--fe-accent-cyan); padding-left: .5rem; }
  .fe-mega-promo { display: none; }
}

/* ============ AI PILL BUTTON (mega promo) ============ */
.btn-fe-ai {
  background: linear-gradient(95deg, var(--fe-accent-magenta), var(--fe-primary), var(--fe-accent-cyan));
  background-size: 200% 100%;
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.6rem;
  font-size: 0.9rem;
  transition: all .35s ease;
  box-shadow: 0 10px 28px rgba(233, 30, 128, 0.12);
}
.btn-fe-ai:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 14px 38px rgba(0, 180, 201, 0.45);
  color: #FFFFFF;
}
