/* ============================================================
   SERVICES PAGE — clinical theme redesign
   ============================================================ */

.sp-page {
  --sp-navy: #0b2147;
  --sp-sky: #3d7ea6;
  --sp-amber: #e8913a;
  --sp-ink: #1a2744;
  --sp-mute: #536274;
  --sp-shell: 1320px;
  --sp-gutter: clamp(20px, 5vw, 64px);
  background: #fff;
  color: var(--sp-ink);
  overflow-x: clip;
}

/* HomeInjuries shell vars live on .hp-home — re-provide them here so the
   section stays in the same centered container as other services blocks. */
.sp-page .hp-injuries {
  --hp-shell: var(--sp-shell);
  --hp-gutter: var(--sp-gutter);
  padding-block: clamp(72px, 10vw, 120px);
}

.sp-shell {
  width: 100%;
  max-width: var(--sp-shell);
  margin-inline: auto;
  padding-inline: var(--sp-gutter);
}

.sp-section {
  position: relative;
  padding-block: clamp(72px, 10vw, 120px);
}

.sp-accent {
  color: var(--sp-amber);
}

.sp-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.4px;
  color: var(--sp-ink);
  margin: 0 0 14px;
}

.sp-heading-rule {
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #e8913a 0%, #3d7ea6 100%);
  margin-bottom: 22px;
}

.sp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  animation: sp-float 12s ease-in-out infinite;
}

.sp-orb--amber {
  background: radial-gradient(circle, rgba(232, 145, 58, 0.45) 0%, transparent 70%);
}

.sp-orb--sky {
  background: radial-gradient(circle, rgba(61, 126, 166, 0.4) 0%, transparent 70%);
  animation-delay: -4s;
}

.sp-orb--sm {
  width: 120px;
  height: 120px;
}

@keyframes sp-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) scale(1.08); }
}

@keyframes sp-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sp-mesh-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px; }
}

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

.sp-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(64px, 10vw, 120px) clamp(56px, 8vw, 88px);
  background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
}

.sp-hero > .sp-hero__sonar {
  position: absolute;
  inset: 0;
  z-index: 0;
  --sonar-grid-color: #9bb8cf;
}

.sp-hero__content {
  position: relative;
  z-index: 1;
}

.sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--sp-mute);
}

.sp-breadcrumb a {
  color: var(--sp-navy) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.sp-breadcrumb a:hover {
  color: var(--sp-amber) !important;
}

.sp-hero__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--sp-navy);
  margin: 0 0 18px;
}

.sp-hero__rule {
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8913a 0%, #3d7ea6 100%);
  margin-bottom: 22px;
}

.sp-hero__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.7;
  color: var(--sp-mute);
}

/* ---------- Highlights strip ---------- */

.sp-strip {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding-bottom: 8px;
}

.sp-strip__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(11, 33, 71, 0.1);
  box-shadow: 0 18px 44px rgba(26, 39, 68, 0.1);
}

@media (min-width: 768px) {
  .sp-strip__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 8px;
  }
}

.sp-strip__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  text-align: center;
}

@media (min-width: 768px) {
  .sp-strip__item:not(:last-child) {
    border-right: 1px solid rgba(11, 33, 71, 0.08);
  }
}

.sp-strip__item strong {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--sp-navy);
  letter-spacing: -0.4px;
}

.sp-strip__item:nth-child(2) strong {
  color: #e8913a;
}

.sp-strip__item:nth-child(3) strong {
  color: #3d7ea6;
}

.sp-strip__item span {
  font-size: 13px;
  color: var(--sp-mute);
  line-height: 1.4;
}

/* ---------- Intro ---------- */

.sp-intro {
  background: #fff;
  padding-block: clamp(56px, 8vw, 96px);
}

.sp-intro__panel {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  .sp-intro__panel {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: 48px;
  }
}

.sp-intro__copy p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--sp-mute);
  max-width: 62ch;
}

.sp-intro__copy p:last-child {
  margin-bottom: 0;
}

.sp-intro__aside {
  padding: 28px 26px;
  border-radius: 22px;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(61, 126, 166, 0.12) 0%, transparent 55%),
    linear-gradient(160deg, #f4f8fc 0%, #ffffff 100%);
  border: 1px solid rgba(11, 33, 71, 0.1);
  box-shadow: 0 16px 36px rgba(26, 39, 68, 0.06);
  position: relative;
  overflow: hidden;
}

.sp-intro__aside::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #e8913a 0%, #3d7ea6 100%);
}

.sp-intro__aside-label {
  margin: 0 0 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-navy);
}

.sp-intro__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.sp-intro__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--sp-mute);
}

.sp-intro__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8913a 0%, #3d7ea6 100%);
}

/* ---------- Process journey ---------- */

.sp-process {
  overflow: visible;
  background:
    radial-gradient(46% 40% at 0% 0%, rgba(232, 145, 58, 0.12) 0%, transparent 58%),
    radial-gradient(46% 40% at 100% 100%, rgba(61, 126, 166, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, #f7f4ed 0%, #f4f8fc 100%);
}

.sp-process__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 33, 71, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 33, 71, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  animation: sp-mesh-drift 28s linear infinite;
}

.sp-process__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 992px) {
  .sp-process__layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
  }

  .sp-process__sticky {
    position: sticky;
    top: 120px;
  }
}

.sp-process__lead {
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--sp-mute);
  max-width: 48ch;
}

.sp-process__meta {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 33, 71, 0.1);
  box-shadow: 0 10px 28px rgba(26, 39, 68, 0.06);
}

.sp-process__meta-num {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--sp-amber);
}

.sp-process__meta-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-mute);
}

.sp-process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  position: relative;
}

.sp-process__steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(232, 145, 58, 0.55) 0%,
    rgba(61, 126, 166, 0.55) 50%,
    rgba(11, 33, 71, 0.35) 100%
  );
  border-radius: 2px;
  pointer-events: none;
}

@media (max-width: 575px) {
  .sp-process__steps::before {
    left: 22px;
  }
}

.sp-process__card {
  position: relative;
  margin: 0;
  padding: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(11, 33, 71, 0.1);
  box-shadow: 0 14px 36px rgba(26, 39, 68, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: sp-card-in 0.7s ease both;
  animation-delay: var(--sp-delay, 0ms);
}

.sp-process__card--amber {
  border-left: 3px solid #e8913a;
}

.sp-process__card--sky {
  border-left: 3px solid #3d7ea6;
}

.sp-process__card--navy {
  border-left: 3px solid #0b2147;
}

.sp-process__card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 126, 166, 0.28);
  box-shadow: 0 22px 48px rgba(26, 39, 68, 0.12);
}

.sp-process__card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding-right: 40px;
}

.sp-process__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(11, 33, 71, 0.12);
  box-shadow: 0 6px 16px rgba(26, 39, 68, 0.08);
  z-index: 1;
}

.sp-process__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.sp-process__card--amber .sp-process__icon {
  color: #e8913a;
}

.sp-process__card--sky .sp-process__icon {
  color: #3d7ea6;
}

.sp-process__card--navy .sp-process__icon {
  color: #0b2147;
}

.sp-process__num {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.5px;
}

.sp-process__card--amber .sp-process__num {
  color: #e8913a;
}

.sp-process__card--sky .sp-process__num {
  color: #3d7ea6;
}

.sp-process__card--navy .sp-process__num {
  color: #0b2147;
}

.sp-process__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--sp-ink);
  margin: 0;
}

.sp-process__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--sp-mute);
}

/* ---------- Access panel ---------- */

.sp-access {
  background: #fff;
  padding-block: clamp(56px, 8vw, 100px);
}

.sp-access__panel {
  display: grid;
  gap: 24px;
  padding: clamp(32px, 4.5vw, 52px);
  border-radius: 28px;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(61, 126, 166, 0.14) 0%, transparent 58%),
    radial-gradient(40% 50% at 0% 100%, rgba(232, 145, 58, 0.1) 0%, transparent 55%),
    linear-gradient(160deg, #f4f8fc 0%, #ffffff 100%);
  border: 1px solid rgba(11, 33, 71, 0.1);
  box-shadow: 0 22px 48px rgba(26, 39, 68, 0.07);
  position: relative;
  overflow: hidden;
}

.sp-access__panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #e8913a 0%, #3d7ea6 100%);
}

.sp-access__intro,
.sp-access__copy {
  position: relative;
  z-index: 1;
}

.sp-access__actions {
  margin-top: 8px;
}

.sp-access__copy p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--sp-mute);
}

.sp-access__copy p:last-child {
  margin-bottom: 0;
}

.sp-access__copy a {
  color: var(--sp-sky) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sp-access__copy a:hover {
  color: var(--sp-amber) !important;
}

/* ---------- CTA ---------- */

.sp-cta {
  background:
    radial-gradient(46% 40% at 0% 50%, rgba(232, 145, 58, 0.12) 0%, transparent 58%),
    linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
  padding-block: clamp(48px, 7vw, 88px);
}

.sp-cta__panel {
  display: grid;
  gap: 28px;
  padding: clamp(32px, 4.5vw, 48px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(11, 33, 71, 0.1);
  box-shadow: 0 22px 48px rgba(26, 39, 68, 0.08);
  position: relative;
  overflow: hidden;
}

.sp-cta__panel::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #e8913a 0%, #3d7ea6 55%, #0b2147 100%);
}

.sp-cta__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sp-cta__orbs .sp-orb--amber {
  top: -30px;
  right: 10%;
}

.sp-cta__orbs .sp-orb--sky {
  bottom: -40px;
  right: 30%;
  animation-delay: -3s;
}

@media (min-width: 900px) {
  .sp-cta__panel {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
    padding-left: clamp(40px, 4.5vw, 52px);
  }
}

.sp-cta__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  color: var(--sp-ink);
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.sp-cta__lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--sp-mute);
  max-width: 46ch;
  position: relative;
  z-index: 1;
}

.sp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .sp-orb,
  .sp-process__mesh,
  .sp-process__card {
    animation: none !important;
    transition: none !important;
  }

  .sp-process__card:hover {
    transform: none;
  }
}
