/* ============================================================
   SERVICES GRID — Avatar Studio
   Grid 2×2 pe desktop, 1 coloană pe mobile.
   Card: imagine full-cover + overlay permanent + text mereu vizibil.
   ============================================================ */

/* ── Grid container ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Card ──────────────────────────────────────────────────── */
.service-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--bg-card);
}

/* ── Imagine ───────────────────────────────────────────────── */
.service-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.55) saturate(0.85);
}

.service-card:hover .service-card__img {
  transform: scale(1.04);
  filter: brightness(0.45) saturate(0.75);
}

/* ── Overlay permanent ─────────────────────────────────────── */
.service-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.5)  50%,
    rgba(0, 0, 0, 0.1)  100%
  );
}

/* ── Conținut static (ascuns — conținutul complet e în hover-content) */
.service-card__static {
  display: none;
}

/* ── Conținut mereu vizibil ────────────────────────────────── */
.service-card__hover-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 28px 32px;
}

.service-card__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.service-card__title--hover {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 340px;
}

/* ── Hover: lift subtil pe conținut ───────────────────────── */
.service-card__hover-content {
  transition: transform 0.35s ease;
}

.service-card:hover .service-card__hover-content {
  transform: translateY(-4px);
}

/* ── Focus keyboard ────────────────────────────────────────── */
.service-card:focus-within .service-card__img {
  filter: brightness(0.45) saturate(0.75);
}

/* ── Responsive ────────────────────────────────────────────── */
/* Zonă tabletă (769–900px): grid-ul rămâne 2 coloane (design intențional),
   dar cardurile devin suficient de înguste încât textul din overlay poate
   depăși înălțimea cardului (aspect-ratio 16:9) și se taie din cauza
   overflow:hidden. Strângem padding-ul și descrierea înainte de pragul
   mobil de mai jos. */
@media (max-width: 900px) {
  .service-card__hover-content {
    padding: 22px 24px;
  }

  .service-card__desc {
    font-size: 0.83rem;
    max-width: 300px;
  }
}

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

  .service-card {
    aspect-ratio: 16 / 9;
  }

  .service-card__hover-content {
    padding: 20px;
  }

  .service-card__desc {
    font-size: 0.83rem;
  }
}

@media (max-width: 480px) {
  .service-card {
    aspect-ratio: 4 / 3;
  }
}
