/* Services-only layout. Shared button, header and footer styles stay in site.css. */
body[data-page="services"] {
  --services-section-space: clamp(48px, 6vw, 80px);
  --services-content-gap: 32px;
  --services-card-gap: 24px;
}

body[data-page="services"] .section {
  padding-block: var(--services-section-space);
}

body[data-page="services"] main :is(section[id], article[id]) {
  /* The shared html rule already reserves 110px for the sticky header. */
  scroll-margin-top: 16px;
}

body[data-page="services"] .services-head {
  padding-block: 48px 56px;
}

body[data-page="services"] .services-hero-copy {
  display: grid;
  justify-items: start;
  gap: 20px;
  max-width: 760px;
  min-width: 0;
}

body[data-page="services"] .services-hero-copy > * {
  margin: 0;
}

body[data-page="services"] .services-hero-copy .lead {
  max-width: 34ch;
}

body[data-page="services"] .services-summary {
  max-width: 58ch;
  color: var(--ink-soft);
}

body[data-page="services"] .services-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-block: 8px;
  max-width: 100%;
}

body[data-page="services"] .services-start {
  padding-block: 40px;
}

body[data-page="services"] .services-start-copy {
  display: grid;
  gap: 16px;
  max-width: 64ch;
}

body[data-page="services"] .services-start-copy > * {
  margin: 0;
}

body[data-page="services"] .services-start-copy h2 {
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.25;
}

body[data-page="services"] .services-start-copy > p:last-child {
  color: var(--ink-soft);
}

body[data-page="services"] .services-subnav {
  background: var(--light);
  border-block: 1px solid var(--surface);
}

body[data-page="services"] .services-subnav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 16px;
}

body[data-page="services"] .services-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
}

body[data-page="services"] .services-subnav a:hover,
body[data-page="services"] .services-subnav a:active {
  color: var(--ink);
  background: var(--base);
  text-decoration: underline;
  text-underline-offset: 4px;
}

body[data-page="services"] .services-subnav a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

body[data-page="services"] .section-head {
  display: grid;
  gap: 16px;
  margin: 0 0 var(--services-content-gap);
}

body[data-page="services"] .section-head > * {
  margin: 0;
  max-width: 64ch;
}

body[data-page="services"] .services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--services-card-gap);
  align-items: stretch;
}

body[data-page="services"] .service-card {
  display: flex;
  flex-direction: column;
  gap: var(--services-card-gap);
  height: 100%;
  min-width: 0;
  padding: 28px;
}

body[data-page="services"] .service-card-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

body[data-page="services"] .service-card-content > * {
  margin: 0;
}

body[data-page="services"] .service-card h3 {
  font-size: 25px;
  line-height: 1.25;
}

body[data-page="services"] .service-card ul {
  padding-left: 20px;
}

body[data-page="services"] .service-actions {
  margin-top: auto;
  padding-bottom: 8px;
}

body[data-page="services"] .service-actions .button {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

body[data-page="services"] .services-footnote {
  margin: var(--services-content-gap) 0 0;
  max-width: 80ch;
}

body[data-page="services"] :is(.reasons-grid, .service-process) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--services-content-gap);
}

body[data-page="services"] :is(.reasons-grid article, .service-process li > div, .service-details article) {
  min-width: 0;
}

body[data-page="services"] .service-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--services-content-gap) 48px;
}

body[data-page="services"] .services-contact .two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}

body[data-page="services"] .services-contact .two-col > * {
  min-width: 0;
}

body[data-page="services"] .services-contact .contact-value {
  overflow-wrap: anywhere;
}

body[data-page="services"] .services-contact .copy-button {
  max-width: 100%;
  white-space: normal;
}

body[data-page="services"] .services-contact .help-wayfinding {
  margin-top: var(--services-content-gap);
  padding-top: var(--services-content-gap);
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  body[data-page="services"] :is(.services-grid, .reasons-grid, .service-process) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  body[data-page="services"] .services-contact .two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--services-content-gap);
  }
  body[data-page="services"] .service-details {
    column-gap: var(--services-card-gap);
  }
}

@media (max-width: 600px) {
  body[data-page="services"] {
    --services-content-gap: 28px;
  }
  body[data-page="services"] .services-head {
    padding-block: 32px 40px;
  }
  body[data-page="services"] .services-hero-copy .lead {
    font-size: 22px;
  }
  body[data-page="services"] .services-hero-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }
  body[data-page="services"] .services-hero-actions .button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  body[data-page="services"] .services-start {
    padding-block: 32px;
  }
  body[data-page="services"] .services-subnav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }
  body[data-page="services"] .services-subnav a {
    padding-inline: 8px;
    min-width: 0;
  }
  body[data-page="services"] :is(.services-grid, .reasons-grid, .service-process, .service-details) {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-page="services"] .service-card {
    padding: 24px;
  }
}
