/* ============================================================
   Business DNA — WP overrides on top of Anima style.css
   Only fixes what breaks in WordPress context.
   ============================================================ */

/* Nav font override for business-dna page */
#primary-menu > li {
  font-family: "Apercu Pro", sans-serif;
}

/* Allow GSAP pin spacer to work — root must not clip */
.BUSINESS-DNA {
  overflow: visible !important;
}

/* ── inhopapp button: arrow slide-in effect (matches style.css pattern) ── */
.BUSINESS-DNA .button-install.inhopapp,
.BUSINESS-DNA .button.inhopapp {
  overflow: hidden;
  cursor: pointer;
}
.BUSINESS-DNA .button-install.inhopapp .text,
.BUSINESS-DNA .button.inhopapp .text {
  position: relative;
  left: 21px;
  transition: left 0.4s ease;
  white-space: nowrap;
}
.BUSINESS-DNA .button-install.inhopapp i,
.BUSINESS-DNA .button.inhopapp i {
  background-image: url('../images/icon-b.svg');
  width: 30px;
  height: 30px;
  aspect-ratio: 1 / 1;
  background-repeat: no-repeat;
  background-color: #fff;
  background-position: center;
  border-radius: 8px;
  transform: scale(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
  display: flex;
  flex-shrink: 0;
}
.BUSINESS-DNA .button-install.inhopapp:hover .text,
.BUSINESS-DNA .button.inhopapp:hover .text {
  left: 0;
}
.BUSINESS-DNA .button-install.inhopapp:hover i,
.BUSINESS-DNA .button.inhopapp:hover i {
  transform: scale(1);
}

/* ── requestdemo hover: keep text black, override green from Anima style ── */
.BUSINESS-DNA .button-secondary.requestdemo:hover .text-2 {
  color: #161616 !important;
}

/* ── requestdemo: match Book a Demo page style ── */
.BUSINESS-DNA .button-secondary.requestdemo {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #161616;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}
.BUSINESS-DNA .button-secondary.requestdemo .frame-2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.BUSINESS-DNA .button-secondary.requestdemo i {
  background-image: url('../images/icon-a.svg');
  display: flex;
  width: 21px;
  height: 21px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.BUSINESS-DNA .button-secondary.requestdemo .underline {
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  background: #161616;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.BUSINESS-DNA .button-secondary.requestdemo:hover .underline {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Root: remove fixed min-height, add WP header offset ──────── */
.BUSINESS-DNA {
  min-height: auto !important;
  padding-top: 120px;
  /* clip (not hidden) so position:sticky inside works */
  overflow-x: clip;
}

/* ── Hide Anima's own header & footer — WP provides these ─────── */
.BUSINESS-DNA .header,
.BUSINESS-DNA footer.footer {
  display: none !important;
}

/* ── container-3: was position:fixed in Anima, must flow normally ─ */
/* Also override width:1440px from the ≥1440px media query so it    */
/* never overflows parent on sub-1440px viewports.                  */
.BUSINESS-DNA .container-3 {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── frame-55 (rules dark section): add right padding to balance   */
@media (min-width: 768px) {
  .BUSINESS-DNA .frame-55 {
    padding-right: 100px !important;
  }
}
@media (min-width: 1440px) {
  .BUSINESS-DNA .frame-55 {
    padding: 50px !important;
  }
}

/* ── Rule cards: 1 full-width card per slide on mobile ────────── */
@media (max-width: 767px) {
  /* Scroll container: only left padding so first card aligns with content */
  .BUSINESS-DNA .frame-57 {
    padding-left: 16px !important;
    padding-right: 0 !important;
    gap: 16px !important;
    scroll-padding-left: 16px;
  }

  /* Each card: full viewport width minus both side gaps */
  .BUSINESS-DNA .div-3 {
    flex: 0 0 calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    width: calc(100vw - 48px) !important;
    padding: 20px 16px !important;
    box-sizing: border-box;
  }

  /* ── frame-58 (card inner column) ── */
  .BUSINESS-DNA .frame-58 {
    width: 100% !important;
    gap: 12px !important;
  }

  /* ── frame-59 (dark preview box): reset to natural flow ── */
  .BUSINESS-DNA .frame-59 {
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    padding: 16px 12px !important;
    box-sizing: border-box;
    zoom: unset !important;
    margin-bottom: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* ── BLOCK card: show 2 products only ── */
  .BUSINESS-DNA .frame-60 {
    width: 100% !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  .BUSINESS-DNA .frame-60 > *:nth-child(3) { display: none !important; }
  .BUSINESS-DNA .frame-61,
  .BUSINESS-DNA .frame-64 {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    align-items: stretch !important;
  }
  .BUSINESS-DNA .frame-62,
  .BUSINESS-DNA .frame-65,
  .BUSINESS-DNA .frame-66 {
    width: 100% !important;
    height: 100px !important;
    aspect-ratio: unset !important;
  }

  /* ── PREFER card: show 2 products only ── */
  .BUSINESS-DNA .frame-67 {
    width: 100% !important;
    box-sizing: border-box;
    padding: 12px !important;
  }
  .BUSINESS-DNA .frame-67 > .frame-2 {
    width: 100% !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  .BUSINESS-DNA .frame-67 > .frame-2 > *:nth-child(3) { display: none !important; }
  .BUSINESS-DNA .frame-68 {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  .BUSINESS-DNA .frame-69,
  .BUSINESS-DNA .frame-70,
  .BUSINESS-DNA .frame-71 {
    width: 100% !important;
    height: 100px !important;
    aspect-ratio: unset !important;
  }
  /* Hide floating + icons, reposition PRIORITISE badge */
  .BUSINESS-DNA .majesticons-plus,
  .BUSINESS-DNA .majesticons-plus-2 {
    display: none !important;
  }
  .BUSINESS-DNA .tag-6 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    align-self: flex-start;
    margin-bottom: 6px;
  }

  /* ── LIMIT card: show 2 products only ── */
  .BUSINESS-DNA .frame-72 {
    width: 100% !important;
    box-sizing: border-box;
    padding: 12px !important;
  }
  .BUSINESS-DNA .frame-72 > .frame-2 {
    width: 100% !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  .BUSINESS-DNA .frame-72 > .frame-2 > *:nth-child(3) { display: none !important; }
  .BUSINESS-DNA .frame-73 {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    align-items: center !important;
  }
  .BUSINESS-DNA .frame-74,
  .BUSINESS-DNA .frame-76,
  .BUSINESS-DNA .frame-78 {
    width: 100% !important;
    height: 100px !important;
    aspect-ratio: unset !important;
    overflow: hidden;
  }
  .BUSINESS-DNA .frame-75,
  .BUSINESS-DNA .frame-77,
  .BUSINESS-DNA .frame-79 {
    width: 100% !important;
  }

  /* ── text section ── */
  .BUSINESS-DNA .text-wrapper-25,
  .BUSINESS-DNA .text-wrapper-26 {
    max-width: 100%;
    word-wrap: break-word;
  }

  /* ── Eight-rules panels: frame-98 (highlighted "Hide" card) must stretch like frame-89 ── */
  .BUSINESS-DNA .frame-98 {
    width: 100% !important;
    flex: unset !important;
    align-self: stretch !important;
    box-sizing: border-box;
  }
  /* frame-32 (product column in panel): align items stretch so all cards fill width */
  .BUSINESS-DNA .frame-32 {
    align-items: stretch !important;
  }
}

/* ── frame-57 (rule-type cards row): allow horizontal scroll when   */
/* 3 cards don't fit instead of overflowing the page.               */
.BUSINESS-DNA .frame-57 {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.BUSINESS-DNA .frame-57::-webkit-scrollbar {
  display: none;
}
.BUSINESS-DNA .frame-57 .div-3 {
  scroll-snap-align: start;
}

/* ── frame-56 (rule-type header row): override Anima's fixed 1240px ── */
.BUSINESS-DNA .frame-56 {
  width: 100% !important;
}

/* ── frame-36 logo strip: Splide carousel ── */
.BUSINESS-DNA .frame-36.dna-logo-strip {
  max-width: 100%;
  overflow: visible;
  padding: 0;
}
.BUSINESS-DNA .dna-logo-strip .item_lp_xt {
  width: 100%;
}
.BUSINESS-DNA .dna-logo-strip .splide__slide_item img {
  filter: grayscale(1);
  opacity: 0.6;
  height: 30px !important;
  width: auto !important;
  object-fit: contain;
}

/* ── div-3 (rule-type card): exactly 2 cards visible in 1040px area (1240 - 2×100px padding), gap 32px ── */
.BUSINESS-DNA .div-3 {
  flex: 0 0 calc(50% - 16px);
  max-width: calc(50% - 16px);
  width: calc(50% - 16px);
  box-sizing: border-box;
}

/* ── frame-60 (Block card product grid): prevent wrap caused by    */
/* sub-pixel border widths pushing 3rd card to next row.            */
.BUSINESS-DNA .frame-60 {
  flex-wrap: nowrap !important;
}

/* ── Problem section product images: 121px + 24px padding + 2px border = 147px/card → 3×147+24=465 > 459 wraps.
   Reduce to 115px → 3×141+24=447 < 459 ✓ */
.BUSINESS-DNA .frame-48,
.BUSINESS-DNA .frame-50,
.BUSINESS-DNA .frame-51,
.BUSINESS-DNA .frame-52,
.BUSINESS-DNA .frame-53,
.BUSINESS-DNA .frame-54 {
  width: 115px !important;
  height: 115px !important;
}

/* ── frame-46 (product row): horizontal scroll on mobile ────────── */
@media (max-width: 767px) {
  /* Allow frame-43 to grow tall enough and not clip scroll */
  .BUSINESS-DNA .frame-43 {
    overflow: visible !important;
    min-height: unset !important;
  }
  /* frame-44 wraps the product lists — allow it to be full width */
  .BUSINESS-DNA .frame-44 {
    overflow: visible !important;
  }
  .BUSINESS-DNA .frame-46 {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start !important;
    width: 100% !important;
  }
  .BUSINESS-DNA .frame-46::-webkit-scrollbar {
    display: none;
  }
  /* Cards must not shrink */
  .BUSINESS-DNA .frame-46 .frame-47,
  .BUSINESS-DNA .frame-46 .frame-49 {
    flex-shrink: 0;
  }
  /* Reduce product images from 121px → 100px */
  .BUSINESS-DNA .frame-48,
  .BUSINESS-DNA .frame-50,
  .BUSINESS-DNA .frame-51,
  .BUSINESS-DNA .frame-52,
  .BUSINESS-DNA .frame-53,
  .BUSINESS-DNA .frame-54 {
    width: 100px !important;
    height: 100px !important;
  }
}

/* ── bundle-upsell: hide product detail section (frame-14), new design only shows Complete the Look ── */
.BUSINESS-DNA .frame-14 {
  display: none !important;
}

/* ── bundle-upsell floating cards: correct positions from Figma (928x408 container) ── */
.BUSINESS-DNA .frame-wrapper {
  width: 928px !important;
}
.BUSINESS-DNA .frame-35 {
  top: -33px !important;
  left: 531px !important;
}
.BUSINESS-DNA .frame-31 {
  top: 186px !important;
  left: 802px !important;
}
.BUSINESS-DNA .frame-34 {
  top: 154px !important;
  left: -72px !important;
}

/* ── banner: WP footer is outside container-3, add gap manually ── */
.BUSINESS-DNA .banner {
  margin-bottom: 120px;
}

/* ── banner decorations: left SVG should be left-side only, not full-width ── */
.BUSINESS-DNA .banner .img-2 {
  width: 18.87% !important;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: fill;
}

/* ── icon-plus: inline SVG inside green circle ─────────────────── */
.BUSINESS-DNA .icon-plus {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
/* Active item (frame-41 sibling): rotate icon 45° → shows as × */
.BUSINESS-DNA .frame-41 ~ .plus-icon-wrapper .icon-plus {
  transform: rotate(45deg);
}

/* ── Green circle icon: fix vertical & horizontal centering ───── */
.BUSINESS-DNA .plus-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.BUSINESS-DNA .plus-icon {
  top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.BUSINESS-DNA .container-10,
.BUSINESS-DNA .container-11 {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── h1.your-brand replaces Anima's img.your-brand ─────────────── */
.BUSINESS-DNA h1.your-brand {
  position: relative;
  align-self: stretch;
  width: 100%;
  height: auto;
  font-family: "Clash Display", Helvetica, sans-serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #161616;
  text-align: center;
  margin: 0;
}
/* Green words in hero h1 */
.BUSINESS-DNA h1.your-brand .green-text {
  color: #6DFA11;
}

/* === Rule cards: wheel-intercept horizontal scroll (desktop ≥1025px) === */
@media (min-width: 1025px) {
  /* Section: natural height, clip card overflow */
  .BUSINESS-DNA .frame-55.rules-pin {
    padding: 120px 0 120px min(100px, 7%) !important;
    overflow: visible !important;
  }
  /* Inner wrapper: full width flex column */
  .BUSINESS-DNA .rules-pin__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 64px;
  }
  /* frame-56 header row: full width, pad right to match left */
  .BUSINESS-DNA .frame-55.rules-pin .frame-56 {
    width: 100% !important;
    padding-right: min(100px, 7%) !important;
    box-sizing: border-box !important;
  }
  /* frame-57 viewport: clip overflow, show 2 cards */
  .BUSINESS-DNA .frame-55.rules-pin .frame-57 {
    overflow: hidden !important;
    width: 100% !important;
    padding: 0 !important;
  }
  /* Track: flex row, JS translates horizontally */
  .BUSINESS-DNA .rules-pin__track {
    display: flex;
    align-items: stretch;
    gap: 32px;
    flex: 0 0 auto;
    will-change: transform;
    transition: transform 0.05s linear;
  }
  /* Cards: 2 visible at a time */
  .BUSINESS-DNA .frame-55.rules-pin .div-3 {
    flex: 0 0 var(--rules-card-w, auto) !important;
    width: var(--rules-card-w, auto) !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}

/* Mobile / tablet: stack cards vertically */
@media (max-width: 1024px) {
  .BUSINESS-DNA .rules-pin__inner {
    display: contents;
  }
  /* Override frame-57 horizontal scroll → vertical stack */
  .BUSINESS-DNA .frame-55.rules-pin .frame-57 {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    width: 100% !important;
    gap: 0 !important;
    padding: 0 !important;
  }
  .BUSINESS-DNA .rules-pin__track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .BUSINESS-DNA .frame-55.rules-pin .div-3 {
    width: 100% !important;
    flex: none !important;
  }
}

/* === Problem section — interactive cards ========================= */

/* Cards: pointer cursor, smooth hover */
.BUSINESS-DNA .feature-item {
  cursor: pointer;
  transition: opacity 0.2s;
}
.BUSINESS-DNA .feature-item:not(.is-active):hover {
  opacity: 0.85;
}
.BUSINESS-DNA .feature-item:not(.is-active):hover .frame-42 {
  background-color: #ececec;
}

/* Active card uses frame-41 style (light bg + border) */
.BUSINESS-DNA .feature-item.is-active .frame-42 {
  background-color: #f5f5f5;
  border: 1px solid #0000001a;
  border-radius: 16px;
}

/* Panels: all hidden by default, active one shown */
.BUSINESS-DNA .problem-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.BUSINESS-DNA .problem-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Problem panel images (Figma renders for card 1-3) */
.BUSINESS-DNA .problem-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
