/* Residential pest control page additions on top of the shared ant redesign system. */

.residential-page .ant-r-hero {
  min-height: 498px;
}

.residential-page .ant-r-hero-image {
  object-position: center 42%;
}

.residential-page .ant-r-hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 28, 61, 0.78), rgba(6, 28, 61, 0.42) 58%, rgba(6, 28, 61, 0.12)),
    linear-gradient(180deg, rgba(6, 28, 61, 0.2), rgba(6, 28, 61, 0.55) 48%, rgba(6, 28, 61, 0.92));
}

.residential-hero-ellipse {
  position: absolute;
  z-index: 0;
  bottom: -23px;
  left: -40px;
  width: 180px;
  height: 180px;
  pointer-events: none;
}

.residential-page .ant-r-hero h1 {
  max-width: 1180px;
}

.residential-page .ant-r-hero-content {
  padding-bottom: 80px;
}

.residential-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
}

.residential-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #061c3d;
  color: #fff9ee;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.residential-chip:hover {
  transform: translateY(-2px);
  background: #ffc759;
  color: #061c3d;
}

.residential-page .ant-r-section--chips {
  padding-bottom: 96px;
}

.residential-page .ant-process-grid article {
  min-height: 334px;
  border-radius: 20px;
}

.residential-page .faq-list {
  max-width: 900px;
}

@media (max-width: 820px) {
  .residential-page .ant-r-hero {
    min-height: 0;
  }

  .residential-page .ant-r-hero-image {
    object-position: 56% center;
  }

  .residential-page .ant-r-hero-overlay {
    background:
      linear-gradient(90deg, rgba(6, 28, 61, 0.78), rgba(6, 28, 61, 0.42) 62%, rgba(6, 28, 61, 0.18)),
      linear-gradient(180deg, rgba(6, 28, 61, 0.46), rgba(6, 28, 61, 0.64) 54%, rgba(6, 28, 61, 0.86));
  }

  .residential-page .ant-r-hero-content {
    padding-bottom: 36px !important;
  }

  .residential-page .ant-r-badges {
    gap: 6px;
    margin-bottom: 8px;
  }

  .residential-page .ant-r-badges span {
    padding: 4px 9px;
    font-size: 9px;
    line-height: 12px;
    letter-spacing: 0.72px;
  }

  .residential-page .ant-r-hero p {
    margin-bottom: 14px;
  }
}

@media (max-width: 560px) {
  .residential-page .ant-r-hero-content {
    padding-block: 12px 28px !important;
  }

  .residential-page .ant-r-hero h1 {
    margin-bottom: 8px;
    font-size: 26px !important;
    line-height: 1.04 !important;
  }

  .residential-page .ant-r-hero p {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  .residential-hero-ellipse {
    bottom: 12px;
    left: -34px;
    width: 128px;
    height: 128px;
  }

  .residential-chip-grid {
    justify-content: flex-start;
  }

  .residential-chip {
    min-height: 32px;
    padding: 7px 12px;
    font-size: 12px;
  }
}
