/* Service + location page styles (generated pages and the related-content block).
   Source: halifax-site-generator/service-pages.css -> copied to css/service-pages.css by build.py */
.sp ol, .sp ul { list-style: none; margin: 0; padding: 0; }
.sp { background: var(--bg-main, #f8fafc); }

/* ---------- hero ---------- */
.sp-hero { position: relative; overflow: hidden; color: #fff; padding: 22px 0 88px;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(29,99,255,.45), transparent 60%),
              linear-gradient(135deg, #07193b 0%, #0a369d 60%, #0b2a6f 100%); }
.sp-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; }
.sp-hero .container { position: relative; z-index: 1; }
.sp-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.sp-crumbs li { font-size: .82rem; color: #93c5fd; }
.sp-crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #60a5fa; }
.sp-crumbs a { color: #bfdbfe; text-decoration: none; }
.sp-crumbs a:hover { color: #fff; text-decoration: underline; }
.sp-crumbs [aria-current="page"] { color: #fff; font-weight: 600; }
.sp-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.sp-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #e0f2fe; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 18px; }
.sp-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); }
.sp-hero h1 { font-family: var(--font-heading); font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.12; font-weight: 800; margin: 0 0 16px; color: #fff; letter-spacing: -.02em; }
.sp-hero h1 em { font-style: normal; color: #fbbf24; }
.sp-lead { font-size: 1.1rem; line-height: 1.65; color: #cbd5e1; margin: 0 0 22px; max-width: 600px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 28px; }
.sp-chips li { display: flex; align-items: center; gap: 7px; font-size: .92rem; color: #e2e8f0; font-weight: 500; }
.sp-chips li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(52,211,153,.18); color: #34d399; font-size: .75rem; font-weight: 800; }
.sp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sp-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; padding: 14px 24px; border-radius: 10px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.sp-btn:hover { transform: translateY(-1px); }
.sp-btn-call { background: #f59e0b; color: #0f172a; box-shadow: 0 8px 24px rgba(245,158,11,.35); }
.sp-btn-call:hover { background: #fbbf24; }
.sp-btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.sp-btn-ghost:hover { background: rgba(255,255,255,.18); }
.sp-media { position: relative; }
.sp-media img { width: 100%; height: auto; aspect-ratio: 1200/670; object-fit: cover; border-radius: 20px; display: block;
  box-shadow: 0 24px 60px rgba(2,6,23,.45); border: 1px solid rgba(255,255,255,.15); }
.sp-float { position: absolute; left: -18px; bottom: -22px; background: #fff; color: #0f172a; border-radius: 14px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 34px rgba(2,6,23,.3); max-width: 280px; }
.sp-float .ic { width: 40px; height: 40px; border-radius: 10px; background: #ecfdf5; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.sp-float strong { display: block; font-size: .92rem; }
.sp-float span { font-size: .8rem; color: #64748b; }

/* ---------- trust strip ---------- */
.sp-trust { position: relative; z-index: 2; margin-top: -50px; }
.sp-trust ul { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 12px 30px rgba(15,23,42,.08); }
.sp-trust li { padding: 18px 20px; display: flex; gap: 12px; align-items: center; }
.sp-trust li + li { border-left: 1px solid #eef2f7; }
.sp-trust .ic { font-size: 1.4rem; width: 44px; height: 44px; display: grid; place-items: center; background: #eff6ff; border-radius: 12px; flex-shrink: 0; }
.sp-trust strong { display: block; color: #0f172a; font-size: .95rem; }
.sp-trust span { font-size: .82rem; color: #64748b; }

/* ---------- layout ---------- */
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 48px; padding-bottom: 64px; align-items: start; }
.sp-article > section { margin-bottom: 52px; scroll-margin-top: 90px; }
.sp-article h2 { font-family: var(--font-heading); font-size: clamp(1.45rem, 2.4vw, 1.85rem); color: #0f172a; margin: 0 0 14px; letter-spacing: -.01em; line-height: 1.25; }
.sp-article h2 .kicker { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #1d63ff; font-weight: 700; margin-bottom: 6px; }
.sp-article p { font-size: 1.03rem; line-height: 1.75; color: #334155; margin: 0 0 14px; }
.sp-article .first-p { font-size: 1.12rem; color: #1e293b; }
.sp-note { font-size: .88rem !important; color: #64748b !important; }

.sp-tip { display: flex; gap: 14px; background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; border-radius: 14px; padding: 18px 20px; }
.sp-tip .ic { font-size: 1.5rem; }
.sp-tip strong { display: block; color: #92400e; margin-bottom: 4px; }
.sp-tip p { margin: 0 !important; color: #78350f !important; font-size: .98rem !important; }

.sp-issues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: iss; }
.sp-issue { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; position: relative; transition: border-color .15s, box-shadow .15s; }
.sp-issue:hover { border-color: #93c5fd; box-shadow: 0 8px 22px rgba(29,99,255,.08); }
.sp-issue::before { counter-increment: iss; content: counter(iss, decimal-leading-zero); font-family: var(--font-heading); font-weight: 800; font-size: .8rem;
  color: #1d63ff; background: #eff6ff; border-radius: 8px; padding: 4px 8px; display: inline-block; margin-bottom: 10px; }
.sp-issue h3 { font-size: 1.05rem; color: #0f172a; margin: 0 0 6px; font-family: var(--font-heading); }
.sp-issue p { margin: 0 !important; font-size: .95rem !important; line-height: 1.6 !important; }

.sp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sp-step { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; }
.sp-step b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0a369d; color: #fff; font-size: .9rem; margin-bottom: 10px; }
.sp-step h3 { font-size: .98rem; margin: 0 0 4px; color: #0f172a; }
.sp-step p { font-size: .88rem !important; line-height: 1.55 !important; margin: 0 !important; color: #64748b !important; }

.sp-price { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
.sp-price th, .sp-price td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #eef2f7; font-size: .97rem; }
.sp-price th { background: #f8fafc; color: #475569; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.sp-price tr:last-child td { border-bottom: 0; }
.sp-price td:last-child { text-align: right; white-space: nowrap; color: #0a369d; font-weight: 700; }
.sp-price th:last-child { text-align: right; }
.sp-price tbody tr:hover { background: #f8fafc; }

.sp-brands { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-brands span { padding: 8px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; font-weight: 600; font-size: .9rem; color: #334155; }

.sp-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sp-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; text-decoration: none; color: #1e293b; font-weight: 600; font-size: .9rem; transition: all .15s; }
.sp-links a::after { content: "→"; color: #94a3b8; transition: transform .15s; }
.sp-links a:hover { border-color: #1d63ff; color: #0a369d; }
.sp-links a:hover::after { transform: translateX(3px); color: #1d63ff; }

.sp-faq details { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.sp-faq details[open] { border-color: #bfdbfe; box-shadow: 0 6px 18px rgba(29,99,255,.06); }
.sp-faq summary { cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 650; color: #0f172a; list-style: none; position: relative; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
  background: #eff6ff; color: #1d63ff; display: grid; place-items: center; font-weight: 700; }
.sp-faq details[open] summary::after { content: "–"; }
.sp-faq details > div { padding: 0 18px 16px; }
.sp-faq details p { margin: 0 !important; font-size: .98rem !important; }

.sp-cta { background: radial-gradient(600px 240px at 90% 0%, rgba(245,158,11,.25), transparent 60%), linear-gradient(135deg, #07193b, #0a369d);
  color: #fff; border-radius: 20px; padding: 40px 32px; text-align: center; }
.sp-cta h2 { color: #fff !important; }
.sp-cta p { color: #cbd5e1 !important; max-width: 600px; margin: 0 auto 22px !important; }
.sp-cta .sp-actions { justify-content: center; }

/* ---------- sidebar ---------- */
.sp-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.sp-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; }
.sp-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin: 0 0 12px; }
.sp-call { background: linear-gradient(160deg, #0a369d, #07193b); color: #fff; border: 0; }
.sp-call h3 { color: #93c5fd; }
.sp-call .num { display: block; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: #fff; text-decoration: none; margin-bottom: 4px; }
.sp-call p { font-size: .86rem; color: #cbd5e1; margin: 0 0 14px; }
.sp-call .sp-btn { width: 100%; justify-content: center; }
.sp-toc a { display: block; padding: 7px 10px; border-radius: 8px; color: #334155; text-decoration: none; font-size: .9rem; border-left: 2px solid transparent; }
.sp-toc a:hover { background: #f1f5f9; border-left-color: #1d63ff; color: #0a369d; }
.sp-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #e2e8f0; font-size: .88rem; }
.sp-facts li:last-child { border-bottom: 0; }
.sp-facts span { color: #64748b; }
.sp-facts b { color: #0f172a; text-align: right; font-weight: 600; }

/* ---------- mobile call bar ---------- */
.sp-callbar { display: none; }

/* ---------- related content block (all service pages) ---------- */
.rc { margin: 0 0 52px; }
.rc-wrap { max-width: 1100px; margin: 0 auto; }
body:not(.sp) .rc-wrap { padding: 0 20px; }
.rc h2 { font-family: var(--font-heading); font-size: clamp(1.4rem, 2.3vw, 1.75rem); color: #0f172a; margin: 0 0 6px; }
.rc .rc-sub { color: #64748b; margin: 0 0 18px; font-size: .98rem; line-height: 1.6; }
.rc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 34px; }
.rc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.rc-card:hover { border-color: #93c5fd; box-shadow: 0 12px 28px rgba(29,99,255,.1); transform: translateY(-2px); }
.rc-card .rc-ic { width: 44px; height: 44px; border-radius: 12px; background: #eff6ff; display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 12px; }
.rc-card .rc-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #1d63ff; margin-bottom: 4px; }
.rc-card strong { font-family: var(--font-heading); font-size: 1.05rem; color: #0f172a; margin-bottom: 6px; line-height: 1.3; }
.rc-card p { font-size: .92rem; line-height: 1.6; color: #475569; margin: 0 0 12px; flex: 1; }
.rc-card .rc-go { font-size: .88rem; font-weight: 700; color: #0a369d; }
.rc-near { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.rc-near a { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; text-decoration: none; transition: border-color .15s; }
.rc-near a:hover { border-color: #1d63ff; }
.rc-near .pin { font-size: 1.1rem; line-height: 1.4; }
.rc-near strong { display: block; color: #0f172a; font-size: .97rem; }
.rc-near span { display: block; color: #64748b; font-size: .86rem; line-height: 1.5; margin-top: 2px; }
.rc-more { font-size: .92rem; margin: 8px 0 0; }
.rc-more a { color: #0a369d; font-weight: 600; }

@media (max-width: 1024px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-aside .sp-toc-card { display: none; }
  .sp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sp-hero { padding-bottom: 70px; }
  .sp-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .sp-float { left: 12px; bottom: -18px; }
  .sp-trust ul { grid-template-columns: repeat(2, 1fr); }
  .sp-trust li:nth-child(3) { border-left: 0; }
  .sp-trust li:nth-child(n+3) { border-top: 1px solid #eef2f7; }
  .rc-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sp-issues, .rc-near, .sp-aside { grid-template-columns: 1fr; }
  .sp-trust li { padding: 14px; }
  .sp-trust .ic { width: 36px; height: 36px; font-size: 1.15rem; }
  .sp-price th, .sp-price td { padding: 12px; font-size: .9rem; }
  .sp-cta { padding: 30px 20px; }
  .sp-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid #e2e8f0; box-shadow: 0 -6px 20px rgba(15,23,42,.08); }
  .sp-callbar a { flex: 1; justify-content: center; padding: 12px; font-size: .95rem; }
  .sp-callbar .sp-btn-ghost { background: #eff6ff; color: #0a369d; border-color: #bfdbfe; }
  body.sp { padding-bottom: 72px; }
}
