.service-strip {
  padding-block: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid #d9e4e8;
  background: #fff;
}

.service-strip-grid {
  display: grid;
  width: min(calc(100% - 64px), 1128px);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  justify-content: center;
  padding-block: 0;
}

.service-strip a {
  display: flex;
  min-width: 0;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid #d9e4e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(5, 48, 73, .08);
  color: #15232b;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  flex-direction: column;
}

.service-strip a:hover {
  border-color: #047f9b;
  box-shadow: 0 14px 32px rgba(5, 48, 73, .14);
  transform: translateY(-3px);
}

.service-strip a:focus-visible {
  outline: 3px solid #e0a95b;
  outline-offset: 4px;
}

.service-strip span,
.service-strip strong,
.service-strip small {
  display: block;
}

.service-strip .service-card-icon {
  width: 50%;
  max-width: 180px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.service-strip .service-card-icon-large {
  width: auto;
  max-width: 65%;
  object-fit: contain;
}

.service-strip .service-card-icon-root-canal {
  width: 46%;
  max-width: 148px;
  height: auto;
  max-height: 148px;
  object-fit: contain;
}

.service-strip .service-card-icon-invisalign {
  width: 90%;
  max-width: 290px;
}

.service-strip strong {
  color: #062f4b;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.25;
  text-transform: uppercase;
}

.service-strip a[href$="veneers-cosmetic-dentistry.html"] strong {
  max-width: 100%;
  text-wrap: balance;
}

.service-strip small {
  margin-top: .65rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* The homepage uses a more compact presentation; the dedicated Services page retains the approved shared card dimensions above. */
.home-page .service-strip {
  padding-block: 2.5rem;
}

.home-page .service-strip-grid {
  width: min(calc(100% - 64px), 960px);
  gap: 1rem;
}

.home-page .service-strip a {
  gap: .65rem;
  padding: 1.25rem;
}

.home-page .service-strip .service-card-icon {
  width: 45%;
  max-width: 155px;
}

.home-page .service-strip .service-card-icon-large {
  width: auto;
  max-width: 58%;
}

.home-page .service-strip .service-card-icon-root-canal {
  width: 42%;
  max-width: 125px;
  max-height: 125px;
}

.home-page .service-strip .service-card-icon-invisalign {
  width: 78%;
  max-width: 240px;
}

@media (min-width: 1025px) {
  /* Let the shorter cards fill the desktop grid row height established by the Veneers card. */
  .home-page .service-strip a[href$="invisalign.html"],
  .home-page .service-strip a[href$="crowns-bridges.html"] {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 1100px) {
  .service-strip-grid {
    width: min(calc(100% - 40px), 1128px);
  }
}

@media (max-width: 1024px) {
  .service-strip-grid {
    max-width: 744px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-strip .service-card-icon {
    width: 48%;
    max-width: 150px;
  }

  .service-strip .service-card-icon-large {
    width: auto;
    max-width: 60%;
  }

  .service-strip .service-card-icon-root-canal {
    width: 44%;
    max-width: 140px;
    max-height: 140px;
  }

  .service-strip .service-card-icon-invisalign {
    width: 85%;
    max-width: 260px;
  }
}

@media (max-width: 640px) {
  .service-strip-grid {
    width: min(calc(100% - 32px), 320px);
    grid-template-columns: minmax(0, 1fr);
  }

  .service-strip .service-card-icon {
    width: 44%;
    max-width: 140px;
  }

  .service-strip .service-card-icon-large {
    width: auto;
    max-width: 55%;
  }

  .service-strip .service-card-icon-root-canal {
    width: 43%;
    max-width: 132px;
    max-height: 132px;
  }

  .service-strip .service-card-icon-invisalign {
    width: 80%;
    max-width: 250px;
  }
}

@media (max-width: 430px) {
  .service-strip-grid {
    width: min(calc(100% - 24px), 320px);
  }
}
