/* ==========================================================================
   Service pages + the 2026-11-26 homepage additions (service links, estimate
   steps, footer Services column). A new file rather than edits to style.css:
   the zone ignores ?v= for cache busting, so a new URL is the safe change.
   Colours are the tokens from index.html; every pair is one already measured
   there (ink/muted/green/deep on white, linen and mint; white and leaf on deep).
   ========================================================================== */

/* Homepage: each service card links to its page; the whole card is the target. */
.svc { position: relative; }
.svc-link { color: inherit; text-decoration: none; }
.svc-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.svc-link:hover, .svc-link:focus-visible { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; }
.svc:has(.svc-link:hover) { border-color: var(--green); }
.svc:has(.svc-link:focus-visible) { outline: 3px solid var(--green); outline-offset: 3px; }
.svc-link:focus-visible { outline: none; }

/* Three numbered steps to a free estimate. */
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .85rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1.1rem 1rem 3.9rem;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  min-height: 3.6rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: .85rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
}
.steps strong { color: var(--deep); }
.nowrap { white-space: nowrap; }
.steps-compact { margin-top: 1.25rem; gap: .6rem; }
.steps-compact li { padding: .75rem 1rem .75rem 3.6rem; min-height: 0; }
.steps-compact li::before { top: .6rem; }

/* Footer: Services column. */
.footer-links { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-links a { min-height: 44px; }

/* ---------------------------------------------------------- service pages */

.crumbs { padding-top: 1rem; padding-bottom: .25rem; font-size: .95rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }

.page-hero { background: linear-gradient(180deg, var(--white) 0, var(--white) 55%, var(--linen) 100%); padding: .5rem 0 2.5rem; }
.page-hero-grid { display: grid; gap: 1.75rem; align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); max-width: 18ch; }
.page-hero h1 em { font-style: normal; color: var(--green); }
.page-hero .lede { max-width: 52ch; margin-bottom: 1.25rem; }
.page-photo { border-radius: var(--radius); overflow: hidden; }
.page-photo img { aspect-ratio: 3 / 2; object-fit: cover; }

.detail-grid { display: grid; gap: 2rem; align-items: start; }
.checklist { list-style: none; margin: 1.25rem 0 1rem; padding: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; font-size: 1.125rem; }
.checklist .ico { margin-top: .2rem; color: var(--green); }
.note { color: var(--muted); max-width: 50ch; }
.when-card { background: var(--mint); border-radius: var(--radius); padding: 1.4rem 1.3rem; }
.when-card h2 { font-size: 1.5rem; }
.when { margin: 0 0 1rem; display: grid; gap: .9rem; }
.when dt { font-weight: 700; color: var(--deep); }
.when dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--green); }
.pair { margin: 0; color: var(--ink); }
.pair a { font-weight: 700; }

.steps-section { background: var(--linen); }
.related-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .85rem; }
.related-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 64px;
  padding: .75rem 1rem;
  background: var(--white);
  border: 2px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--deep);
  text-decoration: none;
}
.related-card:hover { border-color: var(--green); color: var(--green); }

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps-compact { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .page-hero { padding: 1rem 0 4rem; }
  .page-hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .detail-grid { grid-template-columns: 1.3fr 1fr; gap: 3.5rem; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.1fr; }
}
