/* ==========================================================================
   Products page — Roof Mounting System section polish (2026-11)
   Scoped to #roof-mounting so the other product sections stay untouched.
   ========================================================================== */

/* Head: photo reads as a banner, no more 90px of dead air around the text */
#roof-mounting .cat-head { margin-bottom: 30px; align-items: center; gap: 40px; }
#roof-mounting .cat-head > div:first-child { padding: 4px 0; }
#roof-mounting .cat-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
#roof-mounting .cat-head p { max-width: 560px; }
#roof-mounting .cat-media img { aspect-ratio: 21 / 9; }

/* Cards: equal boxes, price line pinned to the bottom so the dashed rules line up */
#roof-mounting .pcard { display: flex; flex-direction: column; }
#roof-mounting .pcard .pic { aspect-ratio: 4 / 3; padding: 14px; }
#roof-mounting .pcard .info { padding: 15px 18px 17px; }
#roof-mounting .pcard h3 { font-size: 15px; line-height: 1.35; margin-bottom: 6px; }
#roof-mounting .pcard .note { font-size: 12.8px; line-height: 1.55; margin-bottom: 14px; }
#roof-mounting .pcard .price-tag { margin-top: auto; padding-top: 11px; }

/* Projects gallery: separated from the cards, calmer hero crop, even rows */
#roof-mounting .roof-projects {
  margin-top: 40px; padding-top: 32px; border-top: 1px dashed var(--line);
}
#roof-mounting .roof-projects .rp-head { align-items: flex-end; margin-bottom: 16px; }
#roof-mounting .roof-projects .rp-head h3 { font-size: 19px; }
#roof-mounting .roof-projects .rp-head p { max-width: 520px; text-align: right; }
#roof-mounting .rp-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#roof-mounting .rp-gallery .shot { border-radius: 10px; }
#roof-mounting .roof-projects .rp-gallery .shot img { aspect-ratio: 4 / 3; }
#roof-mounting .roof-projects .rp-gallery .shot--hero img {
  aspect-ratio: 21 / 9; object-position: center 42%;
}
#roof-mounting .rp-gallery .shot figcaption { font-size: 12.5px; padding: 26px 14px 11px; }

/* Responsive: keep the banner readable, then stack */
@media (max-width: 1080px) {
  #roof-mounting .rp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  #roof-mounting .cat-media img { aspect-ratio: 16 / 9; }
  #roof-mounting .roof-projects .rp-head { align-items: flex-start; }
  #roof-mounting .roof-projects .rp-head p { text-align: left; max-width: none; }
}
@media (max-width: 560px) {
  #roof-mounting .pcard .pic { aspect-ratio: 3 / 2; padding: 12px; }
  #roof-mounting .roof-projects { margin-top: 30px; padding-top: 24px; }
}
