/* Service grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 320px); /* fixed column min size */
  gap: 2rem;
  justify-content: center;    /* center every card */
}

/* Uniform cards */
.service-card {
  width: 320px;             /* all cards exactly 320px wide */
  height: 360px;            /* all cards exactly 360px tall */
  background: #fff;
  border: 2px solid var(--highlight);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

/* Promotional hover */
.service-card:hover {
  transform: translateY(-4px);
  background-color: #F7B733;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Coming soon card */
.service-card.coming-soon {
  opacity: 0.6;
  border-style: dashed;
}

/* Icon container: identical size for all */
.service-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: whitesmoke;
  border-radius: 12px;
  border: 4px solid var(--highlight);
  overflow: hidden;
}
.service-icon img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Tighten text spacing */
.service-card h3 {
  margin-bottom: .5rem;
}
.service-card p {
  margin-bottom: 1rem;
}

/* Mobile fallback */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    width: auto;
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  .service-card {
    width: 100%;
    height: auto;
  }
}

/* Tablet fixes (769px–1024px) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {

  /* 2) Two-column cards in Services, center the odd one out */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .service-card {
    margin: 0 auto;             /* ensure centering within each cell */
    width: 100%;
    max-width: 320px;
  }
  /* If you have exactly three cards, center the 3rd */
  .services-grid > .service-card:nth-child(3) {
    grid-column: 1 / span 2;
    justify-self: center;
  }

  /* 3) Tighten up the card so it doesn’t look too sparse */
  .service-card {
    padding: 1.25rem 1rem;
  }
}

/* 2) Make the container push the button to the bottom */
#services .container {
  display: flex;
  flex-direction: column;
}

/* flex: 1 ensures the grid takes all available space before the button */
#services .services-grid {
  flex: 1;
}

#services .container {
  display: flex;
  flex-direction: column;
}

#services .services-grid {
  flex: 1;
}

.cta-wrap {
  margin-top: 2rem;
  text-align: center;
}
.cta-btn {
  min-width: 240px;
}


