/* A visual introduction to the services, using the portfolio's own imagery. */
.services-page .service-overview .service {
  min-width: 0;
  padding: 24px 24px 30px;
}

.services-page .service-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  background: #10181f;
  border: 1px solid var(--line);
}

.services-page .service-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-page .service-media-social img {
  object-fit: cover;
}

.services-page .service-overview h3 {
  margin-top: 16px;
}

.services-page .service-overview p {
  max-width: none;
  margin-bottom: 0;
}

.services-page .process-step {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.services-page .process-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: var(--action-text);
}

.services-page .process-icon rect {
  fill: var(--bg);
}

.services-page .faq-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.services-page .faq-item {
  border-bottom: 1px solid var(--line);
}

.services-page .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
}

.services-page .faq-item summary::-webkit-details-marker {
  display: none;
}

.services-page .faq-item summary::marker {
  content: "";
}

.services-page .faq-item summary:focus-visible {
  outline: 2px solid var(--action-text);
  outline-offset: 4px;
}

.services-page .faq-item h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.services-page .faq-chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--action-text);
  transition: transform .2s ease, color .2s ease;
}

.services-page .faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--action-text);
}

.services-page .faq-item summary:hover .faq-chevron {
  color: var(--action-text);
}

.services-page .faq-item .page-copy {
  margin: 0;
  padding-block-end: 24px;
  padding-inline-end: 44px;
}

@media (max-width: 800px) {
  .services-page .service-media-social img {
    object-fit: contain;
  }

  .services-page .service-overview .service {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    column-gap: 28px;
    align-items: start;
    padding: 28px 0;
  }

  .services-page .service-media {
    grid-row: 1 / span 3;
    margin-bottom: 0;
  }

  .services-page .service-overview h3 {
    margin-top: 12px;
  }

  .services-page .service-overview p {
    margin-top: 12px;
  }

  .services-page .service-process .service {
    padding-block: 26px;
  }
}

@media (max-width: 560px) {
  .services-page .faq-item summary {
    gap: 18px;
    padding-block: 18px;
  }

  .services-page .faq-item h3 {
    font-size: 18px;
  }

  .services-page .faq-item .page-copy {
    padding-inline-end: 0;
  }

  .services-page .service-overview .service {
    display: block;
  }

  .services-page .service-media {
    aspect-ratio: 16 / 9;
    margin-bottom: 22px;
  }

  .services-page .service-overview h3 {
    margin-top: 14px;
  }
}

/* Keep service cards readable at the tablet transition. */
@media (max-width: 800px) {
  .services-page .service-overview { grid-template-columns: 1fr; }
}
