/* Beyond Legal theme overrides — fixes for Webflow export shipped without Interactions (IX2) data.
   Loaded after beyondlegal.webflow.css; relies on source-order specificity, no !important needed. */

/* 1 & 2. Button text disappearing / shifting on hover (navbar "Contact", hero "Our Practice",
   all .cta-main/.cta-book buttons). Confirmed via live DevTools inspection: webflow.js's IX2
   engine applies an inline `transform: translate3d(0, -1.5em, 0)` to .button-text on hover,
   sliding it up out of the 20px-tall masked window (.button-text-mask {height:20px;
   overflow:hidden}). It's designed as a "slide up to reveal duplicate line" effect, but the
   exported markup only has ONE text node — there's nothing underneath to slide into view, so
   the text just vanishes. This is an incomplete component baked into the Webflow export itself,
   not something we introduced. Fix: force the JS-applied inline transform back to none.
   CSS !important always wins over a plain (non-important) inline style. */
.button-text-mask,
.button-text,
.button-text-2,
.button-text-mask-2,
.cta-main > div:not(.button-bg) {
  transform: none !important;
  position: relative;
  z-index: 2;
}

.button-bg,
.button-bg-2,
.button-bg-3 {
  z-index: 1;
}

/* 3. Strategic Practice Pillars (.service-item / .deskripsi-hover).
   .deskripsi-hover ships with line-height:3px (collapsed), meant to expand via Interactions
   on hover — that IX2 data is missing from this export (see note above), so it never expands
   on any device. Show the description directly, always, no hover required. */
.deskripsi-hover {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  line-height: 1.4;
  margin-top: 8px;
}

.left-service-item {
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.icon-service-arrow {
  display: flex !important;
  opacity: 1 !important;
  transform: none !important;
  margin-left: auto;
}

@media screen and (max-width: 767px) {
  .left-service-item {
    flex-flow: row;
  }
}

/* 4. Insights thumbnails — square ratio on mobile (vendor CSS only sets height, not width,
   below 991px, so the image stretches to the card's full width instead of staying square). */
@media screen and (max-width: 767px) {
  .image-wrap-article-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .image-wrap-article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* 5. Partnership "Founding Partner" section overflowing horizontally on mobile. */
@media screen and (max-width: 767px) {
  .section.home-a-system-section.leadership {
    overflow-x: hidden;
  }

  .image-wrap-column.home {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .text-block-4 {
    overflow-wrap: anywhere;
  }
}
