/* Service pages, generated by scripts/service_pages/build.py.
   Loaded only by those pages (after site.css). The layout is ported from the
   Golden State Rehab service pages: every section heading is the visitor's
   question, a sticky "On this page" bar, one idea per screen, few words.
   The one difference: the hero holds the request form instead of a photo. */

/* ---------- Hero ---------- */
.svc-hero { padding: 40px 0 64px; background: var(--tint); }
.svc-hero-grid { display: grid; gap: 40px; align-items: start; }
.svc-hero .breadcrumb ol { margin-bottom: 18px; color: var(--muted); }
.svc-hero .breadcrumb a { color: var(--text); }
.svc-hero .breadcrumb a:hover { color: var(--blue); }
.svc-hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.svc-sub { max-width: 34em; margin: 20px 0 0; font-size: 1.125rem; line-height: 1.65; color: var(--text); }
.svc-sub a { font-weight: 700; color: var(--blue); text-decoration: underline; text-decoration-color: rgba(42, 102, 219, .35); text-underline-offset: 3px; }
.svc-hero .trust-badges { justify-content: flex-start; margin-top: 28px; }
.svc-byline { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.svc-byline img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--hl-dark); }
.svc-byline strong { color: var(--ink); }
/* The form card was designed for the navy home hero; soften its shadow on the light hero. */
.svc-hero .form-card { box-shadow: 0 24px 56px -28px rgba(11, 18, 36, .35), 0 0 0 1px var(--line); }
@media (min-width: 1000px) {
  .svc-hero { padding: 48px 0 80px; }
  .svc-hero-grid { grid-template-columns: minmax(0, 1fr) 460px; gap: 72px; }
  .svc-hero-copy { padding-top: 12px; }
}
@media (min-width: 1000px) and (max-height: 720px) {
  .svc-hero { padding-top: 28px; }
}

/* ---------- "On this page" bar ---------- */
.svc-jump {
  position: sticky; top: calc(var(--topbar-h) + var(--header-h)); z-index: 40;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px -12px rgba(11, 18, 36, .25);
  transition: top .3s ease;
}
body:has(.site-header.is-hidden) .svc-jump { top: var(--topbar-h); }
.svc-jump-list {
  display: flex; gap: 6px; margin: 0; padding: 10px 0; list-style: none; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.svc-jump-list::-webkit-scrollbar { display: none; }
.svc-jump-list a {
  display: block; padding: 8px 16px; border-radius: 999px; font-size: .875rem; font-weight: 600; white-space: nowrap;
  color: var(--muted); text-decoration: none; transition: background .2s, color .2s;
}
.svc-jump-list a:hover { color: var(--ink); background: var(--blue-soft); }
.svc-jump-list a.is-active { color: #fff; background: var(--navy); }
.svc-jump-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }
.svc [id] { scroll-margin-top: calc(var(--topbar-h) + 72px); }

/* ---------- Sections ---------- */
.svc-block { padding: 80px 0; }
.svc-block--tint { background: var(--tint); }
.svc-block--dark { background: var(--navy); color: var(--on-dark); }
.svc-head { max-width: 780px; margin: 0 0 40px; }
.svc-head:last-child { margin-bottom: 0; }
.svc-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; }
.svc-answer { max-width: 62ch; margin: 18px 0 0; font-size: 1.125rem; line-height: 1.65; color: var(--text); }
.svc-note { max-width: 62ch; margin: 14px 0 0; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.svc-block--dark h2, .svc-block--dark h3 { color: #fff; }
.svc-block--dark .svc-answer { color: var(--on-dark); }
@media (min-width: 900px) { .svc-block { padding: 112px 0; } }

/* Section CTA: the shared CTA block, left-aligned like the copy above it. */
.svc-cta { margin-top: 48px; }
.svc-cta .cta-block, .svc-aside .cta-block, .svc-check .cta-block { align-items: flex-start; gap: 14px; margin: 0; }
.svc-cta .trust-badges, .svc-aside .trust-badges, .svc-check .trust-badges { justify-content: flex-start; }
@media (max-width: 640px) {
  .svc-cta .cta-block, .svc-aside .cta-block, .svc-check .cta-block { align-items: stretch; }
  .svc-cta .trust-badges, .svc-aside .trust-badges, .svc-check .trust-badges { justify-content: center; }
}

/* ---------- Signs (with an optional dark side card) ---------- */
.svc-fit { display: grid; gap: 40px; align-items: end; }
.svc-signs { margin: 0; padding: 0; list-style: none; }
.svc-signs li { position: relative; padding: 15px 0 15px 40px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.5; color: var(--ink); }
.svc-signs li:last-child { border-bottom: 0; }
.svc-signs li::before {
  content: ""; position: absolute; left: 0; top: 17px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a66db' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.svc-fit .svc-head { margin-bottom: 20px; }
.svc-aside { padding: 32px; border-radius: var(--radius-lg); background: var(--navy); color: var(--on-dark); }
.svc-aside h3 { margin-bottom: 12px; font-size: 1.375rem; line-height: 1.25; color: #fff; text-wrap: balance; }
.svc-aside > p { margin: 0 0 24px; line-height: 1.65; }
.svc-aside .trust-badges { color: #e6ebf7; }
.svc-aside-call { margin: 16px 0 0 !important; font-size: .9375rem; }
.svc-aside-call a { font-weight: 700; color: #fff; }
@media (min-width: 900px) { .svc-fit:not(.svc-fit--solo) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }

/* ---------- Side-by-side comparison ---------- */
.svc-compare { display: grid; gap: 20px; }
.svc-col { padding: 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.svc-block--tint .svc-col { border-color: transparent; box-shadow: var(--shadow); }
.svc-col h3 { margin-bottom: 14px; font-size: 1.25rem; line-height: 1.25; }
.svc-col ul { margin: 0; padding: 0; list-style: none; }
.svc-col li { position: relative; padding: 12px 0 12px 26px; border-top: 1px dashed var(--line); line-height: 1.5; color: var(--text); }
.svc-col li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: #c2c9da; }
.svc-col--dark { background: var(--navy); border-color: var(--navy); }
.svc-col--dark h3 { color: #fff; }
.svc-col--dark li { color: var(--on-dark); border-top-color: var(--line-dark); }
.svc-col--dark li::before { background: var(--blue); }
@media (min-width: 700px) { .svc-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Numbered steps ---------- */
.svc-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.svc-steps li { padding: 26px 24px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.svc-step-n { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .9375rem; font-weight: 800; }
.svc-steps h3 { margin-bottom: 8px; font-size: 1.125rem; line-height: 1.3; }
.svc-steps p { margin: 0; font-size: .9688rem; line-height: 1.6; color: var(--text); }
@media (min-width: 700px) { .svc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .svc-steps { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; } }

/* ---------- Cost: the dark band with the guarantee and a checklist card ---------- */
.svc-cost { display: grid; gap: 40px; align-items: center; }
.svc-cost .svc-head { margin: 0; }
.svc-guarantee { display: flex; align-items: center; gap: 16px; max-width: 34em; margin: 28px 0 0; line-height: 1.55; color: var(--on-dark); }
.svc-guarantee strong { color: #fff; }
.svc-guarantee-seal { flex: none; width: 72px; height: 72px; }
.svc-check { padding: 32px; border-radius: var(--radius-lg); background: #fff; color: var(--text); }
.svc-check-title { margin: 0 0 8px; font-size: 1rem; font-weight: 800; color: var(--ink); }
.svc-check ul:not(.trust-badges) { margin: 0 0 28px; padding: 0; list-style: none; }
.svc-check ul:not(.trust-badges) li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px dashed var(--line); font-weight: 600; color: var(--ink); }
.svc-check ul:not(.trust-badges) li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
@media (min-width: 900px) { .svc-cost { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }

/* ---------- Path: where this service sits in a dispute ---------- */
.svc-path { position: relative; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.svc-path::before { content: ""; position: absolute; left: 11px; top: 16px; bottom: 16px; border-left: 3px dotted #b9c3dc; }
.svc-step { position: relative; padding: 18px 20px 20px 48px; border-radius: var(--radius-lg); }
.svc-step-dot { position: absolute; left: 3px; top: 24px; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 2px solid #b9c3dc; }
.svc-step h3 { margin-bottom: 6px; font-size: 1.125rem; line-height: 1.3; }
.svc-step h3 a { color: var(--blue); text-decoration: none; }
.svc-step h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.svc-step h3 .icon { width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; }
.svc-step p { margin: 0; font-size: .9688rem; line-height: 1.55; color: var(--text); }
.svc-step--here { background: #fff; box-shadow: 0 14px 34px rgba(11, 18, 36, .1), 0 2px 6px rgba(11, 18, 36, .05); }
.svc-step--here .svc-step-dot { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 6px rgba(42, 102, 219, .18); }
.svc-step-tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; }
@media (min-width: 900px) {
  .svc-path { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; }
  .svc-path::before { left: 16px; right: 16px; top: 31px; bottom: auto; border-left: 0; border-top: 3px dotted #b9c3dc; }
  .svc-step { padding: 64px 22px 24px; }
  .svc-step-dot { left: 22px; top: 22px; }
  .svc-step-tag { position: absolute; top: 20px; left: 54px; margin: 0; }
}

/* ---------- Who does the work: photo, one review, the proof points ---------- */
.svc-proof { display: grid; gap: 32px; align-items: center; }
.svc-face { max-width: 240px; margin: 0; }
.svc-face img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.svc-face figcaption { margin-top: 12px; }
.svc-face strong { display: block; color: var(--ink); }
.svc-face span { display: block; font-size: .875rem; color: var(--muted); }
.svc-review { margin: 0; padding: 28px; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 14px 34px rgba(11, 18, 36, .08), 0 2px 6px rgba(11, 18, 36, .05); transform: rotate(-1deg); }
.svc-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.svc-stars svg { width: 20px; height: 20px; fill: #fbbc04; }
.svc-review blockquote { margin: 0 0 14px; font-size: 1.25rem; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }
.svc-review mark { padding: 0 2px; background: linear-gradient(transparent 55%, rgba(251, 188, 4, .35) 55%); color: inherit; }
.svc-review figcaption { font-size: .875rem; color: var(--muted); }
.svc-creds { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.svc-creds li { display: flex; align-items: center; gap: 14px; line-height: 1.45; color: var(--text); }
.svc-creds svg { flex: none; width: 32px; height: 32px; }
.svc-creds .icon { color: var(--blue); }
.svc-creds .svc-creds-seal { width: 40px; height: 40px; margin: -4px; }
.svc-creds strong { color: var(--ink); }
.svc-creds--compact { max-width: 55ch; margin-top: 24px; }
@media (min-width: 900px) { .svc-proof { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 4fr); gap: 48px; } }

/* ---------- Links to the neighboring services ---------- */
.svc-links { display: grid; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.svc-links li { border-bottom: 1px solid var(--line); }
.svc-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; color: var(--ink); text-decoration: none; }
.svc-links strong { display: block; font-size: 1.1875rem; line-height: 1.3; }
.svc-links small { display: block; margin-top: 4px; font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.svc-links .icon { flex: none; width: 20px; height: 20px; color: var(--blue); transition: transform .2s; }
.svc-links a:hover strong { color: var(--blue); }
.svc-links a:hover .icon { transform: translateX(3px); }
@media (min-width: 700px) { .svc-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.svc-quote { max-width: 760px; }

/* ---------- Icon cards ---------- */
.svc-asks { display: grid; gap: 18px; }
.svc-ask { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.svc-block--tint .svc-ask { border-color: transparent; box-shadow: var(--shadow); }
.svc-ask-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.svc-ask-icon .icon { width: 22px; height: 22px; }
.svc-ask h3 { margin-bottom: 8px; font-size: 1.1875rem; line-height: 1.3; }
.svc-ask p { margin: 0; font-size: .9688rem; line-height: 1.65; color: var(--text); }
@media (min-width: 700px) { .svc-asks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .svc-asks { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 640px) { .svc-ask { padding: 22px; } }

/* ---------- Closing banner ---------- */
.svc-banner {
  padding: clamp(72px, 9vw, 112px) 0; color: var(--on-dark);
  background: radial-gradient(800px 360px at 50% 0%, rgba(42, 102, 219, .35), transparent 70%), var(--navy);
}
.svc-banner h2 { margin-bottom: 16px; font-size: clamp(2rem, 4.4vw, 3.25rem); color: #fff; }
.svc-banner > .container > p:first-of-type { margin: 0; font-size: 1.125rem; }
.svc-banner .cta-block { margin-top: 32px; }
.svc-banner .trust-badges { color: #e6ebf7; }
.svc-banner-call { margin: 18px 0 0; font-size: .9375rem; }
.svc-banner-call a { font-weight: 700; color: #fff; }

@media (max-width: 640px) {
  .svc-hero { padding: 28px 0 48px; }
  .svc-sub { font-size: 1.0625rem; }
  .svc-block { padding: 64px 0; }
  .svc-aside, .svc-check, .svc-col, .svc-review { padding: 24px; }
  .svc-steps li { padding: 22px 20px; }
  .svc-guarantee-seal { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-jump, .svc-jump-list a, .svc-links .icon { transition: none; }
}
