/* ============================================
   Row layouts — 2-col patterns used across templates.

   Three variants in this file:
     .gs-wgs-row        — alternating image+text rows (image LEFT
                          by default; .gs-wgs-row--reverse flips).
                          Used inside Tabs panels + standalone.
     .gs-wgs-quote-row  — pairs a customer quote with a headline+body
                          block. .gs-wgs-quote-row--reverse flips
                          which side the quote sits.
     .gs-wgs-cta-art    — 2-col CTA (copy + button on one side,
                          illustration on the other).

   All collapse to single-column on ≤900px.
   ============================================ */

/* ─── Alternating image+text rows ──────────── */

.gs-wgs-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.gs-wgs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.gs-wgs-row--reverse .gs-wgs-row__media {
  order: 2;
}

.gs-wgs-row__media img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
}

.gs-wgs-row__title {
  font-size: var(--text-h3);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.gs-wgs-section--dark .gs-wgs-row__title {
  color: #fff;
}

.gs-wgs-row__desc {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-fg-body);
  margin: 0;
  text-wrap: pretty;
}

/* Stack spacing between consecutive desc paragraphs — needed when
   a row has multiple paragraphs (e.g. when a section's lede is
   merged into the row body instead of sitting under the title). */
.gs-wgs-row__desc + .gs-wgs-row__desc {
  margin-top: 1rem;
}

/* Inline links — inherit the surrounding text color + thin
   underline as the "I'm a link" cue. On hover, both color and
   underline warm up to brand coral. Calm in static state, brand
   peeks through on interaction. Works on any bg color since the
   default uses currentColor. */
.gs-wgs-row__desc a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.gs-wgs-row__desc a:hover {
  color: var(--color-brand-accent);
}

.gs-wgs-section--dark .gs-wgs-row__desc {
  color: rgba(255, 255, 255, 0.85);
}

/* ─── Quote rows ─────────────────────────── */

.gs-wgs-quote-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.gs-wgs-quote-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.gs-wgs-quote-row--reverse .gs-wgs-quote {
  order: 2;
}

.gs-wgs-quote-row__title {
  font-size: var(--text-h3);
  color: var(--color-fg);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.gs-wgs-quote-row__desc {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-fg-body);
  margin: 0;
  text-wrap: pretty;
}

/* ─── Side-illustrated CTA ────────────────── */

.gs-wgs-cta-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.gs-wgs-cta-art__title {
  font-size: var(--text-h2);
  color: var(--color-fg);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.gs-wgs-cta-art__desc {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-fg-body);
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.gs-wgs-cta-art__desc:last-of-type {
  margin-bottom: 1.75rem;
}

.gs-wgs-cta-art__media img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ============================================
   Mobile / tablet — all rows collapse to single column
   ============================================ */

@media (max-width: 900px) {
  .gs-wgs-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .gs-wgs-row--reverse .gs-wgs-row__media {
    order: 0;
  }
  .gs-wgs-row__content {
    text-align: center;
  }
  /* Cap image so it doesn't span the full viewport on tablet/mobile.
     Bottom margin gives breathing room before the text below. */
  .gs-wgs-row__media img {
    max-width: 480px;
    margin: 0 auto 1rem;
  }

  .gs-wgs-quote-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gs-wgs-quote-row--reverse .gs-wgs-quote {
    order: 0;
  }

  .gs-wgs-cta-art {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .gs-wgs-cta-art__media {
    order: -1;
  }
  .gs-wgs-cta-art__media img {
    max-width: 220px;
  }
}

@media (max-width: 767px) {
  .gs-wgs-row__media img {
    max-width: 320px;
  }
}
