/* Shared site navigation (homepage and inner pages).
   Loaded after styles.css / pages.css; only touches the header nav and mobile menu. */

.desktop-nav{gap:26px}
.services-dropdown{min-width:240px}
.service-nav-link{width:100%;min-height:44px;padding:11px 14px;border-radius:5px;font-size:13px;font-weight:500;letter-spacing:.4px;transition:background .15s,color .15s}
.service-nav-link::before{content:'';flex-shrink:0;width:4px;height:4px;margin-right:13px;border-radius:50%;background:#9fc699}
.service-nav-link:hover,.service-nav-link:focus-visible{background:#e8f6e6;color:var(--green-dark)}
.service-nav-link[aria-current="page"]{background:var(--accent);color:#324630;font-weight:700}
.service-nav-link[aria-current="page"]::before{background:#324630}
.nav-link[aria-current="page"]{color:var(--green-dark)}
.mobile-nav>a[aria-current="page"]{color:var(--green-dark);font-weight:700}

@media (max-width:1180px){
  .desktop-nav{gap:19px;margin-right:4px}
  .nav-link{font-size:12px}
}
/* Seven links plus the button need a little more room than the original five, so the nav
   folds into the menu at 900px (the homepage originally switched at 800px). */
@media (max-width:900px){
  .desktop-nav{display:none}
  .menu-toggle{display:block}
  .mobile-nav:not([hidden]){display:flex;flex-direction:column;max-height:min(75vh,600px);overflow-y:auto;padding:10px 25px 25px;border-top:1px solid #d7e9d4}
  .mobile-nav>a{padding:13px 4px;border-bottom:1px solid #ddebdb;font-size:14px}
  .mobile-nav>a span{margin-left:8px;padding:2px 5px;border-radius:3px;background:var(--accent);font-size:8px}
  .menu-toggle[aria-expanded=true] span:first-child{transform:translateY(4px) rotate(45deg)}
  .menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-4px) rotate(-45deg)}
  .mobile-services-nav{border-bottom:1px solid #ddebdb}
  .mobile-nav .services-trigger{width:100%;min-height:47px;justify-content:space-between;padding:13px 4px;text-align:left;font-size:14px}
  .mobile-nav .services-trigger .chevron{margin:0;padding:0;background:none;color:inherit;font-size:18px}
  .mobile-nav .services-dropdown{position:static;min-width:0;margin:0 0 14px 4px;padding:4px 5px 4px 12px;border:0;border-left:2px solid #abd4a6;border-radius:0;background:#e8f6e6;box-shadow:none}
  .mobile-nav .services-dropdown .service-nav-link{min-height:44px;padding:10px 12px;border-bottom:0;font-size:13px}
}
