/* ===================================================
   EIT — Mega-menu (shared across all pages)
   =================================================== */

:root {
  --orange: #cb4b10;
}

/* ── 1. Stop Webflow nav being clipped ───────────────── */
.nav-component.w-nav,
.nav-container,
.nav-menu-wrapper.w-nav-menu,
.nav-link-wrapper,
.nav-links {
  overflow: visible !important;
}

/* ── 2. Nav-link guard: stop Bootstrap overriding colour ─ */
/* Bootstrap (.nav-link) loads before Webflow in catalog layout,
   but on static Webflow pages Bootstrap isn't loaded.
   These rules ensure the Webflow nav always looks correct. */
.nav-links a.nav-link,
.nav-links a.w-nav-link,
.eit-mega-wrapper a.nav-link {
  display: inline-block;
  color: #000;
  font-size: 1.125rem;
  font-weight: 400;
  padding: .75rem 1rem;
  text-decoration: none;
  transition: color .2s;
}
.nav-links a.nav-link:hover,
.nav-links a.w-nav-link:hover,
.eit-mega-wrapper a.nav-link:hover {
  color: #d94f10;
}

/* ── 3. Wrapper: inline with sibling nav links ────────── */
.eit-mega-wrapper {
  position: relative;
  display: inline-flex;   /* sits in the flex row like a normal nav item */
  align-items: center;
}

/* ── 4. Chevron ───────────────────────────────────────── */
.eit-mega-chevron {
  font-size: 0.55em;
  opacity: 0.55;
  display: inline-block;
  transition: transform 0.2s;
  vertical-align: middle;
  margin-left: 3px;
  line-height: 1;
}
.eit-mega-wrapper:hover .eit-mega-chevron {
  transform: rotate(180deg);
}

/* ── 5. Dropdown panel ────────────────────────────────── */
.eit-mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 16px 16px 12px;
  width: 680px;
  z-index: 9999;
}
/* Triangle pointer */
.eit-mega-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
  filter: drop-shadow(0 -2px 1px rgba(0, 0, 0, 0.06));
}
.eit-mega-wrapper:hover .eit-mega-menu {
  display: block;
}

/* ── 6. 4-column grid ─────────────────────────────────── */
.eit-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

/* ── 7. Tile: INLINE layout (icon left, text right) ─────── */
.eit-mega-item {
  display: flex;
  flex-direction: row;      /* ← inline: icon + text side by side */
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #222;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
}
.eit-mega-item:hover {
  background: #fef3ee;
  color: var(--orange);
  text-decoration: none;
}
/* Category image (when category has an image) */
.eit-mega-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: #f5f5f5;
  padding: 3px;
  flex-shrink: 0;
}
/* Icon box (when no image) */
.eit-mega-icon {
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  color: #888;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.eit-mega-item:hover .eit-mega-icon {
  background: #fde8de;
  color: var(--orange);
}
/* Tile label */
.eit-mega-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.25;
}

/* ── 8. "View all" footer row ─────────────────────────── */
.eit-mega-footer-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  text-align: right;
}
.eit-mega-footer-row a {
  color: var(--orange);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.eit-mega-footer-row a:hover {
  text-decoration: underline;
}

/* ── 9. Mobile: no dropdown, plain link only ──────────── */
@media (max-width: 991px) {
  .eit-mega-menu   { display: none !important; }
  .eit-mega-chevron { display: none; }
  /* On mobile the Webflow hamburger exposes the nav-links as a column;
     mega-wrapper should look identical to other nav links */
  .eit-mega-wrapper {
    display: block;
    width: 100%;
  }
  .eit-mega-wrapper a.nav-link {
    display: block;
    width: 100%;
  }
}
