/* Services page styles — scoped to page-owned components inside main */

.services-hero {
  padding-block: var(--space-8) var(--space-9);
}

.services-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-7);
  align-items: center;
}

.services-hero__text {
  grid-column: 1 / span 7;
  min-width: 0;
}

.services-hero__eyebrow,
.services-section-kicker {
  margin: 0 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-blue);
}

.services-hero__eyebrow {
  color: var(--color-accent-lime);
}

.services-hero h1 {
  max-width: 12ch;
  margin-bottom: var(--space-5);
  color: var(--color-text-on-dark);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: var(--leading-display);
}

.services-hero__lead {
  max-width: 62ch;
  margin-bottom: var(--space-5);
  color: var(--color-text-on-dark);
  font-size: var(--text-body-large);
  line-height: var(--leading-body);
}

.services-hero__points {
  margin-bottom: 0;
}

.services-hero__media {
  grid-column: 8 / span 5;
  min-width: 0;
}

.services-hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: contrast(1.05);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-subtle);
}

.services-overview {
  background-color: var(--color-bg-base);
}

.services-overview__intro,
.services-detail__intro,
.services-process__intro,
.services-why__intro {
  max-width: 720px;
  margin-bottom: var(--space-7);
}

.services-overview__lead,
.services-detail__lead,
.services-process__lead {
  margin-bottom: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-body-large);
  line-height: var(--leading-body);
}

.services-overview__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.services-overview__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-5);
}

.services-overview__card h3 {
  margin: 0;
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
}

.services-overview__card p {
  max-width: 34ch;
  margin: 0;
  color: var(--color-ink-muted);
  line-height: var(--leading-body);
}

.services-overview__card .content-list {
  margin-top: auto;
  margin-bottom: 0;
}

.services-overview__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--color-accent-blue);
  background-color: rgba(62, 99, 200, 0.1);
  border-radius: var(--radius-sm);
}

.services-detail {
  background-color: var(--color-surface-mid);
  background-image: linear-gradient(180deg, rgba(244, 242, 236, 0.55), rgba(244, 242, 236, 0.55));
}

.services-detail__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.services-detail__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-7);
  align-items: center;
}

.services-detail__row--reverse .services-detail__copy {
  order: 2;
}

.services-detail__row--reverse .services-detail__media {
  order: 1;
}

.services-detail__copy {
  grid-column: 1 / span 6;
  min-width: 0;
}

.services-detail__copy h3 {
  margin-bottom: var(--space-4);
}

.services-detail__copy p {
  max-width: 68ch;
  margin-bottom: var(--space-5);
  color: var(--color-ink-strong);
  line-height: var(--leading-body);
}

.services-detail__copy .content-list {
  margin-bottom: 0;
}

.services-detail__media {
  grid-column: 7 / span 6;
  min-width: 0;
}

.services-detail__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: contrast(1.03);
}

.services-detail__media--text-only {
  display: flex;
  align-items: stretch;
}

.services-detail__note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  width: 100%;
  min-height: 100%;
  padding: var(--space-6);
  background-color: var(--color-bg-base);
  border: var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.services-detail__note p {
  max-width: 46ch;
  margin: 0;
  color: var(--color-ink-muted);
  line-height: var(--leading-body);
}

.services-themed {
  padding-block: var(--space-9);
}

.services-themed__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-7);
  align-items: start;
}

.services-themed__content {
  grid-column: 1 / span 6;
  min-width: 0;
}

.services-section-kicker--dark {
  color: var(--color-accent-lime);
}

.services-themed h2,
.services-cta h2 {
  color: var(--color-text-on-dark);
}

.services-themed__lead {
  max-width: 62ch;
  margin-bottom: var(--space-6);
  color: var(--color-text-on-dark);
  font-size: var(--text-body-large);
  line-height: var(--leading-body);
}

.services-themed__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.services-themed__item h3 {
  margin-bottom: var(--space-3);
  color: var(--color-text-on-dark);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
}

.services-themed__item p {
  max-width: 62ch;
  margin-bottom: var(--space-3);
  color: rgba(244, 242, 236, 0.82);
  line-height: var(--leading-body);
}

.services-themed__item .content-list {
  margin-bottom: 0;
}

.services-themed__collage {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  min-width: 0;
}

.services-themed__collage img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: contrast(1.03);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-subtle);
}

.services-branded {
  background-color: var(--color-bg-base);
}

.services-branded__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-7);
  align-items: center;
}

.services-branded__copy {
  grid-column: 1 / span 6;
  min-width: 0;
}

.services-branded__copy p {
  max-width: 68ch;
  margin-bottom: var(--space-5);
  color: var(--color-ink-muted);
  line-height: var(--leading-body);
}

.services-branded__copy .content-list {
  margin-bottom: 0;
}

.services-branded__media {
  grid-column: 7 / span 6;
  min-width: 0;
}

.services-branded__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: contrast(1.03);
}

.services-process {
  background-color: var(--color-surface-mid);
  background-image: linear-gradient(180deg, rgba(244, 242, 236, 0.55), rgba(244, 242, 236, 0.55));
}

.services-process__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process-step;
}

.services-process__step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-5);
  background-color: var(--color-bg-base);
  border: var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.services-process__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-body);
  color: var(--color-text-on-accent);
  background-color: var(--color-accent-blue);
  border-radius: var(--radius-sm);
}

.services-process__step h3 {
  margin: 0;
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
}

.services-process__step p {
  max-width: 42ch;
  margin: 0;
  color: var(--color-ink-muted);
  line-height: var(--leading-body);
}

.services-why {
  background-color: var(--color-bg-base);
}

.services-why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.services-why__benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-6);
  text-align: center;
  background-color: var(--color-bg-base);
  border: var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.services-why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  color: var(--color-accent-blue);
  background-color: rgba(62, 99, 200, 0.1);
  border-radius: var(--radius-sm);
}

.services-why__benefit h3 {
  margin: 0;
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
}

.services-why__benefit p {
  max-width: 38ch;
  margin: 0;
  color: var(--color-ink-muted);
  line-height: var(--leading-body);
}

.services-why__benefit .content-list {
  align-items: center;
  margin: 0;
  text-align: left;
}

.services-cta {
  padding-block: var(--space-9);
}

.services-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.services-cta__message {
  max-width: 56ch;
  margin: 0;
  color: rgba(244, 242, 236, 0.85);
  font-size: var(--text-body-large);
  line-height: var(--leading-body);
}

.services-cta__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin: 0;
}

.services-cta__contacts a {
  color: var(--color-text-on-dark);
  font-weight: 600;
  text-decoration-color: rgba(244, 242, 236, 0.5);
}

.services-cta__contacts a:hover {
  color: var(--color-accent-lime);
}

@media (max-width: 63.9375rem) {
  .services-hero__grid,
  .services-themed__grid,
  .services-branded__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .services-hero__text,
  .services-hero__media,
  .services-themed__content,
  .services-themed__collage,
  .services-branded__copy,
  .services-branded__media {
    grid-column: 1 / -1;
  }

  .services-hero__media {
    order: 2;
  }

  .services-overview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-detail__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .services-detail__copy,
  .services-detail__media {
    grid-column: 1 / -1;
  }

  .services-detail__row--reverse .services-detail__copy {
    order: 1;
  }

  .services-detail__row--reverse .services-detail__media {
    order: 2;
  }

  .services-process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 47.9375rem) {
  .services-hero {
    padding-block: var(--space-7) var(--space-8);
  }

  .services-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3rem);
  }

  .services-hero__lead {
    font-size: var(--text-body);
  }

  .services-overview__grid,
  .services-process__steps,
  .services-why__grid {
    grid-template-columns: 1fr;
  }

  .services-overview__intro,
  .services-detail__intro,
  .services-process__intro,
  .services-why__intro {
    margin-bottom: var(--space-6);
  }

  .services-overview__lead,
  .services-detail__lead,
  .services-process__lead {
    font-size: var(--text-body);
  }

  .services-themed__collage {
    grid-template-columns: 1fr;
  }

  .services-themed__collage img {
    min-height: 0;
  }

  .services-why__benefit {
    align-items: flex-start;
    text-align: left;
  }

  .services-why__benefit .content-list {
    align-items: flex-start;
  }

  .services-cta__inner {
    align-items: stretch;
    text-align: left;
  }

  .services-cta__contacts {
    justify-content: flex-start;
  }

  .services-cta .btn {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-overview__card,
  .services-why__benefit {
    transition: none;
  }
}
