/* ============================================================
   SERVICES MEGA-DROPDOWN
   The panel only. The bar it hangs from — including the typography
   and box of the "Services" summary — lives in css/site-header.css.
   Keep it that way: styling the summary here is what made it render
   differently from its sibling links.
   ============================================================ */

.services-nav-menu {
  align-self: stretch;
  display: flex;
  align-items: center;
  color: inherit;
}

.services-nav-menu > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  list-style: none;
  cursor: pointer;
}

.services-nav-menu > summary::-webkit-details-marker { display: none; }

.services-nav-menu > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.services-nav-menu[open] > summary::after { margin-top: 3px; transform: rotate(225deg); }

/* Edges line up with the header container. JS publishes the container's real
   centre and width; the fallbacks below keep it viewport-centred if it can't. */
.services-menu-panel {
  position: fixed;
  z-index: 2000;
  top: var(--services-menu-top, 81px);
  left: var(--services-menu-center, 50%);
  display: grid;
  grid-template-columns: .8fr repeat(4, 1fr);
  width: var(--services-menu-width, min(1160px, calc(100vw - 56px)));
  color: #111a21;
  background: #fff;
  border: 1px solid #d5d0c7;
  box-shadow: 0 24px 70px rgba(17, 26, 33, .18);
  transform: translateX(-50%);
}

.services-menu-panel a {
  padding: 0;
  color: inherit;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.services-menu-panel a::after,
.services-menu-panel a::before { display: none; }

.services-menu-intro {
  display: flex;
  min-height: 290px;
  padding: 28px;
  color: #fff;
  background: #111a21;
  flex-direction: column;
}

.services-menu-intro span,
.services-menu-group > a:first-child {
  color: #f5b400;
  font: 600 10px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.services-menu-group > a:first-child { color: #9a6700; }

.services-menu-intro strong {
  max-width: 180px;
  margin-top: 18px;
  font: 600 27px/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}

.services-menu-intro a {
  margin-top: auto;
  color: #f5b400 !important;
}

.services-menu-group {
  min-width: 0;
  padding: 28px 22px;
  border-left: 1px solid #e5e1d9;
}

.services-menu-group > a:first-child {
  display: block;
  margin-bottom: 18px;
}

.services-menu-group ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-direction: column;
  gap: 12px;
}

.services-menu-group li a {
  display: block;
  color: #465059 !important;
  transition: color .16s ease, transform .16s ease;
}

.services-menu-group li a:hover,
.services-menu-group li a:focus-visible {
  color: #111a21 !important;
  transform: translateX(3px);
}

.services-menu-group li a::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 9px 2px 0;
  background: #f5b400;
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .services-nav-menu {
    display: block;
    width: 100%;
  }

  .services-nav-menu > summary {
    justify-content: space-between;
    width: 100%;
  }

  .services-menu-panel {
    position: static;
    display: grid;
    width: 100%;
    margin-top: 12px;
    max-height: none;
    grid-template-columns: 1fr 1fr;
    box-shadow: none;
    transform: none;
  }

  .services-menu-intro {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 20px;
  }

  .services-menu-intro strong { max-width: none; font-size: 22px; }
  .services-menu-intro a { margin-top: 20px; }
  .services-menu-group { padding: 20px; }
}

@media (max-width: 620px) {
  .services-menu-panel { grid-template-columns: 1fr; }
  .services-menu-intro { grid-column: auto; }
  .services-menu-group { border-top: 1px solid #e5e1d9; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .services-nav-menu > summary::after,
  .services-menu-group li a { transition: none; }
}
