/* IQBIRDS homepage visual fixes - scoped to the front page only. */
.home .iqb-hero .wp-block-buttons {
  display: flex !important;
  gap: 18px !important;
  row-gap: 14px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.home .iqb-hero .wp-block-button {
  margin: 0 !important;
}

@media (max-width: 600px) {
  .home .iqb-hero .wp-block-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .home .iqb-hero .wp-block-button,
  .home .iqb-hero .wp-block-button__link {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

.home .iqb-section-head,
.home .iqb-tech,
.home .iqb-final-cta {
  text-align: center !important;
}

/* Match regular homepage section headings to the site's dark heading color. */
.home .iqb-section-head h2,
.home .iqb-services .iqb-section-head h2,
.home .iqb-testimonials .iqb-section-head h2,
.home .iqb-faq .iqb-section-head h2 {
  color: #071f3f !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #071f3f !important;
  text-shadow: none !important;
}

.home .iqb-section-head > p:not(.iqb-pill) {
  color: #334155 !important;
  opacity: 1 !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 760px;
}

/* Portfolio section: match IQBIRDS navy/emerald AI palette. */
.home .pulse-psgb-section {
  --pulse-primary: #35c85a !important;
  --pulse-dark: #06233d !important;
  --pulse-bg: #f4fbf8 !important;
  --pulse-overlay: #06233d !important;
  --pulse-overlay-opacity: 0.74 !important;
  background: radial-gradient(circle at 16% 10%, rgba(53, 200, 90, 0.16), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(14, 165, 233, 0.16), transparent 34%),
    linear-gradient(180deg, #f8fffb 0%, #eef8ff 100%) !important;
}

.home .pulse-psgb-header h2 {
  color: #071f3f !important;
  -webkit-text-fill-color: #071f3f !important;
  opacity: 1 !important;
}

.home .pulse-psgb-header p {
  color: #334155 !important;
  opacity: 1 !important;
}

.home .pulse-psgb-small-wrap span {
  color: #0f5b3d !important;
  background: #dcfce7 !important;
  border: 1px solid rgba(53, 200, 90, 0.25) !important;
  box-shadow: 0 10px 28px rgba(53, 200, 90, 0.16) !important;
}

.home .pulse-psgb-small-wrap i {
  background: linear-gradient(90deg, #35c85a, #0ea5e9) !important;
}

.home .pulse-psgb-card {
  border: 1px solid rgba(230, 243, 255, 0.42) !important;
  box-shadow: 0 30px 80px rgba(6, 35, 61, 0.22) !important;
}

.home .pulse-psgb-overlay {
  background: linear-gradient(90deg, rgba(6, 35, 61, 0.92) 0%, rgba(7, 63, 68, 0.78) 48%, rgba(15, 91, 61, 0.62) 100%) !important;
  opacity: 1 !important;
}

.home .pulse-psgb-number,
body.home .pulse-psgb-number {
  color: #06233d !important;
  background: linear-gradient(135deg, #35c85a, #b6f36a) !important;
  box-shadow: 0 14px 34px rgba(53, 200, 90, 0.35) !important;
  border-radius: 999px !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 48px !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
}

.home .pulse-psgb-subtitle {
  color: #b6f36a !important;
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(230, 243, 255, 0.24) !important;
}

.home .pulse-psgb-content h3 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

.home .pulse-psgb-content p {
  color: #e6f3ff !important;
  opacity: 1 !important;
}

.home .pulse-psgb-btn {
  color: #06233d !important;
  background: linear-gradient(135deg, #35c85a, #b6f36a) !important;
  border: 0 !important;
  box-shadow: 0 16px 36px rgba(53, 200, 90, 0.28) !important;
}

.home .pulse-psgb-btn:hover,
.home .pulse-psgb-btn:focus {
  color: #06233d !important;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(53, 200, 90, 0.34) !important;
}

/* AI process section: brighter dark band with readable white content. */
.home .iqb-process {
  background: radial-gradient(circle at 18% 12%, rgba(53, 200, 90, 0.22), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.20), transparent 34%),
    linear-gradient(135deg, #06233d 0%, #073f44 54%, #0f5b3d 100%) !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
}

.home .iqb-process .iqb-section-head h2 {
  color: #ffffff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}

.home .iqb-process .iqb-section-head > p:not(.iqb-pill) {
  color: #e6f3ff !important;
  opacity: 1 !important;
}

.home .iqb-process .iqb-pill,
.home .iqb-process .iqb-pill.pink {
  color: #0f5b3d !important;
  background: #dcfce7 !important;
  box-shadow: 0 10px 28px rgba(53, 200, 90, 0.22) !important;
}

.home .iqb-process .iqb-step {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(230, 243, 255, 0.28) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(14px);
}

.home .iqb-process .iqb-step > p:first-child,
body.home .iqb-process .iqb-step > p:first-child {
  color: #06233d !important;
  background: linear-gradient(135deg, #35c85a, #b6f36a) !important;
  border-radius: 999px !important;
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  display: flex !important;
  flex: 0 0 54px !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  font-weight: 900 !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
}

.home .iqb-process .iqb-step h3 {
  color: #ffffff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #ffffff !important;
}

.home .iqb-process .iqb-step p:not(:first-child) {
  color: #e6f3ff !important;
  opacity: 1 !important;
}

/* n8n-inspired moving logo grid for IQBIRDS services. */
.home .iqb-integrations-tech {
  padding: 0 !important;
  background: #f5fbff !important;
  overflow: hidden;
}

.home .iqb-logo-cloud {
  position: relative;
  padding: clamp(74px, 8vw, 120px) 20px !important;
  background: radial-gradient(circle at 18% 12%, rgba(53, 200, 90, 0.20), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(14, 165, 233, 0.18), transparent 34%),
    linear-gradient(135deg, #06233d 0%, #073f44 54%, #0f5b3d 100%);
  color: #ffffff;
}

.home .iqb-logo-cloud::before,
.home .iqb-logo-cloud::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.25;
  pointer-events: none;
}

.home .iqb-logo-cloud::before {
  left: -100px;
  top: 18%;
  background: #35c85a;
}

.home .iqb-logo-cloud::after {
  right: -110px;
  bottom: 7%;
  background: #0ea5e9;
}

.home .iqb-logo-cloud__inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.home .iqb-logo-cloud__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 16px 18px !important;
  padding: 9px 18px;
  border-radius: 999px;
  color: #b6f36a !important;
  background: rgba(53, 200, 90, 0.10);
  border: 1px solid rgba(53, 200, 90, 0.28);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.home .iqb-logo-cloud h2 {
  max-width: 940px;
  margin: 0 auto 18px !important;
  padding: 0 20px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(34px, 5vw, 62px) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.045em;
  font-weight: 500 !important;
}

.home .iqb-logo-cloud__copy {
  max-width: 800px;
  margin: 0 auto 56px !important;
  padding: 0 20px;
  color: #e6f3ff !important;
  font-size: clamp(16px, 1.5vw, 19px) !important;
  line-height: 1.7 !important;
}

.home .iqb-logo-cloud__marquee {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
}

.home .iqb-logo-row {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.home .iqb-logo-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: iqbLogoMarqueeLeft 42s linear infinite;
  will-change: transform;
}

.home .iqb-logo-row--reverse .iqb-logo-track {
  animation-name: iqbLogoMarqueeRight;
  animation-duration: 46s;
}

.home .iqb-logo-row:hover .iqb-logo-track {
  animation-play-state: paused;
}

.home .iqb-logo-tile {
  flex: 0 0 104px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(230, 243, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 18px 38px rgba(6,35,61,0.22);
  backdrop-filter: blur(12px);
}

.home .iqb-logo-tile img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(53, 200, 90, 0.18));
}

.home .iqb-logo-tile span {
  max-width: 92px;
  color: #e6f3ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes iqbLogoMarqueeLeft {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes iqbLogoMarqueeRight {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .home .iqb-logo-track {
    animation: none !important;
    transform: translateX(0) !important;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    padding: 0 16px;
  }
}

@media (max-width: 700px) {
  .home .iqb-logo-cloud {
    padding: 72px 16px !important;
  }

  .home .iqb-logo-cloud h2 {
    font-size: clamp(30px, 10vw, 42px) !important;
  }

  .home .iqb-logo-cloud__copy {
    margin-bottom: 36px !important;
  }

  .home .iqb-logo-cloud__marquee {
    gap: 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  }

  .home .iqb-logo-track {
    gap: 12px;
    animation-duration: 32s;
  }

  .home .iqb-logo-row--reverse .iqb-logo-track {
    animation-duration: 36s;
  }

  .home .iqb-logo-tile {
    flex-basis: 88px;
    height: 72px;
    border-radius: 16px;
  }

  .home .iqb-logo-tile img {
    width: 26px;
    height: 26px;
  }

  .home .iqb-logo-tile span {
    max-width: 76px;
    font-size: 10px;
  }
}

/* Dark homepage bands: keep headings white and supporting text readable. */
.home .iqb-final-cta > h2 {
  color: #ffffff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  text-align: center !important;
}

.home .iqb-final-cta > p {
  color: #e6f3ff !important;
  opacity: 1 !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 760px;
}

.home .iqb-service-card h3,
.home .iqb-testimonial h3 {
  color: #0f2742 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #0f2742 !important;
}

.home .iqb-service-card p,
.home .iqb-testimonial p {
  color: #334155;
  opacity: 1;
}

.home .iqb-pill {
  opacity: 1 !important;
}

