.apple .services-apple {
  width: min(100%, var(--site-max-width, 1180px));
  max-width: var(--site-max-width, 1180px);
  margin: var(--stitch-section-space, 72px) auto 0;
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line-color);
  border-radius: var(--section-radius, 16px);
  background: var(--surface-color);
  color: var(--text-color);
  box-sizing: border-box;
}

.apple .services-apple--full {
  width: 100%;
  max-width: 100%;
}

.apple .services-apple--centered {
  width: min(100%, var(--site-max-width, 1180px));
  max-width: var(--site-max-width, 1180px);
}

.apple .services-apple--shadow {
  box-shadow: 0 22px 48px var(--theme-shadow-color);
}

.apple .services-apple__hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: end;
}

.apple .services-apple__heroLeft {
  min-height: 240px;
  max-height: 360px;
  overflow: hidden;
  border-radius: calc(var(--section-radius, 16px) - 2px);
  background: var(--line-color);
}

.apple .services-apple__heroLeft--placeholder {
  background:
    linear-gradient(135deg, var(--surface-muted-color), var(--line-color));
}

.apple .services-apple__heroImage {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 360px;
  object-fit: cover;
}

.apple .services-apple__heroRight {
  align-items: flex-end;
}

.apple .services-apple__title {
  max-width: 13ch;
  margin: 0;
  color: var(--text-color);
  font-weight: var(--theme-title-font-weight, 700);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.apple .services-apple__divider {
  width: 100%;
  height: 1px;
  margin: clamp(26px, 4vw, 42px) 0;
  background: var(--line-color);
}

.apple .services-apple__info {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.25fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  margin: 0;
}

.apple .services-apple__subtitle {
  max-width: 18ch;
  margin: 0;
  color: var(--text-color);
  font-weight: var(--theme-title-font-weight, 700);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.apple .services-apple__content {
  max-width: 68ch;
  color: var(--muted-text-color);
  line-height: 1.65;
}

.apple .services-apple__content :where(p) {
  margin: 0 0 12px;
}

.apple .services-apple__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.apple .services-apple__button,
.apple .services-apple__learnmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: var(--theme-body-font-size, 16px);
  font-weight: var(--theme-title-font-weight, 700);
  text-decoration: none;
}

.apple .services-apple__button {
  background: var(--button-color);
  color: var(--button-text-color, var(--inverse-text-color));
  box-shadow: 0 14px 26px color-mix(in srgb, var(--button-color) 24%, transparent);
}

.apple .services-apple__learnmore {
  color: var(--text-color);
  background: var(--surface-muted-color);
}

.apple .services-apple__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 320px));
  gap: 12px;
  justify-content: center;
  justify-items: stretch;
  margin-top: clamp(28px, 5vw, 46px);
}

.apple .services-apple__card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line-color);
  border-radius: 12px;
  background: var(--surface-color);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.apple .services-apple__card:hover {
  border-color: var(--line-color);
  box-shadow: 0 16px 34px var(--theme-shadow-color);
  transform: translateY(-2px);
}

.apple .services-apple__circle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-color) !important;
  border-radius: 999px;
  background: var(--surface-muted-color);
  color: var(--text-color) !important;
}

.apple .services-apple__icon {
  font-size: var(--theme-body-font-size, 16px);
}

.apple .services-apple__cardTitle {
  color: var(--text-color) !important;
  font-size: var(--theme-subtitle-font-size, 20px);
  font-weight: var(--theme-title-font-weight, 700);
  line-height: 1.2;
}

.apple .services-apple__cardDesc {
  color: var(--muted-text-color) !important;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .apple .services-apple__hero,
  .apple .services-apple__info {
    grid-template-columns: 1fr;
  }

  .apple .services-apple__grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}
