/* ============================================
   CUSTOM COMPONENTS — Bi Innovate
   Buttons (style-two CTA) | Skill Pills | Client Logos
   ============================================ */

/* ============================================
   PRIMARY CTA BUTTON — Solid Magenta (style-two)
   Used for: "Book Discovery Session", Hero CTAs
   ============================================ */
.theme-btn.style-two {
  background: var(--c-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 16px 32px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease !important;
}

.theme-btn.style-two:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 0 15px rgba(255, 0, 217, 0.8),
    0 0 30px rgba(255, 0, 217, 0.5),
    0 0 45px rgba(255, 0, 217, 0.3) !important;
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 0, 217, 0.5));
}

/* Arrow — diagonal up (↗) */
.theme-btn.style-two i {
  transform: rotate(-45deg) !important;
  margin-left: 15px !important;
  margin-right: 0 !important;
  transition: transform 0.3s ease !important;
}

.theme-btn.style-two:hover i {
  transform: rotate(-45deg) translate(2px, -2px) !important;
}

/* RTL flip */
html[dir="rtl"] .theme-btn.style-two i {
  transform: rotate(-135deg) !important;
  margin-left: 0 !important;
  margin-right: 15px !important;
}

html[dir="rtl"] .theme-btn.style-two:hover i {
  transform: rotate(-135deg) translate(-2px, -2px) !important;
}

/* ============================================
   TERTIARY CTA BUTTON — Glassmorphic Rounded (style-three)
   Used for: CTA strip buttons (AI, Projects, etc.)
   ============================================ */
.theme-btn.style-three {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px) !important;
  color: #fff !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease !important;
}

.theme-btn.style-three:hover {
  background: rgba(255, 0, 217, 0.15) !important;
  border-color: rgba(255, 0, 217, 0.5) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 25px rgba(255, 0, 217, 0.25), 0 8px 30px rgba(0, 0, 0, 0.3) !important;
}

.theme-btn.style-three i {
  transition: transform 0.3s ease !important;
}

.theme-btn.style-three:hover i {
  transform: translateX(4px) !important;
}

html[dir="rtl"] .theme-btn.style-three:hover i {
  transform: translateX(-4px) !important;
}

/* ============================================
   CLIENT LOGO BOXES — Dark Minimal Grid
   ============================================ */
.client-logo-wrap {
  background: transparent !important;
  padding: 0 !important;
}

.client-logo-item {
  background: #0b0e14 !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 6px !important;
  padding: 30px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 120px;
}

.client-logo-item:hover {
  border-color: rgba(255, 0, 217, 0.6) !important;
  box-shadow:
    0 0 15px rgba(255, 0, 217, 0.3),
    inset 0 0 10px rgba(255, 0, 217, 0.1) !important;
  transform: translateY(-5px);
}

.client-logo-item img {
  opacity: 0.8;
  transition: opacity 0.3s ease, filter 0.3s ease;
  filter: grayscale(1);
}

.client-logo-item:hover img {
  opacity: 1;
  filter: grayscale(0);
}

/* ============================================
   SKILL / TECHNOLOGY PILLS — Dark Glassmorphic
   ============================================ */
.skill-item {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 40px !important;
  box-shadow: none !important;
  padding: 10px 24px !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.skill-item:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 0, 217, 0.35) !important;
  background: rgba(255, 0, 217, 0.06) !important;
  box-shadow: 0 0 20px rgba(255, 0, 217, 0.12), 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.skill-item .text {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600 !important;
  margin-left: 12px !important;
  font-size: 15px !important;
  transition: color 0.3s ease;
}

.skill-item:hover .text {
  color: var(--c-accent) !important;
}

.skill-item img {
  transition: filter 0.3s ease;
}

.skill-item:hover img {
  filter: brightness(1.1);
}

html[dir="rtl"] .skill-item .text {
  margin-left: 0 !important;
  margin-right: 12px !important;
}

/* ============================================
   INTEGRATION LOGO CARDS — Dark Glassmorphic
   Overrides .my-skill-images magenta background
   ============================================ */
.integration-logos {
  background: transparent !important;
  padding: 0 !important;
  gap: 20px;
  justify-content: center;
}

.integration-logos .skill-item {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: none !important;
  padding: 30px 35px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 120px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.integration-logos .skill-item:hover {
  border-color: rgba(255, 0, 217, 0.3) !important;
  background: rgba(255, 0, 217, 0.05) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 15px 40px rgba(255, 0, 217, 0.1) !important;
}

/* Normalise by HEIGHT, not by a max-width box.
   These logos have wildly different aspect ratios — n8n is 1:1, Zoho Flow
   2.44:1, Zapier 2.18:1, Make 2.83:1, and the Zoho app icons are a 35px
   square. Constraining them with max-width:60px made the square marks render
   as chunky 60x60 blocks while the wide wordmarks collapsed to ~60x21 slivers,
   and the 35px icons never even reached 60px — so the row read as five
   different sizes. Locking a common optical height fixes the rhythm; the
   max-width clamp stops the widest wordmark (Make) from running long. */
.integration-logos .skill-item img {
  height: 38px !important;
  width: auto !important;
  max-width: 104px !important;
  max-height: none !important;
  object-fit: contain;
  filter: none;
  transition: all 0.35s ease;
}

.integration-logos .skill-item:hover img {
  filter: brightness(1.1) !important;
  transform: scale(1.05);
}

/* ============================================
   THEME-AWARE LOGO SWAP
   For third-party logos supplied as a dark wordmark only (Make), which
   disappears on the dark chip. A CSS filter can't fix it — invert() would
   turn the brand purple green — so we ship two assets and toggle them.
   Usage: two sibling <img>s, .theme-img--dark + .theme-img--light.
   ============================================ */
.theme-img--light {
  display: none !important;
}

[data-theme="light"] .theme-img--dark {
  display: none !important;
}

[data-theme="light"] .theme-img--light {
  display: inline-block !important;
}

/* ============================================
   HOVER-PRIMARY UTILITY — Unified Primary Hover
   ============================================ */
.theme-btn.hover-primary:hover {
  background: rgba(255, 0, 217, 0.15) !important;
  border-color: rgba(255, 0, 217, 0.4) !important;
  color: var(--c-accent) !important;
  box-shadow: 0 0 20px rgba(255, 0, 217, 0.15) !important;
}

/* ============================================
   LIGHT MODE — Theme overrides
   ============================================ */
[data-theme="light"] .theme-btn.style-two {
  background: var(--c-accent) !important;
}

[data-theme="light"] .theme-btn.style-two:hover {
  box-shadow:
    0 0 15px rgba(214, 0, 184, 0.8),
    0 0 30px rgba(214, 0, 184, 0.5),
    0 0 45px rgba(214, 0, 184, 0.3) !important;
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(214, 0, 184, 0.5));
}

[data-theme="light"] .theme-btn.style-three {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #1a1a2e !important;
}

[data-theme="light"] .theme-btn.style-three:hover {
  background: rgba(214, 0, 184, 0.15) !important;
  border-color: rgba(214, 0, 184, 0.5) !important;
  color: #1a1a2e !important;
  box-shadow: 0 0 25px rgba(214, 0, 184, 0.25), 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .client-logo-item {
  background: #f5f5fa !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .client-logo-item:hover {
  border-color: rgba(214, 0, 184, 0.6) !important;
  box-shadow:
    0 0 15px rgba(214, 0, 184, 0.3),
    inset 0 0 10px rgba(214, 0, 184, 0.1) !important;
}

[data-theme="light"] .skill-item {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .skill-item:hover {
  border-color: rgba(214, 0, 184, 0.35) !important;
  background: rgba(214, 0, 184, 0.06) !important;
  box-shadow: 0 0 20px rgba(214, 0, 184, 0.12), 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .skill-item .text {
  color: rgba(0, 0, 0, 0.85) !important;
}

[data-theme="light"] .skill-item:hover .text {
  color: var(--c-accent) !important;
}

[data-theme="light"] .integration-logos .skill-item {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .integration-logos .skill-item:hover {
  border-color: rgba(214, 0, 184, 0.3) !important;
  background: rgba(214, 0, 184, 0.05) !important;
  box-shadow: 0 15px 40px rgba(214, 0, 184, 0.1) !important;
}

[data-theme="light"] .theme-btn.hover-primary:hover {
  background: rgba(214, 0, 184, 0.15) !important;
  border-color: rgba(214, 0, 184, 0.4) !important;
  color: var(--c-accent) !important;
  box-shadow: 0 0 20px rgba(214, 0, 184, 0.15) !important;
}

/* ============================================
   TaxBridge Spotlight (Homepage & Page)
   ============================================ */
.taxbridge-spotlight {
  background: rgba(255, 0, 217, 0.02);
  border-top: 1px solid rgba(255, 0, 217, 0.08);
  border-bottom: 1px solid rgba(255, 0, 217, 0.08);
}

.tb-spot-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tb-spot-logos img {
  height: 36px;
  width: auto;
  object-fit: contain;
  background: white;
  padding: 6px 12px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.tb-spot-logos img:hover {
  transform: translateY(-2px);
}

.tb-spot-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tb-spot-feat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 0, 217, 0.1);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.tb-spot-feat:hover {
  border-color: rgba(255, 0, 217, 0.3);
  background: rgba(255, 0, 217, 0.04);
}

.tb-spot-feat i {
  font-size: 1.3rem;
  color: var(--c-accent);
  flex-shrink: 0;
}

[data-theme="light"] .taxbridge-spotlight {
  background: rgba(214, 0, 184, 0.02) !important;
  border-color: rgba(214, 0, 184, 0.1) !important;
}

[data-theme="light"] .tb-spot-feat {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(214, 0, 184, 0.12) !important;
}

[data-theme="light"] .tb-spot-feat:hover {
  background: rgba(214, 0, 184, 0.05) !important;
  border-color: rgba(214, 0, 184, 0.3) !important;
}


/* ============================================
   FOOTER — MOBILE DENSITY
   At 387px the footer ran 2001px: 2.3 full screens of scrolling. Almost none
   of that was content — it was desktop spacing inherited at every width.

   The main offender is style.css:13894, which gives .footer-right-content
   75px of padding-top for ALL widths below 1400px. That padding exists to
   align the link columns with the taller left column while they sit BESIDE
   it. The columns are col-lg-5, so below 992px they stack underneath instead
   — and the padding then applies twice, to nothing.

   Scoped to <=991px, i.e. exactly where the columns stop being side by side.
   ============================================ */
@media only screen and (max-width: 991px) {
  .main-footer .footer-right-content {
    padding-top: 0;
    margin-top: 0;
  }

  /* Section padding: the template's pt-80/pb-60 utilities are tuned for a
     1400px canvas and read as empty bands on a phone. */
  .main-footer .footer-top {
    padding-top: var(--space-7);
    padding-bottom: var(--space-6);
  }

  .main-footer .footer-left-content {
    padding-top: var(--space-7);
  }

  .main-footer .lets-work {
    margin-bottom: var(--space-6);
  }

  .main-footer .footer-widget {
    margin-bottom: var(--space-6);
  }

  /* 32px line-height + 8px margin gives each link a 40px slot; 28 + 4 keeps
     it comfortably above the 44px touch target once padding is counted, and
     returns ~8px on each of the 11 links. */
  .main-footer .list-style-two li {
    line-height: 28px;
    margin-bottom: 4px;
  }

  .main-footer .copyright-text {
    padding-bottom: var(--space-5);
  }

  /* The bottom block is four rows of pipe-separated secondary links set at
     16px/32px — body-copy metrics for legal and cross-link text. At 387px the
     seven market links alone wrapped to four 32px lines. 14px/24px keeps them
     legible, wraps them into fewer rows, and drops ~100px. */
  .main-footer .copyright-text,
  .main-footer .copyright-text p,
  .main-footer .footer-bottom-nav {
    font-size: 14px;
    line-height: 24px;
  }

  .main-footer .footer-bottom-nav {
    margin-top: var(--space-2) !important;
  }
}
