/* Shared service navigation: a roomy desktop panel and an inline mobile list. */
.nav-services {
  display:flex;
  align-items:center;
  flex-shrink:0;
}
.services-overview {
  display:flex;
  align-items:center;
  min-height:44px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}
.services-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  width:44px;
  min-height:44px;
  margin-left:2px;
  padding:0;
  border:0;
  border-radius:3px;
  background:transparent;
  color:var(--ink);
  cursor:pointer;
}
.services-toggle>span {
  display:block;
  width:8px;
  height:8px;
  margin-top:-4px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  font-size:0;
  transform:rotate(45deg);
  transition:transform 180ms ease;
}
.services-toggle[aria-expanded="true"]>span {
  margin-top:4px;
  transform:rotate(225deg);
}
.services-overview:is(:hover,:focus-visible),
.services-overview[aria-current],
.services-toggle[aria-expanded="true"] {
  color:var(--red);
}
.services-overview[aria-current] {
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:7px;
}
.services-toggle:is(:hover,:focus-visible) {
  background:var(--sage);
  color:var(--red);
}
.services-menu {
  position:absolute;
  top:calc(100% - 1px);
  left:52px;
  right:52px;
  padding:26px 30px 30px;
  border:1px solid var(--rule);
  border-top:2px solid var(--red);
  background:var(--paper);
  box-shadow:0 20px 36px -18px rgb(29 30 27 / .3);
  max-height:calc(100vh - 120px);
  max-height:calc(100dvh - 120px);
  overflow-y:auto;
  overscroll-behavior:contain;
  animation:services-menu-in 180ms ease-out both;
}
/* Author-level display styles must never override the hidden fallback. */
.services-toggle[hidden],
.services-menu[hidden] {
  display:none;
}
.services-menu-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding-bottom:18px;
  margin-bottom:26px;
  border-bottom:1px solid var(--rule);
}
.services-menu-heading .eyebrow {
  margin:0;
  color:var(--muted);
  font-size:11px;
}
.services-menu-all {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  color:var(--red);
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}
.services-menu-all:is(:hover,:focus-visible) {
  text-decoration:underline;
}
.services-menu-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:28px;
}
.services-menu-group {
  min-width:0;
}
.services-menu-group h2 {
  min-height:40px;
  margin:0 0 12px;
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:-.015em;
}
.services-menu-group ul {
  list-style:none;
  margin:0;
  padding:0;
}
.services-menu-group li {
  margin:0;
  padding:0;
}
.services-menu-group li+li {
  margin-top:2px;
}
.services-menu-group a {
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:44px;
  padding:10px;
  margin-inline:-10px;
  border-radius:3px;
  color:var(--ink);
  font-size:14px;
  font-weight:400;
  line-height:1.45;
  text-decoration:none;
  overflow-wrap:break-word;
}
.services-menu-group a:is(:hover,:focus-visible),
.services-menu-group a[aria-current="page"] {
  background:var(--sage);
  color:var(--red);
}
.services-menu-group a[aria-current="page"] {
  font-weight:600;
  text-decoration:underline;
  text-decoration-thickness:1px;
}
.services-link-note {
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:400;
  line-height:1.45;
}
.services-overview,
.services-toggle,
.services-menu a {
  transition:color 180ms ease,background-color 180ms ease;
}
.services-menu a:focus-visible {
  outline-offset:2px;
}
@keyframes services-menu-in {
  from { opacity:0; transform:translateY(-5px); }
  to { opacity:1; transform:translateY(0); }
}
@media(min-width:1051px) and (max-width:1180px) {
  .main-nav { gap:17px; }
  .services-menu { left:32px; right:32px; }
  .services-menu-grid { gap:24px; }
}
@media(max-width:1050px) {
  /* A single scroll area keeps the remaining navigation reachable below Services. */
  .js .main-nav,
  .js .main-nav.is-open {
    flex-wrap:nowrap;
    max-height:calc(100vh - 96px);
    max-height:calc(100dvh - 96px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .js .main-nav>* { flex-shrink:0; }
  .main-nav .nav-contact { margin-left:0; }
  .nav-services {
    flex-wrap:wrap;
    justify-content:space-between;
  }
  .services-overview {
    flex:1;
    padding-block:8px;
    font-size:13px;
  }
  .services-toggle { margin-left:12px; }
  .services-menu {
    position:static;
    flex-basis:100%;
    max-height:none;
    margin:8px 0 16px;
    padding:18px 20px 24px;
    border:1px solid var(--rule);
    border-top:2px solid var(--red);
    box-shadow:none;
    overflow:visible;
  }
  .services-menu-heading {
    gap:12px;
    margin-bottom:22px;
    padding-bottom:12px;
  }
  .services-menu-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:26px 32px;
  }
  .services-menu-group h2 {
    min-height:0;
    margin-bottom:8px;
  }
}
@media(max-width:600px) {
  .services-menu { padding:14px 16px 20px; }
  .services-menu-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:0;
    margin-bottom:20px;
    padding-bottom:10px;
  }
  .services-menu-grid {
    grid-template-columns:1fr;
    gap:24px;
  }
  .services-menu-group+.services-menu-group {
    padding-top:20px;
    border-top:1px solid var(--rule);
  }
}
@media(prefers-reduced-motion:reduce) {
  .services-menu { animation:none; }
  .services-overview,
  .services-toggle,
  .services-toggle>span,
  .services-menu a { transition:none; }
}
@media print {
  .services-menu,
  .services-toggle { display:none!important; }
}
