/* ============ SERVICES (#services, index 02) ============ */

/* ---- Section background band ---- */
#services {
  background: var(--bg-1);
  overflow: hidden;
  isolation: isolate;
}

/* ---- Decorative ambient glows ---- */
#services .svc-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

#services .svc-glow--a {
  width: clamp(320px, 50vw, 640px);
  aspect-ratio: 1;
  top: -12%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
}

#services .svc-glow--b {
  width: clamp(260px, 40vw, 520px);
  aspect-ratio: 1;
  bottom: -10%;
  right: -8%;
  background: radial-gradient(circle, var(--violet-glow) 0%, transparent 68%);
  opacity: 0.3;
}

/* Ensure container content sits above glows */
#services .container {
  position: relative;
  z-index: 1;
}

/* ---- Section header ---- */
#services .svc-heading {
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
  color: var(--text);
}

#services .svc-lead {
  font-size: var(--fs-lead);
  color: var(--text-dim);
  max-width: 52ch;
  line-height: 1.55;
}

/* ---- Card grid ---- */
#services .svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  list-style: none;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 860px) {
  #services .svc-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ---- Individual card ---- */
#services .svc-card {
  position: relative;
}

#services .svc-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  height: 100%;
  overflow: hidden;
  transition:
    border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
  will-change: transform;
  cursor: default;
}

#services .svc-card__inner:hover {
  border-color: var(--accent-line);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 40px var(--accent-soft);
  background: var(--surface-2);
}

/* ---- Animated corner accent bar ---- */
#services .svc-card__corner-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transition: width var(--dur-slow) var(--ease-out);
}

#services .svc-card__inner:hover .svc-card__corner-accent {
  width: 100%;
}

/* ---- Card top row: number + icon ---- */
#services .svc-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

/* Large editorial index number */
#services .svc-card__num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: var(--line-strong);
  transition: color var(--dur) var(--ease-out);
  user-select: none;
  text-transform: uppercase;
}

#services .svc-card__inner:hover .svc-card__num {
  color: var(--accent-bright);
}

/* Inline SVG icon */
#services .svc-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text-faint);
  transition:
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}

#services .svc-card__icon svg {
  width: 26px;
  height: 26px;
}

#services .svc-card__inner:hover .svc-card__icon {
  color: var(--accent-bright);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

/* ---- Card body: title + description ---- */
#services .svc-card__body {
  flex: 1;
}

#services .svc-card__title {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: var(--space-3);
  transition: color var(--dur) var(--ease-out);
}

#services .svc-card__inner:hover .svc-card__title {
  color: var(--text);
}

#services .svc-card__desc {
  font-size: var(--fs-body);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 42ch;
}

/* ---- Chip list ---- */
#services .svc-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

#services .svc-card__chips li {
  /* wrapper is a list item, chip is the styled span inside */
}

/* Override chip background to layer correctly on card surface */
#services .svc-card__chips .chip {
  background: var(--surface-3);
  border-color: var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.45em 0.85em;
  min-height: 28px;
}

#services .svc-card__inner:hover .svc-card__chips .chip {
  border-color: var(--accent-line);
  color: var(--text);
}

/* ---- Bottom CTA row ---- */
#services .svc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

#services .svc-cta__text {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--text);
}

/* ---- Responsive: 768px ---- */
@media (min-width: 641px) and (max-width: 860px) {
  #services .svc-card__num {
    font-size: clamp(3rem, 7vw, 4.5rem);
  }

  #services .svc-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Responsive: mobile (375px) ---- */
@media (max-width: 640px) {
  #services .svc-card__inner {
    gap: var(--space-4);
    padding: var(--space-5);
  }

  #services .svc-card__top {
    align-items: center;
  }

  #services .svc-card__num {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  #services .svc-card__title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  #services .svc-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  #services .svc-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Large desktop (1440+): make cards feel even bigger ---- */
@media (min-width: 1200px) {
  #services .svc-grid {
    gap: var(--space-6);
  }

  #services .svc-card__inner {
    padding: clamp(2.5rem, 3vw, 3rem);
  }
}
