/*
 * Watervale Search Partners: layout fixes (fleet-operator, 2026-10-23, Alexander-approved).
 * Loaded after style.css and wsp-menu.css. Layout only: no copy, no colour changes.
 * Rollback: restore functions.php from /root/restore-points/watervale-fixes-20261023/.
 */

/* 1. Team cards: side by side from 720 px up, stacked only on phones.
      style.css ends with an un-wrapped `.team-duo__grid { grid-template-columns: 1fr }`
      (its @media wrapper was lost), which stacked the cards at every width. */
.team-duo__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  margin: 0;
}
@media (max-width: 719.98px) {
  .team-duo__grid { grid-template-columns: 1fr; }
}

/* 2. Team heading: left-aligned on the wrap edge like every other section heading. */
.team-duo__head {
  text-align: start;
  max-width: 640px;
  margin: 0 0 48px;
}

/* 5. Role line (and bio) centred with the card: the inherited paragraph max-width
      left the box hugging the card's left edge. */
.team-duo__role,
.team-duo__bio {
  margin-left: auto;
  margin-right: auto;
}
.team-duo__role { max-width: none; }

/* 3. First band on each service page: the site's section rhythm (--pad: 128 px desktop, 72 px phone). */
.service-detail {
  padding: var(--pad) 0;
}

/* 4. Inner-page titles on phones: clear the transparent header like the homepage hero
      (76 px header + 40 px air, so the first line sits 56 px under the logo). */
@media (max-width: 768px) {
  .page-hero { padding-top: calc(76px + 40px); }
}

/* 6. About page rethink (fleet-operator, 2026-10-23, Alexander-approved). Append-only.
      Bands reuse the homepage classes; these rules only lay out the new columns and lists. */
.wsp-ab { padding: var(--pad) 0; }
.wsp-ab__prose p + p { margin-top: 1em; }
.wsp-ab__cols { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 56px; }
.wsp-ab__cols h3 { margin: 0 0 14px; }
.wsp-ab__list { list-style: none; margin: 0; padding: 0; }
.wsp-ab__list li { padding: 14px 0; }
.wsp-ab__list li strong { display: block; margin-bottom: 4px; }
.wsp-ab--tint { background: rgba(127, 140, 160, 0.07); }
.wsp-ab .team-duo__bio a, .wsp-ab--close a { color: inherit; text-decoration: underline; }
.wsp-ab__steps { margin-top: 56px; }
@media (min-width: 900px) {
  .wsp-ab__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .wsp-ab__cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .wsp-ab__steps.process__cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---- 2026-10-23 services rethink (fleet-operator, Alexander-approved). Appended only. ---- */
.svc-roles__grid, .svc-practices__grid, .svc-steps__list {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.svc-roles__item, .svc-practice, .svc-steps__item {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-md);
  padding: 28px; min-width: 0;
}
.svc-roles__item h3, .svc-practice h3, .svc-steps__item h3 { font-size: 22px; margin: 0 0 10px; }
.svc-roles__item p, .svc-practice p, .svc-steps__item p { margin: 0; }
.svc-practices__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-top: 0; }
.svc-practice { display: flex; flex-direction: column; gap: 6px; padding: 36px; }
.svc-practice .btn--link { margin-top: auto; padding-top: 16px; align-self: flex-start; }
.svc-steps__num { display: block; font-family: var(--utility); color: var(--maroon); font-size: 15px; letter-spacing: .08em; margin-bottom: 12px; }
.svc-sub { font-size: var(--text-h3); margin: 0 0 16px; }
.svc-expect__grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: 32px; }
.svc-expect__grid p { margin-top: 8px; }

/* FAQ accordion: native <details>/<summary>, keyboard accessible; name= makes it one-open-at-a-time where supported. */
.wsp-faq { margin-top: 32px; border-top: 1px solid var(--rule); }
.wsp-faq__item { border-bottom: 1px solid var(--rule); }
.wsp-faq__q {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-family: var(--display); font-size: clamp(19px, 1.6vw, 22px); color: var(--navy); line-height: 1.3;
}
.wsp-faq__q::-webkit-details-marker { display: none; }
.wsp-faq__q::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--maroon); border-bottom: 2px solid var(--maroon);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.wsp-faq__item[open] > .wsp-faq__q::after { transform: rotate(-135deg) translateY(-3px); }
.wsp-faq__q:hover { color: var(--maroon); }
.wsp-faq__q:focus-visible { outline: 2px solid var(--maroon); outline-offset: 4px; border-radius: 2px; }
.wsp-faq__a { padding: 0 0 22px; max-width: 64ch; }
.wsp-faq__a p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .wsp-faq__q::after { transition: none; } }
