/* ==========================================================================
   Services page (services.html)
   Depends on: variables.css, base.css, header.css, footer.css, style.css
   ========================================================================== */

.services-hero .hero__title {
  line-height: 100px;
}

/* desktop decorations (the sparkle stays on phones, placed in style.css) */
@media (min-width: 1201px) {
  .services-hero .hero__cursor {
    top: 99px;
    left: 314px;                 /* Figma: 214px inside the 100px-inset text box */
  }

  .services-hero .hero__sparkle {
    top: 32px;
  }
}

/* the list sits on white, covering the hero grid lines (as in Figma) */
.service-list {
  position: relative;
  margin-top: -40px;             /* Figma: 60px from the hero text, page gap is 100px */
  background: var(--color-white);
}

.service-list__items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--color-zinc-400);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

/* hover: light brand green — keeps the duotone green/purple icons readable */
.service-row:hover {
  border-color: var(--color-main);
  background: var(--color-main-light);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -16px rgba(35, 236, 187, 0.55);
}

.service-row__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  transition: transform 0.35s ease;
}

.service-row:hover .service-row__icon {
  transform: scale(1.08) rotate(-4deg);
}

.service-row__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.service-row__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-zinc-900);
}

.service-row__text {
  color: var(--color-zinc-700);
}

@media (max-width: 1200px) {
  .services-hero .hero__title {
    line-height: var(--lh-display);
  }
}

@media (max-width: 768px) {
  .service-list {
    margin-top: -32px;
  }

  .service-list__items {
    gap: 24px;
  }

  .service-row {
    gap: 12px;
    padding: 20px;
  }

  .service-row__icon {
    width: 32px;
    height: 32px;
  }

  .service-row__body {
    gap: 12px;
  }

  .service-row__title {
    font-size: var(--fs-md);
    line-height: var(--lh-md);
  }

  /* Figma mobile: descriptions are cut after 6 lines */
  .service-row__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
    font-size: var(--fs-sm);
    line-height: var(--lh-sm);
  }
}
