/* Desktop Services mega menu (markup: src/lib/servicesMegaMenu.ts).
   The panel spans the header's content width, so the Services item and its
   nav ancestors are made static and the header row is the positioning box. */

.elementor-element-3b1f0c0 > .e-con-inner { position: relative; }
.elementor-element-93028b3,
.elementor-element-93028b3 .elementor-widget-container,
.elementor-element-93028b3 nav.elementor-nav-menu--main,
.elementor-element-93028b3 ul.elementor-nav-menu,
.elementor-element-93028b3 li.tq-mega-host { position: static !important; }

.tq-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  /* Transparent hover bridge; services-mega-menu.js stretches it up to the
     link's bottom edge when the panel opens. */
  padding-top: 10px;
  font-family: "Golos Text", Sans-serif;
}
/* Opening is driven by services-mega-menu.js (hover with a close delay,
   focus, tap; it adds html.tq-mega-js). Plain CSS hover/focus is the no-JS fallback. */
.tq-mega-host.is-open > .tq-mega { display: block; }
html:not(.tq-mega-js) .tq-mega-host:hover > .tq-mega,
html:not(.tq-mega-js) .tq-mega-host:focus-within > .tq-mega { display: block; }

.tq-mega__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 18px;
  margin: 0;
  padding: 24px;
  list-style: none;
  background: #fff;
  border-top: 4px solid var(--e-global-color-primary, #05AB00);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.tq-mega__card { margin: 0; padding: 0; list-style: none; min-width: 0; }
/* The theme sets nowrap + flex-grow on every horizontal-nav link. */
.elementor-nav-menu--layout-horizontal .elementor-nav-menu .tq-mega a,
.tq-mega__name,
.tq-mega__cta-title { white-space: normal !important; overflow-wrap: break-word; flex-grow: 0; }

.elementor-nav-menu .tq-mega a.tq-mega__main {
  display: block;
  padding: 0;
  color: #252525;
  text-decoration: none;
}
.tq-mega__img {
  display: block;
  aspect-ratio: 400 / 276;
  overflow: hidden;
  border-radius: 8px;
  background: #eaeaea;
}
.tq-mega__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.tq-mega__main:hover .tq-mega__img img,
.tq-mega__main:focus-visible .tq-mega__img img { transform: scale(1.05); }

.tq-mega__name {
  display: block;
  margin-top: 9px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #252525;
}
.tq-mega__main:hover .tq-mega__name,
.tq-mega__main:focus-visible .tq-mega__name,
.tq-mega__main[aria-current="page"] .tq-mega__name { color: var(--e-global-color-secondary, #036400); }

.tq-mega__subs { margin: 5px 0 0; padding: 0; list-style: none; }
.tq-mega__subs li { margin: 0; padding: 0; list-style: none; }
.elementor-nav-menu .tq-mega .tq-mega__subs a {
  display: block;
  padding: 3px 0;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.3;
  color: #444;
  text-decoration: none;
}
.elementor-nav-menu .tq-mega .tq-mega__subs a:hover,
.elementor-nav-menu .tq-mega .tq-mega__subs a:focus-visible,
.elementor-nav-menu .tq-mega .tq-mega__subs a[aria-current="page"] { color: var(--e-global-color-secondary, #036400); }

.elementor-nav-menu .tq-mega li.tq-mega__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 16px !important;
  border-radius: 8px;
  background: #252525;
  color: #fff;
}
.tq-mega__cta-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; color: #fff; }
.elementor-nav-menu .tq-mega a.tq-mega__cta-phone {
  display: block;
  padding: 9px 6px;
  border-radius: 75px;
  background: var(--e-global-color-primary, #05AB00);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap !important;
}
.elementor-nav-menu .tq-mega a.tq-mega__cta-phone:hover,
.elementor-nav-menu .tq-mega a.tq-mega__cta-phone:focus-visible { background: var(--e-global-color-secondary, #036400); }
.elementor-nav-menu .tq-mega a.tq-mega__cta-all {
  display: block;
  padding: 0;
  color: #eaeaea;
  font-size: 14px;
  text-align: center;
  text-decoration: underline;
}

.tq-mega a:focus-visible { outline: 2px solid var(--e-global-color-primary, #05AB00); outline-offset: 3px; }

/* Narrow desktops (the desktop nav shows from 1025px up). */
@media (max-width: 1240px) {
  .tq-mega__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tq-mega__img { aspect-ratio: 16 / 8; }
}

@media (prefers-reduced-motion: reduce) {
  .tq-mega__img img { transition: none; }
}
