/* ── Services Accordion — [services] shortcode (Services page) ──
   Light-green one-open accordion: Harlow .heading-md title row with the
   Figma chevron right-aligned, two-column bullet body in .body-lg.
   Markup: inc/services-accordion.php · behavior: js/services-accordion.js */

.svc-accordion {
  display: flex;
  flex-direction: column;
  gap: 2rem;                       /* transparent space between items */
  width: 100%;
}

.svc-accordion__item {
  background: var(--light-green);
  border-radius: 0.5rem;
  color: var(--darkest-green);
  overflow: hidden;
}

/* ≥981px — items round on the left only (right edge runs to the bleed) */
@media (min-width: 981px) {
  .svc-accordion__item { border-radius: 1.5625rem 0 0 1.5625rem; }
}

/* ── Title row — text inset 3rem left, chevron inset 10% right ── */
.svc-accordion__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 10% 1.5rem 3rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.svc-accordion__icon svg {
  display: block;
  width: 1.875rem;
  height: auto;
  transition: transform 0.3s ease;
}
/* provided SVG points up = open; closed flips it down */
.svc-accordion__item:not(.is-open) .svc-accordion__icon svg { transform: rotate(180deg); }

/* ── Panel — grid-rows trick animates open/close without max-height ──
   min-height: 0 on the child is REQUIRED: grid items default to
   min-height auto, which stops the 0fr track from collapsing. */
.svc-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.svc-accordion__item.is-open .svc-accordion__panel { grid-template-rows: 1fr; }
.svc-accordion__panel > .svc-accordion__body {
  overflow: hidden;
  min-height: 0;
}

/* Padding lives on the INNER wrapper — on .svc-accordion__body it would
   floor the collapsed height at the padding size and let the first line
   of content peek out of a closed item (overflow clips at the padding
   edge, not the content edge).
   Right inset matches the chevron's 10%; bottom space mirrors the
   1.5rem above the title. */
.svc-accordion__body-inner { padding: 0 10% 1.5rem 3rem; }

/* ── Bullets — two columns, 3rem apart, middot markers ── */
.svc-accordion__body ul {
  column-count: 2;
  column-gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.svc-accordion__body li {
  break-inside: avoid;
  position: relative;
  padding-left: 1.1em;
  margin-bottom: 0.4em;
}
.svc-accordion__body li::before {
  content: "\00B7";
  position: absolute;
  left: 0.25em;
  font-weight: 700;
}

/* links anywhere in the accordion (title or body) default to
   darkest green + underline */
.svc-accordion a {
  color: var(--darkest-green);
  text-decoration: underline;
}

/* ── ≤980px — full-width items, single bullet column, tighter gap ── */
@media (max-width: 980px) {
  .svc-accordion { gap: 1.25rem; }
  .svc-accordion__body ul { column-count: 1; }
}
