/* ============================================================
   Page sections (wp/gps-theme/inc/shortcodes.php)

   [gps_categories], [gps_products] and [gps_cta] on an ordinary page --
   the live "Our Products" page is built from exactly these three. The
   tiles themselves are categories.css and product-archive.css, which load
   with this sheet; this sheet only spaces the sections, titles them, and
   draws the contact band.

   page.php gives such a page .gps-page__sections instead of the prose
   column, so none of content.css's reading-measure or list rules reach
   the grids.
   ============================================================ */

.gps-page__sections > :first-child{margin-block-start:0}
.gps-page__sections > :last-child{margin-block-end:0}
/* Any plain paragraph the client types between sections still reads as
   text, at a comfortable measure. */
.gps-page__sections > p{
  max-inline-size:68ch;
  margin:0 auto var(--sp-5);
  font-size:var(--fs-base);
  line-height:var(--lh-body);
}

.gps-sc{margin-block:var(--sp-8)}
.gps-sc:first-child{margin-block-start:0}
.gps-sc .gps-archive__grid{margin-block:0}

.gps-sc__head{
  margin:0 0 var(--sp-6);
  text-align:center;
}
.gps-sc__title{
  margin:0;
  font-family:var(--font-head);
  font-size:clamp(var(--fs-xl),2.2vw,var(--fs-2xl));
  font-weight:var(--fw-bold);
  letter-spacing:var(--tr-tight);
  line-height:var(--lh-head);
  color:var(--gps-black);
}
.gps-sc__sub{
  margin:var(--sp-2) 0 0;
  font-size:var(--fs-base);
  line-height:var(--lh-body);
  color:var(--grey-600);
}

/* ---------- Contact band ----------
   Dark, with a red rule along the top, copy on the left and the button on
   the right; stacked on a narrow screen. */
.gps-sc__cta{
  display:grid;
  gap:var(--sp-5);
  align-items:center;
  padding:clamp(var(--sp-6),4vw,var(--sp-8));
  border-top:4px solid var(--gps-red);
  border-radius:var(--radius-tile);
  background:var(--gps-black);
  color:var(--gps-white);
}
@media (min-width:48rem){
  .gps-sc__cta{grid-template-columns:minmax(0,1fr) auto;gap:var(--sp-7)}
}
.gps-sc__cta-title{
  margin:0;
  font-family:var(--font-head);
  font-size:clamp(var(--fs-xl),2.2vw,var(--fs-2xl));
  font-weight:var(--fw-bold);
  letter-spacing:var(--tr-tight);
  line-height:var(--lh-head);
  color:var(--gps-white);
}
.gps-sc__cta-text{
  max-inline-size:60ch;
  margin:var(--sp-3) 0 0;
  font-size:var(--fs-base);
  line-height:var(--lh-body);
  color:rgba(255,255,255,.82);
}
.gps-sc__cta-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:var(--sp-3) var(--sp-5);
  margin:0;
}
/* .btn never wraps, and this label is a Customizer string. */
.gps-sc__cta-btn{max-inline-size:100%;white-space:normal;text-align:center}
.gps-sc__cta-phone{
  font-weight:var(--fw-bold);
  color:var(--gps-white);
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.4);
  transition:border-color var(--dur-fast) var(--ease),color var(--dur-fast) var(--ease);
}
.gps-sc__cta-phone:is(:hover,:focus-visible){color:var(--gps-yellow);border-bottom-color:var(--gps-yellow)}
