/* All Services directory page — page-specific deltas on top of main.css / components.css */

/* Remove the shared .page-body top/bottom padding on this page only
   (components.css keeps it for the other category pages). */
#all-services-top{
  padding:0;
}
@media (max-width:720px){
  #all-services-top{padding:0;}
}

.category-nav-section{
  padding:22px 0 0;
}

.browse-toolbar{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}

.browse-search{
  position:relative;
  flex:1 1 260px;
  min-width:220px;
  max-width:360px;
}
.browse-search .search-icon{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  width:16px;
  height:16px;
  color:var(--muted);
  pointer-events:none;
}
.browse-search input{
  width:100%;
  padding:12px 38px 12px 42px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--white);
  font-size:14px;
  font-weight:500;
  color:var(--ink);
  font-family:inherit;
}
.browse-search input::placeholder{color:var(--muted);}
.browse-search input:focus{
  outline:none;
  border-color:var(--blue-500);
  box-shadow:0 0 0 3px var(--blue-100);
}
.browse-search .search-clear{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  width:24px;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--bg-wash);
  color:var(--muted);
  opacity:0;
  visibility:hidden;
  transition:opacity .15s ease, background .15s ease, color .15s ease;
}
.browse-search .search-clear svg{width:11px; height:11px;}
.browse-search .search-clear:hover{background:var(--blue-100); color:var(--blue-700);}
.browse-search.has-query .search-clear{opacity:1; visibility:visible;}

.browse-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.browse-tab{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:11px 18px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--white);
  font-size:13.5px;
  font-weight:700;
  color:var(--navy-900);
  white-space:nowrap;
  transition:border-color .15s ease, color .15s ease, background .15s ease;
}
.browse-tab span{
  font-weight:600;
  color:var(--muted);
}
.browse-tab:hover{
  border-color:var(--blue-500);
  color:var(--blue-700);
  background:var(--blue-50);
}
.browse-tab.is-active{
  border-color:var(--blue-500);
  background:var(--blue-50);
  color:var(--blue-700);
}
.browse-tab.is-active span{color:var(--blue-600);}

.service-search-count{
  font-size:13px;
  color:var(--muted);
  margin:12px 0 0;
  min-height:1px;
}

@media (max-width:640px){
  .browse-search{max-width:none; flex-basis:100%;}
  .browse-tabs{gap:8px;}
}

.category-block{
  scroll-margin-top:90px;
  padding-top:46px;
  margin-top:46px;
  border-top:1px solid var(--line);
}
.category-block:first-of-type{
  padding-top:0;
  margin-top:38px;
  border-top:none;
}
.category-block-head{
  margin-bottom:32px;
}
.category-block-head h2{
  font-size:clamp(24px,3vw,30px);
  font-weight:800;
  color:var(--navy-900);
  letter-spacing:-0.01em;
  margin-bottom:8px;
  text-align:center;
}
.category-block-head p{
  font-size:14.5px;
  color:var(--muted);
  max-width:620px;
  line-height:1.6;
  margin:0 auto 14px;
  text-align:center;
}
.category-block-link{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:6px;
  font-size:13.5px;
  font-weight:700;
  color:var(--blue-700);
}
.category-block-link:hover{color:var(--blue-600);}

.page-group.is-hidden,
.category-block.is-hidden{
  display:none;
}

.no-results{
  display:none;
  padding:48px 0;
  text-align:center;
  color:var(--muted);
  font-size:14.5px;
}
.no-results.is-visible{display:block;}
