.sd-services {
  --sd-navy: #0b0757;
  --sd-deep: #01002a;
  --sd-purple: #574177;
  --sd-text: #8380ae;
  --sd-coral: #ef5262;
  --sd-orange: #ff5322;
  --sd-yellow: #fdd76e;
  --sd-cream: #fff7e2;
  --sd-light: #f6f8ff;
  --sd-line: #e8e7f3;
  color: var(--sd-text);
  background: #fff;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow: clip;
}

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

.sd-services h1,
.sd-services h2,
.sd-services h3,
.sd-services p {
  margin-top: 0;
}

.sd-services a {
  color: inherit;
}

.sd-services__container {
  width: min(1110px, calc(100% - 40px));
  margin-inline: auto;
}

/* Hero: uses the same orange geometric asset as the current homepage. */
.sd-services__hero {
  position: relative;
  min-height: 760px;
  padding: 190px 0 110px;
  color: #fff;
  background-color: var(--sd-coral);
  background-image: url("../img/orange-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.sd-services__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(207, 37, 93, 0.2), transparent 48%);
}

.sd-services__ambient {
  position: absolute;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.sd-services__ambient--one {
  width: 22px;
  height: 22px;
  top: 24%;
  left: 18%;
}

.sd-services__ambient--two {
  width: 15px;
  height: 15px;
  right: 18%;
  bottom: 22%;
}

.sd-services__hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr);
  gap: 68px;
  align-items: center;
}

.sd-services__eyebrow,
.sd-services__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--sd-orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sd-services__eyebrow {
  color: var(--sd-yellow);
}

.sd-services__eyebrow span {
  width: 26px;
  height: 2px;
  background: var(--sd-yellow);
}

.sd-services__hero h1 {
  max-width: 650px;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(40px, 4.2vw, 58px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.sd-services__hero h1 em {
  color: var(--sd-yellow);
  font-style: normal;
}

.sd-services__hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

.sd-services__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.sd-services__button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 46px;
  text-decoration: none !important;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sd-services__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 7, 87, 0.16);
}

.sd-services__button--primary {
  color: var(--sd-navy);
  background: var(--sd-yellow);
}

.sd-services__button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.sd-services__button--light {
  color: var(--sd-navy);
  background: var(--sd-yellow);
}

.sd-services__hero-facts {
  display: flex;
  gap: 35px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.sd-services__hero-facts li {
  display: grid;
  gap: 3px;
}

.sd-services__hero-facts strong {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.sd-services__hero-facts span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.sd-services__hero-panel {
  padding: 20px;
  border-radius: 10px;
  color: var(--sd-navy);
  background: var(--sd-cream);
  box-shadow: 0 18px 48px rgba(87, 65, 119, 0.24);
}

.sd-services__panel-head {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 2px 4px 17px;
  color: #8d819f;
  font:
    500 11px/1.2 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}

.sd-services__panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sd-orange);
}

.sd-services__panel-status {
  margin-left: auto;
  color: var(--sd-orange);
}

.sd-services__score {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid #f0dfba;
  border-radius: 6px;
  background: #fff;
}

.sd-services__score > div:last-child {
  display: grid;
  gap: 4px;
}

.sd-services__score > div:last-child strong {
  color: var(--sd-navy);
  font-size: 17px;
}

.sd-services__muted {
  color: #9992ad;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.sd-services__score-ring {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  place-content: center;
  border: 2px solid var(--sd-orange);
  border-radius: 50%;
  text-align: center;
}

.sd-services__score-ring span {
  color: #9992ad;
  font-size: 9px;
}

.sd-services__score-ring strong {
  color: var(--sd-orange);
  font-size: 23px;
  line-height: 1;
}

.sd-services__checks {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sd-services__checks li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 10px;
  border-bottom: 1px solid #eadfca;
}

.sd-services__checks li:last-child {
  border-bottom: 0;
}

.sd-services__checks span {
  color: #aaa1b6;
  font:
    600 10px/1 ui-monospace,
    monospace;
}

.sd-services__checks p {
  margin: 0;
  color: #574f70;
  font-size: 13px;
}

.sd-services__checks b {
  color: var(--sd-orange);
  font:
    700 9px/1 ui-monospace,
    monospace;
}

/* Shared sections */
.sd-services__section {
  padding: 120px 0;
}

.sd-services__section-head {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}

.sd-services__section-head .sd-services__kicker {
  justify-content: center;
}

.sd-services__section-head h2,
.sd-services__cta h2,
.sd-services__result-grid h2 {
  margin-bottom: 18px;
  color: var(--sd-navy);
  font-size: clamp(32px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.sd-services__section-head > p:last-child {
  margin-bottom: 0;
  color: var(--sd-text);
  font-size: 16px;
  line-height: 1.9;
}

.sd-services__section-head--row {
  display: flex;
  max-width: none;
  justify-content: space-between;
  gap: 50px;
  align-items: end;
  text-align: left;
}

.sd-services__section-head--row .sd-services__kicker {
  justify-content: flex-start;
}

.sd-services__section-head--row > div {
  max-width: 680px;
}

.sd-services__section-head--row > p {
  max-width: 360px;
}

/* Problems */
.sd-services__section--intro {
  background: #fff;
}

.sd-services__problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sd-services__problem-grid article {
  min-height: 275px;
  padding: 32px 26px;
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sd-services__problem-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(11, 7, 87, 0.09);
}

.sd-services__problem-grid article > span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sd-navy);
  font-size: 12px;
  font-weight: 600;
}

.sd-services__problem-grid h3 {
  margin-bottom: 12px;
  color: var(--sd-navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.sd-services__problem-grid p {
  margin: 0;
  color: var(--sd-text);
  font-size: 14px;
  line-height: 1.8;
}

/* Catalog: same dark polygon background as homepage pricing. */
.sd-services__section--catalog {
  background-color: var(--sd-deep);
  background-image: url("../img/bg-dark-blue.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.sd-services__section--catalog .sd-services__kicker {
  color: var(--sd-yellow);
}

.sd-services__section--catalog .sd-services__section-head h2 {
  color: #fff;
}

.sd-services__section--catalog .sd-services__section-head > p {
  color: rgba(255, 255, 255, 0.72);
}

.sd-services__catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.sd-services__card {
  display: flex;
  min-height: 500px;
  padding: 30px;
  flex-direction: column;
  border: 0;
  border-radius: 10px;
  color: var(--sd-text);
  background: #fff;
  box-shadow: 0 10px 35px rgba(1, 0, 42, 0.18);
  scroll-margin-top: 100px;
}

.sd-services__card--featured {
  outline: 3px solid var(--sd-yellow);
  transform: translateY(-8px);
}

.sd-services__card-top {
  display: flex;
  min-height: 34px;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.sd-services__card-number {
  color: var(--sd-orange);
  font:
    700 12px/1 ui-monospace,
    monospace;
}

.sd-services__badge {
  padding: 6px 9px;
  border-radius: 4px;
  color: var(--sd-navy);
  background: var(--sd-yellow);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.sd-services__card h3 {
  margin: 22px 0 13px;
  color: var(--sd-navy);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

.sd-services__card-lead {
  min-height: 76px;
  margin-bottom: 22px;
  color: var(--sd-text);
  font-size: 14px;
  line-height: 1.75;
}

.sd-services__card ul {
  display: grid;
  gap: 11px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.sd-services__card li {
  position: relative;
  padding-left: 22px;
  color: var(--sd-text);
  font-size: 13px;
  line-height: 1.65;
}

.sd-services__card li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--sd-purple);
  font-weight: 700;
}

.sd-services__card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
  padding: 18px 0;
  border-top: 1px solid var(--sd-line);
  border-bottom: 1px solid var(--sd-line);
}

.sd-services__card-meta div {
  display: grid;
  gap: 3px;
}

.sd-services__card-meta span {
  color: #a09dbd;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sd-services__card-meta strong {
  color: var(--sd-navy);
  font-size: 14px;
  font-weight: 600;
}

.sd-services__card > a {
  display: flex;
  margin-top: 20px;
  padding: 12px 16px;
  justify-content: space-between;
  border-radius: 4px;
  color: #fff;
  background: var(--sd-orange);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
}

/* Process */
.sd-services__section--process {
  color: var(--sd-text);
  background: #fff;
}

.sd-services__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-services__timeline li {
  position: relative;
  padding: 30px 30px 0 0;
  border-top: 2px solid #ecebf5;
}

.sd-services__timeline li::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--sd-orange);
  box-shadow: 0 0 0 2px var(--sd-orange);
}

.sd-services__timeline li > span {
  color: var(--sd-orange);
  font:
    700 11px/1 ui-monospace,
    monospace;
}

.sd-services__timeline h3 {
  margin: 30px 0 12px;
  color: var(--sd-navy);
  font-size: 18px;
  font-weight: 600;
}

.sd-services__timeline p {
  max-width: 230px;
  margin: 0;
  color: var(--sd-text);
  font-size: 13px;
  line-height: 1.8;
}

/* Result: same light geometric language as portfolio. */
.sd-services__section--result {
  background-color: #f2f7ff;
  background-image: url("../img/bg-light-box.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.sd-services__result-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 80px;
  align-items: start;
}

.sd-services__result-grid h2 {
  margin-bottom: 0;
}

.sd-services__result-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sd-services__result-list > div {
  display: flex;
  min-height: 175px;
  padding: 26px;
  gap: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(11, 7, 87, 0.07);
}

.sd-services__result-list > div > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sd-navy);
  font-weight: 600;
}

.sd-services__result-list p {
  margin: 0;
  color: var(--sd-text);
  font-size: 13px;
  line-height: 1.75;
}

.sd-services__result-list strong {
  display: block;
  margin: 3px 0 8px;
  color: var(--sd-navy);
  font-size: 16px;
  font-weight: 600;
}

/* FAQ */
.sd-services__section--faq {
  background: #fff;
}

.sd-services__faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 90px;
  align-items: start;
}

.sd-services__faq-grid .sd-services__section-head {
  margin: 0;
  text-align: left;
}

.sd-services__faq-grid .sd-services__kicker {
  justify-content: flex-start;
}

.sd-services__faq-list {
  border-top: 1px solid var(--sd-line);
}

.sd-services__faq-list details {
  border-bottom: 1px solid var(--sd-line);
}

.sd-services__faq-list summary {
  display: flex;
  padding: 22px 2px;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--sd-navy);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}

.sd-services__faq-list summary::-webkit-details-marker {
  display: none;
}

.sd-services__faq-list summary span {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.sd-services__faq-list summary span::before,
.sd-services__faq-list summary span::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 4px;
  width: 14px;
  height: 2px;
  background: var(--sd-orange);
  transition: transform 0.2s ease;
}

.sd-services__faq-list summary span::after {
  transform: rotate(90deg);
}

.sd-services__faq-list details[open] summary span::after {
  transform: rotate(0);
}

.sd-services__faq-list details p {
  max-width: 650px;
  margin: -5px 0 24px;
  padding-right: 50px;
  color: var(--sd-text);
  font-size: 14px;
  line-height: 1.8;
}

/* Final CTA */
.sd-services__cta {
  padding: 0 0 120px;
  background: #fff;
}

.sd-services__cta-box {
  position: relative;
  overflow: hidden;
  padding: 66px 70px;
  border-radius: 10px;
  color: #fff;
  background-color: var(--sd-coral);
  background-image: url("../img/orange-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.sd-services__cta-box::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -60px;
  bottom: -100px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.sd-services__cta-box > * {
  position: relative;
  z-index: 1;
}

.sd-services__cta .sd-services__kicker {
  color: var(--sd-yellow);
}

.sd-services__cta h2 {
  max-width: 820px;
  color: #fff;
}

.sd-services__cta-box > p:not(.sd-services__kicker) {
  max-width: 700px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.8;
}

.sd-services__phone {
  display: grid;
  margin-left: 12px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
}

.sd-services__phone span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 1020px) {
  .sd-services__hero {
    padding-top: 150px;
  }

  .sd-services__hero-grid {
    grid-template-columns: 1fr;
  }

  .sd-services__hero-panel {
    max-width: 620px;
  }

  .sd-services__problem-grid,
  .sd-services__catalog {
    grid-template-columns: 1fr 1fr;
  }

  .sd-services__timeline {
    grid-template-columns: 1fr 1fr;
    gap: 48px 0;
  }

  .sd-services__result-grid,
  .sd-services__faq-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 680px) {
  .sd-services__container {
    width: min(100% - 30px, 1110px);
  }

  .sd-services__hero {
    min-height: 0;
    padding: 125px 0 80px;
  }

  .sd-services__hero-grid {
    gap: 45px;
  }

  .sd-services__hero h1 {
    font-size: 38px;
  }

  .sd-services__hero-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .sd-services__hero-facts li:last-child {
    grid-column: 1 / -1;
  }

  .sd-services__section {
    padding: 80px 0;
  }

  .sd-services__section-head--row {
    display: block;
    text-align: center;
  }

  .sd-services__section-head--row .sd-services__kicker {
    justify-content: center;
  }

  .sd-services__problem-grid,
  .sd-services__catalog,
  .sd-services__timeline,
  .sd-services__result-list {
    grid-template-columns: 1fr;
  }

  .sd-services__problem-grid article {
    min-height: auto;
  }

  .sd-services__card {
    min-height: 0;
  }

  .sd-services__card--featured {
    transform: none;
  }

  .sd-services__card-lead {
    min-height: 0;
  }

  .sd-services__timeline {
    gap: 38px;
  }

  .sd-services__timeline p {
    max-width: none;
  }

  .sd-services__cta {
    padding-bottom: 80px;
  }

  .sd-services__cta-box {
    padding: 44px 26px;
  }

  .sd-services__phone {
    margin: 8px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sd-services *,
  .sd-services *::before,
  .sd-services *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
