/* Services owns its layout; card selection and page scrolling remain shared. */
#services,
#services *,
#services *::before,
#services *::after { box-sizing: border-box; }
.section-flow #main-content > #services { padding-block: clamp(28px, 4vh, 40px); }
.section-flow #services > .container,
.section-flow #services > .card-navigation { width: calc(100% - 48px); max-width: 1120px; padding-inline: 0; margin-inline: auto; }
#services .section-title { text-align: start; padding-bottom: 16px; }
#services .section-title h2 { margin-bottom: 12px; padding-bottom: 16px; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.15; }
#services .section-title h2::after { left: 0; right: auto; width: 48px; margin: 0; transform: none; }
#services .section-title p { max-width: 58ch; margin: 0; font-size: 1.1rem; line-height: 1.5; hyphens: none; }
#services .services-copy--full { display: none; }
#services .services-copy--compact { display: inline; hyphens: none; overflow-wrap: normal; }

/* One native strip at every width. Swiping reveals choices without selecting. */
.section-flow #services > .card-navigation { margin-bottom: 24px; }
#services .card-navigation__hint { min-height: 18px; margin-bottom: 6px; font-size: .75rem; }
#services .card-navigation__tabs { display: flex; gap: 8px; padding: 4px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
#services .card-navigation__tabs::-webkit-scrollbar { display: none; }
#services .card-navigation__tab { flex: 1 0 auto; min-height: 52px; padding: 10px 14px; gap: 12px; border-radius: 14px; white-space: nowrap; }
#services .card-navigation__tab:focus-visible { outline-offset: -3px; }
#services .card-navigation__icon { flex: none; font-size: 1.6rem; line-height: 1; }
#services .card-navigation__label { padding: 0; overflow-wrap: normal; }
#services .card-navigation__label::after { content: none; }
#services .card-navigation__label-full { display: none; }
#services .card-navigation__label-compact { display: inline; }
#services .card-navigation__surface { width: 100%; }
.section-flow #services .card-navigation__surface .row > div { width: 100%; }
#services .card-navigation__footer { height: 56px; margin: 8px 0 0; }
#services .card-navigation__next > .card-navigation__control-label { display: none; }
#services .card-navigation__control-compact { display: inline; }
#services .card-navigation__continue { margin-top: 8px; }

#services .service-card.services-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: 330px;
  padding: clamp(28px, 3vw, 40px);
  border: 0;
  border-radius: 22px;
  background: var(--accent-color);
  color: var(--contrast-color);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--default-color), transparent 93%);
  transform: none;
  transition: none;
  backdrop-filter: none;
}
.services-overview__content { min-width: 0; }
.services-overview__eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .68rem; font-weight: 600; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }
.services-overview__eyebrow > i,
.services-overview__eyebrow > .services-flow-icon { display: none; }
#services .services-overview h3 { margin: 0 0 16px; color: var(--contrast-color); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; hyphens: none; }
#services .services-overview p { flex-grow: 0; max-width: 38ch; margin: 0 0 24px; color: color-mix(in srgb, var(--contrast-color) 90%, transparent); font-size: 1.1rem; line-height: 1.5; hyphens: none; }
#services .services-overview .service-link { min-height: 44px; padding: 12px 22px; background: var(--contrast-color); color: var(--accent-color) !important; font-size: .95rem; transform: none; box-shadow: none; }
#services .services-overview .service-link:hover { background: color-mix(in srgb, var(--contrast-color) 90%, transparent); }
#services .services-overview .service-link:focus-visible { outline: 3px solid var(--contrast-color); outline-offset: 4px; }

/* A decorative, scalable diagram built from the site's existing icon family. */
.services-map { position: relative; width: min(100%, 390px); aspect-ratio: 400 / 280; margin-inline: auto; color: var(--contrast-color); }
.services-map__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .65; }
.services-map__node { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 28%; height: 30%; padding: 8px; border: 1px solid color-mix(in srgb, var(--contrast-color) 28%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--contrast-color) 12%, transparent); text-align: center; font-size: .78rem; line-height: 1.2; }
.services-map__node > i { font-size: 1.4rem; line-height: 1; }
.services-map__node--top { left: 36%; top: 4%; }
.services-map__node--left { left: 0; top: 51%; }
.services-map__node--right { right: 0; top: 51%; }
.services-map__node--core { left: 37%; top: 56%; width: 26%; height: 36%; font-weight: 700; background: color-mix(in srgb, var(--contrast-color) 18%, transparent); }
.services-map__node--core > i { font-size: 1.9rem; }
.services-map span { hyphens: none; overflow-wrap: normal; }

/* Shared vector symbols keep the tabs and open service diagrams consistent. */
.services-flow-icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 3.2; }
.services-map--flow { display: block; width: min(100%, 490px); height: auto; aspect-ratio: 560 / 300; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.services-flow__links { stroke-width: 1.75; opacity: .85; }
.services-flow__label { fill: currentColor; stroke: none; font-family: inherit; font-size: 20px; text-anchor: middle; }
.services-map--wide { width: 100%; aspect-ratio: 620 / 300; }
.services-map--wide .services-flow__label { font-size: 18px; }
.services-flow__dashboard { stroke-width: 2.4; }
.services-flow__heading { fill: currentColor; stroke: none; font-family: inherit; font-size: 28px; font-weight: 700; }
.services-flow__field { stroke-dasharray: 7 7; opacity: .7; }
.services-flow__number,
.services-flow__total,
.services-flow__count { fill: currentColor; stroke: none; font-family: inherit; font-weight: 600; text-anchor: middle; font-variant-numeric: tabular-nums; }
.services-flow__number,
.services-flow__total { font-size: 14px; }
.services-flow__total { text-transform: uppercase; letter-spacing: .04em; }
.services-flow__count { font-size: 24px; }
.services-flow__badge { fill: var(--accent-color); }

@media (min-width: 768px) {
  #services .service-card.services-overview--wide-map { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
}

@media (min-width: 1200px) {
  /* The desktop chat floats outside the reserved mobile rail. Keep the
     selector, card and footer clear of its 56px button and 20px edge offset. */
  .section-flow #main-content > #services { padding-inline-end: calc(56px + 20px + 16px); }
}
@media (max-width: 991.98px) {
  #services .card-navigation__tab { padding-inline: 12px; gap: 9px; }
  #services .service-card.services-overview { gap: 24px; padding: 28px; }
  .services-map__node { font-size: .7rem; padding: 6px; gap: 5px; }
  .services-map__node > i { font-size: 1.25rem; }
  .services-map__node--core > i { font-size: 1.5rem; }
}
@media (min-width: 992px) and (max-height: 760px) {
  .section-flow #main-content > #services { padding-block: 24px; }
  #services .section-title { padding-bottom: 10px; }
  #services .section-title h2 { font-size: 2rem; margin-bottom: 10px; padding-bottom: 12px; }
  #services .section-title p { font-size: 1rem; }
  .section-flow #services > .card-navigation { margin-bottom: 16px; }
  #services .service-card.services-overview { min-height: 260px; padding: 24px 32px; gap: 24px; }
  .services-overview__eyebrow { margin-bottom: 10px; }
  #services .services-overview h3 { font-size: 2rem; margin-bottom: 12px; }
  #services .services-overview p { font-size: 1rem; margin-bottom: 18px; }
  .services-map { width: min(100%, 300px); }
  .services-map--flow { width: 100%; max-height: 208px; }
  #services .card-navigation__footer { height: 52px; }
  #services .card-navigation__continue { flex-direction: row-reverse; justify-content: center; gap: 6px; margin-top: 4px; }
}
@media (max-width: 767.98px), (max-width: 991.98px) and (max-height: 500px) {
  .section-flow #main-content > #services { padding-block: 24px; }
  .section-flow #services > .container,
  .section-flow #services > .card-navigation { width: calc(100% - 32px); }
  #services .section-title { padding-bottom: 12px; }
  #services .section-title h2 { font-size: 1.85rem; }
  #services .section-title p { font-size: 1rem; }
  .section-flow #services > .card-navigation { margin-bottom: 16px; }
  #services .card-navigation__tab { flex: 0 0 auto; min-height: 46px; padding: 8px 12px; font-size: .875rem; }
  #services .card-navigation__icon { font-size: 1.3rem; }
  #services .service-card.services-overview { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 24px; border-radius: 18px; }
  .services-overview__eyebrow { margin-bottom: 16px; font-size: .65rem; }
  .services-overview__eyebrow > i,
  .services-overview__eyebrow > .services-flow-icon { display: inline; font-size: 1.2rem; }
  #services .services-overview h3 { font-size: 1.6rem; margin-bottom: 14px; }
  #services .services-overview p { font-size: 1rem; margin-bottom: 20px; }
  .services-map { display: none; }
  #services .card-navigation__continue { flex-direction: row-reverse; justify-content: center; gap: 6px; }
  #services .card-navigation__previous,
  #services .card-navigation__next { font-size: .875rem; gap: 6px; }
  .section-flow body[data-active-section="services"] .ai-chat-actions { background: var(--background-color); border-top: 0; }
  .section-flow body[data-active-section="services"] .ai-chat-actions .scroll-top { display: none !important; }
}
