.services-section { padding-block: var(--section-space); }
.services-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-8); }
.service-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 260px; padding: var(--space-8); border: 1px solid var(--color-outline); border-radius: var(--radius-card); background: var(--color-pink-soft); }
.service-tile:nth-child(3n + 2) { background: var(--color-ink); color: var(--color-white); }
.service-tile:nth-child(3n) { background: var(--color-pink); }
.service-tile__icon { width: 48px; height: 48px; object-fit: contain; margin-bottom: var(--space-8); }
.service-tile h3 { font-size: var(--text-h5); line-height: var(--leading-h5); font-weight: var(--font-weight-medium); margin: 0; }
.service-tile h3 a { text-decoration: none; }
.service-tile h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.service-tile p { font-size: var(--text-section-body); line-height: var(--leading-body); margin: var(--space-5) 0; }
.service-tile__more { font-size: var(--text-micro); margin-top: auto; padding-top: var(--space-8); align-self: flex-end; }
.service-tile--cards { background: var(--color-white); color: var(--color-ink); min-height: 220px; }
.service-tile--cards:nth-child(n) { background: var(--color-white); color: var(--color-ink); }
.service-tile--cards h3 { font-size: var(--text-h6); line-height: var(--leading-h6); }
.service-group { padding: var(--space-8); border-radius: var(--radius-card); background: var(--color-ink); color: var(--color-white); }
.service-group header { display: flex; align-items: center; gap: var(--space-5); padding-bottom: var(--space-6); border-bottom: 1px solid rgb(255 255 255 / 20%); }
.service-group__icon { width: 36px; height: 36px; object-fit: contain; }
.service-group h3 { font-size: var(--text-h6); line-height: var(--leading-h6); font-weight: var(--font-weight-medium); margin: 0; }
.service-group ul { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-3); }
.service-group a { display: inline-block; text-decoration: none; }
.service-group li a { padding-block: var(--space-2); font-size: var(--text-small); line-height: var(--leading-body); }
.service-group a:hover { color: var(--color-pink); text-decoration: underline; }
@media(max-width:1000px) { .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) { .services-grid { grid-template-columns: 1fr; } .service-tile { min-height: 180px; } .service-tile--cards { min-height: 0; } }
/* The source tile rows have distinct proportions, rather than three equal columns. */
.services-section--tiles .services-grid { display: grid; grid-template-columns: 1fr; }
.services-row { display: grid; grid-template-columns: minmax(0,259fr) minmax(0,456fr) minmax(0,349fr); gap: var(--space-8); }
.services-row:nth-child(even) { grid-template-columns: minmax(0,237fr) minmax(0,298fr) minmax(0,529fr); }
.services-row--1, .services-row--1:nth-child(even) { grid-template-columns: 1fr; }
.services-row--2, .services-row--2:nth-child(even) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.services-section--tiles .service-tile:nth-child(n) { background: var(--color-pink); color: var(--color-ink); min-height: 260px; border: 0; }
.services-section--tiles .service-tile h3 { font-size: var(--text-h6); line-height: var(--leading-h6); }
.service-tile__more { align-self: flex-start; font-size: var(--text-small); line-height: var(--leading-body); padding-top: 0; }
.service-group { padding: 28px; }
.service-group header { gap: var(--space-5); }
.service-group__icon { width: 40px; height: 40px; padding: var(--space-3); object-fit: contain; border-radius: var(--radius-circle); background: color-mix(in srgb,var(--color-white) 8%,transparent); }
@media(max-width:767px) { .services-row, .services-row:nth-child(even) { grid-template-columns: 1fr; } .services-section--tiles .service-tile:nth-child(n) { min-height: 80px; padding: var(--space-5) var(--space-8); } }

/* Figma 273:6419: staggered columns, compact type and original link glyphs. */
.services-section--directory .section-heading { margin-bottom: var(--space-9); }
.services-section--directory .services-grid { align-items: start; row-gap: var(--space-8); }
.services-section--directory .services-grid.is-masonry { grid-auto-rows: 1px; row-gap: 0; }
.service-group { display: block; min-width: 0; box-shadow: 0 4px 9.8px var(--color-pink-overlay); }
.service-group header { padding-bottom: 0; border-bottom: 0; }
.service-group h3 { font-size: var(--text-base); line-height: var(--leading-body); font-weight: var(--font-weight-bold); }
.service-group ul { display: grid; gap: var(--space-3); margin: 0; padding-inline: var(--space-7); }
.service-group li a { display: flex; align-items: center; gap: var(--space-3); padding: 0; font-size: var(--text-small); line-height: var(--leading-micro); font-weight: var(--font-weight-regular); min-height: 24px; }
.service-group li a::before { content: ''; flex: 0 0 24px; width: 24px; height: 24px; background: url('../../assets/sections/service-chevron.svg') center/24px 24px no-repeat; }
.service-group__more { display: flex !important; align-items: center; justify-content: flex-end; gap: var(--space-3); font-size: var(--text-micro); line-height: var(--leading-micro); font-weight: var(--font-weight-medium); }
.service-group__more::after { content: ''; width: 24px; height: 24px; background: url('../../assets/sections/service-arrow.svg') center/24px 24px no-repeat; }

.services-section--tiles .section-heading { flex-direction: row-reverse; align-items: center; }
.services-section--tiles .section-heading > div { max-width: 423px; }
.services-section--tiles .service-tile:nth-child(n) { color: var(--color-white); border-radius: var(--space-6); }
.services-section--tiles .service-tile h3 { font-weight: var(--font-weight-bold); }
.services-section--tiles .service-tile__more { text-decoration: underline; }
@media(max-width:767px) {
  .services-section--tiles .section-heading { flex-direction: column; align-items: flex-start; }
  .services-section--tiles .section-heading > div { max-width: none; }
  .services-section--tiles .section-heading .section-link { min-height: 48px; }
  .services-row:first-child .service-tile:first-child h3 { max-width: 180px; }
}
@media(min-width:768px) { .services-section--tiles .section-heading h2 { text-align: right; text-wrap: balance; } }
.service-group li a { max-width: 218px; }
.service-group summary { display: flex; align-items: center; gap: var(--space-5); list-style: none; }
.service-group summary::-webkit-details-marker { display: none; }
.service-group__body { display: grid; gap: var(--space-8); margin-top: var(--space-8); }
.service-group__icon { background: var(--color-white); }
@media(min-width:768px) { .service-group summary { cursor: default; } }
@media(max-width:767px) {
  .services-section--directory .section-heading { margin-bottom: var(--space-8); }
  .service-group { display: block; padding: var(--space-8); }
  .service-group summary { cursor: pointer; }
  .service-group summary h3 { flex: 1; }
  .service-group summary::after { content: ''; width: 20px; height: 20px; flex: 0 0 20px; background: url('../../assets/sections/faq-chevron.svg') center/20px 20px no-repeat; filter: brightness(0) invert(1); }
  .service-group[open] summary::after { transform: rotate(180deg); }
  .service-group ul { padding-inline: 0; }
  .service-group li a { max-width: none; }
  .service-group__more { justify-content: flex-start; font-size: var(--text-small); }
  .service-group__more::after { display: none; }
}

.service-cards-carousel { position: relative; }
.service-cards { gap: 0; padding-bottom: 0; scrollbar-width: none; }
.service-cards > .service-tile { flex: 0 0 calc(100% / 3); padding: var(--space-9); min-height: 241px; border: 0; border-radius: 0; background: transparent; }
.service-tile__header { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: var(--space-7); }
.service-tile__header .card-number { font-size: var(--text-number-small); line-height: var(--leading-number-small); font-weight: var(--font-weight-bold); color: var(--color-pink); }
.service-tile--cards h3 { font-weight: var(--font-weight-bold); }
.service-tile--cards p { margin: var(--space-5) 0 0; color: var(--color-text-secondary); }
.service-cards-carousel .carousel-controls { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); justify-content: space-between; pointer-events: none; margin: 0; }
.service-cards-carousel .carousel-controls button { width: 48px; height: 48px; pointer-events: auto; }
.service-cards-carousel .carousel-controls button:disabled { visibility: hidden; }
.service-cards-carousel .carousel-controls button img { width: 20px; height: 20px; transform: none; }
.services-section--related .services-grid { gap: var(--space-10); }
.service-tile--related:nth-child(n) { padding: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; color: var(--color-ink); }
.service-tile--related h3 { font-size: var(--text-h3); line-height: var(--leading-h3); }
.service-tile--related p { margin: var(--space-5) 0 var(--space-8); }
.service-tile--related p { color: var(--color-text-secondary); }
.service-tile__detail { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--text-small); line-height: var(--leading-body); font-weight: var(--font-weight-medium); }
.service-tile__detail::after { content: ''; width: 24px; height: 24px; background: url('../../assets/sections/service-arrow.svg') center/24px 24px no-repeat; filter: brightness(0); }
@media(max-width:1000px) and (min-width:768px) { .service-cards > .service-tile { flex-basis: 50%; } }
@media(max-width:767px) {
  .service-cards > .service-tile { flex-basis: 100%; padding: var(--space-8); }
  .service-tile--cards p { font-size: var(--text-small); line-height: var(--leading-body); }
  .services-section--related .services-grid { gap: var(--space-8); }
  .service-tile--related h3 { font-size: var(--text-h6); line-height: var(--leading-h6); font-weight: var(--font-weight-bold); }
  .service-tile--related p { margin-bottom: var(--space-6); }
}

.service-cards { width: calc(100% - 48px); }
@media(max-width:767px) {
  .service-cards { width: calc(100% - 72px); }
  .service-cards > .service-tile { padding: 0; min-height: 0; gap: var(--space-3); }
  .service-tile__header { display: contents; }
  .service-tile__header .feature-icon { order: -1; margin-bottom: var(--space-1); }
  .service-tile__header .card-number { font-size: var(--text-metric); line-height: var(--leading-number-medium); }
  .service-tile--cards p { font-size: var(--text-base); line-height: var(--leading-body); margin: 0; }
}
.services-section--cards .section-heading p { margin-top: var(--space-5); }
@media(max-width:767px) { .services-section--cards .section-heading p { margin-top: var(--space-8); } }

/* Optional service artwork travels from the pointer's entry edge to the center. */
.service-tile[data-service-hover] { overflow: hidden; }
.service-tile__hover-icon { position: absolute; left: 50%; top: 50%; width: var(--service-hover-width, 139px); height: var(--service-hover-height, 106px); transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.service-tile__hover-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.service-tile[data-service-hover] h3, .service-tile[data-service-hover] .service-tile__more { z-index: 1; }
.service-tile[data-service-hover] h3 a::after { z-index: 2; }
.service-tile[data-service-hover]:focus-within .service-tile__hover-icon { opacity: 1; }
@media (max-width: 767px) { .service-tile__hover-icon { display: none; } }
