/* Services section — service_sec.html
   Tokens from sec1.css. Page helpers included for Django self-containment. */

.page-section {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.page-section__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

.page-kicker {
  margin-bottom: 1rem;
  color: rgba(8, 10, 15, 0.42);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.page-sub {
  max-width: 38rem;
  margin-top: 1.4rem;
  color: rgba(8, 10, 15, 0.55);
  font-size: 1.05rem;
  line-height: 1.55;
  text-transform: none;
}

#services {
  scroll-margin-top: 1rem;
}

.services-section {
  background: var(--grad-section);
  color: var(--ink);
  padding: clamp(4.5rem, 11vh, 8.5rem) 0;
}

.services-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.services-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(8, 10, 15, 0.12);
}

.service-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-bottom: 1px solid rgba(8, 10, 15, 0.12);
  text-align: left;
  cursor: pointer;
  transition: background 0.35s ease;
}

.service-row:hover,
.service-row:focus-visible {
  background: rgba(8, 10, 15, 0.025);
  outline: none;
}

.service-row__index {
  color: rgba(8, 10, 15, 0.35);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.service-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-row:hover .service-row__title,
.service-row:focus-visible .service-row__title {
  transform: translateX(6px);
}

.service-row__copy {
  color: rgba(8, 10, 15, 0.52);
  font-size: 0.95rem;
  line-height: 1.45;
  text-transform: none;
}

.service-row__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(8, 10, 15, 0.18);
  color: var(--ink);
  font-size: 1.1rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.service-row:hover .service-row__action,
.service-row:focus-visible .service-row__action {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  transform: rotate(45deg);
}

@media (max-width: 960px) {
  .service-row {
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: 0.85rem 1rem;
  }

  .service-row__copy {
    grid-column: 2 / 3;
  }

  .service-row__action {
    grid-row: 1 / 3;
    align-self: center;
  }
}

@media (max-width: 640px) {
  .service-row {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .service-row__action {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-row__title,
  .service-row__action {
    transition: none !important;
  }
}
