/**
 * CMS Development Services page-only extras.
 * Loaded only via seo.extra_css — scoped so other pages are unaffected.
 */
body.page-cms .cms-theme-page.theme-html-root {
  /* namespace hook */
}

body.page-cms .cms-theme-page .sec-paper,
body.page-cms .cms-theme-page .sec-mist,
body.page-cms .cms-theme-page .sec-ink {
  position: relative;
}

body.page-cms .hero-eyebrow {
  display: none !important;
}

body.page-cms .hero-badges.hero-trust,
body.page-cms .hero-trust.hero-badges {
  margin-top: 1.25rem;
}

/* ─── Hero: breathing room (beats theme-html-mobile zeroing) ─── */
html body.page-cms.page-service .hero,
html body.page-cms.page-service section.hero {
  padding-top: 72px !important;
  padding-bottom: clamp(24px, 3vw, 40px) !important;
}

html body.page-cms.page-service .hero > .wrap,
html body.page-cms.page-service .hero > .hero-in,
html body.page-cms.page-service .hero > .container {
  padding-top: 8px !important;
  padding-bottom: clamp(12px, 2vw, 24px) !important;
}

html body.page-cms.page-service .hero .hero-copy,
html body.page-cms.page-service .hero .hero-inner {
  padding-top: 8px !important;
  padding-bottom: clamp(14px, 2vw, 28px) !important;
  margin-top: 0 !important;
}

html body.page-cms.page-service .hero h1 {
  margin-top: 0.2em !important;
  margin-bottom: 0.45em !important;
  line-height: 1.12 !important;
}

html body.page-cms.page-service .hero .lede,
html body.page-cms.page-service .hero p.sub,
html body.page-cms.page-service .hero .hero-sub {
  margin-top: 0 !important;
  margin-bottom: clamp(18px, 2.4vw, 28px) !important;
  line-height: 1.55 !important;
}

html body.page-cms.page-service .hero-actions,
html body.page-cms.page-service .hero-ctas {
  margin-top: 0 !important;
  margin-bottom: clamp(12px, 1.8vw, 20px) !important;
}

@media (max-width: 900px) {
  html body.page-cms.page-service .hero,
  html body.page-cms.page-service section.hero {
    padding-top: 72px !important;
    padding-bottom: 24px !important;
  }

  html body.page-cms.page-service .hero > .wrap,
  html body.page-cms.page-service .hero > .hero-in,
  html body.page-cms.page-service .hero > .container {
    padding-top: 6px !important;
  }

  html body.page-cms.page-service .hero .hero-copy,
  html body.page-cms.page-service .hero .hero-inner {
    padding-top: 6px !important;
    padding-bottom: 14px !important;
  }
}

/* Mid-page CTA band — remove from this page */
html body.page-cms.page-service .cms-theme-page section:has(> .cta-band),
html body.page-cms.page-service .cms-theme-page .cta-band {
  display: none !important;
}

/* ─── #problem: fix broken carousel card widths ─── */
@media (max-width: 980px) {
  html body.page-cms.page-service .cms-theme-page #problem .wrap {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body.page-cms.page-service .cms-theme-page #problem .why-mobile-carousel {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
  }

  html body.page-cms.page-service .cms-theme-page #problem .why-mobile-carousel::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }

  html body.page-cms.page-service .cms-theme-page #problem .grid,
  html body.page-cms.page-service .cms-theme-page #problem .grid.thm-mobile-carousel,
  html body.page-cms.page-service .cms-theme-page #problem .why-mobile-carousel > .grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: max-content !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 2px 6px !important;
    overflow: visible !important;
    grid-template-columns: none !important;
  }

  html body.page-cms.page-service .cms-theme-page #problem .grid > .prob,
  html body.page-cms.page-service .cms-theme-page #problem .grid > * {
    flex: 0 0 min(340px, calc(100vw - 48px)) !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: min(340px, calc(100vw - 48px)) !important;
    min-width: min(340px, calc(100vw - 48px)) !important;
    max-width: min(340px, calc(100vw - 48px)) !important;
    height: auto !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  html body.page-cms.page-service .cms-theme-page #problem .thm-carousel-nav-wrap {
    display: none !important;
  }

  html body.page-cms.page-service .cms-theme-page #problem .testi-dots.thm-carousel-dots,
  html body.page-cms.page-service .cms-theme-page #problem .wrap > .testi-dots.thm-carousel-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0 !important;
  }
}

/* ─── #services: mobile swipe-up sticky stack ─── */
@media (max-width: 900px) {
  html body.page-cms.page-service .cms-theme-page section#services,
  html body.page-cms.page-service .cms-theme-page section#services.has-page-svc-stack {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  html body.page-cms.page-service .cms-theme-page #services .wrap {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body.page-cms.page-service .cms-theme-page #services .grid.page-svc-stack,
  html body.page-cms.page-service .cms-theme-page #services .grid[data-thm-stack],
  html body.page-cms.page-service .cms-theme-page #services .g-3.page-svc-stack {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  html body.page-cms.page-service .cms-theme-page #services .grid.page-svc-stack > .svc-stack-item {
    position: sticky !important;
    top: calc(var(--svc-stack-nav, 68px) + (var(--index0, 0) * var(--svc-stack-peek, 14px))) !important;
    z-index: calc(1 + var(--index0, 0)) !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 var(--svc-stack-gap, 18px) !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html body.page-cms.page-service .cms-theme-page #services .grid.page-svc-stack > .svc-stack-item:last-child {
    margin-bottom: 0 !important;
  }

  html body.page-cms.page-service .cms-theme-page #services .grid.page-svc-stack .svc,
  html body.page-cms.page-service .cms-theme-page #services .grid.page-svc-stack .svc-stack-item > .svc {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 160px !important;
    margin: 0 !important;
    padding: 22px 18px 24px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid var(--line, #e1e9e5) !important;
    border-radius: 18px !important;
    box-shadow:
      0 1px 2px rgba(13, 32, 41, 0.05),
      0 14px 32px -16px rgba(13, 32, 41, 0.22) !important;
    opacity: 1 !important;
    transform: none !important;
    overflow: hidden !important;
    isolation: isolate;
  }

  html body.page-cms.page-service .cms-theme-page #services .svc h3 {
    color: #0d2029 !important;
    font-size: 1.08rem !important;
    margin: 0 0 8px !important;
    overflow-wrap: anywhere !important;
  }

  html body.page-cms.page-service .cms-theme-page #services .svc p {
    color: #3a4a50 !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere !important;
  }
}

@media (min-width: 901px) {
  html body.page-cms.page-service .cms-theme-page #services .grid.page-svc-stack,
  html body.page-cms.page-service .cms-theme-page #services .grid[data-thm-stack] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }

  html body.page-cms.page-service .cms-theme-page #services .grid.page-svc-stack > .svc-stack-item {
    position: relative !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  html body.page-cms.page-service .cms-theme-page #services .grid.page-svc-stack,
  html body.page-cms.page-service .cms-theme-page #services .grid[data-thm-stack] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ─── #process: card design (desktop) + swipe-up stack (mobile) ─── */
html body.page-cms.page-service .cms-theme-page #process .steps {
  gap: 18px !important;
}

html body.page-cms.page-service .cms-theme-page #process .step {
  background: #fff !important;
  border: 1px solid var(--line, #e1e9e5) !important;
  border-radius: 18px !important;
  padding: 26px 22px 24px !important;
  box-shadow:
    0 1px 2px rgba(13, 32, 41, 0.04),
    0 10px 28px -16px rgba(13, 32, 41, 0.16) !important;
  box-sizing: border-box !important;
  position: relative !important;
}

html body.page-cms.page-service .cms-theme-page #process .step::before {
  display: none !important;
}

html body.page-cms.page-service .cms-theme-page #process .step .dot {
  position: static !important;
  display: none !important;
}

html body.page-cms.page-service .cms-theme-page #process .step .n {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: var(--ink, #0a1a22) !important;
  color: var(--signal, #f47a1f) !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  margin: 0 0 14px !important;
}

html body.page-cms.page-service .cms-theme-page #process .step h3 {
  color: #0d2029 !important;
  font-size: 1.05rem !important;
  margin: 0 0 8px !important;
}

html body.page-cms.page-service .cms-theme-page #process .step p {
  color: #4b5b62 !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

@media (min-width: 901px) {
  html body.page-cms.page-service .cms-theme-page #process .steps.page-svc-stack,
  html body.page-cms.page-service .cms-theme-page #process .steps[data-thm-stack] {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  html body.page-cms.page-service .cms-theme-page #process .steps.page-svc-stack > .svc-stack-item {
    position: relative !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important;
    height: 100% !important;
  }

  html body.page-cms.page-service .cms-theme-page #process .steps.page-svc-stack .step {
    height: 100% !important;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  html body.page-cms.page-service .cms-theme-page #process .steps.page-svc-stack,
  html body.page-cms.page-service .cms-theme-page #process .steps[data-thm-stack] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  html body.page-cms.page-service .cms-theme-page section#process,
  html body.page-cms.page-service .cms-theme-page section#process.has-page-svc-stack {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  html body.page-cms.page-service .cms-theme-page #process .wrap {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body.page-cms.page-service .cms-theme-page #process .steps.page-svc-stack,
  html body.page-cms.page-service .cms-theme-page #process .steps[data-thm-stack] {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  html body.page-cms.page-service .cms-theme-page #process .steps.page-svc-stack > .svc-stack-item {
    position: sticky !important;
    top: calc(var(--svc-stack-nav, 68px) + (var(--index0, 0) * var(--svc-stack-peek, 14px))) !important;
    z-index: calc(1 + var(--index0, 0)) !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 var(--svc-stack-gap, 18px) !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html body.page-cms.page-service .cms-theme-page #process .steps.page-svc-stack > .svc-stack-item:last-child {
    margin-bottom: 0 !important;
  }

  html body.page-cms.page-service .cms-theme-page #process .steps.page-svc-stack .step,
  html body.page-cms.page-service .cms-theme-page #process .steps.page-svc-stack .svc-stack-item > .step {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 140px !important;
    margin: 0 !important;
    padding: 22px 18px 24px !important;
    opacity: 1 !important;
    transform: none !important;
    overflow: hidden !important;
    isolation: isolate;
  }

  html body.page-cms.page-service .cms-theme-page #process .step h3,
  html body.page-cms.page-service .cms-theme-page #process .step p {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}

/* ─── #work: testimonials mobile carousel ─── */
@media (max-width: 980px) {
  html body.page-cms.page-service .cms-theme-page #work .wrap {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body.page-cms.page-service .cms-theme-page #work .why-mobile-carousel {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
  }

  html body.page-cms.page-service .cms-theme-page #work .why-mobile-carousel::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }

  html body.page-cms.page-service .cms-theme-page #work .grid,
  html body.page-cms.page-service .cms-theme-page #work .grid.thm-mobile-carousel,
  html body.page-cms.page-service .cms-theme-page #work .why-mobile-carousel > .grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: max-content !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 2px 6px !important;
    overflow: visible !important;
    grid-template-columns: none !important;
  }

  html body.page-cms.page-service .cms-theme-page #work .grid > .tst,
  html body.page-cms.page-service .cms-theme-page #work .grid > * {
    flex: 0 0 min(340px, calc(100vw - 48px)) !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: min(340px, calc(100vw - 48px)) !important;
    min-width: min(340px, calc(100vw - 48px)) !important;
    max-width: min(340px, calc(100vw - 48px)) !important;
    height: auto !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  html body.page-cms.page-service .cms-theme-page #work .tst q {
    font-size: 0.95rem !important;
    overflow-wrap: anywhere !important;
  }

  html body.page-cms.page-service .cms-theme-page #work .thm-carousel-nav-wrap {
    display: none !important;
  }

  html body.page-cms.page-service .cms-theme-page #work .testi-dots.thm-carousel-dots,
  html body.page-cms.page-service .cms-theme-page #work .wrap > .testi-dots.thm-carousel-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0 !important;
  }
}

/* #why feats: one card per view. 100% of a max-content track was stretching cards to thousands of px. */
@media (max-width: 767px) {
  html body.page-cms.page-service .cms-theme-page #why .why-mobile-carousel:has(> .feat-list) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body.page-cms.page-service .cms-theme-page #why .feat-list.thm-mobile-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body.page-cms.page-service .cms-theme-page #why .feat-list.thm-mobile-carousel::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }

  html body.page-cms.page-service .cms-theme-page #why .feat-list.thm-mobile-carousel > .feat {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  html body.page-cms.page-service .cms-theme-page #why .feat h3,
  html body.page-cms.page-service .cms-theme-page #why .feat p {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body.page-cms.page-service .cms-theme-page #why .why-mobile-carousel + .testi-dots.thm-carousel-dots {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 16px 0 0 !important;
    position: static !important;
  }

  html body.page-cms.page-service .cms-theme-page #why .testi-dot.is-active {
    background: var(--signal, #f47a1f) !important;
  }
}

@media (max-width: 900px) {
  html body.page-cms.page-service .cms-theme-page #process .steps.page-svc-stack > .svc-stack-item {
    width: min(100%, calc(100vw - 36px)) !important;
    max-width: min(100%, calc(100vw - 36px)) !important;
  }

  html body.page-cms.page-service .cms-theme-page #process .steps.page-svc-stack .step,
  html body.page-cms.page-service .cms-theme-page #process .steps.page-svc-stack .svc-stack-item > .step {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    border-top: 3px solid var(--signal, #f47a1f) !important;
    overflow: visible !important;
  }

  html body.page-cms.page-service .cms-theme-page #process .step h3,
  html body.page-cms.page-service .cms-theme-page #process .step p,
  html body.page-cms.page-service .cms-theme-page #process .step .n {
    white-space: normal !important;
    max-width: 100% !important;
  }
}
