/* ICV Prefooter CTA — bg matches .footer-section (#f6f6f6) */
.icv-prefooter {
  --icv-prefooter-bg: #f6f6f6;
  --icv-prefooter-heading: #0b1f33;
  --icv-prefooter-primary: #007dc5;
  --icv-prefooter-btn-dark: #0b141f;
  --icv-prefooter-white: #ffffff;

  position: relative;
  overflow: visible !important;
  width: 100%;
  background-color: var(--icv-prefooter-bg);
  padding: clamp(48px, 6vw, 80px) 0;
}

.icv-prefooter .container {
  position: relative;
  z-index: 2;
}

.icv-prefooter__content {
  position: relative;
  z-index: 2;
  width: 50%;
  max-width: 50%;
}

.icv-prefooter__title {
  margin: 0 0 24px;
  color: var(--icv-prefooter-heading);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* Letter animation keyframes also inlined in prefooter-section.php (hero pattern) */
.icv-prefooter__letter {
  display: inline-block;
  overflow: visible;
  vertical-align: top;
}

.icv-prefooter__word {
  display: inline-block;
  white-space: nowrap;
}

.icv-prefooter__letter-inner {
  display: inline-block;
}

.icv-prefooter__letter--space {
  display: inline-block;
  width: 0.32em;
}

/* Same as hero "Contact With Us" primary button */
.icv-prefooter__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none !important;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  background: var(--icv-prefooter-primary);
  color: var(--icv-prefooter-white) !important;
}

.icv-prefooter__btn-label,
.icv-prefooter__btn i {
  position: relative;
  z-index: 1;
}

.icv-prefooter__btn i {
  font-size: 13px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.icv-prefooter__btn::before,
.icv-prefooter__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.icv-prefooter__btn::before {
  background: var(--icv-prefooter-btn-dark);
}

.icv-prefooter__btn::after {
  background: var(--icv-prefooter-primary);
}

.icv-prefooter__btn:hover,
.icv-prefooter__btn:focus {
  background: var(--icv-prefooter-primary);
  color: var(--icv-prefooter-white) !important;
  box-shadow: none;
  transform: none;
  text-decoration: none;
}

.icv-prefooter__btn:hover::before,
.icv-prefooter__btn:focus-visible::before {
  animation: icv-prefooter-btn-sweep 0.4s ease forwards;
}

.icv-prefooter__btn:hover::after,
.icv-prefooter__btn:focus-visible::after {
  animation: icv-prefooter-btn-sweep 0.4s ease 0.4s forwards;
}

.icv-prefooter__btn:hover i,
.icv-prefooter__btn:focus i {
  transform: translateX(3px);
}

@keyframes icv-prefooter-btn-sweep {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Single image — top right, flush to section top */
.icv-prefooter__media {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  line-height: 0;
}

.icv-prefooter__img {
  display: block;
  width: clamp(280px, 42vw, 560px);
  height: auto;
}

/* Hide image on tablet & mobile */
@media (max-width: 991px) {
  .icv-prefooter {
    padding: 48px 0 40px;
  }

  .icv-prefooter__media {
    display: none;
  }

  .icv-prefooter__content {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .icv-prefooter__title {
    margin: 0 auto 22px;
    font-size: clamp(18px, 4.2vw, 24px);
  }
}

@media (max-width: 575px) {
  .icv-prefooter {
    padding: 40px 0 32px;
  }

  .icv-prefooter__title {
    font-size: 18px;
  }

  .icv-prefooter__btn {
    min-height: 48px;
    padding: 12px 22px;
  }
}
