/* =========================================================
   Services pages: Elementor adjustments to services.css (hand-written).
   services.css is the design's CSS as-is. Where Elementor wraps an element (a Heading or Image widget sits
   inside a wrapper div that carries the class), the rules here move the layout onto the wrapper.
   ========================================================= */
.kv.kv-svc{
  /* Containers are plain boxes, like the design's divs. Elementor writes --display:flex for every container in the
     page CSS; the design's own display:flex / display:grid rules set display directly, so they still apply. */
  .e-con{--display:block!important}
  /* Where the design makes a box display:flex it means a row (the browser default); Elementor defaults to a column. */
  .e-con{--flex-direction:row!important}

  /* A heading's design class sits on the widget wrapper: the heading inside takes its type from it */
  .h-sec-sm > .elementor-heading-title{font:inherit!important;letter-spacing:inherit!important;color:inherit!important}

  /* Arrow links written inside text (kv.css styles the ones that are Button widgets) */
  .elementor-widget-text-editor .arrow-link{display:inline-flex;align-items:center;gap:14px;color:var(--orange);font:700 var(--fs-link)/1 var(--f);letter-spacing:.05em;text-decoration:none}
  .elementor-widget-text-editor .arrow-link svg{flex:none;transition:transform .2s}
  .elementor-widget-text-editor .arrow-link:hover svg,.route-link:hover .arrow-link svg{transform:translateX(4px)}

  /* Case cards: space under the text when a link follows (the design's p:has(+ .arrow-link)) */
  .work-band .case-text .elementor-widget-text-editor:has(+ .arrow-link){margin-bottom:24px}

  /* Closing band: the paragraph spans the column and centres itself at 640px, as in the design */
  .next.inner .next-act > .elementor-widget-text-editor{align-self:center;width:min(640px,100%)}

  /* Icons stretched to their box, as the design's <img> */
  .route .ico img,.route-link .ico img{width:100%;height:100%;max-width:none;display:block}
  .place > .elementor-widget-image img{width:52px;height:52px;display:block}

  /* Headings that are grid items in the design */
  .smx .tp > .elementor-widget-heading{grid-column:1/3}

  /* Image widgets: the wrapper takes the design's box, the image fills it */
  .page-hero.photo .hero-media{position:absolute;inset:0;width:100%;height:100%;margin:0}
  .page-hero.photo .hero-media img{width:100%;height:100%;max-width:none;object-fit:cover;display:block}

  @media (max-width:900px){
    .smx .tp > .elementor-widget-heading{grid-column:auto}
  }
}

/* In the Elementor editor every "How we approach it" panel is shown, stacked, so each can be edited
   (the tabs and scroll pinning run on the live site only). */
.kv.kv-svc.elementor-editor-active{
  .smx-track{height:auto!important}
  .smx-pin{position:static}
  .smx-box{grid-template-columns:1fr}
  .smx .tps{display:block}
  .smx .tp{position:static!important;visibility:visible!important;opacity:1!important;display:grid!important;border-top:1px solid var(--cream-4)}
}

/* Cards the package builds hidden until approved (Kibo: "Health and wellness retail"). Shown in the Elementor editor. */
body:not(.elementor-editor-active) .kv-svc .case.held,
body.kv-svc:not(.elementor-editor-active) .case.held{display:none!important}

/* Industries and Partners (packages 2026-11-25) */
/* kv.css makes .lead a flex column for the Home slides; in section heads it is a plain paragraph, as in the design */
.kv-svc p.lead{display:block}
/* "What makes ... hard" list: the design's <li> rows are containers in Elementor */
.kv-svc .hard-list > .e-con{display:grid!important;grid-template-columns:72px minmax(0,1fr);column-gap:20px;row-gap:0;padding:26px 0;border-top:1px solid var(--orange)}
.kv-svc .hard-list > .e-con:last-child{border-bottom:1px solid var(--orange)}
.kv-svc .hard-list{gap:0}
@media (max-width:640px){ .kv-svc .hard-list > .e-con{grid-template-columns:44px minmax(0,1fr);column-gap:12px} }
/* A static logo row (Retail): kv.js copies the tiles for the scrolling row on Home; the copies are not shown here */
.kv-svc .clients.static .logo-track > [aria-hidden="true"]{display:none!important}
/* Partners "What we connect them to": on phones the chip list spans the row (the design's .chips is inside a widget here) */
@media (max-width:640px){ .kv-svc .stack-row > .elementor-element:has(.chips){grid-column:1/-1} }
/* Partners cards: the "Mirakl work" arrow is a <span> that shares a Text Editor with the paragraph; block-level, as in the design */
.kv.kv-svc .pcard span.arrow-link{display:flex!important}
/* Partner logos: the design sizes the <img> (.plogo-*); in Elementor that class is on the Image widget, so the picture fills it */
.kv-svc .elementor-widget-image[class*="plogo-"]{flex:none}
.kv-svc .elementor-widget-image[class*="plogo-"] :is(.elementor-widget-container,a){display:block;width:100%;height:100%}
.kv-svc .elementor-widget-image[class*="plogo-"] img{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain}
/* Step rail: the number hexagon is placed against the step, not against the Text Editor that holds it */
.kv-svc .step > .elementor-element:has(> .step-node),
.kv-svc .step > .elementor-element:has(> .elementor-widget-container > .step-node){position:static}
/* On the Partners cards the design keeps each logo's own proportions at its set height */
.kv-svc .pcard-logo .elementor-widget-image[class*="plogo-"]{width:auto!important}
.kv-svc .pcard-logo .elementor-widget-image[class*="plogo-"] img{width:auto!important}
/* Partners cards: the whole card is the link, as in the design (the title link's ::after covers the card).
   Elementor's widget wrappers are position:relative, which shrank that area to the title; let it reach the card. */
.kv-svc .pcard{position:relative}
.kv-svc .pcard > .elementor-widget-heading,.kv-svc .pcard > .elementor-widget-heading > .elementor-widget-container,.kv-svc .pcard h2{position:static!important}
.kv-svc .pcard h2 a::after{z-index:1}
