/* ==========================================================================
   service.css - an individual service page (/services/<slug>)
   Shared by every service detail page; the only thing that varies between
   them is the content in pages/service-*.html.
   ========================================================================== */

.breadcrumb {
  padding-block: var(--space-3);
  font-size: var(--text-sm);
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.breadcrumb li:not(:last-child)::after {
  content: "\00a0/";
  margin-inline-start: 0.25em;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   body: article beside a sticky sidebar
   -------------------------------------------------------------------------- */

.service-layout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.service-body {
  flex: 1 1 62%;
  min-width: 0;
  color: var(--on-light);
}

.service-body__lead {
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
  color: var(--ink);
}

.service-body h2 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: var(--text-xl);
  color: var(--ink);
}

.service-body p + p {
  margin-top: 1em;
}

/** Checklist of what the deliverable includes. */
.service-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.service-list li {
  position: relative;
  padding-inline-start: 1.75em;
}

.service-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

/** Who the service is aimed at - a row of small pills. */
.service-audience {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.service-audience li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--on-light);
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   sidebar
   -------------------------------------------------------------------------- */

.service-aside {
  flex: 0 0 34%;
  position: sticky;
  top: calc(var(--header-height-stuck) + var(--space-3));
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-cta {
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--muted);
  text-align: center;
}

.service-cta__title {
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
  color: var(--on-dark);
}

.service-cta .btn {
  margin-top: var(--space-3);
  background: var(--paper);
  color: var(--ink);
}

.service-cta .btn:hover,
.service-cta .btn:focus-visible {
  background: var(--line);
}

.related {
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--surface);
}

.related__title {
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.related ul {
  display: grid;
  gap: 2px;
}

.related a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--on-light);
  font-size: var(--text-sm);
  transition: background var(--transition);
}

.related a:hover,
.related a:focus-visible {
  background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1024px) {
  .service-layout {
    flex-direction: column;
    margin-bottom: var(--space-5);
  }

  .service-aside {
    position: static;
    width: 100%;
  }
}
