/* ==========================================================================
   Residential Solutions page
   ========================================================================== */

/* ---------- Main block: heading, project list, service cards ---------- */
.rs-main { padding-block: var(--section-y); }
.rs-heading { margin-bottom: 48px; }
.rs-experience { max-width: 1040px; }
.rs-experience-title { margin: 0 0 28px; font-size: 24px; font-weight: 700; line-height: 1.3; color: #fff; }
@media (min-width: 640px) { .rs-experience-title { font-size: 30px; } }
.rs-accordion .acc-title { margin: 0; font: inherit; }
.rs-photos { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 16px; }
.rs-photos.is-center { justify-content: flex-start; }
.rs-photos img { flex: 0 1 auto; min-width: 0; border-radius: var(--radius); border: 1px solid var(--slate-800); }

.rs-cards-head { margin: 88px 0 28px; }
.rs-cards-title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; color: #fff; }
@media (min-width: 640px) { .rs-cards-title { font-size: 30px; } }
.rs-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; list-style: none; }
.rs-card {
  grid-column: span 2; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--slate-800); background: var(--ink-900);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.rs-card.is-tall { grid-column: span 3; }
.rs-card:hover { border-color: rgba(77, 149, 214, .4); box-shadow: 0 0 0 1px rgba(43, 119, 187, .2), 0 18px 50px -24px rgba(43, 119, 187, .55); transform: translateY(-3px); }
.rs-card img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-bottom: 1px solid var(--slate-800); }
.rs-card.is-tall img { aspect-ratio: 16 / 8; }
.rs-card-title { margin: 22px 24px 0; font-size: 20px; font-weight: 700; line-height: 1.3; color: #fff; }
.rs-card p { margin: 10px 24px 26px; font-size: 14px; line-height: 1.7; color: var(--slate-400); }
@media (max-width: 1023px) {
  .rs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-card, .rs-card.is-tall { grid-column: auto; }
  .rs-card.is-tall img { aspect-ratio: 16 / 10; }
}
@media (max-width: 639px) {
  .rs-cards { grid-template-columns: 1fr; }
  .rs-cards-head { margin-top: 64px; }
}

/* ---------- Closing section: text, technician, numbers ---------- */
.rs-closing { padding-block: 0 var(--section-y); overflow: hidden; }
.rs-closing-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, .8fr); gap: 32px; align-items: center; }
.rs-closing-text h2 { margin: 0 0 20px; }
.rs-closing-text p { font-size: 17px; line-height: 1.7; color: var(--slate-400); }
.rs-closing-media { position: relative; align-self: end; }
.rs-closing-media::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 360px; height: 360px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(43, 119, 187, .35), transparent 68%); z-index: -1;
}
.rs-closing-media img { position: relative; margin: 0 auto; max-height: 520px; width: auto; }
@media (max-width: 1023px) {
  .rs-closing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rs-closing-text { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .rs-closing-grid { grid-template-columns: 1fr; }
  .rs-closing-media img { max-height: 380px; }
}

/* Reduced motion: the hover lift and zoom stay still; the colour and shadow feedback remain. */
@media (prefers-reduced-motion: reduce) {
  .rs-card:hover { transform: none; }
}
