/* css/services.css */

.services {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: var(--space-4) 0;
}



.service-container {
  max-width: 1939px;
  margin: 0 auto;
  /*padding: 50px 200px; */
  padding-left: 13.5%;
    padding-right: 13.5%;
    padding-top: 1%;
}

.services h2 {
  text-align: center;
  font-size: 2.1rem;
  letter-spacing: .6px;
  margin-bottom: var(--space-2);
  color: #111;
}

.services-intro {
  text-align: justify;
  max-width: 980px;
  line-height: 1.7;
  color: #333;
  font-size: 1.05rem;
  margin: 0 auto clamp(16px, 2vw, 24px); /* bottom gap before the cards/grid */
}



.service-card {
  background: #fff;
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
}

.image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4;
  overflow: hidden;
  margin-bottom: 0;
}

/* Force square corners for service images */
.services .service-card .image-wrap,
.services .service-card .image-wrap img {
  border-radius: 0 !important;
}

/* If a parent card has radius + overflow hidden somewhere else */
.services .service-card {
  overflow: visible; /* ensure parent radius doesn't clip children */
}

/* Square image frame */
.image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;     /* force perfect square */
  overflow: hidden;        /* crop overflow for clean edges */
  margin-bottom: 0;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  display: block;          /* removes inline-gap quirks */
  object-fit: cover;       /* center-crop to fill the square */
  transition: transform 450ms ease;
}


.service-card h3 {
  font-size: 1.25rem;
  letter-spacing: .4px;
  color: #111;
  margin-bottom: 8px;
  text-align: center;
  padding-top: 0;
}

.service-card p {
  color: #444;
  line-height: 1.65;
  text-align: left;
  padding: 0 6px;
  text-transform: none;
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5.2%;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
