.root,
:root {
  --ar-primary: #28326c;
  --ar-secondary: #1779c4;
}

.services-grid.services-grid--images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.image-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 360px;
  background: #0d0d0d;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.image-card-link {
  position: absolute;
  inset: 0;
  display: block;
}

.image-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.image-card-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.image-card-content {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.image-card-title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.image-card-chip {
  display: inline-block;
  width: fit-content;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  line-height: 1;
}

/* Asymmetric layout to match mock */
.services-grid--asymmetric {
  grid-template-columns: repeat(4, 1fr);
}

.services-grid--asymmetric .image-card--tall {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  height: 100%;
  min-height: 720px;
}

.services-right {
  grid-column: 2 / 5;
  display: grid;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.image-card--wide {
  height: 360px;
}

.services-right-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.image-card-chip--primary {
  background: linear-gradient(
    306deg,
    var(--ar-primary) 0%,
    var(--ar-secondary) 50%,
    var(--ar-primary) 100%
  );
  color: #fff;
  border: none;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(27, 92, 255, 0.4);
}

.image-card:hover .image-card-bg {
  transform: scale(1.08);
}

@media (max-width: 1200px) {
  .services-grid--asymmetric {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid--asymmetric .image-card--tall {
    min-height: 380px;
    grid-row: auto;
  }
  .services-right {
    grid-column: auto;
  }

  /* Responsive container for services overview */
  .services-overview .container {
    max-width: 1200px;
    padding: 0 30px;
  }
}

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

  /* Responsive container for services overview */
  .services-overview .container {
    max-width: 100%;
    padding: 0 20px;
  }
}

@media (max-width: 560px) {
  .services-grid--asymmetric {
    grid-template-columns: 1fr;
  }
  .image-card {
    height: 260px;
  }

  /* Responsive container for services overview */
  .services-overview .container {
    padding: 0 15px;
  }
}

/* Section padding for services overview */
.services-overview.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Wider container for services overview */
.services-overview .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}
