/* ==========================================================================
   RAF BUILDING — SERVICES SECTION
   Shared design system for the services hub (/services/) and the five
   service detail pages (/services/extensions/ and so on).

   Loaded after assets/css/site.css. Everything is scoped to
   body.page-services so the shared header and footer are untouched.
   ========================================================================== */

body.page-services {
  --sp-paper: #f7f5f0;
  --sp-soft: #eef2f4;
  --sp-ink: #16181a;
  --sp-charcoal: #1a1c1e;
  --sp-text: #2f3438;
  --sp-muted: #5b666b;
  --sp-line: #dde3e6;
  --sp-brand: #1eb2d6;
  --sp-brand-hover: #17a2c4;
  --sp-brand-ink: #0b7392;
  --sp-radius: 22px;
  --sp-shell: 1240px;

  background: #fff;
  color: var(--sp-text);
  font-family: var(--body, "Inter", system-ui, -apple-system, sans-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Typography is scoped to <main> so the shared site header and footer render
   exactly as they do on every other page. */
body.page-services :where(#main) h1,
body.page-services :where(#main) h2,
body.page-services :where(#main) h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--sp-ink);
  text-wrap: balance;
}
body.page-services :where(#main) p { margin: 0 0 1.1rem; }
body.page-services :where(#main) p:last-child { margin-bottom: 0; }
body.page-services :where(#main) a { color: inherit; }
body.page-services #main ::selection { background: var(--sp-brand); color: var(--sp-ink); }

/* The sticky mobile bar lives outside <main>; its text colours need restoring
   after the shared site styles. */
body.page-services .sticky-cta__btn--call { color: #fff; }
body.page-services .sticky-cta__btn--quote { color: var(--sp-ink); }

body.page-services :focus-visible {
  outline: 3px solid var(--sp-brand-ink);
  outline-offset: 3px;
  border-radius: 3px;
}
body.page-services .sp-sec--dark :focus-visible,
body.page-services .sp-cta :focus-visible,
body.page-services .sp-assure :focus-visible,
body.page-services .sp-hero__media :focus-visible {
  outline-color: var(--sp-brand);
}

/* --------------------------------------------------------------------------
   Shell + shared bits
   -------------------------------------------------------------------------- */
body.page-services .sp-wrap {
  width: 100%;
  max-width: var(--sp-shell);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
body.page-services .sp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
body.page-services .sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 54px;
  padding: 0.9rem 1.65rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
body.page-services .sp-btn--primary {
  background: var(--sp-brand);
  color: var(--sp-ink);
}
body.page-services .sp-btn--primary:hover {
  background: var(--sp-brand-hover);
  transform: translateY(-2px);
}
body.page-services .sp-btn--outline {
  background: transparent;
  border-color: var(--sp-ink);
  color: var(--sp-ink);
}
body.page-services .sp-btn--outline:hover {
  background: var(--sp-ink);
  color: #fff;
  transform: translateY(-2px);
}
body.page-services .sp-btn--light {
  background: #fff;
  color: var(--sp-ink);
}
body.page-services .sp-btn--light:hover {
  background: var(--sp-soft);
  transform: translateY(-2px);
}
body.page-services .sp-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
body.page-services .sp-btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--sp-ink);
  transform: translateY(-2px);
}
body.page-services .sp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
body.page-services .sp-hero {
  position: relative;
  overflow: clip;
  background: var(--sp-paper);
  padding-top: calc(var(--header-h, 92px) + clamp(2.4rem, 5vw, 4rem));
  padding-bottom: clamp(5.5rem, 10vw, 8.5rem);
}
body.page-services .sp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 24, 26, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 24, 26, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 82%);
  mask-image: linear-gradient(180deg, #000, transparent 82%);
  pointer-events: none;
}
body.page-services .sp-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

body.page-services .sp-crumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.7rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #050607;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.78rem;
  line-height: 1.3;
  color: #b9c3c8;
}
body.page-services .sp-crumbs a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
body.page-services .sp-crumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.page-services .sp-crumbs__sep { color: var(--sp-brand-ink); }
body.page-services .sp-crumbs [aria-current="page"] { color: var(--sp-muted); }

body.page-services .sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.05rem;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sp-brand-ink);
}
body.page-services .sp-eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sp-brand);
  flex: 0 0 auto;
}
body.page-services .sp-title {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 0.99;
  letter-spacing: -0.03em;
  margin: 0 0 1.35rem;
  max-width: 16ch;
}
body.page-services .sp-lead {
  max-width: 46ch;
  margin: 0 0 1.9rem;
  font-size: clamp(1.03rem, 1.25vw, 1.18rem);
  line-height: 1.72;
  color: var(--sp-muted);
}
body.page-services .sp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--sp-muted);
}
body.page-services .sp-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
body.page-services .sp-meta svg {
  flex: 0 0 auto;
  color: var(--sp-brand-ink);
}

/* Hero media: arched portrait with an inset circular detail shot. */
body.page-services .sp-hero__media {
  position: relative;
  margin: 0;
  padding: 0 0 2.4rem 2.4rem;
}
body.page-services .sp-hero__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 28px 28px;
  background: #0a0c0e;
  box-shadow: 0 46px 80px -46px rgba(22, 24, 26, 0.65);
}
body.page-services .sp-hero__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.page-services .sp-hero__inset {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 47%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 7px solid var(--sp-paper);
  border-radius: 50%;
  background: #0a0c0e;
  box-shadow: 0 26px 46px -22px rgba(22, 24, 26, 0.55);
}
body.page-services .sp-hero__inset img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.page-services .sp-hero__note {
  position: absolute;
  right: 0.4rem;
  bottom: 0.9rem;
  max-width: 15rem;
  margin: 0;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #050607;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #b9c3c8;
}
body.page-services .sp-hero__note strong {
  display: block;
  color: #fff;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Assurance band (overlaps the hero)
   -------------------------------------------------------------------------- */
body.page-services .sp-assure-wrap {
  position: relative;
  z-index: 2;
  margin-top: clamp(-4.2rem, -4vw, -3rem);
}
body.page-services .sp-assure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  margin: 0;
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
  list-style: none;
  border-radius: 26px;
  background: var(--sp-charcoal);
  color: #b9c3c8;
  box-shadow: 0 40px 60px -34px rgba(22, 24, 26, 0.75);
}
body.page-services .sp-assure li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  min-width: 0;
}
body.page-services .sp-assure svg {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--sp-brand);
}
body.page-services .sp-assure strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #fff;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}
body.page-services .sp-assure span {
  display: block;
  font-size: 0.85rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Sticky in-page nav
   -------------------------------------------------------------------------- */
body.page-services .sp-jump {
  position: sticky;
  top: var(--header-h, 92px);
  z-index: 90;
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  border-block: 1px solid var(--sp-line);
  background: #fff;
  transition: top 0.22s ease;
}
body.page-services .sp-jump.is-flush { top: 0; box-shadow: 0 10px 24px -18px rgba(22, 24, 26, 0.22); }
body.page-services .sp-jump__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  min-height: 62px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.page-services .sp-jump__inner::-webkit-scrollbar { display: none; }
body.page-services .sp-jump__label {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sp-muted);
}
body.page-services .sp-jump__list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0.55rem 0;
  list-style: none;
}
body.page-services .sp-jump a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sp-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
body.page-services .sp-jump a:hover {
  background: var(--sp-soft);
  color: var(--sp-ink);
}
body.page-services .sp-jump a[aria-current="location"] {
  background: var(--sp-ink);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
body.page-services .sp-sec {
  padding-block: clamp(4rem, 7vw, 7rem);
  scroll-margin-top: calc(var(--header-h, 92px) + 74px);
}
body.page-services .sp-sec--paper { background: var(--sp-paper); }
body.page-services .sp-sec--soft { background: var(--sp-soft); }
body.page-services .sp-sec--dark {
  background: var(--sp-charcoal);
  color: #bcc6ca;
}
body.page-services .sp-sec--dark h1,
body.page-services .sp-sec--dark h2,
body.page-services .sp-sec--dark h3 { color: #fff; }
body.page-services .sp-sec--dark p { color: #bcc6ca; }
body.page-services .sp-sec--dark a { color: #fff; }

body.page-services .sp-head {
  max-width: 48rem;
  margin-bottom: clamp(2rem, 4vw, 3.1rem);
}
body.page-services .sp-head h2 {
  position: relative;
  padding-bottom: 0.4rem;
}
body.page-services .sp-head h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  border-radius: 999px;
  background: var(--sp-brand);
  margin-top: 0.3rem;
}
body.page-services .sp-head h2::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--sp-line);
  margin-bottom: 0.8rem;
}
body.page-services .sp-head h2::after {
  position: absolute;
  left: 0;
  top: 100%;
}
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
}
body.page-services .sp-head p {
  max-width: 62ch;
  color: var(--sp-muted);
}
body.page-services .sp-sec--dark .sp-head p { color: #bcc6ca; }

body.page-services .sp-eye {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.05rem;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sp-brand-ink);
}
body.page-services .sp-eye span {
  display: grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--sp-ink);
  color: var(--sp-brand);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
body.page-services .sp-sec--dark .sp-eye { color: #8fdcec; }
body.page-services .sp-sec--dark .sp-eye span {
  background: var(--sp-brand);
  color: var(--sp-ink);
}

/* Split layout: sticky heading beside long-form content */
body.page-services .sp-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
body.page-services .sp-split__head {
  position: sticky;
  top: calc(var(--header-h, 92px) + 90px);
}
body.page-services .sp-split__head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  margin: 0 0 0.9rem;
}
body.page-services .sp-split__head p { color: var(--sp-muted); }
body.page-services .sp-sec--dark .sp-split__head p { color: #bcc6ca; }
body.page-services .sp-split__body > * + * { margin-top: 1.6rem; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
body.page-services .sp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
body.page-services .sp-cards--four { grid-template-columns: repeat(2, 1fr); }
body.page-services .sp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: #fff;
  transition:
    transform 0.25s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  isolation: isolate;
}
body.page-services .sp-card:hover {
  transform: translateY(-3px);
  border-color: var(--sp-brand);
  box-shadow: 0 26px 44px -34px rgba(22, 24, 26, 0.45);
}
body.page-services .sp-card--media .sp-card__media {
  overflow: hidden;
}
body.page-services .sp-card--media .sp-card__media img {
  transition: transform 0.5s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}
body.page-services .sp-card--media:hover .sp-card__media img {
  transform: scale(1.04);
}
body.page-services .sp-hero__frame img {
  transition: transform 0.6s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}
body.page-services .sp-hero:hover .sp-hero__frame img {
  transform: scale(1.03);
}

body.page-services .sp-card__num {
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sp-brand-ink);
}
body.page-services .sp-card h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  margin: 0;
}
body.page-services .sp-card p {
  margin: 0;
  color: var(--sp-muted);
  font-size: 0.98rem;
}
body.page-services .sp-card ul {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
body.page-services .sp-card ul li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sp-muted);
}
body.page-services .sp-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sp-brand);
}
body.page-services .sp-card ul li strong { color: var(--sp-ink); font-weight: 600; }
body.page-services .sp-card a {
  color: var(--sp-brand-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.page-services .sp-card a:hover { color: var(--sp-ink); }
body.page-services .sp-card__close {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--sp-brand-ink);
}
body.page-services .sp-inline-more { margin-top: 1.6rem; }

/* Figure used in the hub's finishing-trades split */
body.page-services .sp-figure { margin: 0; }
body.page-services .sp-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--sp-radius);
}
body.page-services .sp-figure figcaption {
  margin-top: 0.6rem;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

/* Coverage list (hub) */
body.page-services .sp-coverage {
  display: grid;
  gap: 0;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
body.page-services .sp-coverage li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--sp-line);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sp-muted);
}
body.page-services .sp-coverage li:first-child { border-top: 1px solid var(--sp-line); }
body.page-services .sp-coverage strong { color: var(--sp-ink); font-weight: 600; }

/* Media card (hub services) */
body.page-services .sp-card--media { padding: 0; overflow: hidden; }
body.page-services .sp-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--sp-soft);
}
body.page-services .sp-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}
body.page-services .sp-card--media:hover .sp-card__media img { transform: scale(1.04); }
body.page-services .sp-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.4rem, 2.3vw, 1.9rem);
}

/* --------------------------------------------------------------------------
   Why RAF (dark band)
   -------------------------------------------------------------------------- */
body.page-services .sp-reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: var(--sp-charcoal);
  color: var(--sp-muted);
}
body.page-services .sp-reasons::before {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sp-brand), transparent);
  opacity: 0.15;
  margin: 0 0 1.2rem;
}
body.page-services .sp-reason {
  padding: clamp(1.5rem, 2.8vw, 2.2rem);
}
body.page-services .sp-reason h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--sp-text);
}
body.page-services .sp-reason p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--sp-muted);
}
body.page-services .sp-reason a {
  color: var(--sp-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */
body.page-services .sp-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.page-services .sp-step {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--sp-line);
}
body.page-services .sp-step::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sp-brand);
  box-shadow: 0 0 0 6px #fff;
}
body.page-services .sp-step__num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1;
  color: var(--sp-brand-ink);
}
body.page-services .sp-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--sp-ink);
}
body.page-services .sp-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--sp-muted);
}
body.page-services .sp-step a {
  color: var(--sp-brand-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Gallery strip
   -------------------------------------------------------------------------- */
body.page-services .sp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.4vw, 1rem);
}
body.page-services .sp-gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: var(--sp-soft);
}
body.page-services .sp-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}
body.page-services .sp-gallery a:hover img { transform: scale(1.045); }
body.page-services .sp-gallery__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
}
body.page-services .sp-gallery__more p {
  margin: 0;
  color: var(--sp-muted);
  font-size: 0.95rem;
}
body.page-services .sp-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sp-brand-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.page-services .sp-link-arrow:hover { color: var(--sp-ink); }

/* --------------------------------------------------------------------------
   Areas / coverage
   -------------------------------------------------------------------------- */
body.page-services .sp-areas-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
body.page-services .sp-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}
body.page-services .sp-areas li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--sp-line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--sp-text);
}
body.page-services .sp-area-note {
  margin: 0 0 1.7rem;
  color: var(--sp-muted);
  max-width: 52ch;
}
body.page-services .sp-address {
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: #fff;
}
body.page-services .sp-address h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: 0;
}
body.page-services .sp-address address {
  font-style: normal;
  color: var(--sp-muted);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
body.page-services .sp-address p {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
body.page-services .sp-address a {
  color: var(--sp-brand-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.page-services .sp-address a:hover { color: var(--sp-ink); }
body.page-services .sp-map {
  overflow: hidden;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: var(--sp-soft);
}
body.page-services .sp-map iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 38vw, 430px);
  border: 0;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
/* Prominent FAQ section */
body.page-services .sp-faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  position: relative;
}
body.page-services .sp-faq-layout .sp-head { margin-bottom: 0; }
body.page-services .sp-faq-layout .sp-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}
body.page-services .sp-faq { display: grid; }
body.page-services .sp-faq details {
  border-top: 1px solid var(--sp-line);
  border-radius: 0;
  transition: background-color 0.25s ease;
}
body.page-services .sp-faq details:last-child { border-bottom: 1px solid var(--sp-line); }
body.page-services .sp-faq details:hover { background: var(--sp-soft); }
body.page-services .sp-faq details[open] { background: var(--sp-paper); }
body.page-services .sp-faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
  cursor: pointer;
  list-style: none;
  transition: padding-left 0.25s ease;
}
body.page-services .sp-faq details[open] summary { padding-left: 1.4rem; }
body.page-services .sp-faq summary::-webkit-details-marker { display: none; }
body.page-services .sp-faq summary::marker { content: ""; }
body.page-services .sp-faq summary h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.35;
  color: var(--sp-text);
  transition: color 0.22s ease;
}
body.page-services .sp-faq summary:hover h3 { color: var(--sp-brand-ink); }
body.page-services .sp-faq details[open] summary h3 { color: var(--sp-ink); font-weight: 700; }
body.page-services .sp-faq__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--sp-line);
  border-radius: 50%;
  background: #fff;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  color: var(--sp-ink);
  transition:
    transform 0.3s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)),
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}
body.page-services .sp-faq details[open] .sp-faq__icon {
  transform: rotate(45deg);
  background: var(--sp-brand);
  border-color: var(--sp-brand);
  color: var(--sp-ink);
}
body.page-services .sp-faq__body {
  max-width: 66ch;
  padding: 0 0 1.6rem 1rem;
  color: var(--sp-muted);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.45s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)),
    opacity 0.3s ease,
    transform 0.3s ease,
    padding 0.3s ease;
}
body.page-services .sp-faq details[open] .sp-faq__body {
  max-height: 60rem;
  opacity: 1;
  transform: translateY(0);
}
body.page-services .sp-faq__body p + p { margin-top: 0.8rem; }
body.page-services .sp-faq__body a {
  color: var(--sp-brand-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.page-services .sp-faq__body a:hover { color: var(--sp-ink); }

/* subtle accent bar on the left of the open question */
body.page-services .sp-faq details[open] {
  box-shadow: inset 3px 0 0 0 var(--sp-brand);
}

/* --------------------------------------------------------------------------
   Related services
   -------------------------------------------------------------------------- */
body.page-services .sp-related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.1rem);
}
body.page-services .sp-related a {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--sp-line);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
body.page-services .sp-related a:hover {
  border-color: var(--sp-brand);
  transform: translateY(-2px);
}
body.page-services .sp-related img {
  transition: transform 0.3s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}
body.page-services .sp-related a:hover img {
  transform: scale(1.06);
}
body.page-services .sp-related img {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}
body.page-services .sp-related h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: 0;
}
body.page-services .sp-related p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--sp-muted);
}
body.page-services .sp-related span[aria-hidden] {
  margin-left: auto;
  color: var(--sp-brand-ink);
  font-size: 1.1rem;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */
body.page-services .sp-cta {
  position: relative;
  overflow: clip;
  padding-block: clamp(4rem, 7vw, 6.5rem);
  background: var(--sp-charcoal);
  color: #fff;
}
body.page-services .sp-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  pointer-events: none;
}
body.page-services .sp-cta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
body.page-services .sp-cta h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.4vw, 3.7rem);
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 17ch;
}
body.page-services .sp-cta p {
  max-width: 48ch;
  margin: 0 0 1.6rem;
  color: #b9c3c8;
}
body.page-services .sp-cta__card {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}
body.page-services .sp-cta__card dl { margin: 0 0 1.3rem; }
body.page-services .sp-cta__card dt {
  margin: 0 0 0.1rem;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fdcec;
}
body.page-services .sp-cta__card dd {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
}
body.page-services .sp-cta__card dd:last-of-type { margin-bottom: 0; }
body.page-services .sp-cta__card a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}
body.page-services .sp-cta__card a:hover { text-decoration-color: #fff; }
body.page-services .sp-cta .sp-actions { margin-top: 0; }

/* --------------------------------------------------------------------------
   Reveal — content is visible without JS; services.js fades it in.
   -------------------------------------------------------------------------- */
body.page-services .reveal {
  opacity: 1;
  transform: none;
}
html.js body.page-services .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 0.65s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}
html.js body.page-services .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  body.page-services .sp-steps { grid-template-columns: repeat(3, 1fr); row-gap: 1.8rem; }
  body.page-services .sp-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  body.page-services .sp-hero__grid { grid-template-columns: 1fr; }
  body.page-services .sp-hero__media {
    width: min(100%, 520px);
    margin-inline: auto;
    order: -1;
    padding-left: 1.6rem;
    padding-bottom: 1.6rem;
  }
  body.page-services .sp-hero__frame { aspect-ratio: 16 / 11; border-radius: 24px; }
  body.page-services .sp-hero__inset { width: 34%; border-width: 6px; }
  body.page-services .sp-hero__note { display: none; }
  body.page-services .sp-hero { padding-bottom: 5.5rem; }
  body.page-services .sp-split { grid-template-columns: 1fr; }
  body.page-services .sp-split__head { position: static; }
  body.page-services .sp-areas-layout { grid-template-columns: 1fr; }
  body.page-services .sp-faq-layout { grid-template-columns: 1fr; gap: 1.8rem; }
  body.page-services .sp-cta__grid { grid-template-columns: 1fr; align-items: start; }
  body.page-services .sp-assure { grid-template-columns: 1fr; gap: 1.1rem; }
}

@media (max-width: 720px) {
  body.page-services .sp-title { font-size: clamp(2.25rem, 9vw, 3rem); }
  body.page-services .sp-cards,
  body.page-services .sp-cards--four,
  body.page-services .sp-related { grid-template-columns: 1fr; }
  body.page-services .sp-steps { grid-template-columns: 1fr; gap: 0; }
  body.page-services .sp-step {
    padding: 0 0 1.6rem 3.2rem;
    border-top: 0;
    border-left: 1px solid var(--sp-line);
    margin-left: 9px;
  }
  body.page-services .sp-step::before { top: 0; left: -9px; box-shadow: 0 0 0 5px var(--sp-paper); }
  body.page-services .sp-sec--paper .sp-step::before { box-shadow: 0 0 0 5px var(--sp-paper); }
  body.page-services .sp-sec:not(.sp-sec--paper):not(.sp-sec--dark) .sp-step::before { box-shadow: 0 0 0 5px #fff; }
  body.page-services .sp-step:last-child { border-left-color: transparent; padding-bottom: 0; }
  body.page-services .sp-gallery { grid-template-columns: repeat(2, 1fr); }
  body.page-services .sp-gallery a:nth-child(3) { display: none; }
  body.page-services .sp-hero__note { display: none; }
  body.page-services .sp-assure-wrap { margin-top: -3.2rem; }
  body.page-services .sp-jump__label { display: none; }
  body.page-services .sp-jump { top: var(--header-h, 74px); }
  body.page-services .sp-reasons { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  body.page-services .sp-hero__media { padding-left: 0; padding-bottom: 1rem; }
  body.page-services .sp-hero__inset { display: none; }
  body.page-services .sp-actions .sp-btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Modern 5-stage process timeline (how-we-work page)
   -------------------------------------------------------------------------- */
body.page-services .hw-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.4rem, 2.6vw, 2rem);
  position: relative;
}
body.page-services .hw-step {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}
body.page-services .hw-step__rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.page-services .hw-step__num {
  flex: 0 0 auto;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: var(--sp-charcoal);
  border: 2px solid var(--sp-charcoal);
  box-shadow: 0 14px 30px -18px rgba(22, 24, 26, 0.6);
  transition: transform 0.3s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)),
              background-color 0.3s ease, border-color 0.3s ease;
  z-index: 2;
}
body.page-services .hw-step:hover .hw-step__num {
  background: var(--sp-brand);
  border-color: var(--sp-brand);
  transform: translateY(-3px) scale(1.04);
  color: var(--sp-ink);
}
body.page-services .hw-step__line {
  flex: 1 1 auto;
  width: 2px;
  margin-top: 0.6rem;
  background: linear-gradient(180deg, var(--sp-brand), var(--sp-line));
  border-radius: 2px;
  min-height: 1.5rem;
}
body.page-services .hw-step:last-child .hw-step__line { display: none; }

body.page-services .hw-step__card {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: #fff;
  box-shadow: 0 18px 40px -34px rgba(22, 24, 26, 0.35);
  transition: transform 0.3s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)),
              border-color 0.3s ease, box-shadow 0.3s ease;
}
body.page-services .hw-step:hover .hw-step__card {
  transform: translateY(-4px);
  border-color: var(--sp-brand);
  box-shadow: 0 26px 50px -30px rgba(22, 24, 26, 0.45);
}
body.page-services .hw-step__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 0.7rem;
}
body.page-services .hw-step__head h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--sp-ink);
}
body.page-services .hw-step__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--sp-soft);
  color: var(--sp-brand-ink);
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--sp-line);
}
body.page-services .hw-step__card p {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--sp-text);
}
body.page-services .hw-step__card a {
  color: var(--sp-brand-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.page-services .hw-step__details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
body.page-services .hw-step__details li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--sp-paper);
  border: 1px solid var(--sp-line);
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sp-muted);
}
body.page-services .hw-step__details li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sp-brand);
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  body.page-services .hw-step {
    grid-template-columns: 3.6rem 1fr;
    gap: 0.8rem;
  }
  body.page-services .hw-step__num {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.25rem;
  }
  body.page-services .hw-step__details li { font-size: 0.74rem; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-services .hw-step__num,
  body.page-services .hw-step__card { transition: none; }
  body.page-services .hw-step:hover .hw-step__num,
  body.page-services .hw-step:hover .hw-step__card { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-services *,
  body.page-services *::before,
  body.page-services *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  html.js body.page-services .reveal { opacity: 1; transform: none; }
  body.page-services .sp-hero__frame,
  body.page-services .sp-card:hover,
  body.page-services .sp-related a:hover,
  body.page-services .sp-btn:hover,
  body.page-services .sp-card--media:hover .sp-card__media img,
  body.page-services .sp-hero:hover .sp-hero__frame img,
  body.page-services .sp-related a:hover img { transform: none; }
}

@media print {
  body.page-services .sp-jump,
  body.page-services .sticky-cta { display: none !important; }
  body.page-services .sp-hero { padding-top: 1rem; }
  body.page-services .sp-split__head { position: static; }
}
