/* ======================================================================
   Services page (/services).
   No individual service pages, so each service gets one generous block —
   summary, detail and inclusions — with a jump index up top so
   nobody has to read all four to reach the one they came for.
   Alternating dark/light bands keep it from reading as a single long wall.
   ====================================================================== */

/* ---------------- Intro ---------------- */
.sp-intro {
  background: var(--c-black);
  /* Same clearance from the nav as the Contact page intro. */
  padding: clamp(40px, 6vw, 90px) var(--page-x) clamp(48px, 7vw, 80px);
}
.sp-intro__heading,
.sp-intro__body,
.sp-index {
  max-width: 1600px;
  margin-inline: auto;
}
.sp-intro__heading {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.03;
  font-size: clamp(36px, 5vw, 78px);
  color: var(--c-white);
  max-width: 16ch;
  margin-bottom: clamp(18px, 2.5vw, 28px);
}
.sp-intro__body {
  max-width: 660px;
}

/* ---------------- Jump index ---------------- */
.sp-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(40px, 6vw, 72px);
}
.sp-index__item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  transition: border-color 0.35s ease;
}
/* Hover: border and text turn white, background stays black. */
.sp-index__item:hover {
  border-color: var(--c-white);
}
.sp-index__item:hover .sp-index__name {
  color: var(--c-white);
}
.sp-index__name {
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 500;
  color: var(--c-accent);
  transition: color 0.35s ease;
}

/* ---------------- Service block ---------------- */
.sp-service {
  /* Each block fills the screen below the fixed nav (~90px), with its content
     centred, so one service is on screen at a time. */
  --sp-nav: 90px;
  --sp-pad: clamp(40px, 6vw, 80px);
  min-height: calc(100vh - var(--sp-nav));
  min-height: calc(100svh - var(--sp-nav));
  display: flex;
  align-items: center;
  padding: var(--sp-pad) var(--page-x);
  /* Lands the block flush under the nav when jumped to from the index, and
     doubles as the snap offset. */
  scroll-margin-top: var(--sp-nav);
  scroll-snap-align: start;
}
/* Alternate the band colour so four blocks don't read as one slab. */
.sp-service--dark {
  background: var(--c-black);
  color: var(--c-white);
}
.sp-service--light {
  background: var(--c-grey-light);
  color: var(--c-black);
}
.sp-service__inner {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 90px);
  align-items: center;
}
.sp-service--flipped .sp-service__inner {
  direction: rtl;
}
.sp-service--flipped .sp-service__inner > * {
  direction: ltr;
}
.sp-service__name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(28px, 3.6vw, 52px);
  margin-bottom: 16px;
}
.sp-service__summary {
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-accent);
  margin-bottom: 18px;
}
.sp-service--light .sp-service__summary {
  color: var(--c-accent-dark);
}
.sp-service__detail {
  margin-bottom: clamp(24px, 3vw, 36px);
}
.sp-service--light .sp-service__detail {
  color: var(--c-grey);
}

/* Inclusions */
.sp-service__includes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px clamp(16px, 2vw, 30px);
  margin-bottom: clamp(24px, 3vw, 36px);
}
.sp-service__includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.45;
}
.sp-service__includes svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--c-accent);
}
.sp-service--light .sp-service__includes svg {
  color: var(--c-accent-dark);
}

/* Imagery */
.sp-service__media {
  /* Fills the block's usable height so the image runs top to bottom of the
     screen; capped so tall monitors don't stretch it absurdly. */
  height: calc(100vh - var(--sp-nav) - var(--sp-pad) * 2);
  height: calc(100svh - var(--sp-nav) - var(--sp-pad) * 2);
  min-height: 340px;
  max-height: 820px;
  border-radius: var(--radius);
}
/* The light bands need the light placeholder treatment. */
.sp-service--light .sp-service__media {
  background: var(--c-placeholder);
  border-color: rgba(0, 0, 0, 0.07);
  color: var(--c-placeholder-glyph);
}

/* ---------------- Process ---------------- */
.sp-process {
  /* Light, because the last service block is now dark: keeps a break between
     the two. Pure white so the grey closing section below stands apart. */
  background: var(--c-white);
  color: var(--c-black);
  padding: clamp(70px, 10vw, 130px) var(--page-x);
}
.sp-process__head,
.sp-process__grid {
  max-width: 1600px;
  margin-inline: auto;
}
.sp-process__head {
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sp-process__heading {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(30px, 4vw, 56px);
  color: var(--c-black);
}
.sp-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
}
.sp-step {
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.sp-step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-accent-dark);
  margin-bottom: 12px;
}
.sp-step__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(19px, 1.7vw, 26px);
  color: var(--c-black);
  margin-bottom: 10px;
}
.sp-step__body {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.5;
  color: var(--c-grey);
}

/* ---------------- Closing CTA ---------------- */
.sp-cta {
  /* Same light grey as the Instagram band on /contact. The process section
     above is pure white, as the contact form is, so the two read apart. */
  background: var(--c-grey-light);
  color: var(--c-black);
  padding: clamp(70px, 10vw, 130px) var(--page-x);
}
.sp-cta__inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.sp-cta__heading {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(30px, 4vw, 56px);
  margin-bottom: 16px;
}
/* .sp-cta prefix: the .body-lg utility (white) loads later and would win. */
.sp-cta .sp-cta__body {
  color: var(--c-grey);
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.sp-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 40px;
  background: var(--c-black);
  color: var(--c-white);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.3s ease;
}
.sp-cta__button:hover {
  background: var(--c-accent-dark);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .sp-index {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-process__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: clamp(28px, 4vw, 40px);
  }
  .sp-service__inner {
    grid-template-columns: 1fr;
  }
  /* Media above the copy once stacked, on both orientations. */
  .sp-service--flipped .sp-service__inner {
    direction: ltr;
  }
  .sp-service__media {
    order: -1;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 600px) {
  .sp-index {
    grid-template-columns: 1fr;
  }
  .sp-service__includes {
    grid-template-columns: 1fr;
  }
  .sp-process__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-index__item,
  .sp-cta__button {
    transition: none;
  }
}
