/* service-page.css — layout for the /services/<slug> detail pages (added 2026-10-27).
 *
 * Hand-written on purpose. The compiled Tailwind file (main-selfhost-20260805.css) only
 * contains the classes that existed when it was built: a utility that is not in it
 * silently does nothing (the homepage quote card lost bg-white that way). Everything
 * these pages need beyond the classes copied from /services lives here, prefixed svc-.
 *
 * Colours come from the theme variables in the compiled CSS. Two are deliberately NOT
 * used for text: --muted-foreground is ~4.0:1 on white (below AA for body copy) and
 * --primary is 4.6:1, so body text uses --svc-ink and links use the 25%-lightness
 * brand teal #136c6c (6.2:1), the same one the mobile call bar uses.
 */
:root {
  --svc-ink: hsl(220 15% 28%);
  --svc-link: #136c6c;
  --svc-line: hsl(var(--border));
}

.svc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 48px;
  background: hsl(var(--background));
  border-bottom: 1px solid var(--svc-line);
}
.svc-hero svg.svc-hero-grid { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.svc-wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.svc-hero .svc-wrap { max-width: 56rem; text-align: center; }
.svc-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: hsl(var(--foreground));
}
.svc-lede { margin: 20px auto 0; max-width: 44rem; font-size: 1.125rem; line-height: 1.7; color: var(--svc-ink); }
.svc-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.svc-trust {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font-size: .9rem; font-weight: 600; color: hsl(var(--foreground));
}
.svc-trust li { display: inline-flex; align-items: center; gap: 6px; }
.svc-trust svg { width: 18px; height: 18px; color: var(--svc-link); flex-shrink: 0; }

.svc-body { padding: 56px 0 24px; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
  .svc-aside { position: sticky; top: 88px; }
}

.svc-photo { margin: 0 0 32px; }
.svc-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }

.svc-article { color: var(--svc-ink); font-size: 1.0625rem; line-height: 1.75; max-width: 46rem; }
.svc-article h2 {
  margin: 44px 0 14px;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.25; font-weight: 700; letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}
.svc-article > section:first-of-type h2 { margin-top: 0; }
.svc-article h3 { margin: 28px 0 8px; font-size: 1.2rem; line-height: 1.35; font-weight: 700; color: hsl(var(--foreground)); }
.svc-article p { margin: 0 0 16px; }
.svc-article ul, .svc-article ol { margin: 0 0 18px; padding-left: 1.4em; }
.svc-article ul { list-style: disc; }
.svc-article ol { list-style: decimal; }
.svc-article li { margin: 0 0 8px; }
.svc-article li::marker { color: var(--svc-link); }
.svc-article a { color: var(--svc-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.svc-article a:hover { text-decoration-thickness: 2px; }
.svc-article strong { color: hsl(var(--foreground)); }

.svc-faq { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--svc-line); }
.svc-faq-item { padding: 18px 0; border-bottom: 1px solid var(--svc-line); }
.svc-faq-item h3 { margin: 0 0 6px; }
.svc-faq-item p { margin: 0; }

.svc-card {
  background: hsl(var(--card));
  border: 1px solid var(--svc-line);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.svc-card + .svc-card { margin-top: 24px; }
.svc-card h2 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; color: hsl(var(--foreground)); }
.svc-card p { margin: 0 0 16px; font-size: .95rem; line-height: 1.6; color: var(--svc-ink); }
.svc-card .svc-btn { width: 100%; }
.svc-card-phone { display: block; margin-top: 14px; text-align: center; font-size: 1.125rem; font-weight: 700; color: var(--svc-link); }
.svc-card-hours { margin: 12px 0 0 !important; text-align: center; font-size: .85rem !important; }
.svc-related ul { list-style: none; margin: 0; padding: 0; }
.svc-related li + li { border-top: 1px solid var(--svc-line); }
.svc-related a { display: block; padding: 10px 0; font-weight: 600; color: hsl(var(--foreground)); }
.svc-related a:hover { color: var(--svc-link); }
.svc-related a[aria-current="page"] { color: var(--svc-link); }
.svc-related .svc-all a { color: var(--svc-link); }

.svc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 24px;
  border-radius: 10px; font-size: .95rem; font-weight: 600; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.svc-btn-primary { background: #136c6c; color: #fff; }
.svc-btn-primary:hover { background: #0f5757; }
.svc-btn-ghost { background: #fff; color: hsl(var(--foreground)); border: 1px solid hsl(var(--input)); }
.svc-btn-ghost:hover { background: hsl(var(--secondary)); }

.svc-areas { padding: 24px 0 56px; }
.svc-areas .svc-inner {
  background: hsl(var(--muted));
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
}
.svc-areas h2 { margin: 0 0 8px; font-size: 1.375rem; font-weight: 700; color: hsl(var(--foreground)); }
.svc-areas p { margin: 0 auto; max-width: 48rem; line-height: 1.7; color: var(--svc-ink); }
.svc-areas a { color: var(--svc-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* /services hub: the linked cards for the detail pages */
.svc-hub-link { margin-top: 16px; font-size: .9rem; font-weight: 700; color: var(--svc-link); }
.svc-hub-card { text-decoration: none; color: inherit; }
.svc-hub-card:hover .svc-hub-link { text-decoration: underline; text-underline-offset: 3px; }
.svc-hub-card p { color: var(--svc-ink) !important; }
