/* ── Service Cards with Image Carousels ── */
/* v2 */
/* ── Portfolio Section ── */
#portfolio {
  background: #0a0a0a;
  padding: 140px 40px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: #111;
}

/* ── Background image carousel ── */
.service-card-images {
  position: absolute;
  inset: 0;
}

.service-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  filter: grayscale(60%) brightness(0.5);
}

.service-card-img.active {
  opacity: 1;
}

/* On hover - colour and brightness */
.service-card:hover .service-card-img.active {
  filter: grayscale(0%) brightness(0.65);
  transition: opacity 0.8s ease, filter 0.6s ease;
}

/* ── Dark gradient overlay ── */
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 1;
}

/* ── Card content ── */
.service-card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: padding 0.4s ease;
}

.service-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: #c9a84c;
  margin-bottom: 8px;
  opacity: 0.8;
}

.service-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 0;
  line-height: 1.1;
}

.service-desc {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
}

/* ── Hover state ── */
.service-card:hover .service-desc {
  max-height: 150px;
  opacity: 1;
  margin-top: 12px;
}

/* Gold accent line */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #c9a84c;
  transition: width 0.4s ease;
  z-index: 3;
}

.service-card:hover::after {
  width: 100%;
}

/* ── Image carousel dots ── */
.service-card-dots {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-card-dots {
  opacity: 1;
}

.service-card-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s ease;
}

.service-card-dot.active {
  background: #c9a84c;
}

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

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    aspect-ratio: 3/2;
  }
  .service-desc {
    max-height: 120px;
    opacity: 1;
    margin-top: 10px;
  }
}
.services {
  padding-top: 140px;
}
.services {
  padding-bottom: 30px;
}
@media (max-width: 900px) {
  .service-desc {
    max-height: none;
    height: auto;
    opacity: 1;
    margin-top: 12px;
    overflow: visible;
  }
}