html {
  scroll-padding-top: 82px;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.desktop-nav {
  gap: clamp(15px, 1.8vw, 30px);
}

.desktop-nav a {
  font-size: .9rem;
  white-space: nowrap;
}

.hero-description,
.section-heading > p,
.pest-description,
.approach-grid p,
.team-heading > div > p,
.contact-lead,
.why-intro,
.why-list p {
  font-size: 1rem;
  line-height: 1.75;
}

.pest-card > span:last-child,
.pest-summary {
  overflow-wrap: anywhere;
}

.pest-detail-footer span,
.pest-detail-footer a,
.team-card p,
.contact-details strong,
.contact-details a,
.contact-form-card label,
footer p {
  font-size: .875rem;
}

.contact-form-card input,
.contact-form-card textarea,
.contact-form-card button {
  font-size: 1rem;
}

.why-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: clamp(44px, 6vw, 96px);
  align-items: center;
  padding: 110px clamp(24px, 6.5vw, 110px);
  overflow: hidden;
  background: #fff;
}

.why-section::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -210px;
  bottom: -240px;
  border-radius: 50%;
  background: rgba(8, 128, 232, .07);
  pointer-events: none;
}

.why-media {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 28px;
  background: #dcebf8;
  box-shadow: 0 26px 65px rgba(5, 87, 158, .18), 0 0 0 1px #d9e8f5;
}

.why-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 74, 133, .48));
  pointer-events: none;
}

.why-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-media-label {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 2;
  max-width: calc(100% - 44px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #05579e;
  font-size: .875rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(4, 60, 109, .16);
  pointer-events: none;
}

.why-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.why-copy h2 {
  max-width: 820px;
  margin: 0;
  color: #054a85;
  font-size: clamp(2.45rem, 4.35vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.why-intro {
  max-width: 720px;
  margin: 24px 0 0;
  color: #5f6872;
}

.why-list {
  display: grid;
  margin-top: 32px;
}

.why-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid #dcebf8;
}

.why-list article > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ecf6fe;
  color: #0880e8;
  font-size: .82rem;
  font-weight: 900;
}

.why-list h3 {
  margin: 1px 0 7px;
  color: #05579e;
  font-size: 1.18rem;
  line-height: 1.35;
}

.why-list p {
  margin: 0;
  color: #5f6872;
}

@media (min-width: 1101px) and (max-width: 1280px) {
  .site-header {
    grid-template-columns: minmax(205px, 1fr) auto minmax(205px, 1fr);
    padding-inline: 28px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    letter-spacing: .08em;
  }

  .header-cta {
    padding-inline: 13px;
    font-size: .8rem;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    min-height: auto;
    padding: 116px 42px 82px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-visual {
    width: min(64vw, 520px);
    order: -1;
  }

  .pest-stage {
    gap: 20px;
  }

  .why-section {
    grid-template-columns: 1fr;
    padding-block: 90px;
  }

  .why-media {
    width: min(100%, 780px);
    aspect-ratio: 16 / 9;
  }

  .why-copy {
    max-width: 820px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 70px;
  }

  .hero {
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.25rem);
    line-height: .98;
  }

  .hero-description,
  .section-heading > p,
  .pest-description,
  .approach-grid p,
  .team-heading > div > p,
  .contact-lead,
  .why-intro,
  .why-list p {
    font-size: .96rem;
    line-height: 1.7;
  }

  .pest-stage {
    padding-inline: 16px;
  }

  .pest-deck {
    margin-inline: -16px;
  }

  .pest-details h3 {
    padding-right: 58px;
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .pest-number {
    top: -12px;
    font-size: 5.5rem;
  }

  .why-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 78px 16px;
  }

  .why-media {
    aspect-ratio: 4 / 3;
    border-width: 5px;
    border-radius: 21px;
  }

  .why-media-label {
    left: 14px;
    top: 14px;
    max-width: calc(100% - 28px);
    font-size: .78rem;
  }

  .why-copy h2 {
    font-size: clamp(2.25rem, 10.5vw, 3.15rem);
    line-height: 1.04;
  }

  .why-list article {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 19px 0;
  }

  .why-list article > span {
    width: 42px;
    height: 42px;
  }

  .why-list h3 {
    font-size: 1.05rem;
  }

  .team-card {
    align-items: center;
  }

  .contact-section {
    padding-top: 42px;
  }

  .contact-intro h2 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    line-height: 1.04;
  }
}

@media (max-width: 390px) {
  .pest-card {
    width: 164px;
  }

  .pest-card[data-offset="-1"] {
    transform: translate(-104%, -48%) scale(.52);
  }

  .pest-card[data-offset="1"] {
    transform: translate(4%, -48%) scale(.52);
  }

  .why-media-label {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-media video {
    display: none;
  }

  .why-media {
    background: #dcebf8 url("/assets/images/company/why-us.webp") center / cover no-repeat;
  }
}
