/* ============================================================
   SERVICES SECTION COMPONENT
   Davinchi BarberShop
   ============================================================ */

.services {
  padding: var(--space-5xl) var(--gutter);
  background: var(--color-black);
  position: relative;
  overflow: hidden;
}

/* Subtle background decorative text */
.services::before {
  content: 'SERVICES';
  font-family: var(--font-headline);
  font-size: clamp(6rem, 14vw, 14rem);
  color: rgba(255,255,255,0.018);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: 0.1em;
}

.services__container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.services__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.services__header .section-subtitle {
  max-width: 55ch;
  margin: 0 auto;
}

/* ─── Service Cards Grid ─── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ─── Individual Card ─── */
.service-card {
  width: 100%; /* Adapts to grid */
  height: auto; /* Adjusts to content */
  min-height: 250px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: all 300ms;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.service-card .content {
  border-radius: 5px;
  width: 100%;
  height: 100%;
  z-index: 1;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-card .content::before {
  opacity: 0;
  transition: opacity 300ms;
  content: " ";
  display: block;
  background: white;
  width: 5px;
  height: 50px;
  position: absolute;
  filter: blur(50px);
  overflow: hidden;
}

.service-card:hover .content::before {
  opacity: 1;
}

.service-card::before {
  opacity: 0;
  content: " ";
  position: absolute;
  display: block;
  width: 80px;
  height: 360px;
  /* Use Gold instead of pink/blue */
  background: linear-gradient(var(--color-gold), var(--color-black));
  transition: opacity 300ms;
  animation: rotation_9018 8000ms infinite linear;
  animation-play-state: paused;
}

.service-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

.service-card::after {
  position: absolute;
  content: " ";
  display: block;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  background: var(--color-surface);
  backdrop-filter: blur(50px);
  border-radius: var(--radius-md);
}

@keyframes rotation_9018 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Featured card variant */
.service-card--featured {
  background: linear-gradient(145deg, #1a1608 0%, var(--color-surface) 100%);
  border-color: rgba(196, 155, 58, 0.2);
}

.service-card--featured::before {
  opacity: 0.6;
}

/* ─── Badge ─── */
.service-card__badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark);
  background: var(--color-gold);
  padding: 0.2em 0.7em;
  border-radius: var(--radius-full);
}

/* ─── Icon ─── */
.service-card__icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: var(--space-lg);
  display: block;
}

/* ─── Title ─── */
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

/* ─── Description ─── */
.service-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

/* ─── Price ─── */
.service-card__price {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
}

/* ─── CTA ─── */
.services__cta {
  text-align: center;
  margin-top: var(--space-4xl);
}

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

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