/* =========================================================
   Service pages (/services/<slug>)
   Plain HTML pages with no JavaScript, rendered by
   src/seo/servicePageTemplate.ts. Colours and type follow the
   main site: Space Grotesk headings, Sora body, near-black ink
   and the brand orange as the only accent.
   ========================================================= */

:root {
  --ink: #1d1d1d;
  --ink-2: #585959;
  --ink-3: #6b6c6c;
  --line: #e4e4e4;
  --paper: #ffffff;
  --tint: #f4f3f1;
  --dark: #14130f;
  --accent: #f0460e;
  /* The brand orange darkened enough to read as small text on white and tint. */
  --accent-text: #c2410c;
  --radius: 18px;
  --ff-head: "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Sora", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--ff-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 36px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 16px;
}

.sp-wrap {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

.sp-narrow {
  width: min(860px, 100% - 40px);
}

.sp-skip {
  position: absolute;
  left: -9999px;
}

.sp-skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.sp-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.sp-header__row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.sp-logo {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.sp-logo span {
  color: #9a9a9a;
}

.sp-nav {
  display: flex;
  gap: 26px;
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.sp-nav::-webkit-scrollbar {
  display: none;
}

.sp-nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.sp-nav a:hover,
.sp-nav a[aria-current] {
  border-bottom-color: var(--ink);
}

/* ---------- Buttons ---------- */

.sp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.sp-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.sp-btn--small {
  padding: 10px 18px;
  font-size: 14px;
}

.sp-btn--ghost {
  background: transparent;
  color: var(--ink);
}

.sp-btn--ghost:hover {
  color: #fff;
}

.sp-btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.sp-btn--light:hover {
  color: #fff;
}

.sp-btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.sp-btn--outline-light:hover {
  border-color: #fff;
  background: transparent;
}

.sp-arrow {
  flex: none;
}

/* ---------- Hero ---------- */

.sp-hero {
  padding: 56px 0 72px;
}

.sp-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.sp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}

.sp-crumbs a {
  text-decoration: none;
}

.sp-crumbs a:hover {
  color: var(--ink);
}

.sp-crumbs [aria-current] {
  color: var(--accent-text);
}

.sp-lead {
  font-size: 19px;
  color: var(--ink-2);
  margin-top: 22px;
  max-width: 34em;
}

.sp-call {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-3);
}

.sp-call a {
  color: var(--ink);
  font-weight: 600;
}

.sp-hero__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint);
}

.sp-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Sections ---------- */

.sp-section {
  padding: 88px 0;
}

.sp-section--tint {
  background: var(--tint);
}

.sp-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}

.sp-muted {
  color: var(--ink-2);
}

.sp-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.sp-split h2 {
  margin-bottom: 20px;
}

.sp-prose p {
  font-size: 18px;
  color: var(--ink-2);
}

/* Included cards */

.sp-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.sp-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.sp-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.sp-card__num {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-text);
  margin-bottom: 18px;
}

.sp-card h3 {
  margin-bottom: 10px;
}

.sp-card p {
  color: var(--ink-2);
  font-size: 15.5px;
  margin: 0;
}

/* Process steps */

.sp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}

.sp-steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.sp-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.sp-steps h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.sp-steps p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
}

/* Good-for chips */

.sp-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sp-chips li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
}

/* FAQ, native disclosure: no script needed */

.sp-faq details {
  border-bottom: 1px solid var(--line);
}

.sp-faq details:first-child {
  border-top: 1px solid var(--line);
}

.sp-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 19px;
}

.sp-faq summary::-webkit-details-marker {
  display: none;
}

.sp-faq summary::after {
  content: "+";
  flex: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-3);
  transition: transform 0.2s;
}

.sp-faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.sp-faq details p {
  color: var(--ink-2);
  padding-bottom: 22px;
  margin: 0;
  max-width: 46em;
}

/* CTA band */

.sp-cta {
  background: var(--dark);
  color: #fff;
  padding: 88px 0;
}

.sp-cta__inner {
  max-width: 820px;
  text-align: center;
}

.sp-cta h2 {
  margin-bottom: 18px;
}

.sp-cta p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.sp-cta .sp-actions {
  justify-content: center;
}

/* Other services */

.sp-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.sp-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.sp-links a:hover {
  border-color: var(--ink);
  background: var(--tint);
}

/* ---------- Footer ---------- */

.sp-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 0;
  font-size: 15px;
}

.sp-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.sp-logo--light {
  color: #fff;
  display: inline-block;
  margin-bottom: 14px;
}

.sp-footer address {
  font-style: normal;
  line-height: 1.8;
}

.sp-footer a {
  text-decoration: none;
}

.sp-footer a:hover,
.sp-footer a[aria-current] {
  color: #fff;
}

.sp-footer__title {
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 600;
  margin-bottom: 14px;
}

.sp-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 2.1;
}

.sp-footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 56px;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .sp-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .sp-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .sp-header__row {
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 10px 0;
  }

  .sp-header .sp-btn--small {
    margin-left: auto;
  }

  .sp-nav {
    order: 3;
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
    gap: 2px 18px;
  }

  .sp-hero {
    padding: 32px 0 56px;
  }

  .sp-hero__grid,
  .sp-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sp-section,
  .sp-cta {
    padding: 64px 0;
  }

  .sp-lead {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .sp-cards,
  .sp-steps,
  .sp-footer__grid {
    grid-template-columns: 1fr;
  }

  .sp-actions .sp-btn {
    width: 100%;
    justify-content: center;
  }

  .sp-faq summary {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
