/* Services page - centered table layout */

body {
  background: #fff url('../circles.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

@media (pointer: coarse) {
  body {
    background: #fff;
  }

  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../circles.webp') center / cover no-repeat;
    z-index: -1;
    pointer-events: none;
  }
}



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 - desktop only */
.circles-background {
  display: none !important;
}

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

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

.service-row {
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: none;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.service-header {
  display: grid;
  grid-template-columns: 32px 140px 1fr auto;
  align-items: baseline;
  gap: 20px;
}

@media (min-width: 769px) {
  .service-row:hover {
    transform: translateY(-3px);
    border-top-color: #000;
  }

  .service-row:first-child:hover {
    border-top-color: #000;
  }

  .service-row:hover+.service-row {
    border-top-color: #000;
  }

  .service-row:last-child:hover {
    border-bottom-color: #000;
  }

  .service-row:hover .service-number {
    color: #000;
  }

  .service-row:hover .service-meta {
    color: #555;
  }

  .service-row:hover .service-detail {
    color: #555;
  }
}

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

.service-row:last-child {
  border-bottom: 1px solid #e0e0e0;
  transition: transform 0.3s ease, border-color 0.3s ease, border-bottom-color 0.3s ease;
}

.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: 12px;
  font-weight: 400;
  color: #bbb;
  text-align: right;
}

/* Accordion Content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion-inner {
  padding: 15px 0 10px 192px;
  /* aligns with service name: 32+20+140 */
}

.accordion-description {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 8px;
  max-width: 400px;
}

.accordion-price {
  font-size: 12px;
  color: #000;
  font-weight: 500;
}

/* 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 .arrow {
  display: inline-block;
  transition: transform 0.5s ease;
}

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

.cta-link:hover .arrow {
  transform: translateX(2px);
}

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

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

  .service-header {
    grid-template-columns: 30px 120px 1fr auto;
    gap: 16px;
  }

  .accordion-inner {
    padding-left: 166px;
  }

  .service-name {}

  .service-detail {}
}

/* Mobile */
@media (max-width: 768px) {

  body {
    overflow: auto;
    height: auto;
  }

  main {
    flex: 1;
    min-height: 0;
    padding: 10px 20px;
    align-items: flex-start;
    justify-content: center;
  }



  .services-wrapper {
    max-width: 100%;
    padding-top: 0;
  }

  .services-heading {
    margin: 0 0 10px 0;
  }

  .services-table {
    width: 100%;
  }

  /* Stacked layout on mobile */
  .service-row {
    display: block;
    padding: 8px 0;
    border-top: 1px solid #e0e0e0;
  }

  .service-header {
    display: block;
  }

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

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

  .service-number {
    color: #999;
    letter-spacing: 0.5px;
    display: inline;
  }

  .service-meta {
    color: #999;
    letter-spacing: 0.3px;
    display: inline;
    margin-left: 8px;
  }

  .service-name {
    letter-spacing: -0.3px;
    display: block;
    margin-top: 3px;
  }

  .service-detail {
    text-align: left;
    color: #aaa;
    display: block;
    margin-top: 1px;
  }

  .accordion-inner {
    padding-left: 0;
    padding-top: 8px;
  }

  .accordion-description {}

  .accordion-price {}

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

  .cta-link {}
}

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

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

  .services-heading {
    margin: 0 0 10px 0;
  }

  .service-row {
    padding: 9px 0;
  }

  .service-name {}

  .service-detail {}

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

  .cta-link {}
}