.xactimate-expertise-section {
  position: relative;
  overflow: hidden;
  color: #f5fbfe;
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 199, 232, 0.2), transparent 28%),
    linear-gradient(130deg, #061522 0%, #0a2237 54%, #0b304a 100%);
  border-block: 1px solid rgba(37, 199, 232, 0.25);
}

.xactimate-expertise-section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(37, 199, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 199, 232, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000);
}

.xactimate-expertise {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 6vw, 94px);
}

.xactimate-expertise__copy {
  max-width: 660px;
}

.xactimate-expertise-section .eyebrow {
  color: #25c7e8;
}

.xactimate-expertise__logo {
  display: block;
  width: min(245px, 55%);
  height: auto;
  margin: 18px 0 26px;
  padding: 11px 15px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.xactimate-expertise__copy h2 {
  max-width: 650px;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.02;
}

.xactimate-expertise__lede {
  max-width: 640px;
  color: #bfd0db;
  font-size: 18px;
  line-height: 1.75;
}

.xactimate-expertise__capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 34px;
  padding: 0;
  list-style: none;
}

.xactimate-expertise__capabilities li {
  position: relative;
  min-height: 116px;
  padding: 20px 18px 18px 48px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(37, 199, 232, 0.2);
  border-radius: 10px;
}

.xactimate-expertise__capabilities li::before {
  position: absolute;
  top: 21px;
  left: 18px;
  display: grid;
  width: 21px;
  height: 21px;
  color: #061522;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  content: "✓";
  place-items: center;
  background: #25c7e8;
  border-radius: 50%;
}

.xactimate-expertise__capabilities strong,
.xactimate-expertise__capabilities span {
  display: block;
}

.xactimate-expertise__capabilities strong {
  margin-bottom: 6px;
  color: #fff;
  font-size: 15px;
}

.xactimate-expertise__capabilities span {
  color: #aebfca;
  font-size: 13px;
  line-height: 1.5;
}

.xactimate-expertise__actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.xactimate-expertise__actions .text-link {
  color: #fff;
}

.xactimate-expertise__visual {
  position: relative;
  min-height: 690px;
}

.xactimate-screen {
  position: absolute;
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 7px solid rgba(255, 255, 255, 0.94);
  border-radius: 13px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.xactimate-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.xactimate-screen figcaption {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 8px 11px;
  color: #dff9ff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(5, 17, 30, 0.9);
  border: 1px solid rgba(37, 199, 232, 0.55);
  border-radius: 6px;
}

.xactimate-screen--estimate {
  top: 0;
  right: 0;
  width: 78%;
  height: 405px;
  transform: rotate(1.2deg);
}

.xactimate-screen--sketch {
  bottom: 12px;
  left: 0;
  width: 58%;
  height: 340px;
  transform: rotate(-2deg);
}

.xactimate-expertise__estimator {
  position: absolute;
  z-index: 3;
  right: -8%;
  bottom: -104px;
  width: 58%;
  height: auto;
  filter: drop-shadow(-18px 18px 24px rgba(0, 0, 0, 0.36));
}

.xactimate-expertise__proof {
  position: absolute;
  z-index: 4;
  right: 3%;
  bottom: 18px;
  max-width: 250px;
  padding: 16px 18px;
  background: rgba(5, 17, 30, 0.92);
  border: 1px solid rgba(37, 199, 232, 0.62);
  border-radius: 9px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.32);
}

.xactimate-expertise__proof strong,
.xactimate-expertise__proof span {
  display: block;
}

.xactimate-expertise__proof strong {
  color: #fff;
  font-size: 15px;
}

.xactimate-expertise__proof span {
  margin-top: 4px;
  color: #25c7e8;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.translated-rtl .xactimate-expertise__copy,
[dir="rtl"] .xactimate-expertise__copy {
  text-align: right;
}

.translated-rtl .xactimate-expertise__logo,
[dir="rtl"] .xactimate-expertise__logo {
  margin-right: 0;
  margin-left: auto;
}

.translated-rtl .xactimate-expertise__capabilities li,
[dir="rtl"] .xactimate-expertise__capabilities li {
  padding-right: 48px;
  padding-left: 18px;
}

.translated-rtl .xactimate-expertise__capabilities li::before,
[dir="rtl"] .xactimate-expertise__capabilities li::before {
  right: 18px;
  left: auto;
}

@media (max-width: 1120px) {
  .xactimate-expertise {
    grid-template-columns: 1fr;
  }

  .xactimate-expertise__copy {
    max-width: 820px;
  }

  .xactimate-expertise__visual {
    width: min(820px, 100%);
    min-height: 630px;
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  .xactimate-expertise-section {
    padding-block: 78px 62px;
  }

  .xactimate-expertise {
    gap: 52px;
  }

  .xactimate-expertise__logo {
    width: 205px;
    max-width: 75%;
  }

  .xactimate-expertise__copy h2 {
    font-size: 40px;
  }

  .xactimate-expertise__lede {
    font-size: 16px;
  }

  .xactimate-expertise__capabilities {
    grid-template-columns: 1fr;
  }

  .xactimate-expertise__capabilities li {
    min-height: 0;
  }

  .xactimate-expertise__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .xactimate-expertise__visual {
    min-height: 510px;
  }

  .xactimate-screen--estimate {
    width: 92%;
    height: 300px;
  }

  .xactimate-screen--sketch {
    bottom: 0;
    width: 70%;
    height: 260px;
  }

  .xactimate-expertise__estimator {
    right: -15%;
    bottom: -64px;
    width: 68%;
  }

  .xactimate-expertise__proof {
    right: 0;
    bottom: 2px;
    max-width: 205px;
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xactimate-screen {
    transform: none;
  }
}
