/* Homepage Service Overview. Cards with the full existing copy on 768px and up; accordion on mobile.
   Uses only --ds-* tokens (design-tokens.css). Scoped under .svc so component-library.css cannot leak in. */

.svc {
  background: var(--ds-paper);
  color: var(--ds-ink);
  font-family: var(--ds-font-body);
  font-size: 17px;
  line-height: 1.6;
  padding-block: var(--ds-section-y);
}
.svc *, .svc *::before, .svc *::after { box-sizing: border-box; }
.svc__inner {
  width: 100%;
  max-width: var(--ds-container);
  margin-inline: auto;
  padding-inline: var(--ds-gutter);
}
.svc a:focus-visible, .svc summary:focus-visible { outline: 3px solid var(--ds-focus-light); outline-offset: 2px; }

/* ---------- Section heading ---------- */
.svc__head { margin: 0 0 var(--ds-s5); max-width: 40rem; }
.svc .svc__eyebrow {
  margin: 0 0 var(--ds-s3);
  font-family: var(--ds-font-body);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ds-amber-text);
}
.svc h2.svc__title-section {
  margin: 0 0 var(--ds-s4);
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: clamp(30px, calc(30px + 14 * (100vw - 768px) / 256), 44px);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: normal;
  color: var(--ds-ink);
}
.svc .svc__intro { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ds-ink-soft); }

/* ---------- List and cards (DS A13 base card + Photo card) ---------- */
.svc__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ds-s4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.svc__item {
  display: flex;
  flex-direction: column;
  background: var(--ds-white);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow-sm);
  overflow: hidden;
}
.svc__details { display: flex; flex-direction: column; flex: 1 1 auto; }

/* Mobile accordion header: the existing heading words. Hidden on wider screens (the card heading takes over). */
.svc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-s3);
  min-height: 56px;
  padding: var(--ds-s2) var(--ds-s5);
  cursor: pointer;
  list-style: none;
}
.svc__summary::-webkit-details-marker { display: none; }
.svc .svc__summary-title {
  margin: 0;
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: normal;
  color: var(--ds-ink);
}
.svc__chevron { width: 24px; height: 24px; flex: none; color: var(--ds-ink); transition: transform 200ms ease-out; }
.svc__details[open] .svc__chevron { transform: rotate(180deg); }

/* Lets the panel fill the card so "Read More" aligns across equal-height cards (browsers without ::details-content simply skip this). */
.svc__details::details-content { display: flex; flex-direction: column; flex: 1 1 auto; }
.svc__panel { display: flex; flex-direction: column; flex: 1 1 auto; }
.svc__media { display: block; }
.svc__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.svc__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: var(--ds-s5); }
/* Card heading (the existing heading with its existing link). Hidden on mobile, where the accordion header shows the same words. */
.svc .svc__card-title {
  display: none;
  margin: 0 0 var(--ds-s3);
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: normal;
}
.svc .svc__card-title a { color: var(--ds-ink); text-decoration: none; }
.svc .svc__card-title a:hover { color: var(--ds-link-hover); text-decoration: underline; text-underline-offset: 3px; }
.svc .svc__text { margin: 0 0 var(--ds-s4); color: var(--ds-ink); }
.svc .svc__link {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-s2);
  align-self: flex-start;
  min-height: 48px;
  margin-top: auto;
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ds-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.svc .svc__link:hover { color: var(--ds-link-hover); }
.svc .svc__link svg { width: 20px; height: 20px; flex: none; }

/* ---------- Tablet and up: cards, full copy always visible ---------- */
@media (min-width: 768px) {
  .svc__head { margin-bottom: var(--ds-s6); }
  .svc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-s5); }
  .svc__summary { display: none; }
  .svc .svc__card-title { display: block; }
  .svc__intro { font-size: 18px; }
}
@media (min-width: 768px) and (hover: hover) {
  .svc__item { transition: box-shadow 200ms ease-out, transform 200ms ease-out; }
  .svc__item:hover { box-shadow: var(--ds-shadow-md); transform: translateY(-2px); }
}
@media (min-width: 1024px) {
  .svc__head { margin-bottom: var(--ds-s7); }
  .svc__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc .svc__intro { font-size: 20px; }
  .svc .svc__eyebrow { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc__chevron, .svc__item { transition: none; }
  .svc__item:hover { transform: none; }
}
