/* ============================================================
   Ricky's Gutters: homepage FAQ

   Sits on the blue tint between the white About section and the navy service
   area, so it reads as a distinct beat without another hard dark/light flip.
   The accordion is native <details>; the only thing CSS does is hide the
   default marker and rotate a chevron.
   ============================================================ */

.rg-faq { background: var(--rg-surface-alt); }
.rg-faq__layout {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 5.5vw, 84px);
  align-items: start;
}
.rg-faq__layout > * { min-width: 0; }

.rg-faq__intro { position: sticky; top: 104px; }
.rg-faq__intro .rg-h2 { max-width: 20ch; }
.rg-faq__intro .rg-lede { max-width: 38ch; }
.rg-faq__nudge {
  margin-top: 22px;
  color: var(--rg-text-muted);
  font-size: .9375rem;
  line-height: 1.6;
  max-width: 32ch;
}
.rg-faq__nudge a {
  color: var(--rg-navy);
  font-family: var(--rg-font-head);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,58,147,.35);
  white-space: nowrap;
}
.rg-faq__nudge a:hover { text-decoration-color: currentColor; }

.rg-faq__list { display: grid; gap: 10px; }

.rg-faq__item {
  background: var(--rg-surface);
  border-radius: var(--rg-r-md);
  box-shadow: inset 0 0 0 1px var(--rg-border), 0 6px 16px rgba(0,39,102,.05);
  transition: box-shadow 200ms ease;
}
.rg-faq__item[open] {
  box-shadow: inset 0 0 0 1px var(--rg-border-cool), 0 14px 30px rgba(0,39,102,.09);
}

.rg-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  /* The audience skews older, so this is a full-width, generous tap target. */
  min-height: var(--rg-tap);
  padding: 16px 20px;
  cursor: pointer;
  color: var(--rg-text);
  font-family: var(--rg-font-head);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
}
.rg-faq__item summary::-webkit-details-marker { display: none; }
.rg-faq__item summary::marker { content: ""; }
.rg-faq__item summary:hover { color: var(--rg-navy); }
.rg-faq__item summary:focus-visible {
  outline: 3px solid var(--rg-cyan);
  outline-offset: 2px;
  border-radius: var(--rg-r-md);
}

.rg-faq__chevron {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--rg-blue);
  transition: transform 240ms ease;
}
.rg-faq__item[open] .rg-faq__chevron { transform: rotate(180deg); }

/* <details> cannot tween its own height without brand-new CSS, so the panel
   snaps and the text fades in behind it. Reads smooth, costs nothing. */
.rg-faq__answer { padding: 0 20px 20px; }
.rg-faq__answer p {
  margin: 0;
  max-width: 68ch;
  color: var(--rg-text-body);
  font-size: 1rem;
  line-height: 1.7;
}
.rg-faq__item[open] .rg-faq__answer {
  animation: rg-faq-reveal 260ms ease both;
}
@keyframes rg-faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 1000px) {
  .rg-faq__layout { grid-template-columns: 1fr; gap: 28px; }
  .rg-faq__intro { position: static; }
  .rg-faq__intro .rg-h2 { max-width: 24ch; }
  .rg-faq__intro .rg-lede { max-width: 52ch; }
  .rg-faq__nudge { max-width: none; }
}

@media (max-width: 750px) {
  .rg-faq__item summary {
    padding: 14px 16px;
    font-size: 1rem;
    gap: 12px;
  }
  .rg-faq__answer { padding: 0 16px 18px; }
  .rg-faq__answer p { font-size: .9375rem; line-height: 1.65; }
  .rg-faq__chevron { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .rg-faq__chevron { transition: none; }
  .rg-faq__item[open] .rg-faq__answer { animation: none; }
}
