/* ============================================================
   MFI INVESTMENTS — SERVICES PAGE (PREMIUM REDESIGN)
   ============================================================ */

.services-premium-section {
  padding: var(--section-padding) 0;
  background: var(--color-navy);
}

.services-premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card-premium {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-premium:hover .service-card-img {
  transform: scale(1.08);
}

/* Base Gradient for readability */
.service-card-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.4) 50%, rgba(10, 22, 40, 0.1) 100%);
  pointer-events: none;
}

.service-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 2rem;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Initially, push the description down so only the title shows */
  transform: translateY(30%);
}

.service-card-premium:hover .service-card-overlay {
  transform: translateY(0);
}

.service-card-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.4);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  color: var(--color-white-pure);
  margin-bottom: 1rem;
  line-height: var(--lh-tight);
}

.service-card-desc {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--lh-relaxed);
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
}

.service-card-premium:hover .service-card-desc {
  opacity: 1;
}

.service-card-line {
  position: absolute;
  bottom: 0;
  left: 2rem;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-premium:hover .service-card-line {
  width: calc(100% - 4rem);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .service-card-overlay {
    transform: translateY(0);
  }
  .service-card-desc {
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .services-premium-grid {
    grid-template-columns: 1fr;
  }
  .service-card-premium {
    height: 350px;
  }
}
