/* Our additions to the design's CSS (kept apart from the design files, which are served as-is).

   Mobile menu (burger + panel). Not part of the HTML design, which hides .pb-nav at
   ≤900px without a replacement. Everything in this block is inert above 900px. */
.pb-burger, .pb-mnav { display: none; }

@media (max-width: 900px) {
  .pb-burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; padding: 0; flex-shrink: 0;
    background: #fff; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; color: var(--ink);
  }
  .pb-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .pb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .pb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .pb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .pb-burger:focus-visible { outline: 2px solid var(--ublue); outline-offset: 2px; }

  /* The sticky header (backdrop-filter) is the containing block, so the panel hangs off its bottom edge. */
  .pb-mnav:not([hidden]) {
    display: flex; flex-direction: column;
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    height: calc(100vh - 77px); height: calc(100dvh - 77px);
    overflow-y: auto; overscroll-behavior: contain;
    background: #fff; padding: 8px 24px 32px;
  }
  .pb-mnav__group { border-bottom: 1px solid var(--line); }
  .pb-mnav__top {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 0; background: none; border: none; cursor: pointer; text-align: left;
    font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink);
  }
  .pb-mnav__top .caret { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s ease; }
  .pb-mnav__top[aria-expanded="true"] { color: var(--ublue); }
  .pb-mnav__top[aria-expanded="true"] .caret { transform: rotate(180deg); }
  .pb-mnav__links:not([hidden]) { display: grid; gap: 14px; padding: 0 0 16px; }
  .pb-mnav__section { display: grid; gap: 2px; }
  /* Same look as the desktop dropdown's column headings (.pb-mega__col h6). */
  .pb-mnav__section h6 { margin: 0 0 4px; padding: 0 12px; font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .pb-mnav__links a {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
    font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink);
  }
  .pb-mnav__links a:hover, .pb-mnav__links a:active { background: var(--surface-2); color: var(--ublue); }
  .pb-mnav__links [data-ds-icon] { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; color: var(--ublue); }
  .pb-mnav__links i { width: 6px; height: 6px; margin: 0 7px; border-radius: 50%; background: var(--line-2); flex-shrink: 0; }
  .pb-mnav__group--ai [data-ds-icon] { color: oklch(0.53 0.21 265); }
  .pb-mnav__group--ecom [data-ds-icon] { color: oklch(0.53 0.21 300); }
  .pb-mnav__group--growth [data-ds-icon] { color: oklch(0.53 0.21 170); }
  .pb-mnav__tag {
    margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--ublue-50);
    font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ublue);
  }
  .pb-mnav__cta { margin-top: 24px; justify-content: center; width: 100%; }
}

/* Home service cards for pages that aren't published yet: shown, but not links,
   so they don't lift on hover like the clickable ones. */
.b-plat-card--unlinked { cursor: default; }
.b-plat-card--unlinked:hover { transform: none; box-shadow: none; }

/* Real images in the design's image slots (.has-img). Where the slot has the image's shape
   (desktop) the image fills it exactly, so the layout matches the design. Where the slot
   changes shape (narrower screens) it takes the image's own proportions instead, because the
   images are diagrams with text near the edges and must never be cropped. */
.has-img { overflow: hidden; place-items: stretch; }
.pb-pic, .pb-pic img { display: block; width: 100%; height: 100%; }
.pb-pic img { object-fit: cover; }
@media (max-width: 567px) {
  .o-bento__img.has-img { height: auto; aspect-ratio: 1760 / 660; }
}
@media (max-width: 1183px) {
  .o-img-ph.has-img { height: auto; aspect-ratio: 1600 / 880; }
}

/* Blog articles: the migrated posts use numbered lists, which the blog design never styled
   (it styles bulleted lists). Match the designed bulleted lists instead of the browser default. */
.bp-article ol { margin: 8px 0 14px; padding-left: 22px; display: grid; gap: 10px; }
/* Direct links to a section (#heading) land below the sticky header, like the contents links. */
.bp-article section { scroll-margin-top: 110px; }

/* Home "And many more teams" logo strip: keep it scrolling even when the visitor's system asks
   for reduced motion (the design stops it there; Windows with animations turned off reports
   reduced motion to every website, so the strip looked frozen). */
@media (prefers-reduced-motion: reduce) {
  .hm-band__tr { animation: hm-scroll 70s linear infinite; }
}

/* Button text stays white on hover. The design's pb-offer.css has a global `a:hover { color: var(--v-ink) }`
   that outranks the buttons' own colour, so on the offer, blog and case study pages the hovered
   "Book a call" text turned the same colour as its hover background (and "View all case studies"
   went dark on the navy section). Home doesn't load pb-offer.css, so it never had the problem. */
.pb-btn--primary:hover, .pb-btn--navy:hover { color: #fff; }
.pb-btn--ghost-light:hover { color: #fff; }


/* Header menu "Industries" items: shown as in the design but not links yet (no href), so no
   hover highlight or pointer. */
.pb-mega__col a:not([href]) { cursor: default; }
.pb-mega__col a:not([href]):hover { background: none; color: var(--ink); }
.pb-mega__col a:not([href]):hover i { background: var(--ublue-200); }
.pb-mnav__links a:not([href]) { cursor: default; }
.pb-mnav__links a:not([href]):hover, .pb-mnav__links a:not([href]):active { background: none; color: var(--ink); }

/* Service pages: client logos in the strip under the hero (the design had placeholder names). */
.b-logos__row img { display: block; width: auto; height: 34px; max-width: 132px; object-fit: contain; mix-blend-mode: multiply; }
.b-logos__row img[data-square] { height: 44px; }

/* Service pages: featured case study cards filled from the real case studies. The window shows
   the client logo, then results (figures as the design's KPI boxes). Both cards in a row keep
   the same height, so their titles line up. */
.b-case--real { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
.b-case--real .b-case__shot { display: flex; flex-direction: column; }
.b-case--real .b-case__win { flex: 1; }
.b-case--real .pb-link { justify-self: start; align-self: start; }
.b-case__logo { display: flex; align-items: center; justify-content: center; height: 112px; padding: 16px; margin-bottom: 6px; background: var(--ublue-25); border-radius: 10px; }
.b-case__logo img { display: block; width: auto; height: auto; max-width: 62%; max-height: 52px; object-fit: contain; mix-blend-mode: multiply; }
.b-case__logo img[data-square] { max-height: 80px; }
.b-case__logo b { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); }
.b-case__res { list-style: none; margin: 0; padding: 0; }
.b-case__res li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--surface); font-family: var(--font-ui); font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.b-case__res li:last-child { border-bottom: none; }
.b-case__res svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; color: var(--success); }

/* Blog post sidebar: the Book a call card above "Share this article" was removed, so the share
   box no longer needs its gap and lines up with the table of contents. */
.bp-side > .bp-share:first-child { margin-top: 0; }

/* Blog posts: the blog design has no table or in-text link styles (its posts had neither).
   Tables use the contents box's border and radius; on phones the columns wrap to fit (the box still scrolls if a table can't fit). */
.bp-table { margin: 8px 0 22px; overflow-x: auto; border: 1px solid var(--border-subtle, #d1d4d7); border-radius: 8px; }
.bp-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.bp-table th, .bp-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-subtle, #d1d4d7); }
.bp-table th { font-weight: 600; background: #f6f7f8; }
.bp-table tr:last-child td { border-bottom: none; }
/* min-width: 0 stops a wide table stretching the grid column. */
.bp-article { min-width: 0; }
@media (max-width: 600px) { .bp-table table { font-size: 14px; } .bp-table th, .bp-table td { padding: 10px 12px; } }
.bp-article a { color: var(--pb-navy, #0d153a); text-decoration: underline; text-underline-offset: 2px; }
.bp-article a:hover { text-decoration-thickness: 2px; }
