/* Services page - centered table layout */

body {
  overflow: hidden;
}

header {
  z-index: 10;
}

footer {
  padding: 15px 40px;
  position: relative;
  z-index: 10;
  margin-top: -60px;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  overflow: visible;
}

/* Wrapper for vertical centering */
.services-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 800px;
  width: 100%;
  position: relative;
}

/* Circles background */
.circles-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180%;
  height: auto;
  z-index: -1;
  pointer-events: none;
}

/* Services heading */
.services-heading {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: #000;
  margin: 0 0 20px 0;
}

/* Services table */
.services-table {
  width: 100%;
}

.service-row {
  display: grid;
  grid-template-columns: 32px 140px 1fr auto;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 20px;
}

.service-row:first-child {
  border-top: 1px solid #e0e0e0;
}

.service-row:last-child {
  border-bottom: 1px solid #e0e0e0;
}

.service-number {
  font-size: 10px;
  font-weight: 400;
  color: #ccc;
  font-variant-numeric: tabular-nums;
}

.service-meta {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #999;
  text-transform: lowercase;
}

.service-name {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: #000;
}

.service-detail {
  font-size: 11px;
  font-weight: 400;
  color: #bbb;
  text-align: right;
}

/* CTA row */
.cta-row {
  margin-top: 24px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.cta-link {
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.cta-link:hover {
  border-bottom-color: #1a1a1a;
}

/* Tablet */
@media (max-width: 1024px) {
  main {
    padding: 30px;
  }

  .services-wrapper {
    max-width: 560px;
  }

  .service-row {
    grid-template-columns: 30px 120px 1fr auto;
    gap: 16px;
    padding: 11px 0;
  }

  .service-name {
    font-size: 18px;
  }

  .service-detail {
    font-size: 10px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  main {
    padding: 20px;
    align-items: flex-start;
    padding-top: 40px;
    overflow: hidden;
  }

  footer {
    gap: 5px;
    text-align: center;
  }

  .services-wrapper {
    max-width: 100%;
    padding-top: 20px;
    overflow: hidden;
  }

  /* Scale circle to fit and complement table */
  .circles-background {
    width: 250%;
    left: 50%;
    opacity: 0.8;
  }

  .services-heading {
    font-size: 28px;
    margin: 0 0 16px 0;
  }

  .services-table {
    width: 100%;
  }

  .service-row {
    display: grid;
    grid-template-columns: 20px 90px 1fr auto;
    gap: 8px;
    padding: 10px 0;
  }

  .service-number {
    font-size: 9px;
  }

  .service-meta {
    font-size: 8px;
  }

  .service-name {
    font-size: 14px;
  }

  .service-detail {
    display: block;
    font-size: 8px;
    text-align: right;
    white-space: nowrap;
  }

  .cta-row {
    margin-top: 20px;
  }

  .cta-link {
    font-size: 12px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  main {
    padding: 15px;
  }

  .services-wrapper {
    padding-top: 15px;
  }

  .circles-background {
    width: 300%;
  }

  .services-heading {
    font-size: 24px;
  }

  .service-row {
    grid-template-columns: 18px 75px 1fr auto;
    gap: 6px;
    padding: 9px 0;
  }

  .service-number {
    font-size: 8px;
  }

  .service-meta {
    font-size: 7px;
  }

  .service-name {
    font-size: 13px;
  }

  .service-detail {
    font-size: 7px;
  }

  .cta-row {
    margin-top: 16px;
  }

  .cta-link {
    font-size: 11px;
  }
}
